/* Memava Chief of Staff: the 2030 side of the site.
   One custom property, --t (0 is 1984, 1 is 2030), is set on .cos-root by
   cos.js. Grounds, cards, radii, borders, shadows and blur all interpolate
   with it. Text colors snap at the midpoint (data-tone) so contrast never
   depends on a half-mixed ink. Without JS the page sits at --t: 1. */
@font-face { font-family: "Albert Sans"; src: url(/fonts/albert-sans-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url(/fonts/albert-sans-600.woff2) format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  /* 2030, light */
  --n-ground: #EEF3F1; --n-ink: #172321; --n-slate: #4F625F; --n-jade-text: #1B6356; --n-jade: #1F7A69;
  --n-card: rgba(255, 255, 255, .74); --n-edge: rgba(255, 255, 255, .95);
  --n-glow1: #C3E3D8; --n-glow2: #D8DFEB; --n-shadow: rgba(23, 35, 33, .38);
  /* 1984 */
  --o-ground: #EEEEE6; --o-ink: #111111; --o-slate: #444440; --o-card: #FFFFFF; --o-edge: #111111; --o-shadow: #111111;
  --font-new: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-old: Chicago, Charcoal, Geneva, "Helvetica Neue", Helvetica, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --n-ground: #0B1513; --n-ink: #E6EFEC; --n-slate: #A3B7B2; --n-jade-text: #7FD1BE;
    --n-card: rgba(255, 255, 255, .075); --n-edge: rgba(255, 255, 255, .12);
    --n-glow1: #123A32; --n-glow2: #172131; --n-shadow: rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  --n-ground: #0B1513; --n-ink: #E6EFEC; --n-slate: #A3B7B2; --n-jade-text: #7FD1BE;
  --n-card: rgba(255, 255, 255, .075); --n-edge: rgba(255, 255, 255, .12);
  --n-glow1: #123A32; --n-glow2: #172131; --n-shadow: rgba(0, 0, 0, .55);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { background: var(--n-ground); }
body { margin: 0; background: var(--n-ground); }

.skip { position: absolute; left: 12px; top: -64px; z-index: 50; background: #fff; color: #111; padding: 10px 14px; border: 2px solid #111; border-radius: 8px; font: 600 1rem system-ui, sans-serif; }
.skip:focus { top: 12px; }

.cos-root {
  --t: 1;
  --tp: calc(var(--t) * 100%);
  --ground: var(--n-ground); --card: var(--n-card); --edge: var(--n-edge); --accent: var(--n-jade);
  --bw: 1px; --r-card: 24px; --r-list: 20px; --r-btn: 14px; --blur: 18px;
  --shadow: 0 24px 50px -22px var(--n-shadow);
  --ink: var(--n-ink); --slate: var(--n-slate); --jade-text: var(--n-jade-text);
  position: relative; isolation: isolate; min-height: 100vh; overflow-x: clip;
  background-color: var(--ground); color: var(--ink);
  font: 400 1rem/1.6 var(--font-new);
}
@supports (color: color-mix(in oklab, red 50%, blue)) {
  .cos-root {
    --ground: color-mix(in oklab, var(--n-ground) var(--tp), var(--o-ground));
    --card: color-mix(in oklab, var(--n-card) var(--tp), var(--o-card));
    --edge: color-mix(in oklab, var(--n-edge) var(--tp), var(--o-edge));
    --accent: color-mix(in oklab, var(--n-jade) var(--tp), var(--o-ink));
    --bw: calc(2px - var(--t) * 1px);
    --r-card: calc(var(--t) * 24px); --r-list: calc(var(--t) * 20px); --r-btn: calc(var(--t) * 14px);
    --blur: calc(var(--t) * 18px);
    --shadow: calc((1 - var(--t)) * 4px) calc((1 - var(--t)) * 4px) 0 color-mix(in oklab, transparent var(--tp), var(--o-shadow)),
              0 calc(var(--t) * 24px) calc(var(--t) * 50px) calc(var(--t) * -22px) var(--n-shadow);
  }
}
/* The ink flips to the 1984 set only where the ground also moves toward 1984 (color-mix); elsewhere the page stays in its 2030 colors. */
@supports (color: color-mix(in oklab, red 50%, blue)) {
  .cos-root[data-tone="old"] { --ink: var(--o-ink); --slate: var(--o-slate); --jade-text: var(--o-ink); }
}
.h1-old::before { content: attr(data-t); }
.cos-root::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--t);
  background: radial-gradient(60rem 40rem at 8% -12%, var(--n-glow1), transparent 62%), radial-gradient(50rem 36rem at 100% 0%, var(--n-glow2), transparent 62%);
}
.cos-root::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: calc((1 - var(--t)) * .9);
  background-image: conic-gradient(#D9D9CE 25%, transparent 0 50%, #D9D9CE 0 75%, transparent 0); background-size: 4px 4px;
}
.cos-root[data-tone="old"] :is(h2, h3, .btn, .eyebrow, .cos-nav a, output, .chip, .mode button) { font-family: var(--font-old); letter-spacing: 0; }

a { color: var(--jade-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--jade-text); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* header */
.cos-head { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; padding: 14px 16px; }
.cos-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.cos-mark { color: var(--accent); }
.cos-nav { display: flex; flex-wrap: wrap; gap: 0 14px; flex: 1 1 auto; font-size: .95rem; }
.cos-nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.cos-nav a[aria-current] { color: var(--jade-text); font-weight: 600; text-decoration: underline; text-underline-offset: 8px; }
.cos-nav a:hover { text-decoration: underline; text-underline-offset: 8px; }
.icon-btn { min-height: 44px; padding: 0 14px; border: var(--bw) solid var(--ink); border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 500 .9rem var(--font-new); cursor: pointer; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 56px; }

/* type */
.eyebrow { margin: 0; font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jade-text); }
h1 { position: relative; margin: .3em 0 .4em; font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 600; }
.h1-new { display: block; opacity: var(--t); }
.h1-old { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: calc(1 - var(--t)); font: 700 clamp(1.5rem, 5.2vw, 3.1rem)/1.12 var(--font-old); text-transform: uppercase; letter-spacing: .02em; }
h2 { margin: 0 0 .5em; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.015em; font-weight: 600; }
h3 { margin: 0 0 .35em; font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.55; max-width: 60ch; color: var(--ink); }
.fine { font-size: .92rem; color: var(--slate); }
.big { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; margin-bottom: 1.2em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: var(--bw) solid var(--accent); border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 600 1rem var(--font-new); text-decoration: none; cursor: pointer; transition: transform .15s ease; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn.ghost { border-color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.btn:hover { transform: translateY(-1px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 .6em; }

/* cards */
.card { background: var(--card); border: var(--bw) solid var(--edge); border-radius: var(--r-card); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); padding: 20px; }
.block { padding: 40px 0; }

/* hero */
.hero { display: grid; gap: 28px; padding: 24px 0 40px; grid-template-areas: "copy" "stage" "dial"; }
.hero-copy { grid-area: copy; }
.hero-stage { grid-area: stage; }
.hero > .dial { grid-area: dial; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr .85fr; grid-template-areas: "copy stage" "dial stage"; align-items: center; padding-top: 48px; } }
.dial { margin-top: 26px; max-width: 480px; }
.dial-top { display: flex; justify-content: space-between; align-items: baseline; }
.dial label { font-weight: 600; }
output { font: 600 2.2rem/1 var(--font-new); font-variant-numeric: tabular-nums; color: var(--jade-text); }
.dial-scale { display: flex; justify-content: space-between; font-size: .85rem; color: var(--slate); }
input[type="range"] { width: 100%; height: 44px; margin: 4px 0 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: calc(var(--t) * 8px); background: linear-gradient(90deg, #111111, #1F7A69); border: 1px solid var(--edge); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: calc(var(--t) * 8px); background: linear-gradient(90deg, #111111, #1F7A69); border: 1px solid var(--edge); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: calc(var(--t) * 50%); background: var(--accent); border: 3px solid var(--ground); box-shadow: 0 0 0 2px var(--accent); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: calc(var(--t) * 50%); background: var(--accent); border: 3px solid var(--ground); box-shadow: 0 0 0 2px var(--accent); }
.dial .btn { margin-top: 10px; }
.preview { max-width: 460px; margin-inline: auto; }
.pv-bar { margin: -20px -20px 14px; padding: 0 12px; max-height: calc((1 - var(--t)) * 32px); overflow: hidden; opacity: calc(1 - var(--t)); background: repeating-linear-gradient(0deg, #111111 0 1px, transparent 1px 4px); font: 700 .8rem/32px var(--font-old); text-transform: uppercase; }
.pv-bar span { background: var(--ground); padding: 2px 8px; }
.pv-meta { font-weight: 600; margin-bottom: .3em; }
.pv-body { color: var(--ink); }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

/* what / steps */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards .card { border-radius: var(--r-list); }
.cards p { margin: 0; color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step p { margin: 0; }
.num { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: var(--bw) solid var(--accent); border-radius: calc(var(--t) * 50%); font-weight: 600; color: var(--jade-text); }

/* promise band */
.promise { margin-inline: calc(50% - 50vw); padding: 56px 16px; background: #1F7A69; color: #fff; }
@supports (color: color-mix(in oklab, red 50%, blue)) { .promise { background: color-mix(in oklab, #1F7A69 var(--tp), #111111); } }
.promise-in { max-width: 1120px; margin: 0 auto; }
.promise h2, .promise p, .promise li { color: #fff; }
.promise ul { padding-left: 1.2em; display: grid; gap: 8px; max-width: 70ch; }

/* demo */
.demo { margin-top: 24px; }
.demo-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.helper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.helper-face { width: 56px; height: 56px; color: var(--accent); }
.helper-face .eye { fill: var(--ground); transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.helper-face path { stroke: var(--ground); }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.helper input { min-height: 44px; width: 11em; padding: 0 12px; border: var(--bw) solid var(--ink); border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 600 1.05rem var(--font-new); }
.mode { display: inline-flex; border: var(--bw) solid var(--ink); border-radius: var(--r-btn); overflow: hidden; }
.mode button { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 500 .95rem var(--font-new); cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.tasks { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { min-height: 44px; padding: 8px 14px; border: var(--bw) solid var(--ink); border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 500 .95rem var(--font-new); cursor: pointer; text-align: left; }
.chip:disabled { opacity: .55; cursor: default; }
.log { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.log li { padding: 10px 14px; border-left: 3px solid var(--accent); background: rgba(127, 127, 127, .10); animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tapcard { margin: 12px 0; padding: 14px; border: var(--bw) dashed var(--accent); border-radius: var(--r-list); }
.cos-root [hidden] { display: none !important; }
.demo-foot { display: flex; gap: 8px; }

/* stations */
.stations { display: grid; gap: 28px; }
@media (min-width: 800px) { .stations { grid-template-columns: 1fr 1fr; } }
.track { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--accent); }
.soonlist { border-left: 3px dashed var(--slate); }
.stop { position: relative; padding: 8px 0 8px 14px; }
.stop::before { content: ""; position: absolute; left: -32px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ground); }
.stop.soon { color: var(--slate); }
.stop.soon::before { background: var(--ground); border: 3px solid var(--slate); }

/* real screenshots */
.shots { display: grid; gap: 20px; }
@media (min-width: 800px) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--r-list); border: var(--bw) solid var(--edge); box-shadow: var(--shadow); }
.shot figcaption { font-size: .9rem; color: var(--slate); margin-top: 8px; }

/* faq */
.block h3 { margin-top: 1.2em; }

/* beta form */
#beta-form { display: grid; gap: 10px; max-width: 520px; margin-top: 16px; }
#beta-form label { font-weight: 600; }
#beta-form input[type="text"], #beta-form input[type="email"] { min-height: 48px; padding: 0 14px; border: var(--bw) solid var(--ink); border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 1rem var(--font-new); }
#beta-form .btn { justify-self: start; }

.cos-foot { max-width: 1120px; margin: 0 auto; padding: 24px 16px 56px; color: var(--slate); font-size: .9rem; line-height: 1.2; }
.cos-foot a { color: var(--ink); display: inline-block; padding: 13px 6px; }


/* ---- v2: video hero with the mascot, tabs, the circle, the stepped application ---- */
html { scroll-behavior: smooth; }
.eyebrow .by { display: inline-block; white-space: nowrap; margin: 4px 0 0 10px; padding: 2px 10px; border: 1px solid var(--jade-text); border-radius: 999px; letter-spacing: .06em; font-size: .75rem; }
.quiet { color: var(--ink); min-height: 48px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.hero-stage { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.mascot-perch { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 12px; padding-left: 20px; min-height: 172px; }
memava-mascot { flex: none; cursor: pointer; }
.bubble { position: relative; align-self: center; margin: 0 0 40px; max-width: 18em; padding: 10px 14px; border: var(--bw) solid var(--ink); border-radius: var(--r-btn); background: var(--card); color: var(--ink); font-size: .92rem; line-height: 1.35; }
.bubble::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: inherit; border-left: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); transform: rotate(45deg); }
.bubble.pop { animation: rise .35s ease both; }
.screen { position: relative; border: var(--bw) solid var(--edge); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.screen img, .screen video { display: block; width: 100%; height: auto; }
.vid { position: relative; }
.vctl { position: absolute; right: 10px; bottom: 10px; min-height: 44px; min-width: 64px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: rgba(11, 21, 19, .72); color: #E6EFEC; font: 600 .85rem var(--font-new); cursor: pointer; }
.panel { margin-top: 18px; }
.panel .screen { max-width: 800px; margin-inline: auto; }
.panel > .fine { max-width: 800px; margin-inline: auto; text-align: center; }
.panel[hidden] { display: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tabs [role="tab"] { min-height: 44px; padding: 0 18px; border: var(--bw) solid var(--ink); border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 600 .98rem var(--font-new); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cos-root[data-tone="old"] .tabs [role="tab"] { font-family: var(--font-old); }
.block { padding: 28px 0; }

/* the circle: a closed room, in brass on the dark ground */
.circle { --brass: #D9A066; --copper: #B25B2E; margin-inline: calc(50% - 50vw); padding: 64px 16px; color: #E6EFEC; background: #0B1513 radial-gradient(50rem 28rem at 88% 0%, rgba(178, 91, 46, .28), transparent 62%), radial-gradient(40rem 26rem at 0% 100%, rgba(31, 122, 105, .22), transparent 62%); border-block: 1px solid rgba(217, 160, 102, .35); }
.circle-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 36px; }
@media (min-width: 960px) { .circle-in { grid-template-columns: 1fr 1.05fr; align-items: start; } }
.circle h2, .circle h3 { color: #E6EFEC; }
.circle .lede, .circle li, .circle .fine { color: #C9D6D2; }
.circle .eyebrow.gold { color: var(--brass); letter-spacing: .16em; }
.circle a { color: var(--brass); }
.circle .seal { float: right; margin: 0 0 8px 16px; transform: rotate(8deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); image-rendering: pixelated; }
.house { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.house li { padding: 12px 16px; border-left: 3px solid var(--brass); background: rgba(255, 255, 255, .04); }
.house strong { color: #E6EFEC; }
.circle .good { margin: 18px 0 0; padding: 14px 16px; border: 1px solid rgba(217, 160, 102, .55); border-radius: var(--r-list); background: rgba(217, 160, 102, .08); color: #E6EFEC; }
.circle .good strong { color: var(--brass); }
.apply { position: relative; background: rgba(255, 255, 255, .06); border-color: rgba(217, 160, 102, .45); color: #E6EFEC; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -28px #000; }
.apply-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: -6px 0 8px; }
.apply-head h3 { margin: 0; }
.progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 10px 0 14px; }
.progress li { flex: 1; padding: 6px 4px; border-top: 3px solid rgba(201, 214, 210, .35); font-size: .78rem; color: #A3B7B2; text-align: center; }
.progress li.done { border-top-color: var(--brass); color: #E6EFEC; }
.progress li[aria-current="step"] { border-top-color: var(--brass); color: var(--brass); font-weight: 600; }
.alert { margin: 8px 0; padding: 10px 14px; border: 1px solid #F0A596; border-radius: var(--r-btn); color: #F0A596; }
.apply fieldset { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.apply fieldset.on, .apply:not(.stepped) fieldset[data-step="1"] { display: block; }
.apply legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 1.05rem; color: var(--brass); }
.apply label { display: block; margin: 12px 0 4px; font-weight: 600; color: #E6EFEC; }
.apply .opt { font-weight: 400; color: #A3B7B2; }
.apply input[type="text"], .apply input[type="email"], .apply select, .apply textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(201, 214, 210, .5); border-radius: var(--r-btn); background: rgba(11, 21, 19, .6); color: #E6EFEC; font: 1rem var(--font-new); }
.apply textarea { resize: vertical; min-height: 96px; }
.apply ::placeholder { color: #8FA39E; }
.apply .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.apply .check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: #1F7A69; }
.apply-actions { display: flex; gap: 10px; margin: 18px 0 8px; flex-wrap: wrap; }
.apply .btn.primary { background: var(--brass); border-color: var(--brass); color: #0B1513; box-shadow: none; }
.apply .btn.ghost { border-color: rgba(201, 214, 210, .6); color: #E6EFEC; }
.apply #a-send { display: none; }
.apply.stepped.last #a-send { display: inline-flex; }
.apply.stepped.last #a-next { display: none; }
.apply:not(.stepped) #a-send { display: none; }
.apply .invalid { border-color: #F0A596; }
.big-seal { justify-self: center; transform: rotate(-6deg); image-rendering: pixelated; }
.received .hero-stage { align-items: center; }

/* the details: everything that used to be a long page, folded */
.details h2 { margin-bottom: 14px; }
.details details { border-top: 1px solid var(--edge); padding: 0; }
.details details:last-of-type { border-bottom: 1px solid var(--edge); }
.details summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--jade-text); transition: transform .2s; }
.details details[open] summary::after { transform: rotate(45deg); }
.details details > :not(summary) { margin-bottom: 18px; }
.details .faq h3 { font-size: 1.05rem; }

@media (max-width: 720px) {
  .cos-head { gap: 0 12px; }
  .cos-brand { order: 1; }
  .icon-btn { order: 2; margin-left: auto; }
  .cos-nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cos-nav::-webkit-scrollbar { display: none; }
  .cos-nav a { white-space: nowrap; flex: none; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The Memava mascot mark: black in light, bright green in dark (follows the theme switch). */
.cos-mark .b, .cos-mark .i { fill: #111110; }
.cos-mark .p { fill: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cos-mark .b { fill: #76D7BC; }
  :root:not([data-theme="light"]) .cos-mark .p { fill: #EFFBF7; }
  :root:not([data-theme="light"]) .cos-mark .i { fill: #0B1513; }
}
:root[data-theme="dark"] .cos-mark .b { fill: #76D7BC; }
:root[data-theme="dark"] .cos-mark .p { fill: #EFFBF7; }
:root[data-theme="dark"] .cos-mark .i { fill: #0B1513; }
