/* CalenDo site. Colours mirror CalendoDesign/Palette.swift. No external fonts, no trackers. */

:root {
  color-scheme: light dark;
  --canvas: #fff8ef;
  --canvas-deep: #fdeedc;
  --surface: #ffffff;
  --surface-raised: #fffdfb;
  --text: #2b2420;
  --text-2: #6e625a;
  --text-3: #7a6e66;
  --hairline: rgb(43 36 32 / 0.08);
  --accent: #f27a1a;
  --accent-ink: #a34a08;
  --accent-soft: #ffedd5;
  --ember: #f5607a;
  --shadow-1: 0 1px 2px rgb(138 75 20 / 0.06), 0 8px 24px rgb(138 75 20 / 0.07);
  --shadow-2: 0 2px 6px rgb(138 75 20 / 0.06), 0 24px 60px -12px rgb(138 75 20 / 0.18);
  --glow-1: rgb(255 180 110 / 0.45);
  --glow-2: rgb(255 154 170 / 0.22);
  --badge-bg: #2b2420;
  --badge-text: #fff8ef;

  /* Task colours: fill / accent */
  --lavender: #f3e8ff; --lavender-a: #b57bfa;
  --sky: #e0f2fe;      --sky-a: #38b2f0;
  --mint: #d7f8ea;     --mint-a: #2fc99a;
  --peach: #ffead5;    --peach-a: #fb8b3c;
  --rose: #ffe1e5;     --rose-a: #f5607a;
  --lemon: #fef6c3;    --lemon-a: #ebc113;
  --sage: #e5eee0;     --sage-a: #8daa80;
  --blush: #fce5f3;    --blush-a: #ee6db5;

  --font-round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --r-xl: 36px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #16120f;
    --canvas-deep: #1d1713;
    --surface: #221c18;
    --surface-raised: #2c2520;
    --text: #f5efe9;
    --text-2: #b3a89f;
    --text-3: #968b82;
    --hairline: rgb(255 255 255 / 0.08);
    --accent: #ff9a45;
    --accent-ink: #ffa85c;
    --accent-soft: #4a2a12;
    --ember: #fb8fa2;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    --shadow-2: 0 2px 6px rgb(0 0 0 / 0.3), 0 24px 60px -12px rgb(0 0 0 / 0.55);
    --glow-1: rgb(255 140 60 / 0.16);
    --glow-2: rgb(251 143 162 / 0.08);
    --badge-bg: #f5efe9;
    --badge-text: #16120f;

    --lavender: #2e2140; --lavender-a: #c9a2ff;
    --sky: #16293a;      --sky-a: #7ccbf7;
    --mint: #13302a;     --mint-a: #5ee0b5;
    --peach: #3a2416;    --peach-a: #fdaa6e;
    --rose: #3a1d22;     --rose-a: #fb8fa2;
    --lemon: #37301a;    --lemon-a: #f5d55a;
    --sage: #252d22;     --sage-a: #afc6a4;
    --blush: #381d2d;    --blush-a: #f59acb;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-round); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--badge-bg); color: var(--badge-text);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-round); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-1); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--text); background: var(--hairline); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .lang {
  border: 1px solid var(--hairline); color: var(--text); gap: 6px; margin-left: 4px;
}
.nav .lang svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .nav .hide-s { display: none; }
}

/* ---------- Buttons ---------- */

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--badge-bg); color: var(--badge-text);
  text-decoration: none; border-radius: 16px;
  padding: 12px 22px 12px 18px; min-height: 58px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge small { font-size: 0.72rem; opacity: 0.75; letter-spacing: 0.02em; }
.store-badge strong { font-family: var(--font-round); font-size: 1.12rem; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-2); font-size: 0.92rem; }
.chips span { display: inline-flex; align-items: center; gap: 7px; }
.chips span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(32px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 52% at 78% 18%, var(--glow-1), transparent 70%),
    radial-gradient(36% 40% at 8% 70%, var(--glow-2), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 6vw, 72px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-round); font-weight: 600; font-size: 0.92rem;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--text-2); margin: 22px 0 32px; max-width: 34em; }
.hero .cta { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta { align-items: center; }
  .hero .chips { justify-content: center; }
}

/* ---------- Phone mock ---------- */

