:root{
  --wine:#1a3d5c; --blush:#e8f1f7; --blush-soft:#d4e5f0; --gold:#4a90e2;
  --rose:#2980b9; --ink:#1a2332; --ink-soft:#4a6a8a;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{ font-family:'Inter',sans-serif; background:var(--blush); color:var(--ink); overflow-x:hidden; overflow-anchor:none; }
h1,h2,h3,.display{ font-family:'Fraunces',serif; font-weight:500; letter-spacing:-0.01em; }
.screen{ display:none; min-height:100vh; }
.screen.active{ display:block; }
button{ font-family:'Inter',sans-serif; }

/* BETA BANNER */
.beta-banner{ background:var(--wine); color:var(--blush); font-size:12.5px; text-align:center;
  padding:8px 16px; display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; }
.beta-banner .privacy-link{ background:none; border:none; color:var(--gold); font-weight:700; text-decoration:underline; cursor:pointer; font-size:12.5px; }

nav{ position:sticky; top:0; left:0; right:0; z-index:50; display:flex; justify-content:space-between; align-items:center;
  padding:18px 32px; background:rgba(251,238,231,0.88); backdrop-filter:blur(8px); }
.logo{ font-family:'Fraunces',serif; font-size:22px; font-weight:600; color:var(--wine); display:flex; align-items:center; gap:8px; cursor:pointer; border:none; background:none; }
.logo svg{ width:20px; height:20px; }
.nav-right{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:flex-end; }
.nav-link{ font-size:14px; color:var(--ink-soft); background:none; border:none; cursor:pointer; font-weight:600; }
.nav-cta{ background:var(--wine); color:var(--blush); border:none; padding:10px 20px; border-radius:100px; font-size:14px; font-weight:600; cursor:pointer; }

/* HERO */
.hero{ min-height:92vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:120px 24px 60px;
  background:radial-gradient(ellipse at 50% 0%, var(--blush-soft) 0%, var(--blush) 60%); }
.eyebrow{ font-size:13px; letter-spacing:0.12em; text-transform:uppercase; color:var(--rose); font-weight:600; margin-bottom:18px; }
.hero h1{ font-size:clamp(32px,6vw,60px); line-height:1.1; max-width:800px; color:var(--wine); }
.hero p.sub{ margin-top:18px; font-size:17px; color:var(--ink-soft); max-width:520px; line-height:1.5; }
.knot{ width:110px; height:56px; margin:32px 0; }
.knot path{ stroke:var(--gold); stroke-width:2.5; fill:none; stroke-dasharray:300; stroke-dashoffset:300; animation:draw 1.8s ease forwards .3s; }
@keyframes draw{ to{ stroke-dashoffset:0; } }
.cta-primary{ background:var(--rose); color:var(--blush); border:none; padding:16px 34px; border-radius:100px; font-size:16px; font-weight:700;
  cursor:pointer; box-shadow:0 8px 24px rgba(198,90,110,0.35); transition:transform .15s ease; }
.cta-primary:hover{ transform:translateY(-2px); }
.cta-ghost{ background:transparent; color:var(--wine); border:1.5px solid var(--wine); padding:10px 22px; border-radius:100px; font-size:14px; font-weight:700; cursor:pointer; margin-top:14px; }

.stat-strip{ margin-top:44px; display:flex; gap:36px; flex-wrap:wrap; justify-content:center; font-size:13.5px; color:var(--ink-soft); }
.stat-strip b{ color:var(--wine); font-family:'Fraunces',serif; font-size:19px; display:block; }

.features-section{ padding:90px 24px 30px; background:var(--blush); }
.features-inner{ max-width:1020px; margin:0 auto; text-align:center; }
.features-inner h2{ font-size:clamp(24px,3.6vw,34px); color:var(--wine); margin-bottom:10px; }
.features-sub{ color:var(--ink-soft); margin-bottom:40px; font-size:15px; }
.feature-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; text-align:left; }
.feature-card{ background:white; border:1.5px solid var(--blush-soft); border-radius:16px; padding:24px; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; }
.feature-card:hover{ transform:translateY(-3px); box-shadow:0 14px 28px rgba(43,20,32,0.1); }
.feature-emoji{ font-size:26px; display:block; margin-bottom:12px; }
.feature-card h3{ font-size:15.5px; color:var(--wine); margin-bottom:6px; }
.feature-card p{ font-size:13px; color:var(--ink-soft); line-height:1.5; }

