/* circulud.app – product page and legal pages (konzept L.4 "Spieltisch am Abend", T.38): evening blue with candle-light
   amber, paper cream in the light theme. Fonts of the app, self-hosted (SIL OFL, licences in /assets/fonts/), no external
   resources. The link pages under /a/ keep their own cl.css. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces_italic.woff2") format("woff2");
  font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage_bold.woff2") format("woff2");
  font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage_extrabold.woff2") format("woff2");
  font-style: normal; font-weight: 800; font-display: swap; }

:root {
  /* Dark (default): the app's CL palette (shared/ui/Theme.kt). */
  --bg: #11152A; --bg-2: #161B36; --surface: #1E2445; --surface-2: #2B3360; --line: rgba(244, 235, 221, .12);
  --line-strong: rgba(244, 235, 221, .22); --text: #F4EBDD; --muted: #B9B8D0; --faint: #8E90B4;
  --accent: #F2A541; --accent-text: #F2A541; --accent-ink: #11152A; --accent-soft: rgba(242, 165, 65, .13);
  --glow: rgba(242, 165, 65, .20); --glow-blue: rgba(70, 84, 160, .45); --focus: #FFD58A;
  --shadow: 0 30px 70px -24px rgba(0, 0, 0, .75), 0 10px 24px -12px rgba(0, 0, 0, .5);
  --bezel: #0A0C18; --bezel-edge: #3A4170; --header: rgba(17, 21, 42, .82);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ui: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 24px; --max: 1120px;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F0E6; --bg-2: #FFFBF5; --surface: #FFFBF5; --surface-2: #EDE4D4; --line: rgba(31, 35, 64, .12);
    --line-strong: rgba(31, 35, 64, .22); --text: #1F2340; --muted: #4F5068; --faint: #5F6078;
    --accent: #A6560F; --accent-text: #9A4F0C; --accent-ink: #FFFBF5; --accent-soft: rgba(166, 86, 15, .10);
    --glow: rgba(242, 165, 65, .30); --glow-blue: rgba(160, 170, 220, .30); --focus: #A6560F;
    --shadow: 0 30px 60px -28px rgba(31, 35, 64, .45), 0 10px 22px -14px rgba(31, 35, 64, .3);
    --bezel: #15182C; --bezel-edge: #4A5080; --header: rgba(246, 240, 230, .86);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: var(--accent-text); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px;
  border-radius: 10px; z-index: 30; font: 700 15px var(--ui); }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ─────────────────────────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top.scrolled { border-bottom-color: var(--line); }
/* With script, the header is see-through over the hero until the page scrolls (data-released is set by site.js). */
html[data-released] .top:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font: 800 20px/1 var(--ui); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; font: 700 15px/1 var(--ui); }
.nav a { color: var(--muted); text-decoration: none; padding: 12px 10px; border-radius: 10px; }
.nav a:hover { color: var(--text); }
.nav .lang { margin-left: 6px; border: 1px solid var(--line-strong); padding: 9px 12px; border-radius: 999px; color: var(--text); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* ── Type ───────────────────────────────────────────────────────────────────────────────────── */
h1, h2 { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -.015em; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--accent-text); }
h3 { font: 800 19px/1.3 var(--ui); letter-spacing: -.005em; margin: 0 0 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--ui); letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-text); margin: 0 0 18px; }
.eyebrow .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); letter-spacing: 0; }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 20px); line-height: 1.55; max-width: 36em; margin: 0; }

/* ── Buttons, status ────────────────────────────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 13px 22px;
  border-radius: 999px; font: 700 16px/1.1 var(--ui); text-decoration: none; color: var(--text);
  border: 1px solid var(--line-strong); background: transparent; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-soft); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
.btn svg { width: 20px; height: 20px; flex: none; }
.status { display: inline-flex; align-items: center; gap: 10px; font: 700 14.5px/1.35 var(--ui); color: var(--muted); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 5px var(--accent-soft); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); text-decoration: none;
  font: 700 13px/1.15 var(--ui); }
.store svg { width: 24px; height: 24px; flex: none; }
.store b { display: block; font: 800 17px/1.1 var(--ui); }
.store small { color: var(--muted); font-weight: 700; }
html[data-released="true"] .when-soon, html:not([data-released="true"]) .when-released { display: none !important; }

/* ── Device frame ───────────────────────────────────────────────────────────────────────────────
   The screens are 1080 x 2400 (9:20). The image keeps that ratio exactly (width/height attributes + height:auto),
   the bezel is padding around it, so nothing is ever stretched or cropped. */
