/* ══════════════════════════════════════════════════════════════
   ICDDSM – Stylesheet
   Navy #13183e · Purple #8e1a88 · Maroon #7a1325 (buttons/links)
   Text #000 · Surface #f4f4f6 · Body 22px · System fonts only.
══════════════════════════════════════════════════════════════ */

:root {
  --maroon:       #7a1325;   /* buttons + links — stays red */
  --deep:         #560d1a;   /* button/link hover */
  --navy:         #13183e;   /* header + footer bg (Mayo Clinic) */
  --navy-light:   #1d2349;   /* footer-nav bg */
  --purple:       #8e1a88;   /* accent: titles, borders, badges */
  --purple-deep:  #6b1267;   /* purple hover */
  --text:         #000000;
  --bg:           #ffffff;
  --surface:      #f4f4f6;
  --border:       #cdced3;
  --green:        #1f7a4d;
  --green-bg:     #f0f7f3;
  --font: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bar-w: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

html { font-size: 18px; }

body {
  font-family: var(--font);
  font-size: 1.222rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--deep); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5em; margin-bottom: 1rem; }

/* ── Header ── */
.site-header {
  background: var(--navy);
  padding: 1.1rem 0;
  color: #fff;
}
.site-header a,
.site-header p,
.site-header div,
.site-header span { color: #fff; }
.site-header a:hover { color: rgba(255,255,255,.85); }

.site-header .bar {
  max-width: var(--bar-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
/* ── Language switcher ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.lang-active { color: #fff; text-decoration: none; cursor: default; }
.lang-sep { color: rgba(255,255,255,.35); }
.lang-link { color: rgba(255,255,255,.55); text-decoration: none; }
.lang-link:hover { color: #fff; }

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.brand-name .brand-expl {
  font-weight: 300;
  letter-spacing: 0;
}
.brand-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,.72);
  margin-top: 0.15rem;
}
.header-actions { display: flex; gap: 0.75rem; align-items: center; }
.header-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 2px;
}
.header-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.header-link.cta { background: #fff; color: var(--maroon); font-weight: 700; border-color: #fff; }
.header-link.cta:hover { background: rgba(255,255,255,.9); color: var(--maroon); }

/* ── Layout ── */
.bar { max-width: var(--bar-w); margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; }

/* ── Hero ── */
.hero {
  max-width: var(--bar-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #000;
  margin-bottom: 0.75rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: #000;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Card Grid ── */
.card-section {
  max-width: var(--bar-w);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.card-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #555;
  padding: 1.5rem 0 0;
  display: block;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1px;
}
.card {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  display: block;
  text-decoration: none;
  color: #000;
  transition: background 0.1s;
}
.card:hover { background: var(--surface); }
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.card-excerpt { font-size: 0.9rem; line-height: 1.55; color: #000; margin: 0 0 .5rem; }
.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  border: 1px solid var(--purple);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-top: 0.4rem;
}
.card-badge-free {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-top: 0.4rem;
}

/* ── Card Page ── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  padding: 0.5rem 1.5rem;
}
.breadcrumb ol { list-style:none; padding:0; margin:0 auto; max-width:var(--bar-w); display:flex; gap:.25rem; flex-wrap:wrap; }
.breadcrumb li+li::before { content:"›"; margin-right:.25rem; color:#888; }
.breadcrumb a { color:var(--maroon); text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }

.card-page { max-width: var(--bar-w); margin: 0 auto; padding: 0 1.5rem 4rem; }

.card-header { padding: 2.5rem 0 0; }
.card-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #000;
  margin-bottom: 0.4rem;
}
.card-subtitle { font-size: .95rem; color: #000; margin-bottom: .5rem; }

.free-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--green);
  color: #fff;
  padding: .2rem .6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .card-body { grid-template-columns: 1fr 260px; gap: 3rem; }
}
.card-main { min-width: 0; }
.card-sidebar { order: -1; }
@media (min-width: 900px) {
  .card-sidebar { order: 2; position: sticky; top: 1.5rem; }
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #555;
  margin-bottom: 0.75rem;
}

/* Vignettes */
.vignettes { margin-bottom: 2.5rem; }
.vignette {
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--border);
  background: var(--surface);
  margin-bottom: 0.75rem;
  color: #000;
}

/* Consensus */
.consensus-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple);
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg);
}
.consensus-box p { font-size: 1rem; line-height: 1.75; color: #000; }

/* Sidebar */
.sidebar-box {
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  font-size: 0.82rem;
}
.sidebar-box h3 {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #555; margin-bottom: 0.6rem;
}
.sidebar-box ul { list-style:none; padding:0; }
.sidebar-box li { padding:.3rem 0; border-bottom:1px solid var(--border); line-height:1.4; }
.sidebar-box li:last-child { border-bottom:none; }
.sidebar-box a { color:var(--maroon); word-break:break-word; }
.study-meta { display:block; font-size:.75rem; color:#555; margin-top:.1rem; }

/* Subscribe / gate */
.subscribe-box {
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  padding: 2rem;
  margin-top: 2rem;
}
.subscribe-box h2 { font-size:1.4rem; font-weight:800; margin-bottom:.75rem; line-height:1.3; color:#000; }
.subscribe-box p { font-size:1rem; margin-bottom:1rem; color:#000; }
.founder-badge {
  display:inline-block; font-size:.75rem; font-weight:700; text-transform:uppercase;
  background:var(--purple); color:#fff; padding:.2rem .6rem; border-radius:2px; margin-bottom:1rem;
}
.price-display { font-size:1.6rem; font-weight:800; margin-bottom:.25rem; color:#000; }
.price-note { font-size:.85rem; color:#000; margin-bottom:1.5rem; }

/* Reframe */
.reframe-block {
  border: 1px solid #a8d4bc;
  border-left: 4px solid var(--green);
  padding: 1.75rem;
  background: var(--green-bg);
  margin: 2rem 0;
}
.reframe-block h2 { font-size:1.15rem; font-weight:800; color:var(--green); margin-bottom:1rem; }
.reframe-block p { font-size:1rem; line-height:1.75; color:#000; }

/* Excentration */
.excentration-block {
  border: 1px solid #a8c4d4;
  border-left: 4px solid #1a607a;
  padding: 1.75rem;
  background: #f0f5f8;
  margin: 2rem 0;
}
.excentration-block h2 { font-size:1.15rem; font-weight:800; color:#1a607a; margin-bottom:1rem; }
.excentration-block p { font-size:1rem; line-height:1.75; color:#000; }

/* Experiment */
.experiment-block {
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  padding: 1.75rem;
  margin-top: 2rem;
}
.experiment-block h2 { font-size:1.1rem; font-weight:800; margin-bottom:1rem; color:#000; }
.experiment-block p { color:#000; font-size:1rem; }
.mantra {
  border-left: 4px solid var(--green);
  padding: 1rem 1.25rem;
  background: var(--green-bg);
  margin: 1.25rem 0;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
}
.review-date { font-size:.95rem; font-weight:700; margin:1rem 0; color:#000; }
.help-note {
  border: 1px solid #b8d0b8;
  border-left: 3px solid var(--green);
  padding: 1rem 1.25rem;
  background: var(--green-bg);
  font-size: 0.9rem;
  margin-top: 2rem;
  color: #000;
}

/* Key unlock */
.key-unlock { margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid var(--border); }
.key-unlock p { font-size:.9rem; color:#000; margin-bottom:.75rem; }
.key-row { display:flex; gap:.5rem; flex-wrap:wrap; }
.key-row input[type="text"] {
  flex:1; min-width:180px; max-width:320px;
  padding:.55rem .75rem; font-family:var(--font); font-size:.95rem;
  border:1px solid var(--border); background:var(--surface); color:#000;
  border-radius:2px; outline:none; letter-spacing:.05em;
}
.key-row input:focus { border-color:var(--maroon); box-shadow:0 0 0 2px rgba(122,19,37,.1); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid var(--maroon);
  background: var(--maroon);
  color: #fff;
  text-decoration: none;
  transition: background 0.1s;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-large { font-size:1.05rem; padding:.8rem 1.8rem; }

/* Notice */
.notice { font-size:.9rem; padding:.65rem 1rem; line-height:1.5; border-radius:2px; }
.notice.error { color:#7a1c1c; background:#fdf3f3; border:1px solid #e8c0c0; border-left:3px solid #c00; }
.notice.success { color:#1a4a2a; background:var(--green-bg); border:1px solid #a8d4bc; border-left:3px solid var(--green); }

/* Loading */
.loading { color:#555; font-size:.95rem; padding:1rem 0; }

/* Disclaimer bar */
.disclaimer-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #000;
  text-align: center;
}

/* ── Footer (5-column: 4 disorder clusters + address) ── */
.site-footer {
  background: var(--navy);
  margin-top: auto;
  color: #fff;
}
.site-footer a,
.site-footer p,
.site-footer div,
.site-footer span,
.site-footer address { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* Column grid */
.footer-cols {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-top: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 580px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* Column heading (static) */
.footer-col-head {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: rgba(255,255,255,.4);
  margin: 0 0 .65rem;
}

/* "Coming soon" placeholder */
.footer-col-soon {
  font-size: .75rem;
  color: rgba(255,255,255,.22);
  font-style: italic;
  margin: 0;
}

/* Accordion toggle button */
.footer-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 .65rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: rgba(255,255,255,.4);
  text-align: left;
  line-height: 1;
}
.footer-acc-btn:hover { color: rgba(255,255,255,.72); }
.footer-acc-icon {
  font-style: normal;
  font-size: .9rem;
  font-weight: 400;
  color: rgba(255,255,255,.3);
  flex-shrink: 0;
  margin-left: .4rem;
}

/* Accordion list */
.footer-acc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .18rem;
}
.footer-acc-list a {
  font-size: .75rem;
  color: rgba(255,255,255,.52);
  text-decoration: none;
  line-height: 1.45;
  display: block;
}
.footer-acc-list a:hover { color: #fff; text-decoration: underline; }

/* Address column */
.footer-address {
  font-style: normal;
  font-size: .78rem;
  line-height: 1.85;
}
.footer-address a { text-decoration: none; }
.footer-address a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-top: 1.1rem;
  padding-bottom: 1.75rem;
}
.footer-disclaimer { font-size:.8rem; line-height:1.6; }
.footer-links { display:flex; gap:1.25rem; flex-wrap:wrap; }
.footer-links a { font-size:.8rem; text-decoration:none; }
.footer-links a:hover { color:#fff; }
.footer-copy { font-size:.75rem; color:rgba(255,255,255,.35) !important; }

/* Cookie banner */
.cookie-banner {
  position:fixed; bottom:0; left:0; right:0;
  background:#1a1a1a; z-index:1000; border-top:2px solid var(--navy);
}
.cookie-inner {
  max-width:var(--bar-w); margin:0 auto; padding:.875rem 1.5rem;
  display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap;
}
.cookie-text { flex:1; }
.cookie-text p { font-size:.82rem; color:rgba(255,255,255,.8); margin-bottom:.1rem; }
.cookie-btn {
  font-family:var(--font); font-size:.82rem; font-weight:600;
  padding:.4rem 1rem; border-radius:2px; cursor:pointer;
  border:1px solid rgba(255,255,255,.35); background:var(--maroon); color:#fff;
}
.cookie-btn:hover { background:var(--deep); }

/* ── Join page ── */
.join-page {
  max-width: var(--bar-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .join-page { grid-template-columns: 1fr 420px; gap: 3.5rem; }
}
.join-left h1 { font-size: 2rem; font-weight: 800; margin-bottom: .4rem; color: #000; }
.join-sub { font-size: 1rem; color: #000; margin-bottom: 2rem; }
.join-feature-list { margin-bottom: 2rem; }
.join-feature { margin-bottom: 1.25rem; }
.join-feature strong { display: block; font-size: 1rem; margin-bottom: .2rem; color: #000; }
.join-feature p { font-size: .9rem; color: #000; margin: 0; }
.join-disclaimer {
  font-size: .85rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--border);
  background: var(--surface);
  line-height: 1.6;
  color: #000;
}
.join-form-box {
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  padding: 2rem;
  background: var(--bg);
}
.join-form-box h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; color: #000; }
.checkbox-label {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .9rem;
  line-height: 1.6;
  cursor: pointer;
  color: #000;
}
.checkbox-label input[type="checkbox"] { margin-top: .3rem; flex-shrink: 0; }

/* ── Success page ── */
.success-page {
  max-width: 580px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}
.success-box {
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  padding: 2.5rem 2rem;
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.success-box h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .75rem; color: #000; }
.success-box p { color: #000; }

/* ── Legal pages ── */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #000;
}
.legal-page h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 .5rem;
  color: #000;
}
.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.8;
  color: #000;
}
.legal-page ul,
.legal-page ol {
  padding-left: 1.5em;
  margin-bottom: 1rem;
}
.legal-page a { color: var(--maroon); }
.legal-page code {
  font-family: monospace;
  background: var(--surface);
  padding: .1rem .35rem;
  border-radius: 2px;
  font-size: .9em;
}

/* ── Origin Goal ── */
.origin-goal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0 2rem;
}
.origin-goal-subhead {
  font-size: .88rem;
  font-weight: 700;
  color: var(--purple);
  margin: 1rem 0 .35rem;
  text-transform: none;
  letter-spacing: 0;
}
.origin-goal-subhead:first-child { margin-top: 0; }
.origin-goal-quote {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: #000;
  margin: 0 0 .25rem;
  padding: 0;
  border: none;
  quotes: none;
}
.origin-goal-approach {
  font-size: .95rem;
  color: #000;
  margin-bottom: 0;
}
.origin-goal-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── Hamburger toggle button (hidden on desktop) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .site-header .bar { flex-direction: row; align-items: center; flex-wrap: nowrap; }
  .header-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    background: var(--navy);
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.15);
    z-index: 200;
  }
  .site-header.nav-open .header-actions { display: flex; }
  .header-actions .header-link { text-align: center; padding: .6rem 1rem; font-size: .9rem; }
  .header-actions .lang-switch { justify-content: center; padding: .35rem 0; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.8rem; }
  .card-header h1 { font-size: 1.8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .key-row { flex-direction:column; }
  .join-page { gap: 2rem; }
}
