/* 1Save website, styled to match the app revamp (Savy). Tokens mirror constants/theme.ts. */
:root {
  --yellow: #FACC15;
  --yellow-soft: #FDE68A;
  --yellow-pale: #FEF9C3;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-pale: #DBEAFE;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --text-2: #475569;
  --muted: #94A3B8;
  --on-ink-2: #CBD5E1;
  --border: #E5E7EB;
  --surface-muted: #F1F2F4;
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --red: #DC2626;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-card: 20px;
  --radius-xl: 28px;
  --shadow-hard: 0 4px 0 var(--ink);
  --shadow-hard-lg: 0 6px 0 var(--ink);

  --gutter: 20px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.overline { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue); }
.lead { font-size: 19px; color: var(--text-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--yellow); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: var(--radius-lg);
  font-family: var(--font-display); font-weight: 700; font-size: 18px; text-decoration: none;
  border: 2.5px solid var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-hard); }
.btn-primary:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-secondary { background: var(--white); color: var(--ink); box-shadow: var(--shadow-hard); }
.btn-secondary:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.btn-ghost { border: 0; background: transparent; color: var(--blue); min-height: 44px; padding: 0 8px; font-family: var(--font-body); font-size: 16px; }
.btn svg { flex-shrink: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.navlink { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a.navlink:hover { color: var(--blue); }
@media (max-width: 820px) { .nav a.navlink { display: none; } }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); margin: 14px 0 20px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 4px; margin: 0 -4px; }
.hero .lead { max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-2); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 440 / 560; }
.hero-art .blob { position: absolute; inset: 6% 0 0 8%; border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%; background: var(--yellow-pale); border: 2.5px solid var(--ink); }
.phone { position: relative; border: 3px solid var(--ink); border-radius: 40px; background: var(--ink); padding: 8px; box-shadow: var(--shadow-hard-lg); }
.phone img { border-radius: 32px; width: 100%; height: auto; }
.hero-art .phone { position: absolute; left: 24%; top: 0; width: 60%; transform: rotate(3deg); }
.hero-art .savy { position: absolute; left: -2%; bottom: 2%; width: 38%; transform: rotate(-6deg); filter: drop-shadow(0 6px 0 rgba(15,23,42,.12)); }
.sticker { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-hard); font-size: 14px; font-weight: 700; white-space: nowrap; }
.sticker .dot { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sticker small { display: block; font-weight: 500; color: var(--text-2); font-size: 12px; }
.hero-art .s1 { right: -4%; top: 14%; transform: rotate(4deg); }
.hero-art .s2 { right: 2%; bottom: 16%; transform: rotate(-3deg); }
@media (max-width: 900px) {
  .hero { padding: 28px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { width: min(100%, 360px); }
}
@media (max-width: 420px) { .hero-art .s1 { right: -2%; } .sticker { font-size: 13px; padding: 8px 10px; } }

/* Works-with strip */
.works { padding: 8px 0 8px; }
.works .wrap { display: flex; align-items: center; justify-content: center; gap: 10px 12px; flex-wrap: wrap; }
.works p { font-size: 14px; color: var(--text-2); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--white); border: 2px solid var(--border); font-weight: 700; font-size: 14px; }

/* Sections */
section.block { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); margin: 10px 0 14px; }
@media (max-width: 640px) { section.block { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 24px 24px 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.step .num { width: 36px; height: 36px; border-radius: 18px; background: var(--ink); color: var(--yellow); font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 22px; }
.step p { color: var(--text-2); font-size: 16px; }
.step .shot { margin: 14px auto 0; width: 78%; border: 3px solid var(--ink); border-bottom: 0; border-radius: 30px 30px 0 0; padding: 7px 7px 0; background: var(--ink); }
.step .shot img { border-radius: 24px 24px 0 0; aspect-ratio: 390 / 560; height: auto; object-fit: cover; object-position: top; width: 100%; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-card); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.feature .tile { width: 52px; height: 52px; border-radius: 16px; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--text-2); font-size: 16px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 700; vertical-align: 3px; margin-left: 6px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Secret spotlight */
.secret { background: var(--ink); color: var(--paper); border-radius: 36px; padding: 64px 56px; display: grid; grid-template-columns: 1fr .8fr; gap: 48px; align-items: center; }
.secret .overline { color: var(--yellow); }
.secret h2 { font-size: clamp(32px, 4vw, 46px); margin: 10px 0 16px; color: var(--paper); }
.secret p.lead { color: var(--on-ink-2); }
.secret ul { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.secret li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--on-ink-2); }
.secret li b { color: var(--paper); }
.secret li .ic { width: 30px; height: 30px; border-radius: 10px; background: var(--yellow); flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.secret-art { position: relative; justify-self: center; width: min(100%, 330px); }
.secret-art .phone { border-color: var(--paper); box-shadow: 0 6px 0 var(--yellow); transform: rotate(-3deg); }
.secret-art .savy { position: absolute; width: 42%; right: -14%; bottom: -6%; transform: rotate(6deg); }
@media (max-width: 900px) { .secret { grid-template-columns: 1fr; padding: 44px 24px; border-radius: 28px; } .secret-art { width: min(100%, 280px); margin-bottom: 20px; } }

/* Savy */
.meet { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.meet h2 { font-size: clamp(32px, 4vw, 46px); margin: 10px 0 16px; }
.poses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pose { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-card); padding: 16px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pose img { width: 84px; height: 92px; }
.pose b { font-size: 15px; }
.pose span { font-size: 13px; color: var(--text-2); line-height: 1.35; }
@media (max-width: 900px) { .meet { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .poses { grid-template-columns: 1fr 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 18px; border: 2.5px solid var(--ink); background: var(--white); }
.plan.premium { background: var(--yellow); box-shadow: var(--shadow-hard-lg); position: relative; }
.plan h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.plan .sub { color: var(--text-2); font-size: 16px; margin-top: -8px; }
.plan.premium .sub { color: var(--ink); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.check { width: 24px; height: 24px; border-radius: 12px; background: var(--blue-pale); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.plan.premium .check { background: var(--ink); }
.plan .savy-mini { position: absolute; right: 20px; top: -46px; width: 82px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; gap: 64px; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 2px solid var(--border); border-radius: 18px; padding: 0 22px; }
.faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 15px; background: var(--surface-muted); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--yellow); }
.faq details p { padding: 0 0 20px; color: var(--text-2); font-size: 16px; }

/* CTA band */
.cta { background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 36px; box-shadow: var(--shadow-hard-lg); padding: 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta p { margin-top: 10px; font-size: 18px; }
.cta img.savy { width: 130px; }
.cta .btn-primary { background: var(--ink); color: var(--yellow); box-shadow: 0 4px 0 rgba(15,23,42,.35); }
.cta .btn-primary:hover { color: var(--yellow); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 40px 24px; border-radius: 28px; } .cta img.savy { width: 110px; } }

/* Footer */
.site-footer { margin-top: 88px; border-top: 1.5px solid var(--border); padding: 40px 0 48px; font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.site-footer p { color: var(--text-2); max-width: 340px; margin-top: 12px; font-size: 15px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 44px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.copyright { width: 100%; color: var(--muted); font-size: 13px; margin-top: 8px; }

/* Legal / document pages */
.doc-hero { padding: 48px 0 8px; }
.doc-hero .wrap { display: flex; align-items: center; gap: 20px; max-width: 820px; }
.doc-hero img { width: 84px; flex-shrink: 0; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 48px); }
.doc-hero p { color: var(--text-2); margin-top: 6px; }
.doc { max-width: 820px; margin: 24px auto 0; padding: 0 var(--gutter); }
.doc-card { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 40px 44px; }
.doc-card h2 { font-size: 24px; margin: 34px 0 12px; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card h3 { font-size: 19px; margin: 24px 0 8px; }
.doc-card p, .doc-card li { color: #334155; font-size: 17px; }
.doc-card p + p { margin-top: 12px; }
.doc-card ul, .doc-card ol { padding-left: 24px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.doc-card .callout { background: var(--yellow-pale); border-radius: 14px; padding: 14px 18px; margin: 16px 0; }
@media (max-width: 640px) { .doc-card { padding: 26px 20px; border-radius: 22px; } .doc-hero img { width: 64px; } }

/* Delete account */
.form-card { max-width: 520px; margin: 32px auto 0; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-hard-lg); padding: 32px; }
.form-card .warn { display: flex; gap: 12px; background: #FEF2F2; border-radius: 14px; padding: 12px 14px; font-size: 15px; color: #7F1D1D; margin-bottom: 20px; }
