/* ─────────────────────────────────────────────────────────────────────────────
   SCARLETT — LIGHT ENTRANCE (9.10.2026). Loaded LAST, scoped to html.light.
   Part 1 = the warm-light portrait melt (preview 9.10). Part 2 (bottom) = the
   merge with Codex's layout: masthead, a smaller portrait beside a wider,
   more readable column, her personality at the door, the calm membership card.

   The ground is sampled from the L1 portrait's own backdrop (warm light from
   the upper left, greige to the right): edges measured #d0beab (left) and
   #bcb0a5 (right), the glow #f8e9d4. The page continues that light, so the face
   — still or live — has no frame edge: on a phone it fills the screen, on a
   wide screen its column is feathered into the same ground on every side.
   Type stays hers (Georgia / EB Garamond); only the ink changes, from cream on
   black to espresso on cream, with the gold deepened to bronze for contrast.
   ───────────────────────────────────────────────────────────────────────────── */
html.light {
  --ground-glow: #F2E6D5;
  --ground: #D9CAB9;
  --ground-mid: #CDBEAF;
  --ground-deep: #B9AA9C;
  --paper: #F4ECE1;
  --paper-rgb: 244,236,225;
  --veil-rgb: 236,225,211;
  --ink: #2B221C;
  --ink-rgb: 43,34,28;
  --bronze: #8A6A45;
  --bronze-rgb: 138,106,69;
  --gold: #8A6A45;
  --gold-dim: rgba(138,106,69,0.55);
  --white: #2B221C;
  --text-dim: rgba(43,34,28,0.62);
  --face-w: min(68vh, 56vw);
}
html.light, html.light body {
  background: radial-gradient(120% 90% at 20% 6%, var(--ground-glow) 0%, var(--ground) 36%, var(--ground-mid) 64%, var(--ground-deep) 100%) fixed;
  color: var(--ink);
}

/* ── the face ─────────────────────────────────────────────────────────────── */
/* The presence loops are the old dark portrait; in the light look the L1 still
   holds the face until LiveAvatar (L1) takes over. */
html.light #scarlett-video-landing, html.light #scarlett-video-main,
html.light #scarlett-video-move, html.light #scarlett-video-talk,
html.light #scarlett-still-closed { display: none !important; }
html.light #scarlett-landing-still { display: none !important; }
html.light #scarlett-still { background: transparent !important; object-position: 50% 30%; }
html.light #scarlett-live { background: transparent; }

/* states: a breath of warmth, never the old cinema darkening */
html.light #scarlett-body.state-idle      { filter: none; }
html.light #scarlett-body.state-listening { filter: brightness(1.03) saturate(1.04); }
html.light #scarlett-body.state-thinking  { filter: brightness(0.97) saturate(0.92); }
html.light #scarlett-body.state-speaking  { filter: brightness(1.04) saturate(1.06); }

/* wide screens: one portrait column, feathered on all sides into the ground */
@media (min-aspect-ratio: 1/1) {
  html.light #scarlett-body {
    left: max(0px, calc((100% - var(--scarlett-panel) - var(--face-w)) / 2)) !important;
    right: auto !important; width: var(--face-w) !important;
    transition: left .7s ease;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(to bottom, #000 0, #000 66%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(to bottom, #000 0, #000 66%, transparent 100%);
            mask-composite: intersect;
  }
  html.light #scarlett-still { object-fit: cover !important; object-position: 50% 22% !important; }
  html.light #scarlett-live {
    left: max(0px, calc((100% - var(--scarlett-panel) - var(--face-w)) / 2)) !important;
    width: var(--face-w) !important; object-fit: cover !important; object-position: 50% 22% !important;
    transition: opacity .9s ease, left .7s ease;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(to bottom, #000 0, #000 66%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(to bottom, #000 0, #000 66%, transparent 100%);
            mask-composite: intersect;
  }
  /* at the door the face steps left and the words sit beside her, not on her */
  html.light:has(#scarlett-consent-gate.visible) { --scarlett-panel: 40vw; }
}

/* ── light, not cinema: overlay, vignette, aura ───────────────────────────── */
html.light #scarlett-overlay {
  background: linear-gradient(to bottom, rgba(var(--veil-rgb),0) 0%, rgba(var(--veil-rgb),0) 58%, rgba(var(--veil-rgb),0.38) 84%, rgba(var(--veil-rgb),0.62) 100%);
}
html.light #scarlett-vignette.state-idle      { box-shadow: inset 0 0 220px 40px rgba(112,88,66,0.20); }
html.light #scarlett-vignette.state-listening { box-shadow: inset 0 0 300px 10px rgba(112,88,66,0.10); }
html.light #scarlett-vignette.state-thinking  { box-shadow: inset 0 0 180px 60px rgba(112,88,66,0.26); }
html.light #scarlett-vignette.state-speaking  { box-shadow: inset 0 0 380px 4px rgba(112,88,66,0.08); }
html.light #scarlett-aura.thinking { animation-name: aura-think-warm; }
@keyframes aura-think-warm {
  0%,100% { box-shadow: inset 0 0 100px 15px rgba(150,118,88,0.04); }
  50%      { box-shadow: inset 0 0 170px 50px rgba(150,118,88,0.10); }
}

