/* =====================================================================
   Optimize & Monetize
   Premium, dark, editorial, feminine.
   ===================================================================== */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/aileron-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/aileron-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/aileron-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #292929;
  --bg-deep: #1f1f1f;
  --card: #303030;
  --cream: #e4e2dd;
  --cream-80: rgba(228, 226, 221, .8);
  --cream-65: rgba(228, 226, 221, .65);
  --cream-55: rgba(228, 226, 221, .55);
  --cream-45: rgba(228, 226, 221, .45);
  --cream-30: rgba(228, 226, 221, .3);
  --cream-15: rgba(228, 226, 221, .15);
  --cream-10: rgba(228, 226, 221, .1);
  --cream-05: rgba(228, 226, 221, .05);
  --line: rgba(228, 226, 221, .09);
  --gold: #ddaf87;
  --gold-soft: rgba(221, 175, 135, .14);
  --gold-line: rgba(221, 175, 135, .22);
  --blush: #f5b9b2;
  --peach: #fde5cd;
  --danger: #f08f86;
  --radius-lg: 1.25rem;
  --radius: .9rem;
  --radius-sm: .6rem;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Aileron", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.shell {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 100% 0, rgba(221, 175, 135, .07), transparent 28%),
    radial-gradient(circle at 0 45%, rgba(245, 185, 178, .04), transparent 32%);
  min-height: 100vh;
}
img, video, iframe { max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ---- Type --------------------------------------------------------- */
.display-xl { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .95; letter-spacing: -.01em; }
.display-lg { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; margin-top: 1.5rem; }
.display-md { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; }
.display-sm { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.display-xl em, .display-lg em, .display-md em, .hero-title em { font-style: italic; color: var(--gold); }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(228, 226, 221, .48); }
.eyebrow-gold { color: var(--gold); }
.eyebrow-peach { color: var(--peach); }
.muted { color: var(--cream-55); }
.small { font-size: .875rem; }
.tiny { font-size: .75rem; line-height: 1.5; }
.strong { font-weight: 600; color: var(--cream); }
.strong-soft { font-weight: 600; color: var(--cream-80); }
.text-gold { color: var(--gold); }
.center { text-align: center; }

/* ---- Layout ------------------------------------------------------- */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 640px) { .container { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1100px) { .container { padding-left: 48px; padding-right: 48px; } }
.main { padding-top: 28px; padding-bottom: 48px; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 20px; }
.divider { height: 1px; background: var(--cream-10); margin: 24px 0; }

/* ---- Header / footer ---------------------------------------------- */
.site-header { border-bottom: 1px solid rgba(228, 226, 221, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-divider { width: 1px; height: 18px; background: rgba(228, 226, 221, .2); }
.brand-name { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-55); white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-note { font-size: .75rem; color: var(--cream-45); white-space: nowrap; }
.logo-mark { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; color: var(--cream); white-space: nowrap; line-height: 1; }
.logo-amp { font-style: italic; color: var(--gold); margin: 0 .03em; }
.logo-lg { font-size: 2rem; }
.site-footer { border-top: 1px solid rgba(228, 226, 221, .08); padding: 24px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; font-size: .75rem; color: var(--cream-45); }
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
@media (max-width: 560px) { .header-note { display: none; } .brand { gap: 12px; } .brand-name { font-size: 9px; letter-spacing: .14em; } }
@media (max-width: 340px) { .brand-divider, .brand-name { display: none; } }
.inline-form { display: inline; margin: 0; }
.preview-bar { background: var(--gold); color: var(--bg); text-align: center; font-size: .8rem; font-weight: 600; padding: 8px 16px; }
.preview-bar a { color: var(--bg); text-decoration: underline; margin-left: 8px; }

/* ---- Buttons & forms ---------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: .65rem; padding: .7rem 1.1rem; font-size: .85rem; font-weight: 700; letter-spacing: .02em; cursor: pointer; text-decoration: none; transition: background .15s, opacity .15s, border-color .15s; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover:not(:disabled) { background: #e6bf9c; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream-15); }
.btn-ghost:hover:not(:disabled) { border-color: var(--cream-30); background: var(--cream-05); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(240, 143, 134, .35); }
.btn-danger:hover:not(:disabled) { background: rgba(240, 143, 134, .1); }
.btn-sm { padding: .5rem .85rem; font-size: .78rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); font-size: .75rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cream-05); border: 1px solid var(--line); color: var(--cream-80); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: var(--cream-10); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--cream-65); }
.field-help { font-size: .72rem; color: var(--cream-45); }
.input, .select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--cream-15);
  border-radius: .6rem;
  padding: .65rem .8rem;
  font-size: .9rem;
  color: var(--cream);
  min-height: 42px;
}
.input::placeholder { color: rgba(228, 226, 221, .32); }
.input:focus, .select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(221, 175, 135, .15); }
.input:disabled, .select:disabled { opacity: .6; }
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23e4e2dd' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
.select option { background: var(--bg); color: var(--cream); }
.select-sm { width: auto; min-height: 34px; padding: .35rem 2rem .35rem .7rem; font-size: .78rem; }
input[type="date"] { color-scheme: dark; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.form-error { color: var(--danger); font-size: .85rem; }

/* ---- Flash & toast ------------------------------------------------ */
.flash { border-radius: .7rem; padding: .7rem .9rem; font-size: .85rem; margin: 14px 0; border: 1px solid; }
.flash-success { background: rgba(221, 175, 135, .1); border-color: var(--gold-line); color: var(--peach); }
.flash-error { background: rgba(240, 143, 134, .08); border-color: rgba(240, 143, 134, .35); color: #f6b5ae; }
.flash-info { background: var(--cream-05); border-color: var(--line); color: var(--cream-80); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card); color: var(--cream); border: 1px solid var(--gold-line); border-radius: .8rem; padding: .7rem 1.1rem; font-size: .85rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); z-index: 200; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-error { border-color: rgba(240, 143, 134, .5); color: #f6b5ae; }

/* ---- Auth pages --------------------------------------------------- */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 1080px; display: grid; grid-template-columns: 1fr; overflow: hidden;
  border: 1px solid var(--gold-line); border-radius: 2rem;
  background: radial-gradient(circle at 75% 15%, rgba(221, 175, 135, .18), transparent 28%), linear-gradient(135deg, rgba(245, 185, 178, .07), transparent 45%);
}
@media (min-width: 900px) { .auth-card { grid-template-columns: 1.2fr .8fr; } }
.auth-main { padding: 36px 24px; }
@media (min-width: 640px) { .auth-main { padding: 56px; } }
.auth-eyebrow { margin-top: 40px; margin-bottom: 14px; }
.auth-intro { margin-top: 22px; max-width: 30rem; font-size: .9rem; line-height: 1.8; color: var(--cream-65); }
.auth-form { margin-top: 28px; max-width: 26rem; }
.auth-side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 36px 24px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .auth-side { padding: 56px 44px; border-top: 0; border-left: 1px solid var(--line); } }
.auth-side .display-md { margin-bottom: 12px; }
.auth-sparkle .icon { width: 26px; height: 26px; color: var(--gold); }
.message-box { max-width: 30rem; text-align: center; }
.message-box .muted { margin-top: 14px; }
.message-box .btn { margin-top: 28px; }

/* ---- Icons -------------------------------------------------------- */
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.icon-sm { width: 14px; height: 14px; }
.icon-gold { color: var(--gold); }

/* ---- Panels ------------------------------------------------------- */
.panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
  animation: rise .45s cubic-bezier(.23, 1, .32, 1) both;
}
@media (min-width: 640px) { .panel { padding: 24px; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
.panel-title { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; margin-top: 6px; }
.panel-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- Hero --------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  border: 1px solid var(--gold-line); border-radius: 1.45rem;
  background: linear-gradient(112deg, rgba(221, 175, 135, .17), rgba(245, 185, 178, .09) 45%, rgba(41, 41, 41, .9) 80%);
}
.hero-intro { padding: 28px 22px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.1rem); line-height: .98; margin-top: 16px; max-width: 32rem; }
.hero-text { margin-top: 20px; max-width: 32rem; font-size: .9rem; line-height: 1.75; color: var(--cream-80); }
.hero-video { padding: 16px; border-top: 1px solid rgba(228, 226, 221, .08); border-bottom: 1px solid rgba(228, 226, 221, .08); display: flex; align-items: center; }
.hero-video .video-frame { flex: 1; }
.hero-goal { padding: 28px 22px; }
.hero-goal + .hero-goal { border-top: 1px solid rgba(228, 226, 221, .08); }
.hero-objective { margin-top: 16px; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; }
.hero-business { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--cream-55); }
.hero-endgoal { background: rgba(253, 229, 205, .05); }
.hero-endgoal-text { margin-top: 12px; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; }
@media (min-width: 640px) { .hero-intro, .hero-goal { padding: 32px; } }
@media (min-width: 1100px) {
  .hero { grid-template-columns: 4fr 5fr 4fr; }
  .hero-video { border-top: 0; border-bottom: 0; border-left: 1px solid rgba(228, 226, 221, .08); border-right: 1px solid rgba(228, 226, 221, .08); }
  .hero-title { font-size: clamp(2.3rem, 3.2vw, 2.8rem); }
}

