/* Arete marketing site. Built on the Arete design system (arete-design skill):
   the academy/Library surface set for the page, the mobile :root set inside the
   phone mockups. Ink and gold, hairlines, no shadows, near-zero motion. */

:root {
  --gold: #c9a84c;
  --gold-light: #e3c77a;
  --gold-grad: linear-gradient(135deg, #c9a84c, #e8c96a 50%, #c9a84c);
  --gold-05: rgba(201,168,76,0.05);
  --gold-08: rgba(201,168,76,0.08);
  --gold-13: rgba(201,168,76,0.13);
  --gold-15: rgba(201,168,76,0.15);
  --gold-20: rgba(201,168,76,0.2);
  --gold-27: rgba(201,168,76,0.27);
  --gold-40: rgba(201,168,76,0.4);
  --gold-53: rgba(201,168,76,0.53);

  /* academy surface set */
  --bg: #0a1628;
  --surface: #0f1e38;
  --surface-card: #111d30;
  --surface-row: #0d1a30;
  --border: #1e3258;
  --text: #f5edd6;
  --text-body: #e8d9b0;
  --text-warm: #e0d5b5;
  --muted: #7a8fa6;
  --faint: #4a5a70;

  --insight: #b39ddb;
  --insight-surface: #241f3d;
  --insight-border: rgba(123,94,167,0.33);

  --cat-stoics-bg: rgba(201,168,76,0.2);   --cat-stoics-fg: #c9a84c;
  --cat-warriors-bg: rgba(239,68,68,0.2);  --cat-warriors-fg: #fca5a5;
  --cat-athletes-bg: rgba(59,130,246,0.2); --cat-athletes-fg: #93c5fd;
  --cat-builders-bg: rgba(34,197,94,0.2);  --cat-builders-fg: #86efac;
  --cat-writers-bg: rgba(168,85,247,0.2);  --cat-writers-fg: #d8b4fe;
  --cat-spiritual-bg: rgba(99,102,241,0.2);--cat-spiritual-fg: #a5b4fc;

  --font-ui: Inter, system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --font-sans: -apple-system, "SF Pro Text", Inter, system-ui, sans-serif;

  --page: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text-body);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img, svg { display: block; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold);
}
h1, h2, h3 { font-family: var(--font-serif); color: var(--text); font-weight: 500; margin: 0; }
h1 { font-size: clamp(48px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.5px; }
h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.25; }
h1 em, h2 em { font-style: italic; }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede { font-family: var(--font-serif); font-size: 21px; line-height: 1.55; color: var(--text-body); max-width: 680px; }
.muted { color: var(--muted); }
.rule { width: 64px; height: 1px; background: var(--gold-40); margin: 22px 0; }

