/* ---------------------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------------------- */
:root {
  --ink: #101017;
  --muted: #656573;
  --line: #e9e8ed;
  --paper: #fbfbfd;
  --cyan: #25f4ee;
  --pink: #fe2c55;
  --violet: #7857ff;
  --dark: #111116;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
/* Sticky rather than fixed: the bar keeps its 74px of flow at the top of the
   page, which is what lets the hero claim exactly `100svh - 74px` below it. */
.site-header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* In-page anchors have to stop short of the sticky bar, or the section heading
   they target lands underneath it. */
main[id], section[id], #download { scroll-margin-top: 74px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan) 0 48%, var(--pink) 50%);
  color: #0c0c10;
  font-weight: 900;
}

.site-header nav { display: flex; gap: 30px; color: #b9b9c4; font-size: 14px; }
.site-header nav a:hover { color: #fff; }
.nav-cta { font-size: 13px; font-weight: 700; padding: 10px 16px; border: 1px solid #34343e; border-radius: 999px; }

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
/* The header and the hero together occupy exactly one viewport, so on a 1920x1080
   screen the fold lands on the hero's own edge instead of slicing through the
   next section's heading. `svh` (with a `vh` fallback) keeps that true while a
   mobile browser's chrome is still showing.

   The block is centred rather than top-padded, and the internal rhythm is set in
   `vh`, so the composition breathes on a tall window and compresses on a short
   one without ever pushing itself past the fold. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vh, 84px) 24px clamp(40px, 6vh, 76px);
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.hero-inner { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; text-align: center; }

.eyebrow, .section-label { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #33333d;
  border-radius: 999px;
  color: #bdbdc8;
}
.eyebrow span { color: var(--cyan); font-size: 9px; }

/* The lower bound keeps the headline at two lines on a 360px phone, which is
   what lets the whole hero clear the fold there. `max-width` has to stay ahead
   of the second line's own width at the 88px cap, or it wraps to three. */
.hero h1 {
  font-size: clamp(32px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.06em;
  margin: clamp(12px, 2.6vh, 42px) auto clamp(10px, 2.2vh, 30px);
  max-width: 1040px;
}
.hero h1 span {
  display: block;
  /* The second line carries more words than the first, so it is set a little
     smaller to keep the headline at two lines on desktop. */
  font-size: .82em;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #a8fff5 46%, #ff7590);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 730px;
  margin: 0 auto clamp(16px, 4.4vh, 54px);
  color: #bdbdc7;
  font-size: clamp(15px, 2.6vw, 18px);
  line-height: 1.6;
}

.orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .16; }
.orb-one { width: 420px; height: 420px; left: -250px; top: 100px; background: var(--cyan); }
.orb-two { width: 480px; height: 480px; right: -300px; bottom: -220px; background: var(--pink); }

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2.2vw, 34px);
  margin-top: clamp(12px, 3.4vh, 44px);
  color: #92929e;
  font-size: clamp(11px, .9vw, 13px);
}

/* ---------------------------------------------------------------------------
   Download form
   --------------------------------------------------------------------------- */
.download-box { display: grid; grid-template-columns: 1fr 190px; gap: 10px; max-width: 820px; margin: 0 auto; }

.input-shell {
  height: 64px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 0 10px 0 18px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
}

/* Only the hero's copy of the form tracks the viewport height — the one in the
   final CTA keeps its fixed metrics. The submit button is a grid sibling, so it
   stretches to whatever row height the shell sets. */
.hero .input-shell { height: clamp(52px, 7.2vh, 78px); }

.link-mark { color: #787887; margin-right: 11px; }
.input-shell input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 15px; color: #14141a; background: transparent; }

.paste {
  border: 0;
  background: #f0eff4;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
  color: #4e4e5a;
  cursor: pointer;
}
.paste:hover { background: #e6e4ec; }

.download-button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), #ff4c72);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 15px 45px rgba(254, 44, 85, .28);
  transition: transform .15s ease;
}
.download-button:hover:not(:disabled) { transform: translateY(-1px); }
.download-button:disabled { opacity: .6; cursor: progress; }

.example { grid-column: 1/-1; color: #6f6f7c; font-size: 11px; margin: 0; text-align: left; padding-left: 16px; }

/* ---------------------------------------------------------------------------
   Result panel
   --------------------------------------------------------------------------- */
.result { max-width: 820px; margin: 22px auto 0; text-align: left; }

.result-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid #2f2f3a;
  background: #17171f;
  color: #c9c9d4;
}
.result-message.is-error { border-color: rgba(254, 44, 85, .45); background: rgba(254, 44, 85, .09); color: #ffc4d0; }
.result-message.is-busy { border-color: rgba(37, 244, 238, .35); background: rgba(37, 244, 238, .07); color: #b6fbf7; }
.result-message b { color: #fff; font-weight: 700; }

.result-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: 20px;
  background: #17171f;
  border: 1px solid #2b2b36;
}

.result-media { border-radius: 14px; overflow: hidden; background: #0d0d12; aspect-ratio: 9/16; }
.result-media video, .result-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.result-body { min-width: 0; display: flex; flex-direction: column; }
.result-caption { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: #fff; overflow-wrap: anywhere; }
.result-meta { margin: 0 0 18px; font-size: 12.5px; color: #8b8b99; display: flex; flex-wrap: wrap; gap: 6px 14px; }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  background: #24242f;
  color: #eaeaf2;
  transition: transform .15s ease, background .15s ease;
}
.action:hover:not(:disabled) { transform: translateY(-1px); background: #2c2c39; }
.action:disabled { opacity: .55; cursor: progress; transform: none; }
.action-primary { background: linear-gradient(135deg, var(--pink), #ff4c72); color: #fff; box-shadow: 0 12px 30px rgba(254, 44, 85, .26); }
.action-primary:hover:not(:disabled) { background: linear-gradient(135deg, #ff3a60, #ff5c7f); }
.action-audio { background: linear-gradient(135deg, var(--cyan), #6df3ee); color: #06302e; }
.action-audio:hover:not(:disabled) { background: linear-gradient(135deg, #45f6f0, #86f5f1); }
.action small { font-weight: 600; opacity: .75; }

.result-note { margin: 14px 0 0; font-size: 12px; color: #7f7f8d; line-height: 1.6; }

.progress { margin-top: 14px; height: 6px; border-radius: 99px; background: #26262f; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .2s ease; }
.progress-label { margin: 8px 0 0; font-size: 12px; color: #9a9aa8; }

.result-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 16px; }
.result-gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #2b2b36; aspect-ratio: 3/4; }
.result-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */
.section { max-width: 1180px; margin: auto; padding: 108px 24px; }
.section-label { color: var(--violet); margin-bottom: 18px; }

.split-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split-heading h2, .feature-heading h2, .device-copy h2, .problems > h2, .faq h2, .final-cta h2 {
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0;
}
.split-heading p, .feature-heading > p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0 0 16px; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.mini-stats div { background: #fff; padding: 26px; display: flex; flex-direction: column; }
.mini-stats b { font-size: 28px; }
.mini-stats span { font-size: 12px; color: var(--muted); margin-top: 6px; }

.how, .why, .more-tools { max-width: none; background: var(--paper); }
.how > *, .why > *, .more-tools > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.center-heading { text-align: center; max-width: 700px !important; }
.center-heading h2 { font-size: clamp(38px, 4.5vw, 56px); letter-spacing: -.045em; margin: 0 0 16px; }
.center-heading p, .faq-heading p { color: var(--muted); line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 55px; }
.steps article { position: relative; background: #fff; padding: 34px; border: 1px solid var(--line); border-radius: 22px; min-height: 295px; }
.step-no { position: absolute; right: 24px; top: 22px; color: #d6d4dc; font-weight: 800; }

.step-icon, .tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #101016;
  color: #fff;
  font-size: 24px;
  margin-bottom: 28px;
}
.steps article:nth-child(2) .step-icon { background: var(--violet); }
.steps article:nth-child(3) .step-icon { background: var(--pink); }

.steps h3, .feature-grid h3, .benefit-grid h3, .problem-grid h3, .tools-grid h3 { font-size: 19px; letter-spacing: -.025em; }
.steps p, .feature-grid p, .benefit-grid p, .problem-grid p, .tools-grid p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.feature-heading { display: grid; grid-template-columns: 1.1fr .8fr; gap: 120px; align-items: end; margin-bottom: 54px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-grid article { padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.feature-grid article > span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  background: #efedf9;
  color: var(--violet);
  font-weight: 900;
}
.feature-grid .featured { background: var(--dark); color: #fff; border-color: var(--dark); }
.feature-grid .featured p { color: #aaaab5; }
.feature-grid .featured > span { background: var(--cyan); color: #111; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.benefit-grid article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.benefit-grid i { font-style: normal; font-size: 24px; }

.devices { padding-top: 86px; padding-bottom: 86px; }
.devices-panel { background: var(--dark); border-radius: 28px; color: #fff; display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; }
.device-visual {
  min-height: 590px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 45% 40%, rgba(37, 244, 238, .22), transparent 38%),
    radial-gradient(circle at 65% 65%, rgba(254, 44, 85, .23), transparent 36%);
}
.phone {
  position: relative;
  width: 230px;
  height: 450px;
  border: 7px solid #292933;
  border-radius: 38px;
  background: #f6f6f9;
  padding: 36px 18px 18px;
  color: #111;
  transform: rotate(-5deg);
  box-shadow: 0 32px 80px #000;
}
.phone-dot { position: absolute; width: 55px; height: 16px; border-radius: 12px; background: #111; top: 12px; left: 50%; transform: translateX(-50%); }
.video-card {
  height: 270px;
  border-radius: 22px;
  background: linear-gradient(150deg, #292936, #111);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.video-card span { font-size: 34px; color: var(--cyan); margin-bottom: auto; }
.video-card small { color: #aaa; margin-top: 5px; }
.saved { background: #fff; margin-top: 16px; border-radius: 12px; padding: 14px; font-size: 12px; text-align: center; color: #28746e; font-weight: 700; }

.device-copy { padding: 68px 65px; }
.device-copy p { color: #aaaab5; line-height: 1.7; }
.device-tabs { margin-top: 35px; }
.device-tabs article { padding: 18px 0; border-top: 1px solid #33333c; }
.device-tabs h3 { margin: 0 0 6px; }
.device-tabs p { margin: 0; font-size: 14px; }

.problems { padding-top: 70px; }
.problems > h2 { max-width: 650px; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.problem-grid article { border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.problem-grid article:first-child { grid-row: span 2; background: #f4f2ff; }
.tip { margin-top: 26px; background: #fff; padding: 16px; border-radius: 12px; color: #5b4bb0; font-size: 12px; line-height: 1.6; }

.tools-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 50px; }
.tools-grid article { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.tools-grid article:nth-child(4) { grid-column: 2/span 2; }
.tools-grid a { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; }
.faq-heading { position: sticky; top: 104px; align-self: start; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary b { color: var(--violet); font-size: 20px; }
.faq-list details[open] summary b { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); line-height: 1.7; padding-right: 38px; font-size: 14px; }

.final-cta {
  max-width: 1120px;
  margin-bottom: 100px;
  background: linear-gradient(135deg, #171720, #0d0d11);
  border-radius: 28px;
  color: #fff;
  text-align: center;
  padding: 74px;
}
.final-cta > div:first-child p { max-width: 620px; margin: 20px auto 36px; color: #aaaab5; line-height: 1.7; }
.final-cta .compact { max-width: 780px; }
.final-cta small { display: block; color: #747480; margin-top: 18px; }

footer {
  background: var(--dark);
  color: #fff;
  padding: 46px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 40px;
}
footer p { color: #777784; font-size: 11px; line-height: 1.7; margin: 0; }
footer > div { display: flex; justify-content: flex-end; gap: 18px; color: #aaa; font-size: 12px; }

/* ---------------------------------------------------------------------------
   Static content pages (privacy / terms / contact / 404)
   --------------------------------------------------------------------------- */
.prose { max-width: 760px; margin: auto; padding: 84px 24px 100px; }
.prose h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -.045em; line-height: 1.1; margin: 0 0 10px; }
.prose .updated { color: var(--muted); font-size: 13px; margin: 0 0 44px; }
.prose h2 { font-size: 21px; letter-spacing: -.025em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); line-height: 1.8; font-size: 15px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--violet); font-weight: 600; }

.notfound { text-align: center; padding: 130px 24px 140px; }
.notfound h1 { font-size: clamp(60px, 12vw, 120px); letter-spacing: -.06em; margin: 0; }
.notfound p { color: var(--muted); margin: 12px 0 32px; }
.notfound a { display: inline-block; background: linear-gradient(135deg, var(--pink), #ff4c72); color: #fff; font-weight: 800; padding: 15px 28px; border-radius: 14px; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header nav { display: none; }
  .split-heading, .feature-heading, .devices-panel, .faq { grid-template-columns: 1fr; gap: 36px; }
  .steps, .benefit-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid article, .tools-grid article:nth-child(4) { grid-column: auto; }
  .device-visual { min-height: 520px; }
  .faq-heading { position: static; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid article:first-child { grid-row: auto; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .brand { justify-content: center; }
  footer > div { justify-content: center; }
}

@media (max-width: 620px) {
  .site-header { height: 66px; padding: 0 18px; }
  .site-header .nav-cta { display: none; }
  main[id], section[id], #download { scroll-margin-top: 66px; }
  /* The header shrinks to 66px here, so the hero's share of the viewport grows
     by the same 8px. */
  .hero {
    padding: clamp(14px, 2.6vh, 30px) 18px clamp(14px, 2.4vh, 28px);
    min-height: calc(100vh - 66px);
    min-height: calc(100svh - 66px);
  }
  /* Tighter rhythm than the desktop rule: a 375x667 phone only leaves ~487px
     below the header, and the paragraph alone takes six lines there. */
  .hero h1 { margin: clamp(8px, 2vh, 20px) auto clamp(8px, 1.8vh, 18px); }
  .hero-copy { margin-bottom: clamp(12px, 3.4vh, 26px); }
  .trust-row { margin-top: clamp(10px, 2.8vh, 22px); }
  .eyebrow { font-size: 10px; padding: 6px 12px; }
  .download-box { grid-template-columns: 1fr; }
  .download-button { height: clamp(48px, 7vh, 58px); }
  .example { grid-column: 1; }
  .section { padding: 78px 18px; }
  .split-heading h2, .feature-heading h2, .device-copy h2, .problems > h2, .faq h2, .final-cta h2 { font-size: 38px; }
  .mini-stats div { padding: 20px; }
  .feature-grid, .tools-grid { grid-template-columns: 1fr; }
  .device-copy { padding: 48px 26px; }
  .device-visual { min-height: 500px; }
  .final-cta { margin: 0 14px 70px; padding: 54px 20px; }
  .final-cta .download-box { display: block; }
  .final-cta .download-button { width: 100%; margin-top: 10px; }
  footer { padding: 45px 24px; }
  .input-shell { height: 58px; }
  .paste { display: none; }
  .result-card { grid-template-columns: 1fr; }
  .result-media { max-width: 200px; margin: 0 auto; }
  .result-actions .action { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-button:hover, .action:hover { transform: none; }
  .progress > i { transition: none; }
}