.phone { --pw: 280px; position: relative; width: var(--pw); flex: none; margin: 0; padding: calc(var(--pw) * .034);
  border-radius: calc(var(--pw) * .15); background: var(--bezel);
  box-shadow: inset 0 0 0 1.5px var(--bezel-edge), inset 0 0 0 4px rgba(0, 0, 0, .6), var(--shadow); }
.phone .screen { position: relative; display: block; overflow: hidden; border-radius: calc(var(--pw) * .118);
  background: #11152A; }
.phone img { width: 100%; height: auto; aspect-ratio: 9 / 20; }
.phone .screen::after { content: ""; position: absolute; top: 1.6%; left: 50%; width: 4%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #05060C; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.stack { position: relative; display: flex; justify-content: center; align-items: flex-end; isolation: isolate; }
.stack::before { content: ""; position: absolute; inset: 8% 0 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px); }
.stack .phone { z-index: 1; }
.stack .back { z-index: 0; --pw: calc(var(--main) * .82); margin-bottom: 7%; }
.stack .back.right { margin-left: calc(var(--main) * -.34); }
.stack .back.left { margin-right: calc(var(--main) * -.34); }
.stack .phone:not(.back) { --pw: var(--main); }
.stack { --main: min(260px, 62vw); }
.stack.trio { --main: min(240px, 52vw); }
.stack.trio .back { --pw: calc(var(--main) * .78); }
.stack.trio .back.left { margin-right: calc(var(--main) * -.42); }
.stack.trio .back.right { margin-left: calc(var(--main) * -.42); }
@media (min-width: 900px) {
  .stack { --main: 290px; } .stack.trio { --main: 250px; }
  .stack.trio .back.left { margin-right: calc(var(--main) * -.27); }
  .stack.trio .back.right { margin-left: calc(var(--main) * -.27); }
}

/* ── Hero ───────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; margin-top: -64px; padding: 104px 0 64px;
  background: radial-gradient(60% 55% at 78% 30%, var(--glow-blue), transparent 70%),
              radial-gradient(45% 40% at 70% 70%, var(--glow), transparent 70%); }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 9vw, 84px); line-height: 1.02; margin: 0 0 22px; }
.hero h1 em { display: block; }
.hero .lead { margin-bottom: 30px; }
.hero .meta { margin-top: 26px; display: grid; gap: 16px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none;
  color: var(--faint); font: 700 14px/1.4 var(--ui); }
.hero .facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero .facts svg { width: 16px; height: 16px; color: var(--accent-text); }
.hero .stack { --main: min(272px, 64vw); }
.hero .note { color: var(--muted); font-size: 15px; margin: 0; }
@media (min-width: 760px) {
  .hero { padding: 112px 0 72px; }
  .hero .wrap { grid-template-columns: 1.08fr .92fr; gap: 32px; }
  .hero h1 { font-size: clamp(44px, 7.4vw, 84px); }
  .hero .stack { --main: 250px; justify-content: flex-end; }
}
@media (min-width: 1100px) { .hero .stack { --main: 300px; padding-right: 24px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .copy > :nth-child(2) { animation-delay: .06s; } .hero .copy > :nth-child(3) { animation-delay: .12s; }
  .hero .copy > :nth-child(4) { animation-delay: .18s; } .hero .copy > :nth-child(5) { animation-delay: .24s; }
  .hero .stack .phone { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .stack .back { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* ── Sections ───────────────────────────────────────────────────────────────────────────────── */
.band { padding: 72px 0; }
.band.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.band h2 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.08; margin: 0 0 16px; max-width: 18em; }
.band .head { margin-bottom: 40px; }
@media (min-width: 900px) { .band { padding: 104px 0; } }