section { padding: 112px 0; border-top: 1px solid var(--gold-13); scroll-margin-top: 64px; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head .kicker { margin-bottom: 18px; display: block; }
.section-head .lede { margin-top: 20px; }

/* ---------- buttons (academy: square) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 15px 24px; border-radius: 0; border: 1px solid var(--gold);
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--bg); }
.btn-secondary { background: var(--gold-13); color: var(--gold); border-color: var(--gold-53); }
.btn-secondary:hover { background: var(--gold-20); color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { flex: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--gold-13);
}
.topbar .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.wordmark { font-size: 13px; font-weight: 800; letter-spacing: 3px; color: var(--gold); }
.topnav { display: flex; gap: 26px; margin-left: auto; }
.topnav a { font-size: 13px; color: var(--text-body); }
.topnav a:hover { color: var(--gold-light); }
.topbar .btn { padding: 10px 16px; font-size: 11px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 0;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute; right: 0; top: 44px; width: 220px; background: var(--surface-card);
  border: 1px solid var(--border); padding: 8px 0; display: flex; flex-direction: column;
}
.menu nav a { padding: 10px 18px; color: var(--text-body); font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 104px; border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero .kicker { display: block; margin-bottom: 26px; }
.hero-pocket { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--gold); margin-top: 18px; }
.hero .hero-pocket + .lede { margin-top: 20px; }
.hero .lede { margin: 28px 0 36px; }
.hero-meta {
  margin-top: 26px; font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 10px;
}
.hero-meta span + span::before { content: "·"; margin-right: 10px; color: var(--faint); }
.hero-phone { display: flex; justify-content: center; }

/* ---------- phone mockups (mobile :root palette) ---------- */
.phone {
  --bg: #1a1a2e; --surface: #16213e; --text: #ffffff; --text-body: #e0e0e0;
  --text-quote: #e8e0d0; --muted: #888888; --dim: #666666;
  width: 340px; max-width: 100%; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.1); overflow: hidden;
  display: flex; flex-direction: column; font-size: 14px; line-height: 1.4;
}
.phone-body { flex: 1; padding: 44px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.p-greet { color: var(--muted); font-size: 17px; }
.p-name { font-size: 28px; font-weight: 700; line-height: 1.1; }
.p-card { background: var(--surface); border: 1px solid var(--gold-20); border-radius: 12px; padding: 16px; }
.p-rule { border-left: 3px solid var(--gold); }
.p-quote { display: flex; gap: 10px; }
.p-quote .mark { font-size: 40px; line-height: 38px; color: var(--gold); font-weight: 700; }
.p-quote .q { font-style: italic; font-size: 13.5px; line-height: 21px; color: var(--text-quote); }
.p-attr { font-size: 12px; font-weight: 600; color: var(--gold); margin-top: 6px; }
.p-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); opacity: 0.8; }
.p-prompt { display: flex; align-items: center; gap: 10px; }
.p-prompt .t { font-size: 15px; line-height: 21px; margin-top: 5px; }
.p-streak { display: flex; align-items: center; gap: 14px; }
.p-streak .n { font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1; }
.p-streak .l { font-size: 15px; font-weight: 600; }
.p-streak .s { font-size: 12px; color: var(--dim); font-style: italic; margin-top: 2px; }
.p-small { font-size: 13px; color: var(--text-body); line-height: 19px; margin-top: 5px; }
.p-tabs {
  height: 58px; display: flex; justify-content: space-around; align-items: center;
  font-size: 9px; color: gray; padding-bottom: 4px;
}
.p-tabs div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.p-tabs .on { color: var(--gold); }
.p-header { padding: 44px 20px 12px; border-bottom: 1px solid var(--gold-13); }
.p-title { font-size: 22px; font-weight: 700; color: var(--gold); }
.p-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.p-pills { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.p-pill { border: 1px solid var(--gold-20); border-radius: 20px; padding: 5px 11px; font-size: 12px; color: var(--text-body); }
.p-pill.on { border-color: var(--gold); background: rgba(201,168,76,0.1); color: var(--gold); font-weight: 600; }
.p-chat { padding: 16px 16px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-bubble { max-width: 88%; border-radius: 16px; padding: 12px; font-size: 13.5px; line-height: 20px; }
.p-bubble.user { align-self: flex-end; background: var(--gold-15); border: 1px solid var(--gold); border-bottom-right-radius: 4px; }
.p-bubble.them { background: var(--surface); border: 1px solid var(--gold-20); border-bottom-left-radius: 4px; color: var(--text-body); }
.p-bubble .who { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.p-composer {
  margin: 0 14px 10px; border: 1px solid var(--gold-20); border-radius: 22px;
  padding: 10px 14px; font-size: 13px; color: var(--muted); background: var(--surface);
}

/* ---------- cabinet ---------- */
.cabinet-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.roster-group + .roster-group { margin-top: 30px; }
.roster-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px; padding: 3px 9px; border-radius: 6px;
}
.cat-stoics { background: var(--cat-stoics-bg); color: var(--cat-stoics-fg); }
.cat-warriors { background: var(--cat-warriors-bg); color: var(--cat-warriors-fg); }
.cat-athletes { background: var(--cat-athletes-bg); color: var(--cat-athletes-fg); }
.cat-builders { background: var(--cat-builders-bg); color: var(--cat-builders-fg); }
.cat-writers { background: var(--cat-writers-bg); color: var(--cat-writers-fg); }
.cat-spiritual { background: var(--cat-spiritual-bg); color: var(--cat-spiritual-fg); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.counselor {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--surface-card); border: 1px solid var(--border); border-radius: 2px;
}
.well {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--gold-08); border: 1px solid var(--gold-27);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--gold);
}
.counselor .n { font-size: 14px; color: var(--text); font-weight: 500; line-height: 1.3; }
.counselor .d { font-size: 12px; color: var(--muted); }
.counselor .tag {
  margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-40); padding: 2px 6px;
}
.counselor.always { border-color: var(--gold-40); }
.cabinet-note { margin-top: 26px; font-size: 14px; color: var(--muted); max-width: 640px; }

