/* ============================================================
   I DO PRENUP — landing page. CI: cream / forest / sage /
   coral / gold, Quicksand display + Mulish body.
   ============================================================ */

:root {
  --cream:     #F3EBE4;
  --cream-2:   #ECE2D8;
  --card:      #FFFCF9;
  --card-2:    #FBF5EF;
  --ink:       #3C4A39;
  --ink-soft:  #586352;
  --muted:     #8C8C81;
  --sage:      #A9C0A0;
  --sage-soft: #C7D6BF;
  --sage-deep: #7C9874;
  --accent:    #EE8B7B;
  --accent-deep:#E2715E;
  --gold:      #D7A044;
  --line:      rgba(60,74,57,0.12);
  --line-2:    rgba(60,74,57,0.07);
  --shadow:    0 1px 2px rgba(60,74,57,.05), 0 18px 40px -22px rgba(60,74,57,.30);
  --shadow-sm: 0 1px 2px rgba(60,74,57,.05), 0 8px 22px -16px rgba(60,74,57,.35);
  --radius:    22px;
  --font-display: "Quicksand", system-ui, sans-serif;
  --font-body:    "Mulish", system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.55vw + 13px, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em; border: 0; border-radius: 999px;
  padding: 14px 24px; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s;
  cursor: pointer;
}
.btn svg { transition: transform .2s ease; flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px var(--accent-deep); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(60,74,57,.03); }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--accent-deep); font-weight: 700; font-family: var(--font-display); padding: 0; font-size: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.icon-btn { background: rgba(60,74,57,.05); border: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; transition: background .15s; cursor: pointer; }
.icon-btn:hover { background: rgba(60,74,57,.1); }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-word { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; font-size: 19px; color: var(--ink); white-space: nowrap; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.head-nav { display: flex; align-items: center; gap: 26px; margin-left: 12px; }
.head-nav a, .head-nav button {
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--ink-soft); background: none; border: 0; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: color .15s; cursor: pointer;
}
.head-nav a:hover, .head-nav button:hover { color: var(--ink); }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.head-cta .btn { padding: 10px 20px; }
.menu-btn { display: none; margin-left: auto; }

/* ---------- HERO Direction B — Split Trust ---------- */
.hero { position: relative; overflow: clip; }
.headline { font-size: clamp(40px, 6.6vw, 78px); line-height: 0.96; letter-spacing: -0.025em; }
.headline em { font-style: normal; color: var(--sage); }
.subhead { color: rgba(243,236,227,.75); font-size: clamp(16px, 1.1vw, 19px); max-width: 40ch; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: calc(100vh - 72px); }
.hero-pane {
  background: linear-gradient(155deg, var(--ink), #313d2f 62%, #2b3629);
  color: #F3ECE3; padding: clamp(40px, 5vw, 76px) clamp(28px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 30px; position: relative; overflow: clip;
}
.hero-pane .eyebrow { color: var(--sage); }
.hero-pane h1 { color: #fff; }
.pane-ring { position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border: 1px solid rgba(169,192,160,.25); border-radius: 50%; pointer-events: none; }
.pane-ring.two { right: -60px; top: -60px; width: 240px; height: 240px; }
.pane-side {
  background: var(--card); padding: clamp(36px, 4vw, 64px) clamp(24px, 3.5vw, 56px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.hero-auth { width: 100%; max-width: 440px; }
.pane-steps { display: flex; flex-direction: column; gap: 14px; }
.pane-step { display: flex; gap: 13px; align-items: flex-start; }
.pane-step .ps-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(169,192,160,.18); color: var(--sage); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.pane-step .ps-t { font-family: var(--font-display); font-weight: 600; color: #F3ECE3; font-size: 15px; }
.pane-step .ps-b { color: rgba(243,236,227,.6); font-size: 13.5px; margin-top: 1px; }
.pane-trust { display: flex; flex-wrap: wrap; gap: 8px; }
.pane-trust span { display: inline-flex; align-items: center; gap: 7px; background: rgba(169,192,160,.14); border: 1px solid rgba(169,192,160,.2); color: var(--sage-soft); padding: 7px 13px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; }
.pane-cta { display: none; align-self: flex-start; }

/* ---------- Auth card ---------- */
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 2.4vw, 32px); text-align: left; }
.auth-head h3 { font-size: 23px; }
.auth-head p { color: var(--muted); font-size: 14.5px; margin-top: 5px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.field { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(124,152,116,.16); }
.field input { flex: 1; border: 0; background: none; outline: none; padding: 14px 0; font-family: var(--font-body); font-size: 15.5px; color: var(--ink); }
.field input::placeholder { color: var(--muted); }
.divide { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 4px 0; }
.divide::before, .divide::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth { display: flex; flex-direction: column; gap: 9px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink); transition: border-color .15s, background .15s; text-decoration: none; }
.oauth-btn:hover { border-color: var(--ink-soft); background: var(--card-2); }
.swap { text-align: center; color: var(--muted); font-size: 14px; margin-top: 6px; }
.legal-fine { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- Trust strip ---------- */
.trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.pane-side .trust { margin-top: 22px; }

/* ---------- Value props ---------- */
.vp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: clamp(40px, 6vw, 80px) 0 10px; }
.vp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease; }
.vp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vp-icon { width: 50px; height: 50px; border-radius: 15px; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 16px; }
.vp-card h3 { font-size: 20px; }
.vp-card p { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }

/* ---------- How it works ---------- */
.how { padding: clamp(40px, 6vw, 84px) 0; }
.how-head { text-align: center; max-width: 640px; margin: 0 auto 46px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.how-head h2 { font-size: clamp(28px, 3.4vw, 44px); }
.how-head p { color: var(--ink-soft); font-size: 17px; }
.how-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; }
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent-deep); background: var(--card); border: 1.5px solid var(--accent); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 2; }
.step-line { position: absolute; top: 22px; left: 44px; right: -22px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); z-index: 1; }
.step:last-child .step-line { display: none; }
.step h4 { font-size: 18px; margin-top: 18px; }
.step p { color: var(--ink-soft); margin-top: 7px; font-size: 14.5px; }