/* ---- Video -------------------------------------------------------- */
.video-frame { position: relative; overflow: hidden; border-radius: 1.1rem; border: 1px solid var(--gold-line); background: #1e1e1e; aspect-ratio: 16 / 9; width: 100%; min-height: 185px; }
.video-frame.is-compact { min-height: 0; border-radius: .8rem; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.hero-video .video-frame { aspect-ratio: 16 / 9; min-height: 0; }
.hero-video .video-frame video, .hero-video .video-frame iframe { object-fit: contain; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px;
  background: radial-gradient(circle at 76% 14%, rgba(221, 175, 135, .24), transparent 26%), linear-gradient(145deg, #323232, #1d1d1d);
}
.play-ring { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(221, 175, 135, .6); background: var(--gold-soft); color: var(--gold); margin-bottom: 12px; }
.play-ring .icon { width: 16px; height: 16px; }
.video-placeholder-title { font-family: var(--font-display); font-size: 1.2rem; }
.video-placeholder-text { margin-top: 6px; max-width: 16rem; font-size: .75rem; line-height: 1.5; color: var(--cream-55); }
.is-compact .play-ring { width: 34px; height: 34px; margin-bottom: 8px; }
.is-compact .video-placeholder-title { font-size: .95rem; }
.is-compact .video-placeholder-text { font-size: .68rem; }

/* ---- Section headings --------------------------------------------- */
.grid-two { display: grid; gap: 28px; margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .grid-two { grid-template-columns: minmax(0, .96fr) minmax(0, 1.14fr); gap: 22px; } }
.grid-wide { display: grid; gap: 20px; margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .grid-wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); align-items: start; } }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blush); color: var(--bg); font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.section-title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }

/* ---- Checklists --------------------------------------------------- */
.checklist { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .9rem; line-height: 1.4; color: var(--cream-80); }
.check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.check-box { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1px solid rgba(221, 175, 135, .5); flex-shrink: 0; transition: background .15s, border-color .15s; }
.check-box .icon { width: 12px; height: 12px; opacity: 0; color: var(--bg); }
.check input:checked + .check-box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check-box .icon { opacity: 1; }
.check input:focus-visible + .check-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.check input:disabled ~ * { cursor: default; }
.check.is-done .check-label, .check input:checked ~ .check-label { text-decoration: line-through; color: var(--cream-45); }
.daily-card .check input:checked ~ .check-label, .add-prospect input:checked ~ .check-label { text-decoration: none; color: var(--cream-80); }
.checklist-blush .check input:checked + .check-box { background: var(--blush); border-color: var(--blush); }
.check-sm { font-size: .78rem; gap: 8px; color: var(--cream-65); margin-bottom: 8px; }
.check-sm:last-child { margin-bottom: 0; }
.check-sm .check-box { width: 15px; height: 15px; border-radius: 4px; }
.check-sm .check-box .icon { width: 10px; height: 10px; }
.check-sm input { width: 15px; height: 15px; }
.check.is-saving { opacity: .6; }