/* ---------- day ---------- */
.day { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: 2px; padding: 26px;
}
.card .kicker { display: block; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 15px; color: var(--text-body); }
.card-rule { border-left: 3px solid var(--gold); }

/* ---------- sight ---------- */
.sight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.sight-list { display: grid; gap: 12px; }
.sight-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gold-13); }
.sight-item:first-child { padding-top: 0; }
.sight-item .icon {
  width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--gold-08);
  border: 1px solid var(--gold-27); color: var(--gold); display: flex; align-items: center; justify-content: center;
}
.sight-item h3 { font-size: 21px; margin-bottom: 4px; }
.sight-item p { margin: 0; font-size: 15px; }
.insight {
  background: var(--insight-surface); border: 1px solid var(--insight-border); border-radius: 12px;
  padding: 20px; font-family: var(--font-sans);
}
.insight .k { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--insight); }
.insight p { margin: 8px 0 0; font-size: 15px; line-height: 23px; color: #e0e0e0; }
.insight .by { font-size: 12px; font-weight: 600; color: var(--gold); margin-top: 10px; }
.tier-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.tier-note strong { color: var(--text-body); font-weight: 600; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features .card h3 { font-size: 22px; }

/* ---------- scrolls ---------- */
.scrolls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scroll {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface-card); border: 1px solid var(--border); border-radius: 2px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; transition: border-color 180ms ease-out;
}
.scroll:hover { border-color: var(--gold-53); }
.scroll h3 { font-size: 25px; }
.scroll .by { font-size: 13px; color: var(--muted); }
.scroll .ex { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--text-warm); margin: 0; }
.scroll .go { margin-top: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
dialog.reader {
  width: min(680px, calc(100vw - 32px)); max-height: 88vh; padding: 0;
  background: var(--surface-card); color: var(--text-body); border: 1px solid var(--border); border-radius: 2px;
}
dialog.reader::backdrop { background: rgba(0,0,0,0.75); }
.reader-head {
  position: sticky; top: 0; background: var(--surface-card); padding: 24px 28px 18px;
  border-bottom: 1px solid var(--gold-13); display: flex; gap: 16px; align-items: flex-start;
}
.reader-head h3 { font-size: 28px; margin-top: 8px; }
.reader-close {
  margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 2px 6px;
}
.reader-close:hover { color: var(--gold-light); }
.reader-body { padding: 24px 28px 32px; }
.reader-body p { font-family: var(--font-serif); font-size: 19px; line-height: 1.75; color: var(--text-body); margin: 0 0 18px; }
.reader-foot { border-top: 1px solid var(--gold-13); padding-top: 18px; margin-top: 26px; font-size: 14px; color: var(--muted); }

/* ---------- library + academy ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two .card { padding: 34px; display: flex; flex-direction: column; }
.two .card h3 { font-size: 30px; }
.list { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.list li { padding-left: 18px; position: relative; font-size: 15px; }
.list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--gold); }
.list strong { color: var(--text); font-weight: 600; }
.two .card .btn { margin-top: auto; align-self: flex-start; }
.exhibits { margin-top: 16px; }
.exhibits .card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.exhibits a { font-family: var(--font-serif); font-size: 20px; font-style: italic; }

/* ---------- principles ---------- */
.principles { border-top: 1px solid var(--gold-13); }
.principle {
  display: grid; grid-template-columns: 64px 260px 1fr; gap: 24px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--gold-13);
}
.principle .num { font-family: var(--font-serif); font-size: 26px; color: var(--gold); }
.principle h3 { font-size: 24px; }
.principle p { margin: 0; font-size: 16px; }
.motto { margin-top: 44px; font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--gold); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; }
.plan.featured { border: 1px solid var(--gold); }
.plan .tier { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); display: flex; justify-content: space-between; gap: 8px; }
.plan .tier .flag { color: var(--bg); background: var(--gold); padding: 1px 7px; letter-spacing: 1.5px; }
.price { font-family: var(--font-serif); font-size: 52px; color: var(--text); line-height: 1; margin: 18px 0 6px; }
.price small { font-family: var(--font-ui); font-size: 15px; color: var(--muted); margin-left: 4px; }
.plan .alt { font-size: 14px; color: var(--muted); min-height: 22px; }
.plan .list { margin: 22px 0 28px; }
.plan .btn { margin-top: auto; justify-content: center; }
.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gold-13); }
th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); font-weight: 500; background: var(--surface-row); }
td:not(:first-child), th:not(:first-child) { text-align: center; }
tr:last-child td { border-bottom: 0; }
td.no { color: var(--faint); }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 760px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--gold-13); }
.faq details { border-bottom: 1px solid var(--gold-13); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-family: var(--font-serif); font-size: 23px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--font-ui); font-size: 20px; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--gold-light); }
.faq p { margin: 0 0 24px; font-size: 16px; max-width: 720px; }