/* Journey: one evening in five steps. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; align-items: start; align-content: start;
  padding: 18px 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.steps .ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); }
.steps .ic svg { width: 26px; height: 26px; }
.steps h3 { margin: 4px 0 0; }
.steps h3::before { counter-increment: step; content: counter(step) " · "; color: var(--faint); font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .steps li { grid-template-columns: 1fr; padding: 22px 20px 24px; }
  .steps .ic { grid-row: auto; margin-bottom: 12px; }
}

/* Feature: text + phones, alternating. */
.feature { display: grid; gap: 44px; align-items: center; }
.feature + .feature, .guests + .feature { margin-top: 96px; }
.feature .copy h2 { font-size: clamp(32px, 4.6vw, 48px); }
.feature .copy .lead { margin-bottom: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); line-height: 1.5; }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2A541' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (prefers-color-scheme: light) {
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A6560F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.flip .copy { order: 2; }
}

/* Guests need no app: a highlighted strip. */
.guests { display: grid; gap: 22px; align-items: center; padding: 28px; border-radius: 28px; margin-top: 96px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface); border: 1px solid var(--line-strong); }
.guests .ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--accent);
  color: var(--accent-ink); }
.guests .ic svg { width: 30px; height: 30px; }
.guests h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
.guests p { margin: 0; color: var(--muted); max-width: 46em; }
@media (min-width: 760px) { .guests { grid-template-columns: auto 1fr; padding: 36px 40px; gap: 28px; } }

/* Cards (data, web companion). */
.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent-text); }
.card .ic svg { width: 24px; height: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.more { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 700 15px/1.4 var(--ui); }
.companion { margin-top: 20px; display: grid; gap: 18px; align-items: center; }
.companion p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .companion { grid-template-columns: 1fr auto; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 20px 2px; font: 700 18px/1.35 var(--ui); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2.5px solid var(--accent-text);
  border-bottom: 2.5px solid var(--accent-text); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 42em; }

/* Closing call */
.closing { text-align: center; }
.closing .inner { padding: 56px 24px; border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 0%, var(--glow), transparent 70%), var(--surface); }
.closing img { margin: 0 auto 22px; width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 12px 30px -8px var(--glow); }
.closing h2 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 14px; }
.closing .lead { margin: 0 auto 26px; }
.closing .stores, .closing .actions { justify-content: center; }
.closing .contact { margin: 30px 0 0; color: var(--muted); }
.closing .contact a { font: 800 clamp(18px, 2.6vw, 22px)/1.3 var(--ui); text-decoration: none; overflow-wrap: anywhere; }

/* ── Footer ─────────────────────────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; gap: 20px; }
footer .brand { font-size: 18px; }
footer .brand img { width: 28px; height: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 2px 20px; font: 700 15px/1 var(--ui); }
footer a { color: var(--muted); text-decoration: none; padding: 10px 0; display: inline-block; }
footer a:hover { color: var(--text); }
footer small { color: var(--faint); font-size: 13.5px; line-height: 1.6; }
footer small a { padding: 0; text-decoration: underline; }
@media (min-width: 900px) { footer .wrap { grid-template-columns: auto 1fr; align-items: center; } footer nav { justify-content: flex-end; }
  footer small { grid-column: 1 / -1; } }

/* ── Legal pages (privacy, terms, delete account): content unchanged, only the look ────────── */
.legal { padding: 52px 0 24px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5.4vw, 46px); line-height: 1.12; margin: 0 0 14px; overflow-wrap: anywhere; }
.legal h2 { font: 800 22px/1.3 var(--ui); font-style: normal; letter-spacing: -.01em; margin: 40px 0 8px; }
.legal h3 { font-size: 17.5px; margin: 26px 0 4px; }
.legal [id] { scroll-margin-top: 84px; }
.legal p, .legal li { color: var(--muted); overflow-wrap: anywhere; }
.legal li + li { margin-top: 4px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }
.legal section { padding: 0; }
.lang-switch { margin: 6px 0 24px; font-size: 15px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

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