/* ---- Framework & pillars ------------------------------------------ */
.framework { margin-top: 14px; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) and (max-width: 1099px) { .framework { grid-template-columns: 1fr 1fr; } }
.framework-card { background: rgba(228, 226, 221, .045); border-radius: .8rem; padding: 12px 14px; }
.framework-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); margin-bottom: 4px; }
.framework-num { font-family: var(--font-body); font-size: .7rem; color: var(--cream-45); margin-right: 8px; }
.pillars { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.pillar { border: 1px solid rgba(228, 226, 221, .07); border-radius: .8rem; padding: 14px; }
.pillar-head { display: flex; gap: 12px; align-items: flex-start; }
.pillar-num { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold); line-height: 1.2; }
.pillar-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; margin-bottom: 2px; }
.resource-link { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: .6rem; background: rgba(228, 226, 221, .045); padding: 9px 12px; font-size: .78rem; color: var(--cream-80); }
.resource-link > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.resource-link:hover { background: rgba(228, 226, 221, .08); text-decoration: none; }
.resource-link.is-pending { cursor: default; }
.resource-link .tiny { white-space: nowrap; }
.resource-link.is-pending:hover { background: rgba(228, 226, 221, .045); }

/* ---- Weekly video ------------------------------------------------- */
.weekly-video { margin-top: 24px; }
.weekly-video .eyebrow { margin-bottom: 10px; }

/* ---- Tabs --------------------------------------------------------- */
.tab-list { display: grid; gap: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
@media (min-width: 560px) { .tab-list-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tab { border: 0; background: rgba(228, 226, 221, .045); color: rgba(228, 226, 221, .6); border-radius: .6rem; min-height: 34px; padding: .45rem .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s; }
.tab:hover { color: var(--cream); }
.tab.is-active { background: var(--gold); color: var(--bg); }
.tab-panel { margin-top: 18px; }
.tab-panel[hidden] { display: none; }

/* ---- Tracker ------------------------------------------------------ */
.tracker-head { margin-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.streak-pill { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.streak-num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.streak-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.daily-card { background: rgba(228, 226, 221, .05); border-radius: 1rem; padding: 16px; }
.daily-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.daily-date { font-family: var(--font-display); font-size: 1.15rem; }
.daily-card .checklist { margin: 14px 0 16px; }
.daily-card .textarea { min-height: 80px; margin-bottom: 12px; }
.daily-card .tiny { margin-top: 8px; }

.heatmap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.heatmap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.heatmap-dow { text-align: center; font-size: 10px; font-weight: 700; color: var(--cream-45); letter-spacing: .1em; }
.heat-cell { aspect-ratio: 1; border-radius: .45rem; border: 1px solid rgba(228, 226, 221, .05); display: flex; align-items: center; justify-content: center; font-size: .68rem; color: rgba(41, 41, 41, .75); font-weight: 600; }
.heat-cell.is-blank { border: 0; }
.lvl-none { background: var(--cream-10); color: var(--cream-45); }
.lvl-partial { background: var(--blush); }
.lvl-strong { background: var(--peach); }
.lvl-perfect { background: var(--gold); }
.lvl-future { background: transparent; border-style: dashed; border-color: var(--cream-10); color: var(--cream-30); }
.heat-cell.is-today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold); }
.heat-legend { margin-top: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-45); }
.heat-legend .heat-cell { width: 14px; height: 14px; aspect-ratio: auto; border-radius: 4px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat { background: rgba(228, 226, 221, .035); border: 1px solid var(--line); border-radius: .9rem; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--cream); }
.stat-num small { font-size: .85rem; color: var(--cream-45); margin-left: 2px; }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-45); }
.strip { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; margin: 16px 0; }
.strip-cell { height: 22px; border-radius: 3px; }
.item-rates { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.item-rate-top { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; margin-bottom: 4px; }
.bar { height: 6px; border-radius: 99px; background: var(--cream-10); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.day-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 2px; }
.day-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: .8rem; background: rgba(228, 226, 221, .045); padding: 10px 12px; }
.day-row-date { font-size: .85rem; }
.day-row-score { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.streak-board .stat-row { margin: 12px 0 14px; }
.streak-hero { border-radius: 1rem; background: var(--gold-soft); padding: 22px; text-align: center; }
.streak-big { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--gold); }
.streak-hero .small { margin-top: 6px; color: var(--cream-80); }

/* ---- Badges ------------------------------------------------------- */
.badge { display: inline-block; border-radius: 99px; padding: 3px 9px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--cream-10); color: var(--cream-65); white-space: nowrap; }
.badge-perfect { background: var(--gold); color: var(--bg); }
.badge-strong { background: var(--peach); color: var(--bg); }
.badge-partial { background: var(--blush); color: var(--bg); }
.badge-overdue { background: rgba(240, 143, 134, .18); color: #f6b5ae; }
.badge-today { background: var(--gold-soft); color: var(--gold); }
.badge-done { background: var(--cream-10); color: var(--cream-55); margin-top: 4px; }
.stage-lead { background: var(--cream-10); color: var(--cream-80); }
.stage-conversation-booked { background: rgba(245, 185, 178, .2); color: var(--blush); }
.stage-proposal-sent { background: var(--gold-soft); color: var(--gold); }
.stage-won { background: var(--gold); color: var(--bg); }
.stage-lost { background: rgba(228, 226, 221, .06); color: var(--cream-45); }

/* ---- Data tables (cards on mobile) -------------------------------- */
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 0 14px 10px 0; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--cream-45); border-bottom: 1px solid var(--cream-10); }
.data-table td { padding: 14px 14px 14px 0; vertical-align: top; border-bottom: 1px solid rgba(228, 226, 221, .07); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td p + p { margin-top: 4px; }
.data-table td .badge { margin-top: 4px; }
.table-caption { margin: 18px 0 6px; }
.table-caption:first-child { margin-top: 0; }
.empty-note { padding: 18px; text-align: center; font-size: .85rem; color: var(--cream-55); background: rgba(228, 226, 221, .03); border-radius: .8rem; }
@media (max-width: 760px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border: 1px solid var(--line); border-radius: .9rem; padding: 6px 14px; margin-bottom: 10px; background: rgba(228, 226, 221, .025); }
  .data-table td { border-bottom: 1px solid rgba(228, 226, 221, .06); padding: 10px 0; }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--cream-45); }
}

/* ---- Vault -------------------------------------------------------- */
.vault { margin-top: 18px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .vault { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vault-card { overflow: hidden; border-radius: .9rem; border: 1px solid rgba(228, 226, 221, .08); background: rgba(228, 226, 221, .035); }
.vault-card .video-placeholder-title { display: none; }
.vault-card .video-frame { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.vault-body { padding: 12px; }
.vault-title { font-family: var(--font-display); font-size: 1rem; line-height: 1.25; margin-bottom: 4px; }

/* ---- FAQ & rules -------------------------------------------------- */
.accordion { margin-top: 10px; }
.acc-item { border-bottom: 1px solid var(--cream-10); }
.acc-heading { font-size: inherit; }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; background: none; border: 0; text-align: left; font-size: .9rem; color: var(--cream); cursor: pointer; }
.acc-chevron { transition: transform .2s; color: var(--cream-55); }
.acc-trigger[aria-expanded="true"] .acc-chevron { transform: rotate(180deg); }
.acc-panel { padding: 0 0 16px; }
.acc-panel .small { line-height: 1.7; }
.rules { margin-top: 20px; border-radius: .9rem; background: rgba(228, 226, 221, .045); padding: 16px; }
.rules-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rules-list li { display: flex; gap: 9px; font-size: .8rem; line-height: 1.5; color: var(--cream-65); }
.rules-list .icon { margin-top: 2px; }

/* ---- Dialog ------------------------------------------------------- */
.dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--gold-line); border-radius: 1.2rem; background: var(--bg); color: var(--cream); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: auto; }
.dialog::backdrop { background: rgba(10, 10, 10, .65); backdrop-filter: blur(2px); }
.dialog-form { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .dialog-form { padding: 28px; } }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog-head .small { margin-top: 4px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.add-prospect { margin: 0; padding: 12px 14px; border-radius: .8rem; background: rgba(228, 226, 221, .04); }
.prospect-fields[hidden] { display: none; }
