/* figleaf.cc - one stylesheet for every page. The tokens are the app's
   (app/theme.css, the "Fig" look), so the site and the app read as one
   product. Fonts are self-hosted (OFL, assets/fonts/): no third-party
   requests, which the privacy statement promises. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Chakra Petch";
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/chakra-petch-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/chakra-petch-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Chakra Petch";
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/chakra-petch-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/chakra-petch-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0c080f;
  --bg-band: #120c16; /* alternate sections */
  --surface: #17101c;
  --surface-hi: #1b1220;
  --border: #2a1f2e;
  --border-strong: #4a3850;
  --text: #f3ecf5;
  --muted: #c9bccd; /* 10:1 on --bg */
  --faint: #a597a9; /* 6.9:1 on --bg: small print */
  --accent: #ff6b95;
  --accent-fill: #d6336c; /* behind white text, 4.6:1 */
  --accent-fill-hover: #e2437a;
  --basic: #6cb8ff;
  --premium: #ffd166;
  --font-head: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r: 6px;
  --wrap: 1200px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* the sticky header */
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}
a:hover {
  color: #ff9dbb;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 14px;
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent-fill);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-fill-hover);
  color: #fff;
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}
.btn-quiet {
  background: var(--border);
  color: var(--text);
}
.btn[aria-disabled="true"] {
  cursor: default;
  color: var(--faint);
  background: var(--surface);
  border-color: var(--border);
}

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 8, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 34px;
  width: auto;
}
.nav {
  display: flex;
  gap: 22px;
  flex-grow: 1;
  font-size: 15px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
}
.site-header .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}
@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .site-header .wrap {
    justify-content: space-between;
  }
}

/* ---------------------------------------------------------------- hero */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 80px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pill {
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #3a2a40;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.04;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.lead {
  margin: 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nowrap {
  white-space: nowrap;
}
.small {
  margin: 0;
  font-size: 13px;
  color: var(--faint);
}

.compare {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.compare figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compare img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.compare .boxes img {
  filter: saturate(0.7);
}
.compare .ours img {
  border: 2px solid var(--accent);
}
.compare figcaption {
  font-size: 13px;
  color: var(--faint);
}
.compare .ours figcaption {
  color: var(--accent);
  font-weight: 600;
}

/* The demo player (js/demo.js): one clip per effect, swapped in place. */
.demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.demo-stage {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.demo-stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 676;
}
.demo-label {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(12, 8, 15, 0.78);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.demo-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: rgba(12, 8, 15, 0.78);
  color: var(--text);
  font: 600 13px var(--font-body);
  cursor: pointer;
}
.demo-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.demo-effects button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font: 600 14px var(--font-body);
  cursor: pointer;
}
.demo-effects button:hover {
  color: var(--text);
  background: var(--surface);
}
.demo-effects button[aria-checked="true"] {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: #fff;
}
.demo-caption {
  margin: 0;
  font-size: 13px;
  color: var(--faint);
}
.demo-caption a {
  color: var(--faint);
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 56px;
  }
}

/* ------------------------------------------------------------ sections */

.band {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section {
  /* top/bottom only: .wrap's side padding must survive on the same element */
  padding-top: 80px;
  padding-bottom: 80px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}
.section h2 {
  font-size: clamp(28px, 3.4vw, 36px);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card-title {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.card h3 {
  font-size: 21px;
}
.icon {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tag {
  font-size: 12px;
  border-radius: 4px;
  padding: 1px 7px;
  border: 1px solid #3a2a40;
  color: var(--muted);
}
.tag-accent {
  color: var(--accent);
  border-color: #5a2a3e;
}

/* ------------------------------------------------------------- privacy */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.split > div:not(.compare) {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.split p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checks li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.checks svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.checks span span {
  color: var(--muted);
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid #5a4a60;
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan h3 {
  font-size: 22px;
}
.plan-basic {
  border-top-color: var(--basic);
}
.plan-basic h3 {
  color: var(--basic);
}
.plan-premium {
  background: var(--surface-hi);
  border-color: #5a2a3e;
  border-top-color: var(--premium);
}
.plan-premium h3 {
  color: var(--premium);
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
  background: var(--premium);
  border-radius: 4px;
  padding: 2px 8px;
}
.price {
  margin: 0;
  color: var(--faint);
}
.price strong {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
}
.plan ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.plan .not {
  color: var(--faint);
}
.plan .btn {
  width: 100%;
}
.plans-note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}

/* ------------------------------------------------------------ download */

.specs {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
}
.specs dt {
  color: var(--faint);
}
.specs dd {
  margin: 0;
}

/* ----------------------------------------------------------------- faq */

.faq {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 22px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
}
.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* -------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
}
.site-footer .wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--faint);
}
.site-footer .grow {
  flex-grow: 1;
}
.site-footer a {
  color: var(--faint);
}
.site-footer a:hover {
  color: var(--text);
}

/* ------------------------------------------------- text pages (privacy) */

.prose {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 80px;
}
.prose h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 12px;
}
.prose h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose strong {
  color: var(--text);
}
.prose ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose code {
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text);
}
.prose .intro {
  font-size: 19px;
  color: var(--text);
}
