/*
 * mixrapp.in: same look as the app. Monochrome, Sora headings, and the wink under each title
 * in today's colour (Monday red ... Sunday violet, set by site.js).
 */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #0b0b0c;
  --muted: #5f5f66;
  --line: #e6e6e9;
  --soft: #f6f6f7;
  --accent: #1d5bd8;
  --draft-bg: #fff6db;
  --draft-line: #f0dc9c;
  --draft-ink: #5c4700;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --ink: #f5f5f7;
    --muted: #a0a0a8;
    --line: #26262b;
    --soft: #151518;
    --accent: #7cc4ff;
    --draft-bg: #2a2410;
    --draft-line: #4a3f17;
    --draft-ink: #f3dc8c;
  }
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; }
a { color: inherit; }
.gutter { padding-left: max(5vw, 16px, env(safe-area-inset-left, 0px)); padding-right: max(5vw, 16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1120px; margin: 0 auto; }

/* Header */
.nav { border-bottom: 1px solid var(--line); }
.nav .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px Sora, sans-serif; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); } /* edge so the black logo shows on dark */
.links { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; }
.links a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"] { font-weight: 600; }

/* Headings + the wink under them */
.title { font: 800 clamp(30px, 5vw, 48px)/1.08 Sora, sans-serif; letter-spacing: -0.025em; margin: 0; }
.wink { display: flex; gap: 4px; align-items: center; margin: 14px 0 20px; }
.wink i { width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
.wink b { width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.muted { color: var(--muted); }
main { padding-block: clamp(28px, 6vw, 64px); }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero p { max-width: 46ch; font-size: 17px; }
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 14px 20px; font-weight: 600; text-decoration: none; margin-top: 8px; }
.cta[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.phone { justify-self: center; width: min(250px, 100%); aspect-ratio: 9 / 18.5; border: 10px solid #0b0b0c; border-radius: 34px; padding: 16px 11px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: start; background: #fff; }
.phone .h { grid-column: 1 / -1; font: 800 16px Sora, sans-serif; color: #0b0b0c; margin-bottom: 4px; }
.phone span { aspect-ratio: 3 / 4; border-radius: 8px; background: linear-gradient(160deg, #d8d8dd, #9b9ba3); position: relative; }
.phone span:nth-child(3n) { background: linear-gradient(160deg, #c9cfdc, #7d8597); }
.phone span:nth-child(4n) { background: linear-gradient(160deg, #ddd3c9, #9a8b7c); }
.phone span.on::after { content: ""; position: absolute; right: 5px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #1b7f3b; box-shadow: 0 0 0 1.5px #fff; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.points div { border-top: 1px solid var(--line); padding-top: 14px; }
.points b { display: block; font: 700 17px Sora, sans-serif; margin-bottom: 2px; }

/* Legal pages: contents on the left (laptop), text column on the right */
.legal { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; }
.toc { position: sticky; top: 16px; align-self: start; display: grid; gap: 8px; font-size: 14px; }
.toc strong { font-size: 12px; color: var(--muted); font-weight: 600; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.doc { max-width: 70ch; }
.doc h2 { font: 700 20px/1.3 Sora, sans-serif; margin: 34px 0 8px; scroll-margin-top: 16px; }
.doc p, .doc li { margin: 0 0 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 10px; }
.meta { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.draft { background: var(--draft-bg); border: 1px solid var(--draft-line); color: var(--draft-ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { width: 30%; color: var(--muted); font-weight: 600; }

/* Support */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card b { display: block; font: 700 17px Sora, sans-serif; margin-bottom: 4px; }
.card p { margin: 0 0 10px; font-size: 15px; }
.card a { font-weight: 600; overflow-wrap: anywhere; }
.faq { max-width: 72ch; margin-top: 32px; }
.faq h2 { font: 700 20px Sora, sans-serif; margin: 0 0 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* Delete account steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; max-width: 60ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 14px; }

/* Footer */
.foot { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .inner { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .hero, .legal { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 190px; }
  .points, .cards { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; grid-auto-flow: column; overflow-x: auto; gap: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .toc strong { display: none; }
  .toc a { white-space: nowrap; }
}

/* Logo in the header (inline SVG so the eye can blink) */
:root { --on-accent: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --on-accent: #0b0b0c; } }
.brand { color: inherit; }
.brand .logo { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.brand .logo .eye { transform-box: fill-box; transform-origin: center; animation: mixr-blink 6s infinite; }
@keyframes mixr-blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.12); } 96% { transform: scaleY(1); } }

/* The wink under titles winks too: once when the page opens, then every few seconds (like the app) */
.wink i { transform-origin: center; animation: mixr-wink 7s 0.4s infinite; }
@keyframes mixr-wink { 0%, 6%, 100% { transform: scaleY(1); } 2% { transform: scaleY(0.15); } }

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