/* ============================================================
   Vault AI — shared styles (index + guides)
   Fonts: Outfit (sans) + Instrument Serif (accent)
   ============================================================ */

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

:root {
  --bg:      #FAF7F1;   /* warm off-white, echoes the store screenshots */
  --surface: #FFFFFF;
  --cream:   #F3E7D2;   /* screenshot backdrop cream */
  --cream-2: #EADFCB;
  --ink:     #16233B;   /* app navy */
  --navy:    #1B2438;
  --body:    #5A6474;
  --muted:   #97A0AE;
  --line:    rgba(22,35,59,0.10);
  --line-2:  rgba(22,35,59,0.06);
  --green:   #0FA968;
  --radius:  22px;
  --radius-sm: 14px;
  --maxw:    1120px;
  --shadow:  0 24px 60px -28px rgba(22,35,59,0.32);
  --shadow-sm: 0 8px 24px -14px rgba(22,35,59,0.28);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }
@media (min-width: 768px) { .wrap { padding: 0 2.5rem; } }
.green { color: var(--green); }
.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.9rem;
}

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.98rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 0;
  padding: 0.95rem 1.7rem; border-radius: 100px;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(22,35,59,.55); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.7rem; }

/* ── Nav ─────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,247,241,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-2);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: none; gap: 1.9rem; }
.nav-links a { text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--body); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ── Section rhythm ─────────────────────────── */
section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 7rem 0; } }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-head p { color: var(--body); font-size: 1.08rem; margin-top: 1rem; }

/* ── Hero ─────────────────────────── */
.hero { padding: 3.5rem 0 4.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--cream) 0%, rgba(243,231,210,0) 58%),
    linear-gradient(180deg, rgba(243,231,210,0.35), rgba(250,247,241,0) 40%);
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: -0.035em; }
.hero h1 .serif { font-weight: 400; }
.hero-sub { max-width: 620px; margin: 1.4rem auto 0; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--body); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 2.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; margin-top: 2rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.86rem; font-weight: 500; color: var(--body); }
.hero-badges svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* hero device row */
.hero-shots { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.5rem, 2vw, 1.4rem); margin-top: 3.2rem; }
.hero-shots img { width: clamp(120px, 26vw, 220px); border-radius: 20px; box-shadow: var(--shadow); }
.hero-shots img:nth-child(2) { margin-bottom: 1.6rem; }
.hero-shots img:nth-child(1), .hero-shots img:nth-child(3) { opacity: .96; }
@media (max-width: 560px){ .hero-shots img:nth-child(3){ display:none; } }

/* ── Trust strip ─────────────────────────── */
.trust { padding: 1.6rem 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--surface); }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem; }
.trust span { font-size: 0.86rem; font-weight: 600; color: var(--body); display: inline-flex; align-items: center; gap: 0.5rem; }
.trust svg { width: 16px; height: 16px; color: var(--ink); }

