/* ============================================================
   FairLoad site styles
   Aesthetic: warm domestic-editorial. Cream paper, deep teal ink,
   dusty-rose + warm-sand accents (pulled from the app logo).
   Display: Fraunces. Body: Hanken Grotesk.
   ============================================================ */

:root {
  --cream:      #f6f7f1;
  --paper:      #fffdf8;
  --ink:        #283a34;   /* deep teal-black for text */
  --ink-soft:   #4a5a54;
  --teal:       #426c61;
  --teal-deep:  #2f4f47;
  --rose:       #904d5d;
  --rose-soft:  #b5707f;
  --sand:       #bdae90;
  --sand-soft:  #d8cdb4;
  --line:       #e3e2d6;

  --maxw: 1120px;
  --radius: 22px;
  --radius-sm: 14px;

  --shadow-sm: 0 1px 2px rgba(40,58,52,.05), 0 4px 14px rgba(40,58,52,.06);
  --shadow-md: 0 6px 18px rgba(40,58,52,.08), 0 22px 48px rgba(40,58,52,.10);
  --shadow-lift: 0 10px 28px rgba(40,58,52,.12), 0 30px 64px rgba(40,58,52,.14);

  --ease: cubic-bezier(.2,.7,.2,1);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain + soft color wash overlay (fixed, behind everything) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(66,108,97,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(144,77,93,.07), transparent 55%),
    var(--cream);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
p { margin: 0 0 1.1em; }
a { color: var(--teal-deep); text-decoration-color: var(--sand); text-underline-offset: 3px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 18px;
}
.lede { font-size: 1.22rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246,247,241,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(246,247,241,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: block; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -0.02em;
}
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; position: relative; transition: color .2s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--rose); transition: width .25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--sand); }
.btn-ghost:hover { background: rgba(189,174,144,.16); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 136px 0 104px; }
.hero-grid {
  display: flex; flex-direction: column; align-items: flex-start; max-width: 940px;
}
.hero h1 { font-size: clamp(3.6rem, 9.5vw, 7rem); margin-bottom: 28px; letter-spacing: -0.035em; }
.hero h1 em {
  font-style: italic; color: var(--teal);
  position: relative;
}
.hero .lede { max-width: 46ch; margin: 0 0 42px; font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.2; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.store-pill svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.store-pill b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); font-weight: 600; }
.store-pill span { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

/* (hero balance-scale visual removed) */

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Pull-quote (mental load) */
.quote-band { padding: 92px 0; }
.pullquote {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--ink); max-width: 18ch;
}
.pullquote b { font-style: normal; font-weight: 600; color: var(--rose); }
.quote-credit { margin-top: 28px; color: var(--ink-soft); font-size: 15px; letter-spacing: .02em; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sand-soft); }
.feature .ficon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 22px; background: rgba(66,108,97,.10); color: var(--teal-deep);
}
.feature:nth-child(3n+2) .ficon { background: rgba(144,77,93,.12); color: var(--rose); }
.feature:nth-child(3n) .ficon { background: rgba(189,174,144,.20); color: #8a7a52; }
.feature .ficon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feature p { font-size: .98rem; color: var(--ink-soft); margin: 0; }

/* Modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode-card {
  position: relative; border-radius: var(--radius); padding: 40px 36px;
  border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mode-card.couple { background: linear-gradient(160deg, var(--teal), var(--teal-deep)); border-color: transparent; color: #eef3ef; }
.mode-card .tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 18px;
}
.mode-card.solo .tag { background: rgba(189,174,144,.22); color: #7e6f47; }
.mode-card.couple .tag { background: rgba(255,255,255,.16); color: #fff; }
.mode-card h3 { font-size: 1.9rem; margin-bottom: 4px; }
.mode-card.couple h3 { color: #fff; }
.mode-price { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 22px; }
.mode-card.couple .mode-price { color: rgba(255,255,255,.8); }
.mode-list { list-style: none; margin: 0; padding: 0; }
.mode-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: .98rem; border-top: 1px solid var(--line); }
.mode-card.couple .mode-list li { border-top-color: rgba(255,255,255,.16); }
.mode-list li:first-child { border-top: 0; }
.mode-list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--teal); }
.mode-card.couple .mode-list svg { color: var(--sand-soft); }

/* Privacy callout */
.privacy-band { padding: 0 0 84px; }
.privacy-inner {
  background: linear-gradient(155deg, #2f4f47, #283a34); color: #eef3ef;
  border-radius: var(--radius); padding: 64px 56px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.privacy-inner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(189,174,144,.25), transparent 70%);
}
.privacy-inner h2 { color: #fff; max-width: 16ch; position: relative; }
.privacy-inner p { color: rgba(238,243,239,.82); max-width: 52ch; position: relative; margin-bottom: 0; }

/* ---------- Document pages (privacy / support) ---------- */
.doc-hero { padding: 64px 0 24px; }
.doc-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.doc-hero .updated { color: var(--ink-soft); font-size: 14px; letter-spacing: .03em; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-bottom: 90px; align-items: start; }
.doc-toc { position: sticky; top: 100px; font-size: 14px; }
.doc-toc p { font-weight: 600; color: var(--ink); margin-bottom: 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.doc-toc a { display: block; color: var(--ink-soft); text-decoration: none; padding: 5px 0; border-left: 2px solid var(--line); padding-left: 14px; transition: all .2s var(--ease); }
.doc-toc a:hover { color: var(--teal-deep); border-left-color: var(--rose); }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.7rem; margin-top: 48px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.02rem; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal-deep); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: rgba(189,174,144,.14); font-family: var(--font-body); color: var(--ink); }

.callout {
  background: rgba(144,77,93,.07); border: 1px solid rgba(144,77,93,.22);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0; font-size: .95rem; color: var(--ink-soft);
}
.callout strong { color: var(--rose); }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  margin-bottom: 12px; padding: 0 24px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-display);
  font-weight: 600; font-size: 1.18rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.6rem; color: var(--rose); transition: transform .25s var(--ease); font-weight: 400; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 0 22px; margin: 0; color: var(--ink-soft); font-size: 1rem; }

.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-sm); margin-top: 40px; text-align: center;
}
.contact-card h2 { margin-bottom: 8px; }
.contact-card .email {
  display: inline-block; margin-top: 12px; font-family: var(--font-display); font-size: 1.5rem;
  color: var(--teal-deep); text-decoration: none; border-bottom: 2px solid var(--sand);
}
.contact-card .email:hover { border-bottom-color: var(--rose); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .fb-top { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { font-size: 1.2rem; }
.footer-tag { color: var(--ink-soft); font-size: 15px; margin: 4px 0 0; font-family: var(--font-display); font-style: italic; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: flex-end; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--teal-deep); }
.footer-legal { grid-column: 1 / -1; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* Hero load stagger */
.hero-text > * { animation: rise .8s var(--ease) both; }
.hero-text > *:nth-child(1) { animation-delay: .05s; }
.hero-text > *:nth-child(2) { animation-delay: .13s; }
.hero-text > *:nth-child(3) { animation-delay: .21s; }
.hero-text > *:nth-child(4) { animation-delay: .29s; }
.hero-text > *:nth-child(5) { animation-delay: .37s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .container { padding: 0 20px; }
  .hero { padding: 88px 0 64px; }
  .site-nav { gap: 18px; }
  .site-nav a:not(.brand) { font-size: 14px; }
  .feature-grid, .modes { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .privacy-inner { padding: 44px 28px; }
  .section-pad { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* Focus visibility */
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--rose); outline-offset: 3px; border-radius: 4px;
}