/* ── the door (consent) ───────────────────────────────────────────────────── */
html.light #scarlett-consent-gate {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  align-items: flex-end; padding: 0 0 max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(var(--veil-rgb),0) 0%, rgba(var(--veil-rgb),0) 44%, rgba(var(--veil-rgb),0.80) 57%, rgba(var(--paper-rgb),0.95) 70%, rgba(var(--paper-rgb),0.97) 100%);
}
html.light #scarlett-consent-box { margin: auto auto 0; padding: 0 22px; }
html.light #scarlett-consent-box h2 {
  color: var(--ink); font-family: 'EB Garamond', Garamond, Georgia, serif; font-style: italic;
  font-size: 23px; letter-spacing: 0.03em; margin-bottom: 14px;
}
html.light #scarlett-consent-box p {
  color: rgba(var(--ink-rgb),0.74); font-family: 'EB Garamond', Garamond, Georgia, serif;
  font-size: 16px; line-height: 1.55; margin-bottom: 18px;
}
html.light #scarlett-consent-legal { color: rgba(var(--ink-rgb),0.52) !important; margin-bottom: 16px !important; }
html.light #scarlett-consent-legal a { color: var(--bronze) !important; text-decoration-color: rgba(var(--bronze-rgb),0.45) !important; }
html.light #scarlett-consent-btn {
  color: var(--ink); border-color: rgba(var(--bronze-rgb),0.62); background: rgba(var(--paper-rgb),0.35);
  font-size: 12.5px; letter-spacing: 0.32em; padding: 15px;
}
html.light #scarlett-consent-btn:not(:disabled):hover { color: var(--ink); background: rgba(var(--bronze-rgb),0.08); border-color: var(--bronze); }
html.light #scarlett-lang-row { margin-top: 14px; }
html.light #scarlett-lang-select { color: rgba(var(--ink-rgb),0.6); border-bottom-color: rgba(var(--bronze-rgb),0.32); }
html.light #scarlett-lang-select option { background: var(--paper); color: var(--ink); }
/* phone: lift the photograph so her face clears the words */
@media (max-aspect-ratio: 1/1) {
  html.light:has(#scarlett-consent-gate.visible) #scarlett-deep { transform: translateY(-9%); transition: transform 1s ease; }
  html.light #scarlett-deep { transition: transform 1s ease; }
}
/* wide screen: the words in the light to her right */
@media (min-aspect-ratio: 1/1) {
  html.light #scarlett-consent-gate {
    align-items: center; justify-content: flex-end; padding: 0 6vw 0 0;
    background: linear-gradient(to right, rgba(var(--veil-rgb),0) 0%, rgba(var(--veil-rgb),0) 50%, rgba(var(--paper-rgb),0.55) 64%, rgba(var(--paper-rgb),0.72) 100%);
  }
  html.light #scarlett-consent-box { margin: auto 0; max-width: 400px; width: 30vw; min-width: 340px; }
}

/* returning visitor: ENTER on her own light */
html.light #scarlett-begin-overlay { background: rgba(var(--veil-rgb),0.10) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.light #scarlett-begin-overlay button {
  color: var(--ink) !important; border-color: rgba(var(--bronze-rgb),0.6) !important;
  background: rgba(var(--paper-rgb),0.62) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: Georgia, 'Times New Roman', serif !important; letter-spacing: 0.32em !important;
}