/* ── Screenshots ─────────────────────────── */
#screenshots { background: linear-gradient(180deg, var(--bg), #F5EEE2); }
.shots-scroll { display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.5rem 1.4rem 1.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots-scroll::-webkit-scrollbar { height: 6px; }
.shots-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
.shot-card { scroll-snap-align: center; flex: none; width: min(74vw, 300px); }
.shot-card img { border-radius: 26px; box-shadow: var(--shadow); background: var(--cream); }
.shot-card p { text-align: center; margin-top: 1rem; font-size: 0.92rem; color: var(--body); font-weight: 500; }
@media (min-width: 980px) {
  .shots-scroll { justify-content: center; overflow: visible; flex-wrap: wrap; }
  .shot-card { width: 250px; }
}

/* ── How it works ─────────────────────────── */
.steps { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 2rem 1.7rem; position: relative; }
.step-n { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 2.6rem; color: var(--cream-2); line-height: 1; }
.step h3 { font-size: 1.18rem; margin: 0.6rem 0 0.5rem; }
.step p { color: var(--body); font-size: 0.96rem; }

/* ── Features grid ─────────────────────────── */
.features { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 1.6rem; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--cream); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature .ico svg { width: 20px; height: 20px; color: var(--ink); }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature p { color: var(--body); font-size: 0.93rem; }

/* ── Split (why on-device) ─────────────────────────── */
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.split .lead { color: var(--body); font-size: 1.05rem; margin: 1.1rem 0 1.6rem; }
.checklist { list-style: none; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.7rem; font-size: 0.98rem; }
.checklist svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.split-media { background: var(--cream); border-radius: var(--radius); padding: 2.5rem; display: flex; justify-content: center; }
.split-media img { width: 230px; border-radius: 22px; box-shadow: var(--shadow); }

/* ── Guides ─────────────────────────── */
.guide-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.guide-card .kw { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.guide-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.guide-card p { color: var(--body); font-size: 0.92rem; flex: 1; }
.guide-card .more { margin-top: 1rem; font-size: 0.86rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 0.35rem; }
.guide-card .more svg { width: 14px; height: 14px; transition: transform .2s; }
.guide-card:hover .more svg { transform: translateX(3px); }

/* ── FAQ ─────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.2rem 1.15rem 0; font-size: 1.06rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.2rem; color: var(--body); font-size: 0.98rem; }
.faq .answer a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--cream-2); }
.faq .answer a:hover { border-color: var(--ink); }

/* ── CTA band ─────────────────────────── */
.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% -20%, rgba(243,231,210,0.18), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
.cta-band p { color: rgba(255,255,255,0.72); font-size: 1.08rem; margin: 1rem auto 2rem; max-width: 500px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { box-shadow: 0 16px 34px -16px rgba(0,0,0,.5); }
.cta-band .btn-sub { color: rgba(255,255,255,0.6); }

/* ── Footer ─────────────────────────── */
footer { padding: 3.5rem 0 2.5rem; border-top: 1px solid var(--line-2); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.foot-brand img { width: 34px; height: 34px; border-radius: 9px; }
.foot-brand p { font-size: 0.85rem; font-weight: 400; color: var(--muted); margin-top: 0.4rem; max-width: 260px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; }
.foot-links a { text-decoration: none; color: var(--body); font-size: 0.9rem; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; }

/* ============================================================
   Guide / article pages
   ============================================================ */
.article { max-width: 760px; margin: 0 auto; padding: 3.5rem 0 1rem; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb a { text-decoration: none; color: var(--body); }
.breadcrumb a:hover { color: var(--ink); }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; }
.article .kicker { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.answer-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 14px; padding: 1.5rem 1.6rem; margin: 2rem 0; font-size: 1.06rem; color: var(--ink); }
.answer-box strong { font-weight: 700; }
.prose { font-size: 1.04rem; color: #35405260; }
.prose { color: #3B4658; }
.prose h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 2.6rem 0 0.9rem; color: var(--ink); }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; color: var(--ink); }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--cream-2); }
.prose a:hover { border-color: var(--ink); }
.prose strong { color: var(--ink); }
.prose img { border-radius: 18px; box-shadow: var(--shadow-sm); margin: 1.6rem 0; }
.steps-inline { counter-reset: s; list-style: none; margin-left: 0 !important; }
.steps-inline li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps-inline li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.article-cta { background: var(--cream); border-radius: var(--radius); padding: 2.2rem; margin: 3rem 0 1rem; text-align: center; }
.article-cta h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.article-cta p { color: var(--body); margin-bottom: 1.3rem; }
.related { margin: 2.5rem 0 1rem; }
.related h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.related-links { display: grid; gap: 0.7rem; grid-template-columns: 1fr; }
@media (min-width: 640px){ .related-links { grid-template-columns: repeat(2,1fr); } }
.related-links a { text-decoration: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 0.9rem 1.1rem; font-size: 0.92rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; transition: border-color .2s; }
.related-links a:hover { border-color: var(--ink); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .rv { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }
