:root {
  --ink: #203848;
  --muted: #71838b;
  --brand: #26748a;
  --brand-dark: #1b5c70;
  --brand-soft: #eaf4f4;
  --cream: #fbf8f2;
  --paper: #fffefa;
  --gold: #dba56d;
  --line: #e6e9e6;
  --shadow: 0 20px 54px rgba(35, 62, 75, .09);
  --radius: 22px;
  --font: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.prototype-note { background: #f2eadb; color: #705b40; font-size: 12px; text-align: center; padding: 6px 16px; letter-spacing: .01em; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 254, 250, .94); border-bottom: 1px solid rgba(230, 233, 230, .8); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--brand); box-shadow: 0 6px 14px rgba(38,116,138,.2); }
.brand-mark svg { width: 19px; height: 19px; }
.brand small { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 30px; color: #536974; font-size: 14px; font-weight: 600; }
.main-nav a:hover, .text-link:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 26px; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--brand); box-shadow: 0 9px 20px rgba(38,116,138,.18); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 24px rgba(38,116,138,.25); }
.btn-quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-quiet:hover { background: white; }
.btn-light { background: white; color: var(--brand-dark); }
.text-link { color: var(--brand); font-weight: 700; }

.hero { overflow: hidden; position: relative; padding: 80px 0 84px; background: radial-gradient(ellipse at 78% 22%, rgba(218,237,236,.76), transparent 34%), linear-gradient(180deg, #fbf8f2 0%, #f7fbfa 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; }
h1 { max-width: 620px; margin-bottom: 20px; font-size: clamp(42px, 5.2vw, 66px); }
h1 em, .serif { font-family: var(--serif); font-weight: 500; }
h1 em { color: var(--brand); }
.hero-copy { max-width: 500px; margin-bottom: 28px; color: #627681; font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; color: #87969b; font-size: 12px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 400px; }
.art-orbit { position: absolute; width: 360px; height: 360px; border: 1px solid rgba(38,116,138,.12); border-radius: 50%; }
.art-orbit::before, .art-orbit::after { content: ''; position: absolute; border: 1px solid rgba(38,116,138,.11); border-radius: 50%; inset: 28px; }
.art-orbit::after { inset: 62px; }
.letter-card { z-index: 1; width: min(340px, 88%); padding: 30px 31px 25px; transform: rotate(-3deg); border: 1px solid rgba(225,219,205,.9); border-radius: 7px 7px 22px 7px; background: var(--paper); box-shadow: 0 25px 56px rgba(43,71,76,.15); }
.letter-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; color: #9b9b90; font-size: 11px; }
.seal { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #e8cba7; border-radius: 50%; color: #b7824d; background: #fff9ef; font-size: 18px; }
.letter-greeting { margin-bottom: 11px; color: var(--brand-dark); font: 500 24px/1.2 var(--serif); }
.letter-line { height: 6px; margin: 12px 0; border-radius: 99px; background: #e9eeeb; }
.letter-line.short { width: 61%; }
.letter-line.mid { width: 82%; }
.letter-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 31px; padding-top: 17px; border-top: 1px solid #eeece6; color: #8a9696; font-size: 11px; }
.date-pill { position: absolute; z-index: 2; right: 0; bottom: 52px; padding: 12px 17px; border: 1px solid #e7eeeb; border-radius: 15px; background: white; box-shadow: var(--shadow); color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.date-pill span { display: block; color: #8a9a9e; font-size: 10px; font-weight: 500; }
.spark { position: absolute; color: var(--gold); font-size: 23px; }
.spark.one { top: 35px; right: 74px; }
.spark.two { left: 33px; bottom: 50px; font-size: 15px; }

.section { padding: 82px 0; }
.section-soft { background: #f6faf9; }
.section-warm { background: var(--cream); }
.section-head { max-width: 660px; margin: 0 auto 42px; text-align: center; }
.section-head h2 { margin-bottom: 14px; font-size: clamp(30px, 3.4vw, 43px); }
.section-head p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.step-num { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 21px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; }
.step-card h3 { margin-bottom: 9px; font-size: 19px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }
.content-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.content-grid h2 { margin-bottom: 16px; font-size: clamp(30px, 3.4vw, 43px); }
.content-grid p { color: var(--muted); }
.trust-list { display: grid; gap: 14px; margin: 23px 0 0; padding: 0; list-style: none; }
.trust-list li { display: flex; align-items: flex-start; gap: 12px; color: #4e6570; font-size: 14px; }
.check { display: grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e1f1eb; color: #2b8a70; font-size: 12px; font-weight: 700; }
.privacy-card { padding: 31px; border-radius: 28px; background: #eaf4f4; }
.privacy-card-inner { padding: 30px; border: 1px solid rgba(38,116,138,.12); border-radius: 20px; background: rgba(255,255,255,.76); }
.privacy-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 16px; background: white; color: var(--brand); box-shadow: 0 6px 16px rgba(34,65,74,.08); }
.privacy-card h3 { margin-bottom: 10px; font-size: 21px; }
.privacy-card p { margin: 0; color: var(--muted); font-size: 14px; }
.quote-band { padding: 56px 0; text-align: center; background: var(--brand-dark); color: white; }
.quote-band p { max-width: 760px; margin: 0 auto; font: 500 clamp(24px, 3.4vw, 39px)/1.35 var(--serif); }
.quote-band span { display: block; margin-top: 15px; color: #bbd4d6; font-size: 13px; }
.faq-list { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 20px 35px 20px 0; cursor: pointer; list-style: none; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 2px; top: 17px; color: var(--brand); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 690px; margin: -4px 0 20px; color: var(--muted); font-size: 14px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 39px 44px; border-radius: 28px; background: linear-gradient(115deg, #e8f3f2, #f6f3e9); }
.cta-card h2 { margin-bottom: 8px; font-size: 30px; }
.cta-card p { margin: 0; color: var(--muted); }
.site-footer { padding: 44px 0 24px; border-top: 1px solid var(--line); background: #fffefa; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-brand { max-width: 280px; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; color: #61747c; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 35px; padding-top: 17px; border-top: 1px solid var(--line); color: #97a3a4; font-size: 11px; }

.page-hero { padding: 62px 0 55px; background: linear-gradient(180deg, var(--cream), white); text-align: center; }
.page-hero h1 { max-width: 760px; margin: 0 auto 14px; font-size: clamp(37px, 4.8vw, 56px); }
.page-hero p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.prose { max-width: 820px; margin: auto; }
.prose h2 { margin-top: 36px; font-size: 25px; }
.prose p, .prose li { color: #627681; }
.prose .placeholder { padding: 17px 20px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--cream); color: #6d655a; font-size: 14px; }

.auth-shell { min-height: calc(100vh - 110px); display: grid; place-items: center; padding: 48px 20px; background: radial-gradient(ellipse at 50% 0%, #eaf4f4 0%, transparent 53%), var(--cream); }
.auth-card { width: min(100%, 470px); padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 9px; font-size: 34px; }
.auth-card > p { margin-bottom: 25px; color: var(--muted); font-size: 14px; }
.auth-footer { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { color: #415966; font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #dfe6e4; border-radius: 12px; outline: none; background: white; color: var(--ink); }
.field textarea { min-height: 230px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(38,116,138,.11); }
.field-help { color: #95a1a2; font-size: 11px; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 20px; color: var(--muted); font-size: 12px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0; color: #667980; font-size: 12px; line-height: 1.5; }
.checkline input { margin-top: 3px; accent-color: var(--brand); }
.auth-card .btn { width: 100%; }
.demo-message { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #eef7f0; color: #356b4c; font-size: 13px; }
.demo-message.show { display: block; }

.member-layout { min-height: calc(100vh - 110px); display: grid; grid-template-columns: 235px 1fr; background: #f6f8f7; }
.member-sidebar { padding: 29px 18px; border-right: 1px solid var(--line); background: white; }
.member-greeting { padding: 0 11px 20px; border-bottom: 1px solid var(--line); }
.member-greeting small { display: block; color: #8b999b; font-size: 11px; }
.member-greeting strong { font-size: 14px; }
.member-nav { display: grid; gap: 5px; margin-top: 18px; }
.member-nav a { padding: 11px 13px; border-radius: 11px; color: #61747c; font-size: 13px; font-weight: 600; }
.member-nav a.active, .member-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.member-content { width: min(100%, 1040px); padding: 39px 44px 56px; }
.member-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.member-topline h1 { margin-bottom: 5px; font-size: 34px; }
.member-topline p { margin: 0; color: var(--muted); font-size: 14px; }
.member-card { padding: 23px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.member-card h2 { margin-bottom: 14px; font-size: 18px; }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.letter-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid #edf0ed; }
.letter-item:first-of-type { border-top: 0; }
.letter-item strong { display: block; font-size: 14px; }
.letter-item small { color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: #edf6f0; color: #397654; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #57a477; }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); font-size: 24px; }
.empty-state h2 { margin-bottom: 7px; }
.empty-state p { max-width: 400px; margin: 0 auto 18px; color: var(--muted); font-size: 13px; }
.stat-card { min-height: 158px; background: linear-gradient(135deg, #e6f1f1, #fffdf8); }
.stat-number { margin: 13px 0 0; color: var(--brand-dark); font: 500 44px/1 var(--serif); }
.stat-label { color: var(--muted); font-size: 12px; }
.composer-wrap { max-width: 790px; }
.composer-card { padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.composer-card + .composer-card { margin-top: 18px; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; padding: 15px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; text-align: center; }
.choice label strong { display: block; color: var(--ink); font-size: 17px; }
.choice label span { color: var(--muted); font-size: 11px; }
.choice input:checked + label { border-color: var(--brand); background: #f0f7f6; box-shadow: inset 0 0 0 1px var(--brand); }
.composer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 21px; }
.prototype-callout { margin-bottom: 18px; padding: 11px 14px; border-radius: 12px; background: #f8f1e6; color: #76634c; font-size: 12px; }
.panel-footer { margin-top: 24px; color: #95a1a2; font-size: 11px; }

@media (max-width: 850px) {
  .main-nav { gap: 18px; }
  .hero-grid { gap: 28px; }
  .content-grid { gap: 32px; }
  .member-layout { grid-template-columns: 190px 1fr; }
  .member-content { padding-inline: 28px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 30px, 540px); }
  .nav-wrap { min-height: 67px; flex-wrap: wrap; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; order: 3; width: 100%; padding: 4px 0 14px; flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 9px 2px; }
  .nav-actions .btn-quiet { display: none; }
  .nav-actions .btn { min-height: 39px; padding-inline: 15px; font-size: 12px; }
  .hero { padding: 55px 0 53px; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 8px; }
  .hero-copy { font-size: 16px; }
  .hero-art { min-height: 330px; }
  .art-orbit { width: 290px; height: 290px; }
  .letter-card { width: 290px; padding: 23px; }
  .date-pill { right: 0; bottom: 22px; }
  .section { padding: 62px 0; }
  .steps { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 30px; }
  .privacy-card { padding: 15px; }
  .privacy-card-inner { padding: 23px; }
  .cta-card { align-items: flex-start; flex-direction: column; padding: 28px; }
  .cta-card h2 { font-size: 25px; }
  .footer-grid, .footer-bottom { flex-direction: column; }
  .footer-links { gap: 14px 22px; }
  .page-hero { padding: 48px 0 40px; }
  .auth-card { padding: 28px 22px; }
  .member-layout { display: block; }
  .member-sidebar { padding: 12px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .member-greeting { display: none; }
  .member-nav { display: flex; overflow-x: auto; margin: 0; }
  .member-nav a { flex: 0 0 auto; padding: 9px 12px; }
  .member-content { padding: 27px 16px 42px; }
  .member-topline { align-items: flex-start; flex-direction: column; }
  .member-topline h1 { font-size: 29px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .member-topline > .btn { width: 100%; }
  .composer-card { padding: 21px 17px; }
  .choice-row { gap: 7px; }
  .choice label { padding: 12px 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