/* ---------- oracle ---------- */
.oracle { max-width: 780px; }
.exchange { margin: 36px 0; border: 1px solid var(--border); background: var(--surface-card); border-radius: 2px; }
.exchange .q { padding: 22px 26px; border-bottom: 1px solid var(--gold-13); font-family: var(--font-serif); font-size: 21px; color: var(--text); }
.exchange .a { padding: 22px 26px; border-left: 3px solid var(--gold); }
.exchange .a p { margin: 10px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.65; color: var(--text-warm); }

/* ---------- footer ---------- */
.closing { text-align: center; padding: 120px 0; }
.closing h2 { max-width: 760px; margin: 0 auto; }
.closing p { margin: 20px auto 34px; font-family: var(--font-serif); font-size: 21px; }
.closing .btn-row { justify-content: center; }
footer { border-top: 1px solid var(--gold-13); padding: 56px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.foot a { display: block; font-size: 14px; color: var(--text-body); padding: 4px 0; }
.foot a:hover { color: var(--gold-light); }
.foot .motto-sm { font-family: var(--font-serif); font-style: italic; color: var(--muted); margin-top: 8px; font-size: 17px; }
.disclaimer { margin-top: 44px; font-size: 12px; line-height: 1.7; color: var(--faint); max-width: 900px; }
.copy { margin-top: 18px; font-size: 12px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .cabinet-grid, .sight { grid-template-columns: 1fr; gap: 48px; }
  .cabinet-grid .phone, .sight .phone { margin: 0 auto; }
  .day { grid-template-columns: 1fr 1fr; }
  .features, .scrolls, .plans { grid-template-columns: 1fr 1fr; }
  .principle { grid-template-columns: 48px 1fr; }
  .principle p { grid-column: 2; }
  .foot { grid-template-columns: 1fr 1fr; }
  .topnav { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  section { padding: 76px 0; }
  .hero { padding: 48px 0 72px; }
  .topbar .wrap { gap: 16px; }
  .topbar .btn { display: none; }
  .day, .features, .scrolls, .plans, .two { grid-template-columns: 1fr; }
  .lede { font-size: 19px; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .foot { grid-template-columns: 1fr; }
  .reader-body p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Greek in a kicker: the mono face has no polytonic Greek, and uppercasing it
   strips the breathing mark. Set it in the serif, as written. */
.greek { font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.5px; text-transform: none; font-style: italic; }