.preview-section{ padding:70px 24px 90px; background:var(--wine); }
.preview-inner{ max-width:1000px; margin:0 auto; }
.preview-inner h2{ font-size:clamp(24px,3.6vw,34px); text-align:center; color:var(--blush); margin-bottom:40px; }
.mini-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:16px; }
.mini-card{ background:rgba(251,238,231,0.06); border:1px solid rgba(251,238,231,0.14); border-radius:16px; padding:22px 20px; cursor:pointer; text-align:left; transition:transform .15s ease, background .15s ease; }
.mini-card:hover{ transform:translateY(-3px); background:rgba(251,238,231,0.1); }
.mini-card .mini-emoji{ font-size:24px; display:block; margin-bottom:10px; }
.mini-card h3{ font-size:15.5px; color:var(--blush); margin-bottom:6px; }
.mini-card p{ font-size:12.5px; color:#d9bfc8; line-height:1.4; }

.steps-section{ padding:90px 24px; background:var(--blush); }
.steps-inner{ max-width:800px; margin:0 auto; text-align:center; }
.steps-inner h2{ font-size:clamp(24px,3.6vw,34px); color:var(--wine); margin-bottom:44px; }
.step-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:24px; text-align:left; }
.step-card{ background:white; border:1.5px solid var(--blush-soft); border-radius:16px; padding:24px; }
.step-num{ width:30px; height:30px; border-radius:50%; background:var(--rose); color:white; display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:600; font-size:14px; margin-bottom:14px; }
.step-card h3{ font-size:16px; color:var(--wine); margin-bottom:6px; }
.step-card p{ font-size:13.5px; color:var(--ink-soft); line-height:1.5; }

.auth-status{ font-size:12.5px; color:var(--rose); margin-top:10px; min-height:16px; font-weight:600; }
.ef-note{ font-size:11px; color:var(--ink-soft); margin-top:10px; opacity:.8; }

/* ARTICLES */
.article-list{ display:flex; flex-direction:column; gap:14px; }
.article-card{ background:white; border:1.5px solid var(--blush-soft); border-radius:16px; padding:22px; }
.article-tag{ display:inline-block; font-size:11px; font-weight:700; padding:4px 11px; border-radius:100px; color:white; margin-bottom:12px; }
.article-card h3{ font-size:17px; color:var(--wine); margin-bottom:8px; line-height:1.35; }
.article-card p{ font-size:13.5px; color:var(--ink-soft); line-height:1.55; margin-bottom:12px; }
.article-meta{ font-size:12px; color:var(--ink-soft); display:flex; gap:12px; }

