/* Home style C, "Pick your moment" (3-style trial, preview only). Markup: tools/home_styles/style_c.py.
   A warm magazine cover: greeting + promises strip, one big serif question, four mood panels.
   Loaded after front.css + chrome.css. Comfort prefs: data-motion, data-pictures, data-text, data-spacing. */

:root {
  --bg: #fbf6ee;
  --mc-ink: #1d1a17; --mc-ink2: #4a443d; --mc-rule: rgb(29 26 23 / .16);
  --mc-hot: #e0461c; --mc-hot2: #d42f7c; --mc-hot3: #7446ea;
  --mc-panel-ink: #1b1a1f; --mc-panel-ink2: #3b3540;
  --mc-play-a: #ffc0a6; --mc-play-b: #ff94ae;
  --mc-focus-a: #ffe88a; --mc-focus-b: #ffc552;
  --mc-calm-a: #ddf5c4; --mc-calm-b: #aee597;
  --mc-read-a: #e2d8ff; --mc-read-b: #bba9ff;
  --mc-card-edge: #ffffff; --mc-shadow: rgb(60 30 10 / .28);
  --mc-glow1: rgb(255 190 150 / .55); --mc-glow2: rgb(255 215 120 / .38); --mc-glow3: rgb(200 180 255 / .40);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214;
    --mc-ink: #f4efe6; --mc-ink2: #c9c2b8; --mc-rule: rgb(255 255 255 / .16);
    --mc-hot: #ff9a6b; --mc-hot2: #ff7ab8; --mc-hot3: #b49bff;
    --mc-play-a: #f7ac94; --mc-play-b: #ef819f;
    --mc-focus-a: #f5d873; --mc-focus-b: #eeb245;
    --mc-calm-a: #c8eaa9; --mc-calm-b: #97d47c;
    --mc-read-a: #d1c4ff; --mc-read-b: #a693f7;
    --mc-card-edge: #fdfbf7; --mc-shadow: rgb(0 0 0 / .6);
    --mc-glow1: rgb(255 140 90 / .14); --mc-glow2: rgb(255 200 90 / .08); --mc-glow3: rgb(150 120 255 / .14);
  }
}
:root[data-theme="dark"] {
  --bg: #121214;
  --mc-ink: #f4efe6; --mc-ink2: #c9c2b8; --mc-rule: rgb(255 255 255 / .16);
  --mc-hot: #ff9a6b; --mc-hot2: #ff7ab8; --mc-hot3: #b49bff;
  --mc-play-a: #f7ac94; --mc-play-b: #ef819f;
  --mc-focus-a: #f5d873; --mc-focus-b: #eeb245;
  --mc-calm-a: #c8eaa9; --mc-calm-b: #97d47c;
  --mc-read-a: #d1c4ff; --mc-read-b: #a693f7;
  --mc-card-edge: #fdfbf7; --mc-shadow: rgb(0 0 0 / .6);
  --mc-glow1: rgb(255 140 90 / .14); --mc-glow2: rgb(255 200 90 / .08); --mc-glow3: rgb(150 120 255 / .14);
}

/* ---------- The cover ---------- */
.mc-hero { position: relative; isolation: isolate; max-width: var(--wrap); margin: 0 auto; padding: 18px 24px 36px; color: var(--mc-ink); }
/* Owner 22 Nov: no colour glow behind the cover (plain page background). */

.mc-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--mc-rule); }
.mc-what { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--mc-ink2); max-width: 62ch; text-wrap: pretty; }
.mc-hello { font-family: var(--serif); font-style: italic; font-size: 1.45em; line-height: 1; color: var(--mc-ink); margin-inline-end: .15em; }
[lang="ar"] .mc-hello { font-style: normal; font-size: 1.3em; }
.mc-proms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9375rem; font-weight: 600; color: var(--mc-ink); }
.mc-proms li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mc-proms .ck { width: 18px; height: 18px; font-size: 11px; }

.mc-h1 { margin: 14px 0 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.9rem, 7.3vw, 6.1rem);
  line-height: .98; letter-spacing: -0.025em; color: var(--mc-ink); text-wrap: balance; }