/* ── conversation ─────────────────────────────────────────────────────────── */
html.light #scarlett-transcript {
  background: linear-gradient(to right, rgba(var(--paper-rgb),0) 0, rgba(var(--paper-rgb),0.90) 56px, rgba(var(--paper-rgb),0.94) 100%);
  border-left: none; color: rgba(var(--ink-rgb),0.62); padding-left: 44px; width: 340px;
}
@media (min-aspect-ratio: 1/1) { html.light:has(#scarlett-transcript.visible) { --scarlett-panel: 340px; } }
@media (max-width: 640px) {
  html.light #scarlett-transcript {
    background: linear-gradient(to bottom, rgba(var(--paper-rgb),0) 0, rgba(var(--paper-rgb),0.86) 54px, rgba(var(--paper-rgb),0.95) 100%);
    border-top: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 44px; padding-left: 20px; width: 100%;
  }
}
html.light .scarlett-turn.user { color: rgba(var(--ink-rgb),0.56); }
html.light .scarlett-turn.user::before { color: rgba(var(--ink-rgb),0.25); }
html.light .scarlett-turn.scarlett::before { color: rgba(var(--bronze-rgb),0.85); }
html.light #scarlett-transcript.visible .scarlett-turn.scarlett { color: var(--ink); }
html.light .scarlett-share-btn { color: rgba(var(--bronze-rgb),0); }
html.light .scarlett-turn.scarlett:hover .scarlett-share-btn, html.light .scarlett-share-btn:focus { color: rgba(var(--bronze-rgb),0.8); }
@media (hover: none) { html.light .scarlett-share-btn { color: rgba(var(--bronze-rgb),0.45); } }

html.light .scarlett-opener { color: rgba(var(--ink-rgb),0.84); border-color: rgba(var(--bronze-rgb),0.42); background: rgba(var(--paper-rgb),0.4); }
html.light .scarlett-opener:hover, html.light .scarlett-opener:focus-visible { color: var(--ink); border-color: rgba(var(--bronze-rgb),0.8); background-color: rgba(var(--bronze-rgb),0.07); }
html.light #scarlett-voice-offer { color: rgba(var(--bronze-rgb),0.92) !important; text-decoration-color: rgba(var(--bronze-rgb),0.35) !important; }
html.light #scarlett-voice-reassure { color: rgba(var(--ink-rgb),0.45); }
html.light #scarlett-invite-line a, html.light #scarlett-ask-cta { color: var(--bronze) !important; text-decoration-color: rgba(var(--bronze-rgb),0.4) !important; }
html.light #scarlett-ask-input { background: rgba(255,255,255,0.5) !important; border-color: rgba(var(--bronze-rgb),0.35) !important; color: var(--ink) !important; }

html.light #scarlett-text-fallback {
  background: rgba(var(--paper-rgb),0.97); border-top: 1px solid rgba(var(--bronze-rgb),0.16);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.light #scarlett-text-input { background: rgba(255,255,255,0.55); border-color: rgba(var(--ink-rgb),0.13); color: var(--ink); }
html.light #scarlett-text-input::placeholder { color: rgba(var(--ink-rgb),0.38); }
html.light #scarlett-text-input:focus { border-color: rgba(var(--bronze-rgb),0.6); }
html.light #scarlett-text-send { color: var(--bronze); border-color: rgba(var(--bronze-rgb),0.55); }
html.light #scarlett-text-send:hover { background: rgba(var(--bronze-rgb),0.08); }
html.light #scarlett-msg-counter { color: rgba(var(--ink-rgb),0.5); }

html.light #scarlett-voice-float { background: rgba(var(--paper-rgb),0.7); border-color: rgba(var(--bronze-rgb),0.4); color: var(--bronze); }
html.light #scarlett-voice-float:hover { background: rgba(var(--paper-rgb),0.92); color: var(--ink); }
html.light #scarlett-mic-btn { color: var(--bronze); border-color: rgba(var(--bronze-rgb),0.45); background: rgba(var(--paper-rgb),0.45); }
html.light #scarlett-mic-btn.listening { color: var(--ink); border-color: rgba(var(--ink-rgb),0.5); }
html.light #scarlett-mode-toggle { color: rgba(var(--ink-rgb),0.5); border-color: rgba(var(--ink-rgb),0.14); background: rgba(var(--paper-rgb),0.5); }
html.light #scarlett-status { color: rgba(var(--ink-rgb),0.6); }
html.light #scarlett-status.long { color: var(--bronze); }
html.light #scarlett-reconnect-btn { color: var(--bronze); border-color: rgba(var(--bronze-rgb),0.45); background: rgba(var(--paper-rgb),0.6); }

/* ── footer ───────────────────────────────────────────────────────────────── */
html.light #scarlett-legal-footer { color: rgba(var(--ink-rgb),0.78); text-shadow: 0 1px 12px rgba(var(--paper-rgb),0.9); }
html.light #scarlett-legal-footer .slf-invite { color: rgba(var(--ink-rgb),0.84); }
html.light #scarlett-legal-footer .slf-invite a { border-bottom-color: rgba(var(--bronze-rgb),0.5); }
html.light #scarlett-legal-footer .slf-social a { color: var(--bronze); border-color: rgba(var(--bronze-rgb),0.42); background: rgba(var(--paper-rgb),0.35); }
html.light #scarlett-legal-footer .slf-links a { text-decoration-color: rgba(var(--bronze-rgb),0.5); }

/* iteration 2 — the oldest line of the transcript dissolves instead of sitting on her chin;
   the desktop panel opens over a wider breath of light so there is no seam beside her */
@media (max-width: 640px) {
  html.light #scarlett-transcript {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 22px, #000 70px);
            mask-image: linear-gradient(to bottom, transparent 0, transparent 22px, #000 70px);
  }
}
@media (min-width: 641px) {
  html.light #scarlett-transcript {
    background: linear-gradient(to right, rgba(var(--paper-rgb),0) 0, rgba(var(--paper-rgb),0.62) 60px, rgba(var(--paper-rgb),0.92) 120px, rgba(var(--paper-rgb),0.94) 100%);
    padding-left: 70px; width: 380px;
  }
}
@media (min-aspect-ratio: 1/1) { html.light:has(#scarlett-transcript.visible) { --scarlett-panel: 380px; } }
html.light #scarlett-text-fallback { background: linear-gradient(to bottom, rgba(var(--paper-rgb),0.9), rgba(var(--paper-rgb),0.98)); border-top-color: rgba(var(--bronze-rgb),0.12); }

/* iteration 3 */
/* phone, at the door: the whole head stays in frame — smaller and higher, chin clear of the words */
@media (max-aspect-ratio: 1/1) {
  html.light:has(#scarlett-consent-gate.visible) #scarlett-deep { transform: translateY(-6%) scale(0.9); transform-origin: 50% 0; }
}
/* Hebrew / Arabic at the door: right-to-left paragraphs, upright letters, no tracking */
html.light #scarlett-consent-box:has(#scarlett-consent-legal[dir="rtl"]) { direction: rtl; }
html.light #scarlett-consent-box:has(#scarlett-consent-legal[dir="rtl"]) h2 { font-style: normal; font-family: 'Frank Ruhl Libre', 'EB Garamond', Georgia, serif; letter-spacing: 0; }
html.light #scarlett-consent-box:has(#scarlett-consent-legal[dir="rtl"]) p { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 15.5px; }
html.light #scarlett-consent-box:has(#scarlett-consent-legal[dir="rtl"]) #scarlett-consent-btn { letter-spacing: 0.08em; font-size: 14px; }
/* wide screen, returning visitor: ENTER below her chin, never across her mouth */
@media (min-aspect-ratio: 1/1) {
  html.light #scarlett-begin-overlay { align-items: flex-end !important; padding-bottom: max(150px, 21vh) !important; box-sizing: border-box; }
}
/* the scaled door keeps the photograph wider than the screen — no ground at the sides */
@media (max-aspect-ratio: 1/1) {
  html.light:has(#scarlett-consent-gate.visible) #scarlett-still { left: -7%; width: 114%; }
}
/* her newest line always starts below the dissolve */
@media (max-width: 640px) {
  html.light #scarlett-transcript { padding-top: 76px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 18px, #000 66px);
            mask-image: linear-gradient(to bottom, transparent 0, transparent 18px, #000 66px); }
}
/* final: no dissolve on the text itself (the transcript scrolls, so the dissolve ate her newest line);
   a slightly taller sheet of light instead, its top edge soft */
@media (max-width: 640px) {
  html.light #scarlett-transcript { -webkit-mask-image: none; mask-image: none; padding-top: 40px; height: 46vh;
    background: linear-gradient(to bottom, rgba(var(--paper-rgb),0) 0, rgba(var(--paper-rgb),0.84) 36px, rgba(var(--paper-rgb),0.95) 100%); }
}

/* ═════════════════════════════════════════════════════════════════════════════
   PART 2 — THE MERGE (9.10.2026)
   ═════════════════════════════════════════════════════════════════════════════ */
html.light {
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'EB Garamond', Garamond, Georgia, serif;
  --serif-he: 'Frank Ruhl Libre', 'EB Garamond', Georgia, serif;
  --ink-soft: rgba(43,34,28,0.74);
  --ink-quiet: rgba(43,34,28,0.56);
  --hair: rgba(138,106,69,0.24);
  --col: min(48vw, 640px);          /* the reading column, right of her */
}
html.light body { font-family: var(--serif); }
html.light [dir="rtl"], html.light [lang="he"] { --serif: var(--serif-he); }

/* ── masthead ─────────────────────────────────────────────────────────────── */
#scarlett-masthead { display: none; }
html.light #scarlett-masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10002; display: flex; align-items: flex-start;
  justify-content: space-between; padding: max(26px, env(safe-area-inset-top)) 5vw 0; pointer-events: none; direction: ltr;
}
html.light #scarlett-masthead a { pointer-events: auto; }
html.light #sm-wordmark { font-family: 'EB Garamond', Georgia, serif; font-style: italic; font-size: 31px; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: 0.005em; }
html.light #sm-tagline { display: block; margin-top: 10px; font: 500 9.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; font-style: normal; color: var(--ink-soft); }
html.light #sm-tagline:lang(he), html.light #sm-tagline:lang(ar) { letter-spacing: 0.04em; }
html.light #sm-unsaid { font: 500 13px var(--sans); color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(var(--ink-rgb),0.42); padding: 6px 0 4px; margin-top: 2px; }
html.light #sm-unsaid:hover { border-bottom-color: var(--ink); }
/* while the membership card or a legal page is up, the masthead steps back */
html.light:has(#scarlett-limit-modal) #scarlett-masthead,
html.light:has(#scarlett-legal-overlay[style*="block"]) #scarlett-masthead { display: none; }

/* ── the portrait: smaller, beside the words (wide screens) ──────────────── */
@media (min-aspect-ratio: 1/1) {
  html.light { --face-w: min(66vh, 40vw); }
  html.light:has(#scarlett-consent-gate.visible) { --scarlett-panel: var(--col); }
  html.light:has(#scarlett-begin-overlay[style*="flex"]) { --scarlett-panel: var(--col); }
  html.light:has(#scarlett-transcript.visible) { --scarlett-panel: var(--col); }
  html.light #scarlett-body, html.light #scarlett-live { top: 92px !important; height: calc(100% - 92px) !important; }
}

/* ── the door ─────────────────────────────────────────────────────────────── */
html.light #scarlett-consent-box { text-align: start; }
html.light #se-eyebrow { font: 500 11px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 18px; }
html.light #se-headline { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.3vw, 52px); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 18px; }
html.light #se-intro { font-family: var(--serif); font-size: 20px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 26px; max-width: 30em; }
html.light #se-excerpt { margin: 0 0 26px; padding: 2px 0 2px 20px; border-left: 1px solid rgba(var(--bronze-rgb),0.45); }
html.light #se-label { font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 12px; }
html.light .se-turn { display: block; }
html.light .se-user { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-quiet); margin-bottom: 12px; }
html.light .se-user > span { display: block; }
html.light .se-gap { color: rgba(var(--ink-rgb),0.35); line-height: 1.1; }
html.light #se-her-name { display: block; font: 500 10px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 7px; }
html.light #se-ex3 { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); }
/* the safety note: present, small, before the button (the click is the agreement) */
html.light #scarlett-consent-box #scarlett-consent-title { font: 500 10.5px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-quiet); font-style: normal; margin: 0 0 8px; padding-top: 18px; border-top: 1px solid var(--hair); }
html.light #scarlett-consent-box #scarlett-consent-body { font: 400 13.5px/1.6 var(--sans); color: var(--ink-soft); margin: 0 0 12px; max-width: 34em; }
html.light #scarlett-consent-legal { font: 400 12px/1.55 var(--sans) !important; color: var(--ink-quiet) !important; text-align: start; max-width: none !important; margin: 0 0 16px !important; }
html.light #scarlett-consent-legal a { color: var(--ink) !important; text-decoration: underline; text-decoration-color: rgba(var(--bronze-rgb),0.5) !important; text-underline-offset: 3px; }
html.light #scarlett-consent-btn {
  display: block; width: 100%; min-height: 54px; padding: 16px 22px; border: 1px solid var(--ink); background: var(--ink); color: #FBF4EA;
  font: 500 14.5px/1 var(--sans); letter-spacing: 0.04em; text-transform: none; border-radius: 1px; cursor: pointer;
}
html.light #scarlett-consent-btn:not(:disabled):hover { background: #43342A; color: #FBF4EA; border-color: #43342A; }
html.light #se-watch { display: block; margin: 16px 0 0; font: 500 14px/1.4 var(--sans); color: var(--ink); text-decoration: none; }
html.light #se-watch-t { border-bottom: 1px solid rgba(var(--ink-rgb),0.45); padding-bottom: 2px; }
html.light #se-watch-hint { display: block; margin-top: 6px; font: 400 12.5px/1.45 var(--sans); color: var(--ink-quiet); }
html.light #se-privacy { display: block; margin: 18px 0 0; font: 400 12px/1.5 var(--sans); color: var(--ink-quiet); text-decoration: underline; text-decoration-color: rgba(var(--bronze-rgb),0.35); text-underline-offset: 3px; }
html.light #scarlett-lang-row { text-align: start; margin-top: 16px; }
html.light #scarlett-lang-select { text-align: start; text-align-last: auto; padding-left: 0; font: 400 12px var(--sans); letter-spacing: 0.04em; }
html.light #scarlett-consent-box[dir="rtl"] #se-excerpt { border-left: 0; border-right: 1px solid rgba(var(--bronze-rgb),0.45); padding: 2px 20px 2px 0; }
html.light #scarlett-consent-box[dir="rtl"] #se-eyebrow, html.light #scarlett-consent-box[dir="rtl"] #se-label,
html.light #scarlett-consent-box[dir="rtl"] #se-her-name, html.light #scarlett-consent-box[dir="rtl"] #scarlett-consent-title { letter-spacing: 0.03em; }
html.light #scarlett-consent-box[dir="rtl"] h2#scarlett-consent-title { font-family: var(--sans); font-style: normal; }
html.light #scarlett-consent-box[dir="rtl"] p#scarlett-consent-body { font: 400 14px/1.65 var(--sans); }
html.light #scarlett-consent-box[dir="rtl"] #se-headline { letter-spacing: 0; line-height: 1.2; }
html.light #scarlett-consent-box[dir="rtl"] #scarlett-consent-btn { letter-spacing: 0; font-size: 15.5px; }

@media (min-aspect-ratio: 1/1) {
  html.light #scarlett-consent-gate {
    justify-content: flex-end; align-items: center; padding: 104px 5vw 40px 0; background: none;
  }
  html.light #scarlett-consent-box { margin: auto 0; width: calc(var(--col) - 5vw); max-width: 560px; min-width: 380px; padding: 0; }
}
@media (min-aspect-ratio: 1/1) and (max-height: 860px) {
  html.light #se-headline { font-size: clamp(32px, 2.9vw, 44px); margin-bottom: 14px; }
  html.light #se-intro { font-size: 18.5px; margin-bottom: 20px; }
  html.light #se-excerpt { margin-bottom: 20px; }
  html.light #se-ex3 { font-size: 19.5px; }
  html.light .se-user { font-size: 16px; }
}

/* phone: her head in the upper part, the words on paper below */
@media (max-aspect-ratio: 1/1) {
  html.light #sm-wordmark { font-size: 25px; }
  html.light #sm-tagline { font-size: 8.5px; margin-top: 8px; }
  html.light #sm-unsaid { font-size: 12px; }
  html.light #scarlett-masthead { padding: max(18px, env(safe-area-inset-top)) 20px 0; }
  /* the door transform sits on the photograph itself: #scarlett-deep and #scarlett-breath
     carry the breathing animations, which would override a transform placed on them */
  html.light:has(#scarlett-consent-gate.visible) #scarlett-deep { transform: none; }
  html.light:has(#scarlett-consent-gate.visible) #scarlett-still { transform: translateY(46px) scale(0.72); transform-origin: 50% 0; }
  html.light #scarlett-still { transition: transform 1s ease; }
  html.light #scarlett-consent-gate {
    align-items: flex-start; padding: 0; overflow-y: auto;
    background: linear-gradient(to bottom, rgba(var(--veil-rgb),0) 0, rgba(var(--veil-rgb),0) 38vh, rgba(var(--paper-rgb),0.92) 50vh, rgba(var(--paper-rgb),0.98) 58vh, rgba(var(--paper-rgb),0.98) 100%);
  }
  html.light #scarlett-consent-box {
    margin: 0 auto; width: 100%; max-width: 560px; padding: 49vh 24px max(28px, env(safe-area-inset-bottom));
    display: flex; flex-direction: column;
  }
  html.light #se-headline { font-size: 33px; line-height: 1.12; margin-bottom: 12px; }
  html.light #se-intro { font-size: 18px; margin-bottom: 18px; }
  html.light #se-eyebrow { margin-bottom: 12px; }
  /* the agreement and the button come before the excerpt on a phone */
  html.light #se-excerpt { order: 10; margin: 26px 0 0; }
  html.light #se-privacy { order: 11; }
  html.light #scarlett-lang-row { order: 12; }
  html.light #se-ex3 { font-size: 19px; }
  html.light #scarlett-consent-box #scarlett-consent-title { padding-top: 14px; }
  html.light #scarlett-consent-box #scarlett-consent-body { font-size: 13px; }
}

/* returning visitor: "Talk to her" in the column (wide) / below the chin (phone) */
html.light #scarlett-begin-overlay button {
  font: 500 14.5px/1 var(--sans) !important; letter-spacing: 0.04em !important; text-transform: none !important;
  background: var(--ink) !important; color: #FBF4EA !important; border: 1px solid var(--ink) !important; padding: 18px 56px !important; border-radius: 1px;
}
@media (min-aspect-ratio: 1/1) {
  html.light #scarlett-begin-overlay { justify-content: flex-end !important; align-items: center !important; padding: 0 calc((var(--col) - 300px) / 2 + 2vw) 0 0 !important; }
}

/* ── the conversation: a wider, readable column ───────────────────────────── */
@media (min-width: 641px) {
  html.light #scarlett-transcript {
    width: var(--col) !important; padding: 112px 5vw 150px 64px !important; font-size: 16px;
    background: linear-gradient(to right, rgba(var(--paper-rgb),0) 0, rgba(var(--paper-rgb),0.72) 56px, rgba(var(--paper-rgb),0.9) 120px, rgba(var(--paper-rgb),0.92) 100%) !important;
  }
  html.light #scarlett-transcript.visible .scarlett-turn.scarlett { font-family: var(--serif); font-style: normal; font-size: 22px; line-height: 1.5; letter-spacing: 0; }
  html.light #scarlett-transcript .scarlett-turn.user { font-family: var(--serif); font-size: 18px; line-height: 1.55; padding-inline-start: 18px; border-inline-start: 1px solid rgba(var(--bronze-rgb),0.35); }
  html.light #scarlett-transcript .scarlett-turn.user::before { display: none; }
  html.light #scarlett-transcript .scarlett-turn.scarlett::before { font: 500 10px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 9px; }
  html.light #scarlett-transcript .scarlett-turn { margin-bottom: 26px; }
  html.light .scarlett-opener { font-family: var(--sans); font-style: normal; font-size: 14px; padding: 10px 16px; min-height: 40px; }
  /* the composer sits in the column, under the words */
  html.light #scarlett-text-fallback.visible {
    left: auto !important; right: 0 !important; width: var(--col) !important; padding: 18px 5vw 26px 64px !important;
    background: linear-gradient(to bottom, rgba(var(--paper-rgb),0.6), rgba(var(--paper-rgb),0.97) 30%) !important; border-top: 0 !important;
  }
  html.light #scarlett-text-input { font: 400 16px/1.5 var(--sans) !important; padding: 14px 16px !important; min-height: 54px; }
  html.light #scarlett-voice-float { right: calc(5vw - 6px) !important; bottom: 116px !important; }
  html.light #scarlett-mode-toggle { right: calc(5vw + 50px) !important; }
}
html.light #scarlett-transcript.visible .scarlett-turn.scarlett[dir="rtl"],
html.light #scarlett-transcript .scarlett-turn[dir="rtl"] { font-family: var(--serif-he); }
@media (max-width: 640px) {
  html.light #scarlett-transcript.visible .scarlett-turn.scarlett { font-style: normal; font-size: 19px; line-height: 1.5; letter-spacing: 0; }
  html.light #scarlett-transcript .scarlett-turn.user { font-size: 16.5px; line-height: 1.5; }
  html.light .scarlett-opener { font-family: var(--sans); font-style: normal; font-size: 14px; }
  html.light:has(#scarlett-transcript.visible) #scarlett-masthead { display: none; }
}

/* ── the membership card (calm, honest) ───────────────────────────────────── */
html.light #scarlett-limit-modal {
  position: fixed; inset: 0; z-index: 10003; display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; -webkit-overflow-scrolling: touch; padding: max(28px, 5vh) 16px 32px;
  background: rgba(var(--veil-rgb),0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 500ms cubic-bezier(0.22,1,0.36,1);
}
html.light #scarlett-limit-modal.open { opacity: 1; }
html.light #scarlett-limit-card {
  width: 100%; max-width: 460px; margin: auto; background: #F6EFE5; border: 1px solid rgba(var(--bronze-rgb),0.22);
  padding: 38px 36px 26px; box-shadow: 0 30px 90px -40px rgba(80,60,44,0.45); text-align: start; color: var(--ink);
  transform: translateY(10px); transition: transform 500ms cubic-bezier(0.22,1,0.36,1);
}
html.light #scarlett-limit-modal.open #scarlett-limit-card { transform: none; }
html.light #scarlett-limit-card .sl-eyebrow { font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 16px; }
html.light #scarlett-limit-card h2 { font-family: var(--serif); font-weight: 400; font-style: normal; font-size: 34px; line-height: 1.15; margin: 0 0 12px; color: var(--ink); }
html.light #scarlett-limit-card .sl-intro { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 18px; }
html.light #scarlett-limit-card .sl-benefits { list-style: none; margin: 0 0 22px; padding: 0; font: 400 14.5px/1.5 var(--sans); color: var(--ink-soft); }
html.light #scarlett-limit-card .sl-benefits li { padding: 9px 0; border-bottom: 1px solid var(--hair); }
html.light #scarlett-limit-card .sl-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 400 14px var(--sans); color: var(--ink-soft); }
html.light #scarlett-limit-card .sl-price strong { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; color: var(--ink); }
html.light #scarlett-limit-card .sl-billing { font: 400 13.5px/1.6 var(--sans); color: var(--ink-soft); margin: 0 0 6px; }
html.light #scarlett-limit-card .sl-date { white-space: nowrap; color: var(--ink); }
html.light #scarlett-limit-card .sl-cardnote { font: 400 12.5px/1.5 var(--sans); color: var(--ink-quiet); margin: 0 0 20px; }
html.light #scarlett-membership-btn {
  display: block; width: 100%; text-align: center; background: var(--ink); color: #FBF4EA; border: 1px solid var(--ink);
  padding: 17px 20px; font: 500 14.5px/1 var(--sans); letter-spacing: 0.03em; text-decoration: none; border-radius: 1px; cursor: pointer;
}
html.light #scarlett-membership-btn:hover { background: #43342A; }
html.light #scarlett-membership-btn-yearly { display: block; text-align: center; margin: 14px 0 0; font: 400 13.5px/1.5 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: rgba(var(--bronze-rgb),0.45); text-underline-offset: 3px; }
html.light #scarlett-limit-card .sl-referral { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); text-align: center; }
html.light #scarlett-referral-btn { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
html.light #scarlett-limit-card .sl-privacy { display: block; margin: 14px 0 0; text-align: center; font: 400 12px/1.5 var(--sans); color: var(--ink-quiet); text-decoration: underline; text-decoration-color: rgba(var(--bronze-rgb),0.35); text-underline-offset: 3px; }
html.light #scarlett-limit-card .sl-later { display: block; margin: 12px auto 0; background: none; border: 0; padding: 8px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-quiet); cursor: pointer; }
html.light #scarlett-limit-card[dir="rtl"] h2, html.light #scarlett-limit-card[dir="rtl"] .sl-intro { font-family: var(--serif-he); }
html.light #scarlett-limit-card[dir="rtl"] .sl-eyebrow { letter-spacing: 0.03em; }
html.light #scarlett-limit-card[dir="rtl"] #scarlett-referral-btn, html.light #scarlett-limit-card[dir="rtl"] .sl-later { font-style: normal; font-family: var(--serif-he); }
@media (max-width: 640px) {
  html.light #scarlett-limit-card { padding: 30px 24px 22px; }
  html.light #scarlett-limit-card h2 { font-size: 30px; }
  html.light #scarlett-limit-card .sl-intro { font-size: 17px; }
}

/* ── the inline pages (manifesto, and the fallbacks) on the same light ───── */
html.light #scarlett-legal-overlay { background: radial-gradient(120% 90% at 18% 0%, #F2E6D5 0%, #DFD1C1 45%, #CDBEAF 100%) !important; color: var(--ink) !important; }
html.light #scarlett-legal-overlay > div > div:first-child { background: rgba(var(--bronze-rgb),0.55) !important; }
html.light #scarlett-legal-content, html.light #scarlett-legal-content p, html.light #scarlett-legal-content li, html.light #scarlett-legal-content h1, html.light #scarlett-legal-content h2, html.light #scarlett-legal-content strong { color: var(--ink) !important; }
html.light #scarlett-legal-content p, html.light #scarlett-legal-content li { color: var(--ink-soft) !important; }
html.light #scarlett-legal-content a { color: var(--ink) !important; text-decoration-color: rgba(var(--bronze-rgb),0.5) !important; }
html.light #scarlett-legal-overlay > div > div:last-child { color: var(--ink-quiet) !important; border-top-color: var(--hair) !important; }
html.light #scarlett-legal-overlay .updated { color: var(--ink-quiet) !important; }

/* the presence loops and the closed-eyes still never appear on the light page */
html.light #scarlett-video-move, html.light #scarlett-video-talk, html.light #scarlett-video-main,
html.light #scarlett-video-landing, html.light #scarlett-landing-still, html.light #scarlett-still-closed { display: none !important; }
/* a dark-lit live face is never faded in over the light ground (SCARLETT_CONFIG.liveFace) */
html.light:not(.live-light) #scarlett-live { display: none !important; }

/* the safety note as three compact lines (applyEntranceCopy splits the paragraphs) */
html.light #scarlett-consent-body .se-p { display: block; }
html.light #scarlett-consent-body .se-p + .se-p { margin-top: 6px; }
@media (max-aspect-ratio: 1/1) {
  html.light #scarlett-consent-box #scarlett-consent-body { font-size: 12.5px; line-height: 1.5; }
  html.light #se-intro { margin-bottom: 14px; }
}
/* wide: the portrait column fades in from the top as well — no hard edge under the masthead */
@media (min-aspect-ratio: 1/1) {
  html.light #scarlett-body, html.light #scarlett-live {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 66%, transparent 100%) !important;
            mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 66%, transparent 100%) !important;
  }
}
/* phone, at the door: the scaled photograph is narrower than the screen — feather its sides into the ground */
@media (max-aspect-ratio: 1/1) {
  html.light:has(#scarlett-consent-gate.visible) #scarlett-still {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 100%);
            mask-composite: intersect;
  }
}
/* phone, away from the door: her name only — the tagline would sit on her hair */
@media (max-aspect-ratio: 1/1) {
  html.light:not(:has(#scarlett-consent-gate.visible)) #sm-tagline { display: none; }
}
/* wide conversation: the column opens over a longer breath of light, the composer has no edge of its own */
@media (min-width: 641px) {
  html.light #scarlett-transcript {
    background: linear-gradient(to right, rgba(var(--paper-rgb),0) 0, rgba(var(--paper-rgb),0.55) 90px, rgba(var(--paper-rgb),0.86) 190px, rgba(var(--paper-rgb),0.9) 100%) !important;
  }
  html.light #scarlett-text-fallback.visible { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
/* phone, at the door: the paper travels WITH the words when the door is scrolled,
   so the text never slides over her face */
@media (max-aspect-ratio: 1/1) {
  html.light #scarlett-consent-gate { background: none; }
  html.light #scarlett-consent-box {
    max-width: none; min-height: 100%;
    background: linear-gradient(to bottom, rgba(var(--paper-rgb),0) 0, rgba(var(--paper-rgb),0) calc(49vh - 110px), rgba(var(--paper-rgb),0.93) calc(49vh - 14px), rgba(var(--paper-rgb),0.98) calc(49vh + 40px), rgba(var(--paper-rgb),0.98) 100%);
  }
  html.light #scarlett-consent-box > * { max-width: 520px; }
}
@media (max-aspect-ratio: 1/1) {
  html.light:has(#scarlett-consent-gate.visible) #scarlett-masthead { padding-bottom: 18px; background: linear-gradient(to bottom, rgba(var(--paper-rgb),0.94) 0, rgba(var(--paper-rgb),0.94) 70%, rgba(var(--paper-rgb),0) 100%); }
}

/* ═════════════════════════════════════════════════════════════════════════════
   PART 3 — THE PALETTE (9.10.2026, iteration after Daniella: "too brown, too uniform")
   Two token sets on the same structure, switched by ONE attribute on <html>:
     data-palette="rose"  (A, default) — smoky rose in small doses
     data-palette="sage"  (B)          — a shaded, grey-green sage in the same places
   Structure (both): cream-sand ground #F0E6DA · the portrait's own warm light
   #E3D0BD around the face (poster-l1-warm.jpg: backdrop re-lit to exactly this,
   her face/hair/sweater untouched) · soft cream #F6EFE6 behind the conversation ·
   espresso ink #392F2B. The accent is ONLY: primary button fill, link underlines,
   small labels. Every text colour below is solid (no alpha ink) so its contrast
   is a fixed, checked number — see the AA table in the commit.
   ═════════════════════════════════════════════════════════════════════════════ */
html.light {
  --g-face: #E3D0BD;  --g-face-rgb: 227,208,189;
  --ground: #F0E6DA;  --ground-rgb: 240,230,218;
  --paper: #F6EFE6;   --paper-rgb: 246,239,230;
  --card: #FBF7F1;
  --veil-rgb: 240,230,218;
  --ink: #392F2B;     --ink-rgb: 57,47,43;
  --ink-soft: #5C4E48;          /* 5.32:1 on the face light, 6.46 on ground */
  --ink-quiet: #62534C;         /* 4.80:1 on the face light, 5.82 on ground */
  --white: #392F2B;
  --text-dim: #5C4E48;
  /* A — smoky rose */
  --accent: #70514F;  --accent-rgb: 112,81,79;
  --accent-deep: #5F4341;
  --on-accent: #FAF5EF;
  --bronze: var(--accent); --bronze-rgb: var(--accent-rgb);
  --gold: var(--accent); --gold-dim: rgba(var(--accent-rgb),0.55);
  --hair: rgba(var(--accent-rgb),0.20);
  background-color: var(--ground);
}
/* B — cream with a little sage: dark and grey enough to read as leaf-in-shade, never spa */
html.light[data-palette="sage"] {
  --accent: #535E50;  --accent-rgb: 83,94,80;
  --accent-deep: #434D41;
}

/* the ground: warm light around her face, brightening toward the words */
html.light, html.light body {
  background:
    radial-gradient(38vw 78vh at calc((100% - var(--col)) / 2) 50%, var(--g-face) 0%, var(--g-face) 50%, rgba(var(--g-face-rgb),0) 100%),
    linear-gradient(to right, var(--ground) 0%, var(--ground) 52%, var(--paper) 82%, var(--paper) 100%);
  background-attachment: fixed, fixed;
  background-color: var(--ground);
  color: var(--ink);
}
@media (max-aspect-ratio: 1/1) {
  html.light, html.light body {
    background:
      radial-gradient(95vw 52vh at 50% 30%, var(--g-face) 0%, var(--g-face) 55%, rgba(var(--g-face-rgb),0) 100%),
      linear-gradient(to bottom, var(--g-face) 0%, var(--ground) 55%, var(--paper) 100%);
    background-attachment: fixed, fixed;
    background-color: var(--ground);
  }
}
/* light, not cinema: the brown edge-darkening is gone, a breath of warmth stays */
html.light #scarlett-vignette.state-idle      { box-shadow: inset 0 0 220px 40px rgba(var(--g-face-rgb),0.10); }
html.light #scarlett-vignette.state-listening { box-shadow: none; }
html.light #scarlett-vignette.state-thinking  { box-shadow: inset 0 0 180px 60px rgba(var(--ink-rgb),0.05); }
html.light #scarlett-vignette.state-speaking  { box-shadow: none; }

/* the door */
html.light #se-eyebrow, html.light #se-her-name { color: var(--accent); }
html.light #se-excerpt { border-inline-start-color: rgba(var(--accent-rgb),0.45); }
html.light .se-gap { color: var(--ink-quiet); }
html.light #scarlett-consent-btn,
html.light #scarlett-membership-btn,
html.light #scarlett-begin-overlay button { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--on-accent) !important; }
html.light #scarlett-consent-btn:not(:disabled):hover,
html.light #scarlett-membership-btn:hover,
html.light #scarlett-begin-overlay button:hover { background: var(--accent-deep) !important; border-color: var(--accent-deep) !important; color: var(--on-accent) !important; }
html.light #scarlett-consent-btn:focus-visible, html.light #scarlett-membership-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
html.light #se-watch-t, html.light #sm-unsaid { border-bottom-color: rgba(var(--accent-rgb),0.6); }
html.light #sm-unsaid:hover, html.light #se-watch:hover #se-watch-t { border-bottom-color: var(--accent); }
html.light #scarlett-consent-legal a, html.light #se-privacy,
html.light #scarlett-membership-btn-yearly, html.light #scarlett-limit-card .sl-privacy { text-decoration-color: rgba(var(--accent-rgb),0.7) !important; }
html.light #scarlett-lang-select { color: var(--ink-quiet); border-bottom-color: rgba(var(--accent-rgb),0.4); }
html.light #scarlett-lang-select option { background: var(--paper); color: var(--ink); }
/* phone door: the sheet of paper under the words is the conversation cream */
@media (max-aspect-ratio: 1/1) {
  html.light:has(#scarlett-consent-gate.visible) #scarlett-masthead { background: linear-gradient(to bottom, rgba(var(--g-face-rgb),0.92) 0, rgba(var(--g-face-rgb),0.85) 70%, rgba(var(--g-face-rgb),0) 100%); }
}

/* the conversation */
html.light #scarlett-transcript { color: var(--ink-soft); }
html.light .scarlett-turn.user { color: var(--ink-quiet); }
html.light .scarlett-turn.user::before { color: rgba(var(--accent-rgb),0.45); }
html.light .scarlett-turn.scarlett::before { color: var(--accent); }
html.light #scarlett-transcript .scarlett-turn.user { border-inline-start-color: rgba(var(--accent-rgb),0.35); }
html.light .scarlett-opener { color: var(--ink); border-color: rgba(var(--accent-rgb),0.5); background: rgba(255,255,255,0.35); }
html.light .scarlett-opener:hover, html.light .scarlett-opener:focus-visible { color: var(--ink); border-color: var(--accent); background-color: rgba(var(--accent-rgb),0.07); }
html.light .scarlett-share-btn { color: rgba(var(--accent-rgb),0); }
html.light .scarlett-turn.scarlett:hover .scarlett-share-btn, html.light .scarlett-share-btn:focus { color: var(--accent); }
@media (hover: none) { html.light .scarlett-share-btn { color: rgba(var(--accent-rgb),0.7); } }
html.light #scarlett-voice-offer { color: var(--accent) !important; text-decoration-color: rgba(var(--accent-rgb),0.5) !important; }
html.light #scarlett-voice-reassure, html.light #scarlett-msg-counter, html.light #scarlett-status, html.light #scarlett-mode-toggle { color: var(--ink-quiet); }
html.light #scarlett-status.long { color: var(--accent); }
html.light #scarlett-invite-line a, html.light #scarlett-ask-cta { color: var(--accent) !important; text-decoration-color: rgba(var(--accent-rgb),0.5) !important; }
html.light #scarlett-text-input { background: rgba(255,255,255,0.6); border-color: rgba(var(--ink-rgb),0.16); color: var(--ink); }
html.light #scarlett-text-input::placeholder { color: var(--ink-quiet); opacity: 1; }
html.light #scarlett-text-input:focus { border-color: rgba(var(--accent-rgb),0.7); }
html.light #scarlett-text-send { color: var(--accent); border-color: rgba(var(--accent-rgb),0.6); }
html.light #scarlett-text-send:hover { background: rgba(var(--accent-rgb),0.08); }
/* right-to-left conversation: the arrow points where the words go */
#scarlett-text-fallback[dir="rtl"] #scarlett-text-send svg { transform: scaleX(-1); }
html.light #scarlett-voice-float, html.light #scarlett-mic-btn, html.light #scarlett-reconnect-btn { color: var(--accent); border-color: rgba(var(--accent-rgb),0.45); }
@media (max-width: 640px) {
  html.light #scarlett-transcript {
    background: linear-gradient(to bottom, rgba(var(--paper-rgb),0) 0, rgba(var(--paper-rgb),0.86) 36px, rgba(var(--paper-rgb),0.97) 100%);
  }
}
@media (min-width: 641px) {
  html.light #scarlett-transcript {
    background: linear-gradient(to right, rgba(var(--paper-rgb),0) 0, rgba(var(--paper-rgb),0.6) 90px, rgba(var(--paper-rgb),0.92) 190px, rgba(var(--paper-rgb),0.96) 100%) !important;
  }
}
html.light #scarlett-text-fallback { background: linear-gradient(to bottom, rgba(var(--paper-rgb),0.92), rgba(var(--paper-rgb),0.99)); border-top-color: rgba(var(--accent-rgb),0.12); }
@media (min-width: 641px) { html.light #scarlett-text-fallback.visible { background: transparent !important; } }

/* footer */
html.light #scarlett-legal-footer { color: var(--ink-soft); text-shadow: none; }
html.light #scarlett-legal-footer .slf-invite { color: var(--ink-soft); }
html.light #scarlett-legal-footer .slf-invite a, html.light #scarlett-legal-footer .slf-links a { border-bottom-color: rgba(var(--accent-rgb),0.6); text-decoration-color: rgba(var(--accent-rgb),0.6); }
html.light #scarlett-legal-footer .slf-social a { color: var(--accent); border-color: rgba(var(--accent-rgb),0.42); background: rgba(var(--paper-rgb),0.5); }

/* the membership card */
html.light #scarlett-limit-modal { background: rgba(var(--ground-rgb),0.78); }
html.light #scarlett-limit-card { background: var(--card); border-color: rgba(var(--accent-rgb),0.18); box-shadow: 0 30px 90px -40px rgba(var(--ink-rgb),0.32); }
html.light #scarlett-limit-card .sl-eyebrow { color: var(--accent); }
html.light #scarlett-limit-card .sl-benefits li { border-bottom-color: rgba(var(--accent-rgb),0.16); }
html.light #scarlett-limit-card .sl-referral { border-top-color: rgba(var(--accent-rgb),0.16); }

/* the inline pages on the same light */
html.light #scarlett-legal-overlay { background: radial-gradient(120% 90% at 18% 0%, var(--paper) 0%, var(--ground) 55%, var(--g-face) 100%) !important; }
html.light #scarlett-legal-overlay > div > div:first-child { background: rgba(var(--accent-rgb),0.55) !important; }
html.light #scarlett-legal-content a { text-decoration-color: rgba(var(--accent-rgb),0.6) !important; }
/* the door's paragraphs: solid ink too (Part 1 left them at 74% alpha) */
html.light #scarlett-consent-box p#se-intro { color: var(--ink-soft); }
