/* Lekhira Writes: shared tokens, components, and the public pages (home, sign in, legal). */

:root {
  --bg: #141416;
  --bg-2: #18171a;
  --warm: #2a2620;
  --surface: #1d1c1f;
  --surface-2: #252327;
  --surface-3: #2e2b2e;
  --line: rgba(243, 238, 229, 0.08);
  --line-2: rgba(243, 238, 229, 0.14);
  --text: #f3eee5;
  --text-2: #b9b3a8;
  --muted: #8b857b;
  --faint: #5d5850;
  --gold: #d2ae6d;
  --gold-2: #e2c48c;
  --gold-soft: rgba(210, 174, 109, 0.14);
  --gold-ink: #1d1b18;
  --danger: #e08b78;
  --ok: #95b48f;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ui: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(210, 174, 109, 0.32); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500; font-size: 15px; line-height: 1.2;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .12s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn.primary {
  background: var(--gold); color: var(--gold-ink); border-color: transparent; font-weight: 700;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 30px -12px rgba(210,174,109,.6);
}
.btn.primary:hover { background: var(--gold-2); color: var(--gold-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.outline { background: transparent; }
.btn.danger { background: var(--danger); color: #1c100c; border-color: transparent; font-weight: 700; }
.btn.lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 7px 12px; font-size: 13.5px; border-radius: 8px; }
.btn.block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: rgba(210,174,109,.6); box-shadow: 0 0 0 4px var(--gold-soft); }
.input.invalid { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--gold-soft); color: var(--gold);
}
.badge.green { background: rgba(110, 170, 110, .14); color: #86c286; }
.badge.blue { background: rgba(98, 140, 220, .16); color: #8cb0ef; }
.badge.plain { background: var(--surface-2); color: var(--text-2); }

.eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: .01em; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; }
.brand .word { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.brand .word em { font-style: italic; color: var(--gold); font-weight: 500; }

/* ---------- public header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(20, 20, 22, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(20, 20, 22, 0.88); }
.site-header .inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; gap: 6px; margin-left: 12px; }
.site-nav a { color: var(--text-2); font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-header .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- home ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero {
  position: relative;
  padding: 96px 0 80px;
  background: radial-gradient(900px 520px at 78% 28%, #2a2620 0%, rgba(20,20,22,0) 70%);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(52px, 7vw, 92px); line-height: .98; letter-spacing: -.01em;
  margin: 22px 0 24px;
}
.hero h1 i { color: var(--gold); font-weight: 500; }
.hero .lede { font-size: 19px; color: var(--text-2); max-width: 30em; margin: 0 0 34px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero .fine span::before { content: "✓"; color: var(--gold); margin-right: 7px; }

/* the product shot, built in HTML */
.shot {
  position: relative;
  border-radius: 16px;
  border: 1px solid #3a3630;
  background: #161518;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
.shot .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3732; }
.shot .bar b { margin-left: 10px; color: var(--text-2); font-weight: 500; }
.shot .bar .saved { margin-left: auto; color: var(--ok); }
.shot .body { display: grid; grid-template-columns: 170px 1fr; min-height: 380px; }
.shot .side { border-right: 1px solid var(--line); padding: 16px 12px; font-size: 12.5px; color: var(--text-2); }
.shot .side .ttl { font-family: var(--display); font-size: 17px; color: var(--text); margin: 0 6px 12px; }
.shot .side div:not(.ttl) { padding: 7px 8px; border-radius: 7px; display: flex; gap: 8px; align-items: center; }
.shot .side div:not(.ttl)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.shot .side div.on { background: var(--surface-2); color: var(--text); }
.shot .side div.done::before { background: var(--ok); }
.shot .side div.on::before { background: var(--gold); }
.shot .page { padding: 36px 44px; font-family: "Literata", Georgia, serif; color: #e9e3d8; font-size: 14px; line-height: 1.85; background: linear-gradient(#1b1a1d, #19181b); }
.shot .page h4 { font-family: var(--display); font-size: 26px; font-weight: 600; margin: 0 0 4px; color: var(--text); }
.shot .page .num { font-size: 11px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; font-family: var(--ui); }
.shot .page p { margin: 0 0 10px; text-indent: 1.4em; }
.shot .page p.first { text-indent: 0; }
.shot .page p.first::first-letter { font-family: var(--display); font-size: 3.1em; float: left; line-height: .8; padding: 6px 6px 0 0; color: var(--gold); }
.shot .page .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--gold); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.shot .foot { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.shot .foot .goal { display: flex; align-items: center; gap: 8px; }
.shot .foot .goal i { width: 90px; height: 4px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.shot .foot .goal i::after { content: ""; position: absolute; inset: 0 32% 0 0; background: var(--gold); border-radius: 4px; }

.section { padding: 96px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.04; margin: 14px 0 16px; }
.section-head p { color: var(--text-2); font-size: 18px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); background: #201f22; }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 21px; height: 21px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

.compare { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-2); vertical-align: bottom; padding-top: 24px; padding-bottom: 20px; }
.compare thead th .name { font-family: var(--display); font-size: 26px; font-weight: 600; display: block; margin: 8px 0 2px; color: var(--text); }
.compare thead th .sub { font-size: 13px; color: var(--muted); font-weight: 400; }
.compare td:first-child { color: var(--text-2); }
.compare td.c, .compare th.c { text-align: center; width: 24%; }
.compare .yes { color: var(--gold); font-weight: 700; }
.compare .no { color: var(--faint); }
.compare .studio-col { background: rgba(210, 174, 109, 0.035); }
.compare-note { color: var(--muted); font-size: 14px; margin-top: 16px; }

.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.promise h3 { font-family: var(--display); font-size: 30px; font-weight: 600; margin: 0 0 10px; }
.promise h3 i { color: var(--gold); }
.promise p { color: var(--text-2); margin: 0; }

.statement { background: var(--gold); color: var(--gold-ink); padding: 100px 0; }
.statement h2 { font-family: var(--display); font-weight: 600; font-size: clamp(42px, 6vw, 84px); line-height: 1; margin: 0 0 24px; }
.statement p { font-size: 19px; color: #3a3020; max-width: 40em; margin: 0 0 32px; }
.statement .btn.primary { background: var(--gold-ink); color: var(--text); box-shadow: none; }
.statement .btn.primary:hover { background: #2c2925; color: var(--text); }

.family { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.family .item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.family .item.here { border-color: rgba(210,174,109,.4); background: linear-gradient(180deg, rgba(210,174,109,.07), var(--surface)); }
.family h4 { margin: 12px 0 6px; font-size: 17px; }
.family p { margin: 0; font-size: 14px; color: var(--text-2); }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 32px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.site-footer .mission { font-family: var(--display); font-size: 22px; color: var(--text-2); font-style: italic; margin-top: 10px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-2); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art {
  position: relative; padding: 48px;
  background: radial-gradient(700px 500px at 30% 30%, #2d2820, #141416 75%);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.auth-art blockquote { font-family: var(--display); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; margin: 0; max-width: 12em; font-weight: 500; }
.auth-art blockquote i { color: var(--gold); }
.auth-art .perks { display: grid; gap: 12px; color: var(--text-2); font-size: 15px; margin-top: 28px; }
.auth-art .perks div { display: flex; gap: 10px; align-items: center; }
.auth-art .perks svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.auth-art small { color: var(--muted); }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-family: var(--display); font-size: 44px; font-weight: 600; margin: 0 0 6px; line-height: 1.05; }
.auth-card .sub { color: var(--text-2); margin: 0 0 30px; }
.auth-card .switch { margin-top: 24px; color: var(--text-2); font-size: 14.5px; text-align: center; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 64px; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.pw-wrap button:hover { color: var(--text); }
.meter { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .3s var(--ease), background .3s; }
.form-error {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(224, 139, 120, 0.1); border: 1px solid rgba(224, 139, 120, 0.3); color: #f0b1a3;
  padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px;
}
.security-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.security-note svg { width: 14px; height: 14px; }

/* ---------- legal & 404 ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.prose h1 { font-family: var(--display); font-size: 56px; font-weight: 600; margin: 12px 0 8px; line-height: 1.05; }
.prose h2 { font-family: var(--display); font-size: 32px; font-weight: 600; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose .note { padding: 14px 18px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-2); font-size: 14.5px; }
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.center-page h1 { font-family: var(--display); font-size: 64px; margin: 18px 0 6px; font-weight: 600; }
.center-page p { color: var(--text-2); margin: 0 0 28px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .shot { transform: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .promise { grid-template-columns: 1fr; gap: 28px; }
  .family { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .site-nav { display: none; }
}
@media (max-width: 620px) {
  .hero { padding: 56px 0 56px; }
  .features, .family { grid-template-columns: 1fr; }
  .shot .body { grid-template-columns: 1fr; }
  .shot .side { display: none; }
  .compare th, .compare td { padding: 12px 12px; font-size: 14px; }
  .compare thead th .name { font-size: 20px; }
  .section { padding: 64px 0; }
  .site-header .actions .btn.ghost { display: none; }
}

/* ---------- account: forgot / reset / confirm, and desktop sign-in ---------- */
.forgot-link { align-self: flex-end; margin-top: 2px; }
.form-done { background: rgba(110, 170, 110, 0.1); border: 1px solid rgba(110, 170, 110, 0.3); color: #a8d4a4; padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.consent { text-align: left; max-width: 440px; }
.consent .brand { margin-bottom: 26px; }
.consent h1 { font-size: 38px; }
.consent-who { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin: 0 0 18px; }
.consent-who b { font-weight: 600; }
.consent-who span { color: var(--muted); font-size: 14px; }
.consent-list { margin: 0 0 12px; padding-left: 20px; color: var(--text-2); }
.consent-list li { margin: 4px 0; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.consent #c-done { margin-top: 18px; color: var(--ok); font-size: 15px; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