[lang="ar"] .mc-h1 { letter-spacing: 0; line-height: 1.35; font-size: clamp(2.6rem, 6.2vw, 5rem); margin: 10px 0 14px; }
.mc-now { font-style: italic; padding-inline-end: .06em;
  background: linear-gradient(95deg, var(--mc-hot) 10%, var(--mc-hot2) 55%, var(--mc-hot3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
[lang="ar"] .mc-now { font-style: normal; }
@media (forced-colors: active) { .mc-now { color: CanvasText; background: none; } }

/* ---------- Mood panels ---------- */
.mc-moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mood { --a: var(--mc-play-a); --b: var(--mc-play-b); --rx: 0deg; --ry: 0deg;
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 420px; padding: 10px 10px 20px;
  border-radius: 30px; text-decoration: none; color: var(--mc-panel-ink);
  background: radial-gradient(120% 80% at 20% 0%, rgb(255 255 255 / .45), transparent 55%), linear-gradient(165deg, var(--a), var(--b));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 22px 40px -26px var(--mc-shadow);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.mood:hover { color: var(--mc-panel-ink); }
.mood-focus { --a: var(--mc-focus-a); --b: var(--mc-focus-b); }
.mood-calm { --a: var(--mc-calm-a); --b: var(--mc-calm-b); }
.mood-read { --a: var(--mc-read-a); --b: var(--mc-read-b); }
.mood:focus-visible { outline: 4px solid var(--mc-ink); outline-offset: 4px; border-radius: 30px; }

.mood-art { position: relative; display: block; flex: 1 1 auto; min-height: 210px; border-radius: 22px; }
.mood-txt { display: flex; flex-direction: column; gap: 3px; padding: 16px 12px 0; }
.mood-l { padding-inline-end: 54px; }
.mood-k { font-size: .8125rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mc-panel-ink2); }
[lang="ar"] .mood-k { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.mood-w { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 3.5vw, 3.1rem); line-height: 1; letter-spacing: -0.02em; }
[lang="ar"] .mood-w { letter-spacing: 0; line-height: 1.3; }
.mood-l { font-size: .9375rem; line-height: 1.35; color: var(--mc-panel-ink2); text-wrap: pretty; }
.mood-go { position: absolute; inset-inline-end: 16px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #1b1a1f; color: #fff; box-shadow: 0 8px 16px -8px rgb(0 0 0 / .5); }
.mood-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .mood-go svg { transform: scaleX(-1); }

/* App-icon stickers */
.mood-st { position: absolute; z-index: 3; width: 54px; height: 54px; border-radius: 15px; background: #fff;
  border: 3px solid var(--mc-card-edge); box-shadow: 0 10px 18px -8px rgb(0 0 0 / .4); }

/* Play: three real toy cards fanned like snapshots */
.mood-play .pc { position: absolute; width: 64%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px;
  border: 4px solid var(--mc-card-edge); box-shadow: 0 14px 24px -12px rgb(60 20 20 / .5); }
.mood-play .pc1 { inset-inline-start: 0; top: 30%; transform: rotate(-11deg); }
.mood-play .pc3 { inset-inline-end: 0; top: 36%; transform: rotate(9deg); }
.mood-play .pc2 { z-index: 2; left: 50%; top: 6%; width: 72%; transform: translateX(-50%) rotate(-2deg); }
.mood-play .st1 { inset-inline-start: 10%; bottom: 2%; transform: rotate(-8deg); }
.mood-play .st2 { inset-inline-end: 12%; bottom: 6%; transform: rotate(7deg); }

/* Focus: the real Clock Plan face */
.mood-focus .clock { position: absolute; left: 50%; top: 50%; height: min(92%, 250px); width: auto; max-width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-4deg);
  border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--mc-card-edge), 0 22px 34px -16px rgb(90 60 0 / .55); }
.mood-focus .clock img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mood-focus .st1 { inset-inline-end: 4%; top: 4%; transform: rotate(8deg); }
.mood-focus .st2 { inset-inline-start: 5%; bottom: 3%; transform: rotate(-7deg); }

/* Calm: the Ripple Pond toy, in a pebble */
.mood-calm .pond { position: absolute; inset: 4% 3% 2%; overflow: hidden;
  border-radius: 48% 52% 46% 54% / 55% 48% 52% 45%; box-shadow: 0 0 0 5px var(--mc-card-edge), 0 22px 34px -18px rgb(40 80 20 / .55); }
.mood-calm .pond img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.mood-calm .ring { position: absolute; left: 34%; top: 58%; width: 30px; height: 30px; margin: -15px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .85); opacity: 0; }

/* Read to me: the real ReadThis Shorts card + a listening wave */
.mood-read .page { position: absolute; left: 50%; top: 46%; width: 92%; aspect-ratio: 560 / 440; transform: translate(-50%, -50%) rotate(-3deg);
  border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 4px var(--mc-card-edge), 0 20px 30px -16px rgb(40 20 90 / .55); }
.mood-read .page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mood-read .wave { position: absolute; z-index: 3; inset-inline-start: 8%; bottom: -3%; display: flex; align-items: center; gap: 4px;
  height: 46px; padding: 0 16px; border-radius: 999px; background: #2b55e6; box-shadow: 0 10px 18px -8px rgb(20 30 120 / .6); }
.mood-read .wave i { display: block; width: 4px; height: calc(10px + var(--d) * 4px); border-radius: 4px; background: #fff; }
.mood-read .st1 { inset-inline-end: 3%; top: 0; transform: rotate(8deg); }

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) .mood { animation: mc-rise .8s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--n) * 90ms);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
  :root:not([data-motion="reduce"]) .mood:hover, :root:not([data-motion="reduce"]) .mood:focus-visible {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 34px 50px -26px var(--mc-shadow);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); }
  :root:not([data-motion="reduce"]) .mood :is(.pc, .clock, .pond, .page, .mood-st, .mood-go) { transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
  :root:not([data-motion="reduce"]) .mood:is(:hover, :focus-visible) .pc1 { transform: rotate(-15deg) translateX(-4%); }
  :root:not([data-motion="reduce"]) .mood:is(:hover, :focus-visible) .pc3 { transform: rotate(13deg) translateX(4%); }
  :root:not([data-motion="reduce"]) .mood:is(:hover, :focus-visible) .pc2 { transform: translateX(-50%) rotate(1deg) scale(1.04); }
  :root:not([data-motion="reduce"]) .mood:is(:hover, :focus-visible) .clock { transform: translate(-50%, -50%) rotate(4deg) scale(1.03); }
  :root:not([data-motion="reduce"]) .mood:is(:hover, :focus-visible) .page { transform: translate(-50%, -50%) rotate(0deg) scale(1.03); }
  :root:not([data-motion="reduce"]) .mood:is(:hover, :focus-visible) .mood-st { transform: rotate(0deg) translateY(-4px) scale(1.06); }
  :root:not([data-motion="reduce"]) .mood:is(:hover, :focus-visible) .mood-go { transform: translateX(4px); }
  :root:not([data-motion="reduce"])[dir="rtl"] .mood:is(:hover, :focus-visible) .mood-go { transform: translateX(-4px); }
  :root:not([data-motion="reduce"]) .mood-calm:is(:hover, :focus-visible) .ring { animation: mc-ripple 2.6s ease-out infinite; }
  :root:not([data-motion="reduce"]) .mood-calm:is(:hover, :focus-visible) .r2 { animation-delay: 1.3s; }
  :root:not([data-motion="reduce"]) .mood-read:is(:hover, :focus-visible) .wave i { animation: mc-wave 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -.22s); }
}
@keyframes mc-rise { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes mc-ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(4.2); } }
@keyframes mc-wave { from { transform: scaleY(.45); } to { transform: scaleY(1.15); } }
:root[data-motion="reduce"] .mood { transform: none; }

