/* SmartFill marketing site. Brand: brand/README.md (SmartFill Red, the
   coral-to-crimson tile gradient, Ink, Smart Blue, Paper; Plus Jakarta Sans).
   Layout: a dark Ink hero with the app in hand, then light "paper" sections
   that alternate copy and real screenshots, an Ink privacy band, roadmap,
   plans, FAQ. Static files only; no scripts but the FAQ needs none either. */
:root {
  --red: #DC2E2B;
  --coral: #FF5A2B;
  --crimson: #D61F3A;
  --ink: #14173C;
  --ink-2: #1E2252;
  --blue: #4361FF;
  --paper: #F5F6FB;
  --card: #FFFFFF;
  --text: #14173C;
  --muted: #555A7A;
  --line: rgba(20, 23, 60, 0.10);
  --on-dark: #FFFFFF;
  --on-dark-muted: #C3C6E6;
  --red-on-dark: #FF6A4D;
  --tile: linear-gradient(135deg, var(--coral), var(--crimson));
  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1030;
    --card: #181B45;
    --text: #EEF0FF;
    --muted: #A9ADD3;
    --line: rgba(255, 255, 255, 0.10);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }

/* --- Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(20, 23, 60, 0.86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); color: var(--on-dark); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--red-on-dark); font-weight: 800; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; font-weight: 600; }
.nav a { text-decoration: none; color: var(--on-dark-muted); }
.nav a:hover { color: var(--on-dark); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--tile); color: #fff; box-shadow: 0 10px 28px -10px rgba(214, 31, 58, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.18); }
.site-header .btn { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
@media (max-width: 760px) { .nav { display: none; } .site-header .btn { margin-left: auto; } }

/* --- Hero ------------------------------------------------------------------ */
.hero { background: radial-gradient(1200px 520px at 80% -10%, #3B2F7A 0%, rgba(59, 47, 122, 0) 60%), radial-gradient(900px 500px at 0% 110%, #5A1631 0%, rgba(90, 22, 49, 0) 60%), var(--ink); color: var(--on-dark); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: 72px 0; }
.hero-copy { display: grid; gap: 22px; padding-bottom: 72px; min-width: 0; }
.hero .eyebrow { color: var(--red-on-dark); }
.hero h1 span { background: linear-gradient(120deg, #FF8A5C, #FF4D6D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--on-dark-muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.store-note { display: flex; flex-wrap: wrap; gap: 10px; }
.store-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.88rem; color: var(--on-dark-muted); }
.store-pill svg { width: 18px; height: 18px; fill: currentColor; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.92rem; color: var(--on-dark-muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; stroke: #6EE7B7; fill: none; stroke-width: 2.4; }
.hero-art { position: relative; display: flex; justify-content: center; align-self: end; min-height: 560px; }

/* Phone frames around real screenshots */
.phone { position: relative; width: 290px; aspect-ratio: 1080 / 2400; border-radius: 42px; padding: 10px; background: #0A0C22; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1.5px rgba(255, 255, 255, 0.10); max-width: 100%; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; }
.hero-art .phone.main { z-index: 2; transform: translateY(40px); }
.hero-art .phone.side { position: absolute; width: 240px; left: 2%; top: 110px; transform: rotate(-7deg); opacity: 0.92; z-index: 1; }
.badge-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.96); color: var(--ink); font-size: 0.86rem; font-weight: 700; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); }
.badge-float small { display: block; font-weight: 500; color: #555A7A; }
.badge-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.badge-float.one { right: 0; top: 150px; }
.badge-float.two { right: 8%; bottom: 70px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { min-height: 0; padding-bottom: 0; }
  .hero-art .phone.side, .badge-float.two { display: none; }
  .hero-art .phone.main { width: 250px; transform: translateY(30px); }
  .badge-float.one { right: auto; left: calc(50% + 60px); top: 90px; }
}
@media (max-width: 480px) { .badge-float.one { display: none; } }

/* --- Sections ---------------------------------------------------------------- */
section { padding-block: 96px; }
.section-head { display: grid; gap: 14px; max-width: 44rem; margin-bottom: 44px; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.feature p { color: var(--muted); font-size: 0.98rem; }
.ficon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.ficon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-sign { background: linear-gradient(135deg, #D93E00, #E32450); }
.g-fill { background: linear-gradient(135deg, #4268FF, #3A3FD8); }
.g-scan { background: linear-gradient(135deg, #0C81A0, #2563EB); }
.g-redact { background: linear-gradient(135deg, #EE0017, #B3133A); }
.g-markup { background: linear-gradient(135deg, #FFC542, #FF8A1F); color: var(--ink) !important; }
.g-pages { background: linear-gradient(135deg, #2ED3B7, #0E9F9A); color: var(--ink) !important; }
.g-share { background: linear-gradient(135deg, #0369A1, #1E40AF); }
.g-templates { background: linear-gradient(135deg, #7E55F8, #7C3AED); }
.g-help { background: linear-gradient(135deg, #312E81, #1E1B4B); }
.pro { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #7E55F8, #7C3AED); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; vertical-align: middle; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot + .spot { margin-top: 110px; }
.spot.flip .spot-art { order: -1; }
.spot-copy { display: grid; gap: 18px; min-width: 0; }
.spot-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.spot-copy li { display: flex; gap: 10px; color: var(--muted); }
.spot-copy li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--red); fill: none; stroke-width: 2.4; }
.spot-art { display: flex; justify-content: center; position: relative; }
.spot-art::before { content: ""; position: absolute; inset: 8% 10%; border-radius: 40px; background: var(--tile); opacity: 0.12; filter: blur(30px); }
.spot-art .phone { width: 300px; }
.pair { display: flex; gap: 22px; justify-content: center; }
.pair .phone { width: 250px; }
@media (max-width: 900px) {
  .spot { grid-template-columns: 1fr; gap: 36px; }
  .spot.flip .spot-art { order: 0; }
  .pair .phone { width: 46%; }
}

/* --- Privacy band ---------------------------------------------------------- */
.band { background: var(--ink); color: var(--on-dark); }
.band .eyebrow { color: var(--red-on-dark); }
.band .lede { color: var(--on-dark-muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact { border-radius: var(--radius); padding: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.10); display: grid; gap: 8px; align-content: start; }
.fact strong { font: 800 1.08rem/1.25 var(--display); }
.fact p { color: var(--on-dark-muted); font-size: 0.95rem; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* --- Roadmap ------------------------------------------------------------- */
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.road { position: relative; background: var(--card); border: 1px dashed rgba(67, 97, 255, 0.45); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
.road .soon { justify-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(67, 97, 255, 0.12); color: var(--blue); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.road p { color: var(--muted); font-size: 0.98rem; }
@media (prefers-color-scheme: dark) { .road .soon { color: #9DAEFF; } }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } }

/* --- Plans ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.plan.feature-plan { border: 2px solid var(--red); box-shadow: 0 24px 50px -30px rgba(214, 31, 58, 0.6); }
.plan .tag { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 0.97rem; }
.plan li { display: flex; gap: 9px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: #10B981; fill: none; stroke-width: 2.6; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* --- FAQ ---------------------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; font: 700 1.04rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* --- Closing CTA + footer --------------------------------------------------- */
.closing { background: var(--tile); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.closing p { opacity: 0.92; }
.closing .btn { background: #fff; color: var(--crimson); }
@media (max-width: 760px) { .closing { grid-template-columns: 1fr; padding: 36px 26px; } }
.site-footer { padding-block: 56px 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 12px; color: var(--text); font-size: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* --- Legal pages ---------------------------------------------------------------- */
.doc-hero { background: var(--ink); color: var(--on-dark); padding-block: 64px 48px; }
.doc-hero p { color: var(--on-dark-muted); margin-top: 12px; }
.doc { max-width: 760px; margin: 0 auto; padding-block: 56px 80px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2rem; display: grid; gap: 8px; }
.doc strong { color: var(--text); }
.doc .summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.doc .summary li { color: var(--text); }

/* --- Device detail and motion (owner: "a professional display of the app on
   the phone with a bit of animation"). Everything is visible at rest; motion
   only plays when the reader hasn't asked for reduced motion. ---------------- */
.phone::before { /* camera punch-hole */
  content: ""; position: absolute; z-index: 3; top: 22px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #05061A; box-shadow: inset 0 0 0 2px #1C1F45;
}
.phone::after { /* glass sheen */
  content: ""; position: absolute; inset: 10px; border-radius: 33px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 38%);
}
.phone .btn-side { position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: #23264F; }
.phone .btn-side.a { top: 22%; height: 9%; }
.phone .btn-side.b { top: 34%; height: 15%; }
.screens { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #0A0C22; }
.screens img + img { display: none; }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
/* (no caption under the hero phone: it clipped) */
.screen-label { display: none; position: absolute; z-index: 4; left: 50%; bottom: -46px; transform: translateX(-50%); white-space: nowrap; font-size: 0.85rem; font-weight: 700; color: var(--on-dark-muted); }
.screen-label span { position: absolute; left: 50%; transform: translateX(-50%); opacity: 0; }
.screen-label span:first-child { opacity: 1; }

/* Signature that draws itself on a paper card */
.paper-card { position: absolute; z-index: 3; left: -6%; bottom: 40px; width: 230px; padding: 16px 18px 12px; border-radius: 14px; background: #fff; color: #14173C; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); font-size: 0.72rem; }
.paper-card .rule { height: 6px; border-radius: 3px; background: #E7E9F4; margin: 6px 0; }
.paper-card .rule.short { width: 62%; }
.paper-card svg { display: block; width: 100%; height: 56px; margin-top: 6px; }
.paper-card .sig { fill: none; stroke: #14173C; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.paper-card .line { border-top: 1.5px solid #9AA0C3; padding-top: 4px; display: flex; justify-content: space-between; color: #555A7A; }
@media (max-width: 900px) { .paper-card { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .phone.main { animation: float 7s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(40px); } 50% { transform: translateY(26px); } }
  .hero-art .phone.side { animation: float-side 8s ease-in-out infinite; }
  @keyframes float-side { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-10px); } }

  /* Four real screens, crossfading on a 16 s loop */
  .screens img + img { display: block; }
  .screens img { opacity: 0; animation: cycle 16s infinite; }
  .screens img:nth-child(1) { animation-delay: 0s; }
  .screens img:nth-child(2) { animation-delay: 4s; }
  .screens img:nth-child(3) { animation-delay: 8s; }
  .screens img:nth-child(4) { animation-delay: 12s; }
  /* Each screen stays solid until the next is fully in (it fades in over the
     first 4 %, the previous fades out from 28 % to 33 %), so nothing flashes. */
  @keyframes cycle { 0% { opacity: 0; transform: scale(1.02); } 4%, 28% { opacity: 1; transform: scale(1); } 33%, 100% { opacity: 0; } }
  .screen-label span { animation: cycle-label 16s infinite; opacity: 0; }
  .screen-label span:nth-child(2) { animation-delay: 4s; }
  .screen-label span:nth-child(3) { animation-delay: 8s; }
  .screen-label span:nth-child(4) { animation-delay: 12s; }
  @keyframes cycle-label { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 30%, 100% { opacity: 0; } }

  .badge-float { animation: pop .7s cubic-bezier(.2, .9, .3, 1.3) both; }
  .badge-float.one { animation-delay: .5s; }
  .badge-float.two { animation-delay: .9s; }
  @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }

  .paper-card { animation: pop .7s cubic-bezier(.2, .9, .3, 1.3) .3s both; }
  .paper-card .sig { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.6s ease-in-out 1s forwards, redraw 9s ease-in-out 3.6s infinite; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes redraw { 0%, 70% { stroke-dashoffset: 0; } 78% { stroke-dashoffset: 520; } 100% { stroke-dashoffset: 0; } }

  .hero-copy > * { animation: rise .8s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-copy > *:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

  /* Sections fade up as they scroll in (the class is added by a tiny script;
     without it, everything simply shows) */
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .feature, .road, .plan { transition: transform .25s ease, box-shadow .25s ease; }
  .feature:hover, .road:hover, .plan:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(20, 23, 60, 0.45); }
  .spot-art .phone { transition: transform .5s ease; }
  .spot:hover .spot-art .phone { transform: translateY(-6px) rotate(-1deg); }
}