/* EXPERTS */
.expert-list{ display:flex; flex-direction:column; gap:16px; }
.expert-card{ background:white; border:1.5px solid var(--blush-soft); border-radius:16px; padding:22px; display:flex; gap:16px; }
.expert-avatar{ width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:white; font-family:'Fraunces',serif; font-weight:600; font-size:16px; flex-shrink:0; }
.expert-name{ font-size:15.5px; color:var(--wine); font-weight:700; }
.expert-title{ font-size:12px; color:var(--rose); font-weight:600; margin:2px 0 10px; }
.expert-tip{ font-size:13.5px; color:var(--ink-soft); line-height:1.55; font-style:italic; }
.ef-note{ font-size:11px; color:var(--ink-soft); margin-top:8px; opacity:.75; }
.quote-share-btn{ display:block; margin-top:12px; background:none; border:1.5px solid var(--rose); color:var(--rose); font-size:12px; font-weight:700; padding:7px 16px; border-radius:100px; cursor:pointer; font-family:'Inter',sans-serif; }
.quote-share-btn:hover{ background:var(--rose); color:white; }
.expert-disclaimer{ font-size:11.5px; color:var(--ink-soft); margin-top:20px; text-align:center; line-height:1.6; }
.quote-of-day-card{ margin-bottom:36px; padding:32px; }
.quote-of-day-card .expert-avatar{ width:64px; height:64px; font-size:20px; }
.quote-of-day-card .expert-tip{ font-size:17px; line-height:1.6; color:var(--ink); }
.quote-archive-head{ font-family:'Fraunces',serif; font-size:15px; color:var(--wine); margin-bottom:16px; }

/* ASSISTANT */
.chat-box{ background:white; border:1.5px solid var(--blush-soft); border-radius:20px; padding:24px; }
.chat-bubble{ max-width:88%; padding:13px 16px; border-radius:16px; font-size:13.5px; line-height:1.5; margin-bottom:12px; }
.chat-bubble.user{ background:var(--rose); color:white; margin-left:auto; border-bottom-right-radius:4px; }
.chat-bubble.assistant{ background:var(--blush); color:var(--ink); border-bottom-left-radius:4px; }
.chat-input-row{ display:flex; gap:10px; margin-top:16px; }
.chat-input-row input{ flex:1; padding:12px 14px; border:1.5px solid var(--blush-soft); border-radius:12px; font-size:13.5px; font-family:'Inter',sans-serif; }
.chat-toast{ font-size:12.5px; color:var(--rose); margin-top:10px; min-height:16px; font-weight:600; }

.latest-section{ padding:90px 24px; background:var(--blush); }
.latest-inner{ max-width:1000px; margin:0 auto; }
.latest-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:32px; flex-wrap:wrap; gap:10px; }
.latest-head h2{ font-size:clamp(24px,3.6vw,34px); color:var(--wine); }
.link-btn{ background:none; border:none; color:var(--rose); font-weight:700; font-size:13.5px; cursor:pointer; }
.latest-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.latest-card{ background:white; border:1.5px solid var(--blush-soft); border-radius:16px; padding:22px; cursor:pointer; transition:transform .15s ease; }
.latest-card:hover{ transform:translateY(-3px); }
.latest-card .article-tag{ margin-bottom:12px; }
.latest-card h3{ font-size:15.5px; color:var(--wine); margin-bottom:8px; line-height:1.35; }
.latest-card .article-meta{ font-size:11.5px; }

.expert-feature-section{ padding:20px 24px 100px; background:var(--blush); display:flex; flex-direction:column; align-items:center; text-align:center; }
.expert-feature-inner{ max-width:640px; width:100%; }
.ef-badge{ font-size:12px; letter-spacing:.1em; color:var(--rose); font-weight:700; margin-bottom:18px; }
.expert-feature-card{ background:white; border:1.5px solid var(--blush-soft); border-radius:20px; padding:30px; text-align:left; display:flex; gap:18px; margin-bottom:22px; }

.assistant-bubble{ position:fixed; bottom:96px; right:26px; max-width:220px; background:white; color:var(--ink);
  padding:14px 28px 14px 16px; border-radius:16px 16px 4px 16px; box-shadow:0 10px 24px rgba(43,20,32,0.18);
  font-size:13px; line-height:1.45; cursor:pointer; z-index:200; opacity:0; transform:translateY(8px) scale(.96);
  pointer-events:none; transition:opacity .3s ease, transform .3s ease; }