/* Comfort "Pictures: Hide": panels keep their colour and words only */
:root[data-pictures="hide"] .mood-art { display: none; }
:root[data-pictures="hide"] .mood { min-height: 0; padding-top: 14px; }
:root[data-pictures="hide"] .mc-watch img { display: none; }
:root[data-pictures="hide"] .mc-watch { aspect-ratio: auto; background: none; box-shadow: none; }
:root[data-pictures="hide"] .mc-watch-bar { position: static; }

/* ---------- "What is Favabeans?" band ---------- */
.mc-band { max-width: var(--wrap); margin: 0 auto; padding: 36px 24px 76px; display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px 56px; align-items: center; color: var(--mc-ink); }
.mc-band-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mc-band-k { margin: 0; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mc-hot2); }
[lang="ar"] .mc-band-k { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.mc-band-h { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.02; letter-spacing: -0.02em; }
.mc-band-h em { color: var(--mc-hot); }
[lang="ar"] .mc-band-h { letter-spacing: 0; line-height: 1.35; }
[lang="ar"] .mc-band-h em { font-style: normal; }
.mc-band-p { margin: 0; font-size: 1.1875rem; line-height: 1.55; color: var(--mc-ink2); max-width: 520px; text-wrap: pretty; }
.mc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.mc-btn, .mc-btn2 { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 1.0625rem; font-weight: 700; text-decoration: none; }
.mc-btn { background: var(--mc-ink); color: var(--bg); }
.mc-btn:hover { color: var(--bg); background: color-mix(in srgb, var(--mc-ink) 85%, var(--mc-hot)); }
.mc-btn2 { border: 1.5px solid var(--mc-rule); color: var(--mc-ink); background: transparent; }
.mc-btn2:hover { color: var(--mc-ink); border-color: var(--mc-ink); }

.mc-watch { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0; padding: 0; border: 0; border-radius: 26px; overflow: hidden;
  background: #f1ece3; cursor: pointer; font: inherit; color: inherit; text-align: start;
  box-shadow: 0 0 0 6px var(--mc-card-edge), 0 30px 50px -28px var(--mc-shadow); transform: rotate(1.2deg); }
[dir="rtl"] .mc-watch { transform: rotate(-1.2deg); }
.mc-watch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mc-watch:focus-visible { outline: 4px solid var(--mc-ink); outline-offset: 8px; border-radius: 26px; }
.mc-watch-bar { position: absolute; inset-inline-start: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  min-height: 56px; padding: 6px 20px 6px 6px; border-radius: 999px; background: rgb(255 255 255 / .94); color: #1b1a1f;
  box-shadow: 0 12px 26px -12px rgb(0 0 0 / .45); }
[dir="rtl"] .mc-watch-bar { padding: 6px 6px 6px 20px; }
.mc-play { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--mc-hot), var(--mc-hot2)); color: #fff; }
.mc-play svg { width: 16px; height: 16px; fill: currentColor; margin-inline-start: 2px; }
[dir="rtl"] .mc-play svg { transform: scaleX(-1); margin-inline: 0 2px; }
.mc-watch-t { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; font-size: 1rem; }
.mc-watch-t small { font-weight: 500; font-size: .8125rem; color: #4a443d; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) .mc-watch { transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
  :root:not([data-motion="reduce"]) .mc-watch:hover { transform: rotate(0deg) scale(1.01); }
}