/* ---------- Testimonial ---------- */
.band { background: var(--cream-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.quote { max-width: 720px; margin: 0 auto; padding: clamp(44px, 6vw, 76px) 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.32; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.avatars { display: inline-flex; }
.avatars i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--cream-2); display: block; }
.avatars i:nth-child(1) { background: var(--sage); }
.avatars i:nth-child(2) { background: var(--accent); margin-left: -10px; }

/* ---------- Definitions drawer ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer-wrap.is-open { pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(40,48,38,.32); backdrop-filter: blur(2px); opacity: 0; transition: opacity .28s; }
.drawer-wrap.is-open .drawer-scrim { opacity: 1; }
.drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(480px, 100%); background: var(--cream); box-shadow: -20px 0 50px -24px rgba(40,48,38,.5); transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.1,1); display: flex; flex-direction: column; }
.drawer-wrap.is-open .drawer { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 24px 16px; gap: 16px; }
.drawer-head h2 { font-size: 26px; margin-top: 8px; }
.drawer-search { display: flex; align-items: center; gap: 10px; margin: 0 24px 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; }
.drawer-search input { flex: 1; border: 0; background: none; outline: none; padding: 13px 0; font-family: var(--font-body); font-size: 15px; color: var(--ink); }
.drawer-search input::placeholder { color: var(--muted); }
.drawer-body { overflow-y: auto; padding: 12px 24px 40px; flex: 1; }
.gloss-group { margin-top: 22px; }
.gloss-group h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; font-family: var(--font-display); }
.gloss-group dl { margin: 12px 0 0; display: flex; flex-direction: column; gap: 4px; }
.gloss-item { padding: 13px 15px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.gloss-item dt { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.gloss-item dd { margin: 5px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.drawer-empty { color: var(--muted); text-align: center; padding: 40px 0; display: none; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 36px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a, .foot-nav button { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink-soft); background: none; border: 0; text-decoration: none; cursor: pointer; }
.foot-nav a:hover, .foot-nav button:hover { color: var(--accent-deep); }
.foot-fine { margin: 22px auto 0; color: var(--muted); font-size: 12.5px; }

/* ---------- Mobile menu sheet ---------- */
.msheet { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.msheet.open { pointer-events: auto; }
.msheet-scrim { position: absolute; inset: 0; background: rgba(40,48,38,.3); opacity: 0; transition: opacity .25s; }
.msheet.open .msheet-scrim { opacity: 1; }
.msheet-card { position: absolute; top: 12px; left: 12px; right: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 18px; transform: translateY(-12px) scale(.98); opacity: 0; transition: all .25s; box-shadow: var(--shadow); }
.msheet.open .msheet-card { transform: none; opacity: 1; }
.msheet-top { display: flex; align-items: center; justify-content: space-between; }
.msheet-card nav { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.msheet-card nav a, .msheet-card nav button { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); background: none; border: 0; padding: 12px; border-radius: 12px; text-decoration: none; cursor: pointer; }
.msheet-card nav a:hover, .msheet-card nav button:hover { background: var(--card-2); }
.msheet-card .btn-primary { width: 100%; margin-top: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-pane { order: 1; }
  .pane-side { order: 2; }
  .pane-cta { display: inline-flex; }
}
@media (max-width: 860px) {
  .head-nav { display: none; }
  .head-cta .defs-link, .head-cta .btn-ghost { display: none; }
  .menu-btn { display: grid; }
  .vp { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .step-line { display: none; }
}
@media (max-width: 640px) {
  .headline { font-size: clamp(34px, 11vw, 52px); }
  .hero-pane { padding: 30px 22px 28px; gap: 20px; }
  .hero-pane .pane-steps { display: none; }
  .pane-ring { width: 200px; height: 200px; right: -70px; top: -70px; }
  .pane-ring.two { display: none; }
  .pane-side { padding: 26px 18px 40px; }
  .hero-auth { max-width: 100%; }
  .auth-card { padding: 22px 18px; }
  .vp-card { padding: 22px; }
  .quote { padding: 40px 0; }
  .head-cta .btn-primary { display: none; }
}
@media (max-width: 540px) {
  .site-head .wrap { height: 64px; gap: 10px; }
  .logo-word { font-size: 16px !important; }
  .how-grid { grid-template-columns: 1fr; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .pane-trust span { font-size: 11.5px; padding: 6px 11px; }
}

/* Scroll reveal */
.reveal { opacity: 1; }
.js-anim .reveal { opacity: 0; transform: translateY(14px); }
.js-anim .reveal.in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2,.7,.2,1) var(--d,0s), transform .6s cubic-bezier(.2,.7,.2,1) var(--d,0s); }
@media (prefers-reduced-motion: reduce) { .js-anim .reveal { opacity: 1; transform: none; } }
