:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --subtle: #f7f9f9;
  --ink: #0f1419;
  --ink-2: #536471;
  --line: #eff3f4;
  --line-2: #cfd9de;
  --blue: #1d9bf0;
  --btn: #0f1419;
  --btn-ink: #ffffff;
  --error: #f4212e;
  --ok: #00ba7c;
  --shadow-lg: 0 1px 2px rgba(15, 20, 25, .04), 0 12px 40px -12px rgba(15, 20, 25, .18);
  --shadow-sm: 0 1px 3px rgba(15, 20, 25, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #000000;
    --subtle: #16181c;
    --ink: #e7e9ea;
    --ink-2: #71767b;
    --line: #2f3336;
    --line-2: #3e4144;
    --btn: #eff3f4;
    --btn-ink: #0f1419;
    --shadow-lg: 0 0 0 1px #2f3336;
    --shadow-sm: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
b, strong { font-weight: 700; }
.page { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 0 16px;
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.mark svg { width: 32px; height: 32px; display: block; }
.mark rect { fill: var(--ink); }
.mark-page { fill: var(--bg); }
.mark-arrow { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-cta {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px;
}
.nav-cta:hover { background: var(--subtle); }

/* Hero */
.hero {
  display: grid; gap: 48px; align-items: center;
  padding: 40px 0 72px;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.12fr .88fr; padding: 72px 0 96px; gap: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
h1 {
  font-size: clamp(40px, 6.2vw, 62px); line-height: 1.03; letter-spacing: -.045em; font-weight: 800;
  margin: 0 0 18px;
}
h1 .soft { color: var(--ink-2); }
@media (min-width: 600px) { .nw { white-space: nowrap; } }
.lede { color: var(--ink-2); font-size: clamp(17px, 2.2vw, 19px); line-height: 1.5; margin: 0 0 30px; max-width: 32em; }

/* Form */
.convert { display: grid; gap: 10px; max-width: 560px; }
@media (min-width: 560px) { .convert { grid-template-columns: 1fr auto; } }
.field { position: relative; }
.field-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round;
}
input[type="url"] {
  width: 100%; height: 56px;
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 0 84px 0 48px;
  background: var(--subtle); border: 1px solid transparent; border-radius: 999px;
  outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
input[type="url"]::placeholder { color: var(--ink-2); }
input[type="url"]:focus { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.chip {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); cursor: pointer;
}
.chip:hover { background: var(--subtle); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .08s, opacity .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { opacity: .88; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--subtle); }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.2px solid color-mix(in srgb, var(--btn-ink) 30%, transparent); border-top-color: var(--btn-ink);
  animation: spin .7s linear infinite;
}
.btn.busy { pointer-events: none; }
.btn.busy .btn-label { opacity: .7; }
.btn.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { min-height: 1.5em; margin: 14px 4px 0; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.status.error { color: var(--error); }

/* Result */
.result {
  max-width: 560px; margin-top: 8px; padding: 14px; display: grid; gap: 12px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg);
  animation: rise .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.result-file { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pdf-badge {
  flex: none; display: grid; place-items: center; width: 44px; height: 52px; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.result-text { display: grid; min-width: 0; }
.result-text strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-text span { color: var(--ink-2); font-size: 13px; }
.result-actions { display: grid; gap: 8px; grid-template-columns: 1fr; }
.result-actions .btn { height: 48px; font-size: 16px; }
@media (min-width: 480px) { .result-actions { grid-template-columns: 1fr 1fr; } }

/* Hero visual: real iPhone screenshots of the flow */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 8px 0 36px; min-height: 420px; }
.phone { margin: 0; position: relative; width: min(46%, 260px); min-width: 0; }
.hero-visual { overflow: visible; max-width: 100%; }
body { overflow-x: hidden; }
.screen {
  position: relative; overflow: hidden; border-radius: 38px; background: #fff;
  border: 9px solid #0f1419; box-shadow: 0 2px 4px rgba(15,20,25,.08), 0 30px 60px -24px rgba(15,20,25,.45);
  aspect-ratio: 640 / 1130;
}
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; padding-top: 22px; background: #fff; }
.island { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 16px; border-radius: 999px; background: #0f1419; z-index: 1; }
.phone-back { transform: rotate(-5deg) translate(14px, 18px); z-index: 1; }
.phone-front { transform: rotate(4deg) translate(-14px, -4px); z-index: 2; }
.phone figcaption {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.step-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: 12px; font-weight: 800; }
.float-chip {
  position: absolute; z-index: 3; right: 4%; bottom: 22%;
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 9px 10px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.float-chip svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .phone-front { animation: float 6s ease-in-out infinite; }
  .float-chip { animation: float 6s ease-in-out -3s infinite; }
  @keyframes float { 50% { translate: 0 -8px; } }
}
@media (max-width: 899px) { .hero-visual { margin-top: 8px; } }

/* Sections */
section:not(.hero) { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.035em; line-height: 1.15; font-weight: 800; margin: 0 0 28px; }
h3 { font-size: 17px; letter-spacing: -.01em; margin: 0 0 6px; font-weight: 700; }
p { margin: 0; }

.step-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 22px; border-radius: 20px; background: var(--subtle); }
.step p { color: var(--ink-2); font-size: 15px; }
.step b { color: var(--ink); }
.num {
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 50%;
  background: var(--btn); color: var(--btn-ink); font-weight: 800; font-size: 15px;
}

.features { display: grid; gap: 28px 32px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature p { color: var(--ink-2); font-size: 15px; }
.ficon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--line); }
.ficon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 16px; max-width: 40em; }

.foot {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  padding: 28px 0 max(36px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px;
}
.brand.small { font-size: 15px; gap: 8px; }
.brand.small .mark svg { width: 24px; height: 24px; }
