/* Aprico — warm editorial-fintech. Fraunces display + Hanken Grotesk body. */

:root {
  --cream: #FBF6EE;
  --cream-deep: #F3EADC;
  --ink: #241D15;
  --ink-soft: #6E6357;
  --line: #E7DBC9;
  --apricot: #EE7B2E;
  --apricot-deep: #D9631A;
  --apricot-soft: #F6A83C;
  --leaf: #5FA463;
  --card: #FFFFFF;
  --radius: 20px;
  --shadow: 0 20px 50px -24px rgba(90, 58, 20, 0.35);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* faint warm grain */
  background-image:
    radial-gradient(120% 90% at 85% -10%, rgba(246,168,60,0.14), transparent 55%),
    radial-gradient(90% 70% at -10% 0%, rgba(95,164,99,0.08), transparent 45%);
  background-attachment: fixed;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Typography */
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }
.serif-italic { font-style: italic; color: var(--apricot-deep); }

a { color: inherit; text-decoration: none; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--ink-soft); max-width: 34ch; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(251, 246, 238, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.98rem; font-weight: 500; }
.nav-links a { color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 100px;
  transition: transform .18s ease, box-shadow .18s ease, background .2s;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(36,29,21,0.6); }
.btn-app { background: var(--ink); color: #fff; padding: 14px 24px; }
.btn-app:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(36,29,21,0.55); }
.btn-app svg { width: 22px; height: 22px; }
.btn-app small { display: block; font-size: 0.66rem; font-weight: 500; opacity: 0.8; line-height: 1; margin-bottom: 2px; letter-spacing: 0.02em; }
.btn-app strong { font-size: 1.08rem; font-weight: 600; line-height: 1; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--apricot-deep);
  background: rgba(238,123,46,0.10);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; max-width: 40ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); }
.hero-note b { color: var(--ink); font-weight: 600; }

/* Hero card mock */
.phone-card {
  position: relative;
  aspect-ratio: 1.586;
  border-radius: 22px;
  padding: 26px 28px;
  color: #fff;
  background: linear-gradient(150deg, var(--apricot-soft), var(--apricot-deep));
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.phone-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 55%);
}
.pc-top { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.pc-issuer { font-weight: 700; font-size: 1.12rem; }
.pc-kind { font-size: 0.7rem; letter-spacing: 0.12em; opacity: 0.82; margin-top: 3px; }
.pc-chip { width: 40px; height: 28px; border-radius: 7px; background: rgba(255,255,255,0.22); }
.pc-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.pc-days { font-family: "Fraunces", serif; font-weight: 500; font-size: 3.6rem; line-height: 0.9; font-variant-numeric: tabular-nums; }
.pc-daylabel { font-size: 0.68rem; letter-spacing: 0.13em; opacity: 0.85; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.pc-daylabel .live { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.pc-meta { text-align: right; font-size: 0.72rem; line-height: 1.7; }
.pc-meta span { opacity: 0.7; letter-spacing: 0.08em; }
.pc-meta b { font-weight: 600; }
.card-float { position: relative; }
.card-float .phone-card:nth-child(2) {
  position: absolute; inset: 0; transform: translate(26px, -30px) rotate(-4deg) scale(0.94);
  z-index: -1; filter: saturate(0.9);
  background: linear-gradient(150deg, #6f86c9, #34508f);
}

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.loaded [data-reveal] { animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.loaded [data-reveal="1"] { animation-delay: .05s; }
.loaded [data-reveal="2"] { animation-delay: .16s; }
.loaded [data-reveal="3"] { animation-delay: .27s; }
.loaded [data-reveal="4"] { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* Section shells */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 44ch; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 16px; font-size: 1.1rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; transition: transform .2s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ficon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(238,123,46,0.12); color: var(--apricot-deep); margin-bottom: 20px;
}
.feature .ficon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 9px; }
.feature p { font-size: 0.98rem; }

/* Steps band */
.band { background: var(--ink); color: var(--cream); border-radius: 28px; padding: clamp(40px, 6vw, 66px); }
.band .eyebrow { color: var(--apricot-soft); background: rgba(246,168,60,0.14); }
.band h2 { color: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 46px; }
.step .num { font-family: "Fraunces", serif; font-size: 2.4rem; color: var(--apricot-soft); font-weight: 500; }
.step h3 { color: var(--cream); margin: 12px 0 8px; }
.step p { color: rgba(251,246,238,0.66); font-size: 0.98rem; }

/* Privacy strip */
.assure { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.assure span {
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 100px; display: inline-flex; align-items: center; gap: 9px;
}
.assure span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }

/* CTA */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin: 0 auto 14px; }
.cta p { max-width: 42ch; margin: 0 auto 32px; font-size: 1.1rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 46px 0 40px; margin-top: 20px; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; font-size: 0.96rem; font-weight: 500; }
.foot-links a { color: var(--ink-soft); transition: color .2s; }
.foot-links a:hover { color: var(--apricot-deep); }
.foot-fine { font-size: 0.86rem; color: var(--ink-soft); }

/* Legal / support pages */
.doc { padding: clamp(48px, 7vw, 84px) 0 40px; }
.doc-inner { max-width: 720px; margin: 0 auto; }
.doc .kicker { color: var(--apricot-deep); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; }
.doc h1 { margin: 14px 0 8px; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc .updated { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc p { margin-bottom: 16px; color: var(--ink); }
.doc p.muted { color: var(--ink-soft); }
.doc ul { margin: 0 0 18px 4px; padding-left: 22px; }
.doc li { margin-bottom: 10px; color: var(--ink); }
.doc a.inline { color: var(--apricot-deep); font-weight: 600; border-bottom: 1px solid rgba(217,99,26,0.35); }
.callout {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--leaf);
  border-radius: 14px; padding: 22px 24px; margin: 8px 0 30px;
}
.callout p { margin: 0; }
.callout strong { font-family: "Fraunces", serif; font-weight: 600; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 4px; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--apricot-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; margin: 0; color: var(--ink-soft); }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .card-float { max-width: 420px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .nav-links a:not(.btn) { display: none; }
}