.assistant-bubble.show{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.bubble-close{ position:absolute; top:4px; right:7px; background:none; border:none; color:var(--ink-soft); font-size:15px; cursor:pointer; line-height:1; padding:3px; }

.assistant-fab{ position:fixed; bottom:26px; right:26px; width:58px; height:58px; border-radius:50%; background:var(--rose); color:white;
  border:none; font-size:24px; box-shadow:0 10px 26px rgba(198,90,110,0.45); cursor:pointer; z-index:200;
  display:flex; align-items:center; justify-content:center; transition:transform .15s ease; }
.assistant-fab:hover{ transform:scale(1.07); }
.assistant-fab:after{ content:''; position:absolute; inset:-6px; border-radius:50%; border:2px solid var(--rose); opacity:.5; animation:fabPulse 2.4s ease-out infinite; }
@keyframes fabPulse{ 0%{ transform:scale(1); opacity:.5; } 100%{ transform:scale(1.35); opacity:0; } }

/* HUB */
.hub-wrap{ padding:130px 24px 100px; max-width:1000px; margin:0 auto; }
.hub-head{ text-align:center; margin-bottom:48px; }
.hub-head h2{ font-size:clamp(26px,4vw,38px); color:var(--wine); margin-bottom:10px; }
.hub-head p{ color:var(--ink-soft); }
.hub-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:20px; }
.hub-card{ background:white; border:1.5px solid var(--blush-soft); border-radius:20px; padding:26px; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; text-align:left; }
.hub-card:hover{ transform:translateY(-3px); box-shadow:0 14px 28px rgba(43,20,32,0.1); }
.hub-emoji{ font-size:30px; margin-bottom:14px; display:block; }
.hub-card h3{ font-size:19px; color:var(--wine); margin-bottom:8px; }
.hub-card p{ font-size:13.5px; color:var(--ink-soft); line-height:1.5; margin-bottom:14px; }
.hub-card .hub-btn{ font-size:13px; font-weight:700; color:var(--rose); }

/* QUIZ */
.quiz-wrap{ min-height:100vh; display:flex; flex-direction:column; align-items:center; padding:120px 24px 60px; background:var(--blush); }
.quiz-testname{ font-size:13px; color:var(--rose); font-weight:700; letter-spacing:.05em; text-transform:uppercase; margin-bottom:10px; }
.progress-track{ width:100%; max-width:480px; height:6px; background:var(--blush-soft); border-radius:10px; overflow:hidden; margin-bottom:8px;}
.progress-fill{ height:100%; background:var(--rose); width:0%; transition:width .4s ease; border-radius:10px; }
.q-count{ font-size:13px; color:var(--ink-soft); margin-bottom:44px; }
.q-card{ max-width:560px; width:100%; text-align:center; }
.q-card h2{ font-size:clamp(21px,3.2vw,28px); color:var(--wine); margin-bottom:32px; line-height:1.3; }
.option{ display:block; width:100%; text-align:left; background:white; border:1.5px solid var(--blush-soft); border-radius:14px;
  padding:16px 20px; margin-bottom:10px; font-size:14.5px; color:var(--ink); cursor:pointer; transition:border-color .15s ease, transform .1s ease; }
.option:hover{ border-color:var(--rose); transform:translateX(2px); }
.prev-btn{ display:block; margin:6px auto 0; background:none; border:none; color:var(--ink-soft); font-size:13px; font-weight:600; cursor:pointer; text-decoration:underline; }