/* ---------- Light touch on the sections below, so the page reads as one ---------- */
.h2, .h2b { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(2.3rem, 4.6vw, 3.4rem); line-height: 1.02; }
.h2 .serif, .h2b .serif { color: var(--mc-hot); }
[lang="ar"] :is(.h2, .h2b) { line-height: 1.35; }
.eyebrow { color: var(--mc-hot2); }
.panel, .tile, .promise-in, .card { border-radius: 30px; }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .mc-moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mood { min-height: 0; }
  .mood-art { flex: none; aspect-ratio: 1 / .8; min-height: 0; }
  .mc-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mc-hero { display: flex; flex-direction: column; padding: 12px 16px 26px; }
  .mc-strip { display: contents; }
  .mc-what { order: 1; font-size: .9375rem; }
  .mc-h1 { order: 2; margin: 8px 0 14px; font-size: clamp(2.4rem, 11.6vw, 3.2rem); line-height: 1; }
  [lang="ar"] .mc-h1 { margin: 4px 0 10px; font-size: clamp(2.3rem, 10.6vw, 3rem); line-height: 1.3; }
  .mc-moods { order: 3; gap: 10px; }
  .mc-proms { order: 4; margin-top: 14px; justify-content: center; gap: 6px 14px; font-size: .875rem; }
  .mood { padding: 7px 7px 13px; border-radius: 24px; }
  .mood:focus-visible { border-radius: 24px; }
  .mood-art { border-radius: 18px; aspect-ratio: 1 / .74; }
  .mood-txt { padding: 9px 6px 0; gap: 2px; }
  .mood-k { font-size: .6875rem; letter-spacing: .05em; line-height: 1.3; }
  [lang="ar"] .mood-k { font-size: .8125rem; }
  .mood-w { font-size: 2rem; }
  [lang="ar"] .mood-w { font-size: 1.75rem; }
  .mood-l, .mood-go { display: none; }
  .mood-st { width: 36px; height: 36px; border-radius: 10px; border-width: 2px; }
  .mood-play .pc { border-width: 3px; border-radius: 10px; }
  .mood-focus .clock { box-shadow: 0 0 0 3px var(--mc-card-edge), 0 14px 22px -12px rgb(90 60 0 / .55); }
  .mood-calm .pond { box-shadow: 0 0 0 3px var(--mc-card-edge), 0 14px 22px -12px rgb(40 80 20 / .5); }
  .mood-read .page { box-shadow: 0 0 0 3px var(--mc-card-edge), 0 14px 22px -12px rgb(40 20 90 / .5); }
  .mood-read .page { top: 40%; }
  .mood-read .wave { bottom: -6%; height: 30px; padding: 0 10px; gap: 3px; }
  .mood-read .wave i { width: 3px; height: calc(6px + var(--d) * 3px); }
  .mc-band { padding: 20px 16px 56px; gap: 28px; }
  .mc-band-p { font-size: 1.0625rem; }
  .mc-watch-bar { inset-inline-start: 10px; bottom: 10px; min-height: 50px; padding-inline-end: 14px; }
  .mc-watch-t { font-size: .9375rem; }
}