.stage { position: relative; display: grid; place-items: center; padding: 8px 0 24px; }
.phone {
  position: relative; width: min(320px, 82vw); aspect-ratio: 9 / 19.2;
  border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #3a302a, #1b1512);
  box-shadow: var(--shadow-2), inset 0 0 0 1.5px rgb(255 255 255 / 0.08);
  transform: rotate(2.5deg);
}
.screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--canvas); padding: 50px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.screen::before { /* Dynamic Island */
  content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0;
  width: 92px; height: 27px; border-radius: 999px; background: #0d0a08;
}
.screen-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.screen-head b { font-family: var(--font-round); font-size: 1.55rem; letter-spacing: -0.02em; }
.screen-head span { color: var(--text-3); font-size: 0.78rem; font-weight: 600; }
.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.weekstrip div {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 0; border-radius: 12px; font-size: 0.62rem; color: var(--text-3); font-weight: 600;
}
.weekstrip div b { font-family: var(--font-round); font-size: 0.92rem; color: var(--text); }
.weekstrip .on { background: var(--accent); color: rgb(255 255 255 / 0.85); }
.weekstrip .on b { color: #fff; }
.weekstrip i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.weekstrip .on i { background: #fff; }

.task {
  --f: var(--peach); --a: var(--peach-a);
  display: flex; align-items: center; gap: 10px;
  background: var(--f); border-radius: 16px; padding: 10px 12px;
  position: relative; overflow: hidden;
}
.task::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--a); }
.task .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--a); display: grid; place-items: center; }
.task.done .tick { background: var(--a); }
.task.done .tick::after { content: ""; width: 8px; height: 4.5px; border: solid #fff; border-width: 0 0 2px 2px; rotate: -45deg; translate: 0 -1px; }
.task.done .t { text-decoration: line-through; color: var(--text-3); }
.task .t { font-size: 0.84rem; font-weight: 600; line-height: 1.25; flex: 1; min-width: 0; }
.task .m { font-size: 0.7rem; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.task .e { font-size: 0.85rem; }
.c-lavender { --f: var(--lavender); --a: var(--lavender-a); }
.c-sky { --f: var(--sky); --a: var(--sky-a); }
.c-mint { --f: var(--mint); --a: var(--mint-a); }
.c-peach { --f: var(--peach); --a: var(--peach-a); }
.c-rose { --f: var(--rose); --a: var(--rose-a); }
.c-lemon { --f: var(--lemon); --a: var(--lemon-a); }
.c-sage { --f: var(--sage); --a: var(--sage-a); }
.c-blush { --f: var(--blush); --a: var(--blush-a); }

.fab {
  position: absolute; right: 16px; bottom: 18px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgb(242 122 26 / 0.6);
  font-size: 1.7rem; font-weight: 300; line-height: 1;
}

.stage .kalli {
  position: absolute; width: clamp(110px, 15vw, 150px); left: max(0px, calc(50% - 250px)); bottom: 0;
  filter: drop-shadow(0 18px 24px rgb(138 75 20 / 0.22));
  rotate: -8deg;
}
.bubble {
  position: absolute; left: max(0px, calc(50% - 270px)); bottom: clamp(150px, 19vw, 190px);
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 18px 18px 18px 6px;
  font-family: var(--font-round); font-weight: 700; font-size: 0.92rem; box-shadow: var(--shadow-1);
}
@media (prefers-reduced-motion: no-preference) {
  .stage .kalli { animation: bob 5s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-head { max-width: 40em; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { color: var(--text-2); font-size: 1.12rem; margin-top: 14px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  grid-column: span 2; position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--r-l); padding: 28px;
  box-shadow: var(--shadow-1); border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 10px;
}
.card.w3 { grid-column: span 3; }
.card.w4 { grid-column: span 4; }
.card h3 { font-size: 1.42rem; font-weight: 750; }
.card p { color: var(--text-2); }
.card .kicker { font-family: var(--font-round); font-weight: 700; font-size: 0.82rem; color: var(--accent-ink); letter-spacing: 0.04em; text-transform: uppercase; }
.card .art { margin-top: auto; padding-top: 20px; }
.card .note { font-size: 0.82rem; color: var(--text-3); }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card.w3, .card.w4 { grid-column: span 1; }
  .card.wide-m { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .card.wide-m { grid-column: span 1; }
  .card { padding: 24px; }
}

/* mini week board */
.miniweek { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.miniweek > div { background: var(--canvas); border-radius: 12px; padding: 8px 5px; display: flex; flex-direction: column; gap: 5px; min-height: 120px; }
.miniweek span { font-size: 0.64rem; font-weight: 700; color: var(--text-3); text-align: center; }
.miniweek .today { background: var(--accent-soft); }
.miniweek .today span { color: var(--accent-ink); }
.miniweek i { display: block; height: 14px; border-radius: 5px; background: var(--f, var(--peach)); border-left: 3px solid var(--a, var(--peach-a)); }

/* quick add */
.qa-field {
  display: flex; align-items: center; gap: 10px; background: var(--canvas);
  border: 1.5px solid var(--accent); border-radius: 16px; padding: 14px 16px; font-weight: 600;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}
.qa-field .caret { width: 2px; height: 1.2em; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .qa-field .caret { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--f, var(--accent-soft)); color: var(--text); }

/* voice */
.voice { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.voice img { width: 104px; }
.wave { display: flex; align-items: center; gap: 4px; height: 36px; margin-bottom: 10px; }
.wave i { width: 5px; border-radius: 3px; background: var(--accent); height: var(--h); opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .wave i { animation: wave 1.4s ease-in-out infinite; animation-delay: calc(var(--d) * -0.17s); }
  @keyframes wave { 50% { transform: scaleY(0.4); } }
}
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack .task { padding: 8px 10px; }
.stack .task .t { font-size: 0.8rem; }

/* shared */
.avatars { display: flex; margin-bottom: 14px; }
.avatars span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-round); font-weight: 700; font-size: 0.9rem; color: #fff;
  border: 3px solid var(--surface); margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }
.avatars .plus { background: var(--canvas); color: var(--text-2); border-style: dashed; border-color: var(--text-3); border-width: 2px; }

/* focus (dark card) */
.card.dark {
  background: radial-gradient(120% 90% at 85% 0%, #3a2416 0%, #16120f 60%);
  color: #f5efe9; border-color: rgb(255 255 255 / 0.06);
}
.card.dark p { color: #c9bdb3; }
.card.dark .kicker { color: #ffa85c; }
.live {
  display: flex; align-items: center; gap: 14px;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 24px; padding: 14px 18px;
}
.ring {
  --p: 68; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(#ff9a45 calc(var(--p) * 1%), rgb(255 255 255 / 0.12) 0);
  display: grid; place-items: center;
}
.ring::after { content: "🎯"; width: 36px; height: 36px; border-radius: 50%; background: #241c17; display: grid; place-items: center; font-size: 1rem; }
.live b { display: block; font-family: var(--font-round); font-size: 1rem; }
.live small { color: #c9bdb3; font-size: 0.8rem; }
.live .time { margin-left: auto; font-family: var(--font-round); font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 700; color: #ffb46e; }
.widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.widgets div { aspect-ratio: 1; border-radius: 20px; background: rgb(255 255 255 / 0.07); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.widgets small { font-size: 0.66rem; font-weight: 700; color: #ffa85c; text-transform: uppercase; letter-spacing: 0.05em; }
.widgets i { display: block; height: 7px; border-radius: 4px; background: rgb(255 255 255 / 0.18); }
.widgets i:nth-child(2) { width: 90%; } .widgets i:nth-child(3) { width: 70%; } .widgets i:nth-child(4) { width: 80%; }
.widgets .big { font-family: var(--font-round); font-size: 2rem; font-weight: 800; line-height: 1; }

/* insights */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars i { width: 100%; border-radius: 8px 8px 4px 4px; height: var(--h); background: linear-gradient(to top, var(--accent), #ffb46e); }
.bars span { font-size: 0.66rem; font-weight: 700; color: var(--text-3); }
.stat { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.stat b { font-family: var(--font-round); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.stat span { color: var(--text-2); font-weight: 600; }

/* devices */
.devices { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.dev { border: 2.5px solid var(--text-3); border-radius: 10px; background: linear-gradient(160deg, var(--accent-soft), var(--canvas)); position: relative; }
.dev.mac { width: 46%; aspect-ratio: 16 / 10.4; border-radius: 10px 10px 4px 4px; }
.dev.mac::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: -12px; height: 9px; border-radius: 0 0 10px 10px; background: var(--text-3); }
.dev.ipad { width: 28%; aspect-ratio: 3 / 4; border-radius: 14px; }
.dev.iphone { width: 12%; aspect-ratio: 9 / 19; border-radius: 12px; }

/* ---------- Privacy band ---------- */

.privacy-band {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); padding: clamp(32px, 6vw, 64px);
  box-shadow: var(--shadow-1);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
}
.privacy-band h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.privacy-band .lock {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.privacy-band .lock svg { width: 30px; height: 30px; }
.privacy-band > div > p { color: var(--text-2); margin-top: 14px; font-size: 1.08rem; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promises li {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  background: var(--canvas); border-radius: var(--r-m); padding: 16px 18px;
}
.promises .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-1); }
.promises b { display: block; font-family: var(--font-round); font-size: 1.05rem; }
.promises span { color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 820px) { .privacy-band { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */

.closing { text-align: center; padding-bottom: clamp(72px, 10vw, 128px); }
.closing img { width: 132px; margin: 0 auto 24px; filter: drop-shadow(0 18px 24px rgb(138 75 20 / 0.2)); }
.closing h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.closing p { color: var(--text-2); font-size: 1.12rem; margin: 14px auto 30px; max-width: 32em; }
.footnote { color: var(--text-3); font-size: 0.85rem; text-align: center; margin-top: 28px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); padding: 36px 0 44px; color: var(--text-2); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--text-2); text-decoration: none; padding: 6px 0; display: inline-block; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .who { display: flex; align-items: center; gap: 10px; }
.site-footer .who img { width: 28px; height: 28px; border-radius: 8px; }

/* ---------- Documents (privacy, support, imprint) ---------- */

.doc-hero { position: relative; padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); isolation: isolate; }
.doc-hero::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 70% at 85% 10%, var(--glow-1), transparent 70%);
}
.doc-hero .wrap { max-width: 780px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.doc-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
.doc-hero p { color: var(--text-2); font-size: 1.12rem; margin-top: 14px; }
.doc-hero img { width: 104px; filter: drop-shadow(0 14px 18px rgb(138 75 20 / 0.2)); rotate: 6deg; }
@media (max-width: 560px) { .doc-hero img { width: 76px; } }

.doc { padding-bottom: clamp(56px, 9vw, 104px); }
.doc .wrap { max-width: 780px; }
.doc .meta { color: var(--text-3); font-size: 0.92rem; margin-bottom: 28px; }

.tldr {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-l);
  padding: 26px 28px; box-shadow: var(--shadow-1); margin-bottom: 44px;
}
.tldr h2 { font-size: 1.25rem; margin-bottom: 12px; }
.tldr ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.tldr li::marker { color: var(--accent); }

.prose h2 { font-size: 1.55rem; font-weight: 750; margin: 48px 0 14px; scroll-margin-top: 84px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose .path { font-weight: 600; white-space: normal; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { font-family: var(--font-round); font-size: 0.85rem; color: var(--text-2); }
.table-scroll { overflow-x: auto; }

.toc { background: var(--canvas-deep); border-radius: var(--r-m); padding: 18px 22px; margin-bottom: 8px; }
.toc b { font-family: var(--font-round); display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 240px; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.faq-group { margin-top: 44px; }
.faq-group > h2 { font-size: 1.45rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-m); margin-bottom: 10px; box-shadow: 0 1px 2px rgb(138 75 20 / 0.04); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative;
  font-family: var(--font-round); font-weight: 700; font-size: 1.06rem; border-radius: var(--r-m);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0; rotate: 45deg; transition: rotate 0.2s ease, margin 0.2s ease;
}
.faq[open] summary::after { rotate: 225deg; margin-top: -2px; }
.faq .a { padding: 0 22px 18px; color: var(--text-2); }
.faq .a p, .faq .a ul, .faq .a ol { margin: 0 0 10px; }
.faq .a ul, .faq .a ol { padding-left: 1.3em; }
.faq .a strong { color: var(--text); }

.contact-card {
  margin-top: 52px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: var(--accent-soft); border-radius: var(--r-l); padding: 26px 28px;
}
.contact-card img { width: 76px; }
.contact-card h2 { font-size: 1.35rem; margin: 0 0 4px; }
.contact-card p { color: var(--text-2); }
.contact-card a { font-weight: 700; }

.placeholder { background: #fff3a8; color: #5a4300; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .placeholder { background: #5a4300; color: #fff3a8; } }
dl.imprint { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
dl.imprint dt { font-weight: 650; }
dl.imprint dd { margin: 0; }
@media (max-width: 520px) { dl.imprint { grid-template-columns: 1fr; gap: 2px; } dl.imprint dd { margin-bottom: 10px; } }

/* 404 */
.lost { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.lost img { width: 140px; margin: 0 auto 26px; rotate: -10deg; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; }
.lost p { color: var(--text-2); margin: 12px 0 26px; }

/* device screens and swatches */
.devices { padding-bottom: 14px; }
.dev::before {
  content: ""; position: absolute; inset: 14% 12%; border-radius: 3px;
  background: linear-gradient(to bottom,
    var(--mint-a) 0 11%, transparent 11% 19%, var(--sky-a) 19% 30%, transparent 30% 38%,
    var(--lavender-a) 38% 49%, transparent 49% 57%, var(--lemon-a) 57% 68%, transparent 68% 76%,
    var(--rose-a) 76% 87%, transparent 87%);
  opacity: 0.55;
}
.dev.mac::before { inset: 12% 8%; background:
  linear-gradient(to right, transparent 0 30%, var(--canvas) 30% 32%, transparent 32%),
  linear-gradient(to bottom, var(--peach-a) 0 9%, transparent 9% 16%, var(--sky-a) 16% 25%, transparent 25% 32%, var(--mint-a) 32% 41%, transparent 41% 48%, var(--blush-a) 48% 57%, transparent 57%); }
.dev.iphone::before { inset: 16% 14%; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches span { width: 30px; height: 30px; border-radius: 50%; background: var(--a); box-shadow: inset 0 0 0 5px var(--f), 0 0 0 1px var(--hairline); }

/* phone mock scales with its own width */
.phone { container-type: inline-size; }
.screen { padding: 15.5cqi 5cqi 5cqi; gap: 3.1cqi; }
.screen::before { top: 3.8cqi; width: 29cqi; height: 8.5cqi; }
.screen-head b { font-size: 8.4cqi; }
.screen-head span { font-size: 4.2cqi; }
.weekstrip div { font-size: 3.4cqi; border-radius: 3.8cqi; padding: 1.9cqi 0; }
.weekstrip div b { font-size: 5cqi; }
.task { border-radius: 5cqi; padding: 3.1cqi 3.8cqi; gap: 3.1cqi; }
.screen .task .t { font-size: 4.5cqi; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .task .m { font-size: 3.8cqi; }
.screen .task .e { font-size: 4.6cqi; }
.screen .task .tick { width: 6.3cqi; height: 6.3cqi; }
.fab { width: 15.6cqi; height: 15.6cqi; font-size: 9cqi; right: 5cqi; bottom: 5.6cqi; }

/* small screens: keep the header on one line */
@media (max-width: 520px) {
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; }
  .nav .hide-xs { display: none; }
  .brand { font-size: 1.08rem; }
}
@media (max-width: 360px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* long German words on narrow screens */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) {
  .doc-hero .wrap { grid-template-columns: 1fr; }
  .doc-hero img { display: none; }
  .tldr, .contact-card { padding: 22px 20px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card img { width: 60px; }
  .faq summary { padding: 16px 46px 16px 18px; }
  .faq .a { padding: 0 18px 16px; }
}
.widgets div { min-width: 0; overflow: hidden; }
@media (max-width: 420px) {
  .widgets { grid-template-columns: repeat(2, 1fr); }
  .widgets div:nth-child(3) { display: none; }
  .live { padding: 12px 14px; gap: 10px; }
  .live .time { font-size: 1.25rem; }
  .miniweek { gap: 3px; }
  .miniweek > div { padding: 6px 3px; }
}
.live > div { min-width: 0; }
.live b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