/* LOADING */
.loading-wrap{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--wine); color:var(--blush); text-align:center; }
.spinner{ width:44px; height:44px; border:3px solid rgba(251,238,231,0.2); border-top-color:var(--gold); border-radius:50%; animation:spin 1s linear infinite; margin-bottom:24px; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* RESULT */
.result-wrap{ min-height:100vh; padding:120px 24px 80px; display:flex; flex-direction:column; align-items:center; background:var(--blush); text-align:center; }
.result-tag{ font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--rose); font-weight:700; margin-bottom:14px;}
.result-title{ font-size:clamp(28px,5vw,44px); color:var(--wine); margin-bottom:16px; }
.result-desc{ max-width:540px; color:var(--ink-soft); font-size:15.5px; line-height:1.6; margin-bottom:28px; }
.trait-list{ list-style:none; max-width:480px; width:100%; margin-bottom:32px; text-align:left; }
.trait-list li{ font-size:14.5px; color:var(--ink); padding:9px 0 9px 26px; position:relative; border-bottom:1px solid var(--blush-soft); }
.trait-list li:before{ content:"—"; position:absolute; left:0; color:var(--rose); font-weight:700; }
.result-disclaimer{ max-width:480px; font-size:11.5px; color:var(--ink-soft); opacity:.85; margin:-14px 0 20px; line-height:1.5; }

/* SHARE CARD */
.share-card{ width:280px; aspect-ratio:1/1; border-radius:20px; padding:28px; display:flex; flex-direction:column; justify-content:space-between;
  color:white; margin:0 auto 18px; text-align:left; box-shadow:0 16px 36px rgba(0,0,0,0.2); }
.share-card .sc-top{ font-size:12px; letter-spacing:.08em; text-transform:uppercase; opacity:.85; font-weight:700; }
.share-card .sc-title{ font-family:'Fraunces',serif; font-size:26px; line-height:1.15; margin-top:10px; }
.share-card .sc-bottom{ font-size:12px; opacity:.9; display:flex; justify-content:space-between; align-items:center; }
.share-btn{ background:white; color:var(--wine); border:none; padding:10px 20px; border-radius:100px; font-size:13px; font-weight:700; cursor:pointer; margin-top:16px; }

.locked-box{ max-width:560px; width:100%; background:white; border-radius:20px; padding:30px; position:relative; overflow:hidden; text-align:left; border:1px solid var(--blush-soft); margin-top:10px; }
.locked-box .blur-content{ filter:blur(5px); user-select:none; color:var(--ink-soft); font-size:14px; line-height:1.7; }
.locked-box.unlocked .blur-content{ filter:none; user-select:auto; }
.full-report{ font-size:14px; line-height:1.7; color:var(--ink); }
.full-report h4{ font-family:'Fraunces',serif; font-size:15.5px; color:var(--wine); margin:18px 0 6px; font-weight:600; }
.full-report h4:first-child{ margin-top:0; }
.full-report p{ margin-bottom:4px; color:var(--ink-soft); }
.full-report .report-practices{ margin:6px 0 4px; padding-left:20px; }
.full-report .report-practices li{ margin-bottom:6px; color:var(--ink-soft); }
.full-report .report-refs{ margin-top:18px; padding-top:12px; border-top:1px solid var(--blush-soft);
  font-size:11.5px; color:var(--ink-soft); opacity:.85; font-style:italic; line-height:1.5; }
.lock-overlay{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.92) 45%); gap:12px; padding:20px; }
.lock-overlay svg{ width:26px; height:26px; color:var(--wine); }
.lock-overlay p{ font-size:13.5px; color:var(--ink-soft); max-width:340px; text-align:center; }

.invite-cta{ margin-top:28px; padding:20px; background:white; border:1.5px dashed var(--rose); border-radius:16px; max-width:480px; }
.invite-cta p{ font-size:13.5px; color:var(--ink-soft); margin-bottom:12px; }

/* PAY (ad-gate) */
.pay-wrap{ padding:60px 24px 100px; background:var(--blush); display:flex; flex-direction:column; align-items:center; }
.ad-progress{ display:flex; align-items:center; justify-content:center; gap:8px; }
.ad-step{ width:34px; height:34px; border-radius:50%; background:white; border:1.5px solid var(--blush-soft); color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }
.ad-step.done{ background:var(--rose); border-color:var(--rose); color:white; }
.ad-step-line{ width:40px; height:2px; background:var(--blush-soft); }
.ad-unit{ display:block; width:100%; max-width:700px; margin:24px auto; min-height:1px; }
.disclaimer{ max-width:560px; font-size:12px; color:var(--ink-soft); margin-top:16px; text-align:center; line-height:1.6; }

/* INVITE */
.invite-wrap{ min-height:100vh; padding:130px 24px 80px; display:flex; flex-direction:column; align-items:center; text-align:center; background:var(--blush); }
.invite-box{ max-width:440px; width:100%; background:white; border-radius:20px; padding:32px; border:1px solid var(--blush-soft); text-align:left; }
.invite-box label{ font-size:13px; font-weight:700; color:var(--ink); display:block; margin:16px 0 6px; }
.invite-box input{ width:100%; padding:12px 14px; border:1.5px solid var(--blush-soft); border-radius:10px; font-size:14px; font-family:'Inter',sans-serif; }
.relation-toggle{ display:flex; gap:10px; margin-top:6px; }
.relation-toggle button{ flex:1; padding:10px; border-radius:10px; border:1.5px solid var(--blush-soft); background:white; cursor:pointer; font-size:13px; font-weight:600; color:var(--ink-soft); }
.relation-toggle button.active{ border-color:var(--rose); color:var(--rose); background:#fdf1f3; }
.link-box{ margin-top:20px; padding:14px; background:var(--blush); border-radius:10px; font-size:12.5px; color:var(--ink-soft); word-break:break-all; }

/* COMPARE */
.compare-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; max-width:520px; width:100%; margin:24px 0; }
.compare-col{ background:white; border-radius:16px; padding:20px; border:1.5px solid var(--blush-soft); }
.compare-col .who{ font-size:12px; color:var(--ink-soft); font-weight:700; text-transform:uppercase; margin-bottom:8px; }
.compare-col .ctype{ font-family:'Fraunces',serif; font-size:19px; color:var(--wine); }
.compare-note{ max-width:520px; background:white; border-radius:16px; padding:24px; border:1.5px solid var(--blush-soft); text-align:left; font-size:14.5px; color:var(--ink-soft); line-height:1.7; }

.back-link{ margin-top:36px; font-size:13px; color:var(--ink-soft); background:none; border:none; text-decoration:underline; cursor:pointer; }

/* PRIVACY MODAL */
.modal-overlay{ display:none; position:fixed; inset:0; background:rgba(43,20,32,0.55); z-index:500; align-items:center; justify-content:center; padding:24px; }
.modal-overlay.show{ display:flex; }
.modal-box{ background:white; border-radius:20px; padding:32px; max-width:480px; width:100%; max-height:80vh; overflow:auto; position:relative; text-align:left; }
.modal-box h3{ font-size:19px; color:var(--wine); margin-bottom:14px; }
.modal-box p{ font-size:13.5px; color:var(--ink-soft); line-height:1.65; margin-bottom:12px; }
.modal-close{ position:absolute; top:14px; right:16px; background:none; border:none; color:var(--ink-soft); font-size:20px; cursor:pointer; line-height:1; }

/* FOOTER */
.site-footer{ background:var(--wine); color:#a8c5d9; padding:24px; text-align:center; font-size:12px; display:flex;
  flex-wrap:wrap; gap:20px; justify-content:center; align-items:center; }
.site-footer > div{ display:flex; flex-direction:column; gap:10px; }
.footer-contact{ display:flex; flex-wrap:wrap; gap:20px; justify-content:center; }
.footer-contact a{ color:var(--gold); text-decoration:none; font-weight:600; }
.footer-contact a:hover{ text-decoration:underline; }

/* TOAST */
.toast{ position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px); background:var(--wine); color:var(--blush);
  padding:12px 20px; border-radius:100px; font-size:13px; font-weight:600; box-shadow:0 10px 24px rgba(43,20,32,0.3);
  opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease; z-index:600; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast.error{ background:var(--rose); }
