/* Lightfast support site — "night sky turning to dawn"
   Spectral (display serif) + Figtree (body sans).
   Night indigo → dusk → plum → ember → gold over a cool mist page.
   Text colours were checked for WCAG AA: ink, ink-soft, accent and ember-ink
   all clear 4.5:1 on --page and --card in both colour schemes. Ember and gold
   are decorative on light surfaces; they carry text only on the night sky. */

:root {
  --indigo:       #141933;
  --dusk:         #2B2452;
  --plum:         #5C3060;
  --ember:        #E07A3A;
  --gold:         #F2C14E;

  --page:         #F4F3F8;
  --page-deep:    #E9E7F2;
  --card:         #FFFFFF;
  --card-line:    rgba(43, 36, 82, 0.12);
  --ink:          #1D1B33;
  --ink-soft:     #4E4A68;
  --accent:       #4B3FA8;
  --accent-strong:#382E8C;
  --accent-wash:  rgba(75, 63, 168, 0.08);
  --ember-ink:    #A8481A;
  --hair:         rgba(43, 36, 82, 0.14);
  --nav-bg:       rgba(244, 243, 248, 0.86);
  --shadow:       0 18px 44px -22px rgba(29, 27, 51, 0.38);
  --focus:        #4B3FA8;
  --on-sky:       #F7F3EA;
  --on-sky-soft:  #D4CDE8;
  --radius:       20px;
  --radius-sm:    12px;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page:         #0F1328;
    --page-deep:    #0B0E1F;
    --card:         #181C38;
    --card-line:    rgba(212, 205, 232, 0.12);
    --ink:          #EEEBF7;
    --ink-soft:     #B9B4D2;
    --accent:       #B7ABFF;
    --accent-strong:#D2C9FF;
    --accent-wash:  rgba(183, 171, 255, 0.10);
    --ember-ink:    #F39C62;
    --hair:         rgba(212, 205, 232, 0.14);
    --nav-bg:       rgba(15, 19, 40, 0.86);
    --shadow:       0 20px 50px -24px rgba(0, 0, 0, 0.75);
    --focus:        #F2C14E;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--page);
  background-image: radial-gradient(110% 60% at 50% 0%, var(--accent-wash), transparent 70%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; }
.narrow { max-width: 780px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* ---------------------------------------------------------- typography */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.005em;
}
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
strong { font-weight: 650; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-ink);
}
.kicker::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 40%, var(--ember) 70%);
  box-shadow: 0 0 10px rgba(224, 122, 58, 0.55);
}

/* ---------------------------------------------------------- focus & skip */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sky :focus-visible, .foot :focus-visible, .vow :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--card); color: var(--accent); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------- brand mark */
.mark { display: block; flex: none; color: var(--accent); }
.mark .sun { fill: var(--ember); }
.mark .rays { stroke: var(--ember); }
.mark .line { stroke: currentColor; }

/* ---------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
/* The section links share the bar with six language tabs: they tighten on
   narrow tablets and give way below 820px (French needs the most room). */
@media (max-width: 920px) { .nav-links { gap: 14px; } .nav-links a { font-size: 0.84rem; } }
@media (max-width: 820px) { .nav-links { display: none; } }
.nav-right { display: flex; align-items: center; }

/* ---------------------------------------------------------- night-sky hero */
.sky {
  position: relative;
  overflow: hidden;
  color: var(--on-sky);
  background:
    radial-gradient(90% 55% at 50% 112%, rgba(242, 193, 78, 0.55) 0%, rgba(224, 122, 58, 0.42) 28%, rgba(92, 48, 96, 0) 62%),
    linear-gradient(180deg, #141933 0%, #191D3D 26%, #2B2452 52%, #4A2B5C 76%, #5C3060 100%);
}
/* Two layers of stars, drawn with gradients so no image is fetched. */
.sky::before, .sky::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 70%;
  pointer-events: none;
  background-repeat: no-repeat;
}
.sky::before {
  background-image:
    radial-gradient(1.6px 1.6px at 8% 14%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 17% 38%, #fff, transparent 70%),
    radial-gradient(1.8px 1.8px at 27% 9%, #fff, transparent 70%),
    radial-gradient(1.1px 1.1px at 34% 27%, #fff, transparent 70%),
    radial-gradient(1.4px 1.4px at 46% 6%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 58% 22%, #fff, transparent 70%),
    radial-gradient(1.7px 1.7px at 66% 11%, #fff, transparent 70%),
    radial-gradient(1.1px 1.1px at 74% 33%, #fff, transparent 70%),
    radial-gradient(1.5px 1.5px at 83% 16%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 92% 29%, #fff, transparent 70%),
    radial-gradient(1px 1px at 4% 46%, #fff, transparent 70%),
    radial-gradient(1px 1px at 96% 52%, #fff, transparent 70%);
  opacity: 0.85;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.sky::after {
  background-image:
    radial-gradient(1px 1px at 12% 24%, #F6E7C1, transparent 70%),
    radial-gradient(1.3px 1.3px at 22% 55%, #fff, transparent 70%),
    radial-gradient(1px 1px at 39% 15%, #F6E7C1, transparent 70%),
    radial-gradient(1.2px 1.2px at 52% 35%, #fff, transparent 70%),
    radial-gradient(1px 1px at 63% 48%, #F6E7C1, transparent 70%),
    radial-gradient(1.3px 1.3px at 78% 6%, #fff, transparent 70%),
    radial-gradient(1px 1px at 88% 42%, #F6E7C1, transparent 70%),
    radial-gradient(1.2px 1.2px at 31% 44%, #fff, transparent 70%);
  opacity: 0.55;
  animation: twinkle 9s ease-in-out -3s infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.95; } }

.sky .wrap { z-index: 2; }
.sky h1, .sky h2, .sky h3 { color: var(--on-sky); }
.sky a { color: var(--gold); }
.sky .kicker { color: var(--gold); }

.hero { text-align: center; padding-top: 72px; padding-bottom: 8px; }
.hero .icon {
  width: 120px; height: 120px; border-radius: 27%;
  box-shadow: 0 0 0 1px rgba(242, 193, 78, 0.45), 0 0 60px -6px rgba(242, 193, 78, 0.45), 0 24px 50px -20px rgba(0, 0, 0, 0.7);
  margin-bottom: 26px;
}
.hero h1 { font-size: clamp(3.2rem, 10vw, 5.6rem); font-weight: 300; letter-spacing: 0.02em; margin: 14px 0 10px; }
.hero .tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem, 3.6vw, 1.6rem); line-height: 1.4;
  color: var(--on-sky-soft); max-width: 34ch; margin: 0 auto 20px;
}
.hero .meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-sky-soft); }

.verse {
  max-width: 620px; margin: 34px auto 0; padding: 22px 26px;
  border-radius: var(--radius);
  background: rgba(20, 25, 51, 0.45);
  border: 1px solid rgba(242, 193, 78, 0.28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.verse blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 3.4vw, 1.6rem); line-height: 1.35; color: var(--on-sky); }
.verse figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--on-sky-soft); }

/* The horizon strip: the app's dawn timer — a sun climbing a dotted arc. */
.horizon { display: block; width: 100%; height: auto; margin-top: 18px; position: relative; z-index: 1; }

/* ---------------------------------------------------------- section rhythm */
/* Vertical padding only: these sections are also .wrap, whose side gutter must survive. */
section.block { padding-top: 64px; padding-bottom: 64px; }
.section-head { margin-bottom: 34px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin-top: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; max-width: 62ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------- feature grid */
/* Eight cards: 4 × 2 on wide screens, 2 × 4 on tablets, one column on phones. */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s, border-color 0.35s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--indigo) 0%, var(--dusk) 55%, var(--plum) 100%);
  color: var(--gold);
  box-shadow: inset 0 -10px 18px -10px rgba(224, 122, 58, 0.75);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.32rem; font-weight: 600; margin: 16px 0 6px; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.6; }

/* ---------------------------------------------------------- journeys */
.journeys { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; list-style: none; }
@media (max-width: 400px) { .journeys { grid-template-columns: 1fr; } }
.journey {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.journey .len {
  flex: none; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 120%, rgba(242,193,78,0.85) 0%, rgba(224,122,58,0.85) 30%, var(--plum) 62%, var(--dusk) 100%);
  color: var(--on-sky);
  line-height: 1;
}
.journey .len b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; display: block; }
.journey .len small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 2px; }
.journey .len.wk b { font-size: 0.86rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.02em; line-height: 1.15; }
.journey h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.journey p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; margin-top: 3px; }
.tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-family: var(--font-body); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-wash); border-radius: 999px; padding: 2px 8px;
}
.each-day {
  margin-top: 22px; padding: 18px 22px; border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--ink-soft); font-size: 0.97rem; text-align: center;
}
.each-day strong { color: var(--ink); }

/* ---------------------------------------------------------- spotlight (food guide, group fasts) */
.spot { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .spot { grid-template-columns: 1fr; gap: 28px; } }
.spot h2 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); margin: 10px 0 12px; }
.spot p { color: var(--ink-soft); margin-bottom: 12px; }
.ticks { list-style: none; margin-top: 8px; }
.ticks li { position: relative; padding: 6px 0 6px 28px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 35%, var(--ember) 75%);
}

/* A static illustration of the "Can I eat…?" answers (not interactive). */
.mock {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 26px;
  padding: 20px; box-shadow: var(--shadow); max-width: 400px; width: 100%; justify-self: center;
}
.mock .search {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: var(--page); color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 10px;
}
.mock .search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.mock ul { list-style: none; }
.mock li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--hair); }
.mock li:last-child { border-bottom: 0; }
.mock .food { font-weight: 600; }
.verdict { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.v-yes   { color: #1F6B45; background: rgba(46, 160, 104, 0.14); }
.v-check { color: #8A4A0E; background: rgba(242, 193, 78, 0.30); }
.v-no    { color: #9B2C3A; background: rgba(214, 74, 92, 0.13); }
@media (prefers-color-scheme: dark) {
  .v-yes   { color: #8FE3B6; background: rgba(46, 160, 104, 0.22); }
  .v-check { color: #F6D58A; background: rgba(242, 193, 78, 0.18); }
  .v-no    { color: #FFA6B2; background: rgba(214, 74, 92, 0.22); }
}
.mock .caption { font-size: 0.8rem; color: var(--ink-soft); text-align: center; margin-top: 10px; }

/* Group-fast steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-sm);
  padding: 16px 18px 16px 64px; color: var(--ink-soft);
}
.steps li strong { color: var(--ink); display: block; font-weight: 650; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--on-sky); background: linear-gradient(160deg, var(--dusk), var(--plum));
}

/* ---------------------------------------------------------- free & plus */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 680px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--card-line); border-radius: var(--radius); padding: 28px 26px; background: var(--card); position: relative; }
.tier h3 { font-size: 1.6rem; font-weight: 500; }
.tier .sub { font-size: 0.92rem; color: var(--ink-soft); margin: 4px 0 14px; }
.tier ul { list-style: none; }
.tier li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); font-size: 0.97rem; }
.tier li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.tier.plus {
  color: var(--on-sky); border-color: rgba(242, 193, 78, 0.35); box-shadow: var(--shadow);
  background:
    radial-gradient(120% 70% at 50% 120%, rgba(224, 122, 58, 0.45), transparent 60%),
    linear-gradient(170deg, var(--indigo) 0%, var(--dusk) 60%, var(--plum) 100%);
}
.tier.plus h3 { color: var(--on-sky); }
.tier.plus .sub { color: var(--on-sky-soft); }
.tier.plus li { color: var(--on-sky); }
.tier.plus li::before { border: 0; background: radial-gradient(circle, var(--gold) 0 40%, var(--ember) 80%); }
.badge {
  position: absolute; top: -12px; right: 22px;
  background: var(--gold); color: var(--indigo);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.fine { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: 18px; }

/* ---------------------------------------------------------- privacy vow band */
.vow {
  position: relative; overflow: hidden; text-align: center; color: var(--on-sky);
  padding: 60px 0;
  background:
    radial-gradient(70% 90% at 50% 130%, rgba(224, 122, 58, 0.45), transparent 60%),
    linear-gradient(180deg, var(--indigo), var(--dusk));
}
.vow .kicker { color: var(--gold); }
.vow p.big { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.25; max-width: 24ch; margin: 12px auto 0; color: var(--on-sky); }
.vow .em { color: var(--gold); font-style: italic; }
.vow p.small { color: var(--on-sky-soft); max-width: 58ch; margin: 14px auto 0; font-size: 0.97rem; }
.vow a { color: var(--gold); }

/* ---------------------------------------------------------- FAQ */
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 44px 18px 0;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 8px 20px 0; color: var(--ink-soft); }
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p { margin-top: 10px; }
.faq .answer ul { margin-left: 20px; }
.faq .answer li { margin: 4px 0; }
.faq .answer strong { color: var(--ink); }

/* ---------------------------------------------------------- contact card */
.contact-card {
  text-align: center; background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius); padding: 44px 26px; box-shadow: var(--shadow);
}
.contact-card h2 { font-size: clamp(1.8rem, 4.4vw, 2.3rem); margin-top: 12px; }
.contact-card p { color: var(--ink-soft); max-width: 46ch; margin: 10px auto 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent-strong); color: #FFFFFF; box-shadow: 0 10px 24px -12px rgba(56, 46, 140, 0.8); }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--gold); color: var(--indigo); box-shadow: 0 10px 28px -12px rgba(242, 193, 78, 0.6); } }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }
.contact-card .btn { margin-top: 22px; }
.contact-card .addr { display: block; margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------------------------------------------------------- footer */
.foot {
  position: relative; margin-top: 64px; padding: 46px 0 36px;
  background: var(--indigo); color: var(--on-sky-soft);
}
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--plum), var(--ember) 45%, var(--gold) 55%, var(--plum));
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; justify-content: space-between; }
.foot .brand { color: var(--on-sky); }
.foot .brand:hover { color: var(--gold); }
.foot .mark { color: var(--on-sky-soft); }
.foot .mark .sun { fill: var(--gold); }
.foot .mark .rays { stroke: var(--gold); }
.foot-links { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.foot-links a { color: var(--on-sky); text-decoration: none; font-size: 0.95rem; }
.foot-links a:hover { color: var(--gold); text-decoration: underline; }
.foot .health { width: 100%; text-align: center; font-size: 0.9rem; color: var(--on-sky-soft); padding-top: 20px; border-top: 1px solid rgba(212, 205, 232, 0.16); }
.foot .cr { width: 100%; text-align: center; font-size: 0.8rem; color: #A9A3C4; }

/* ---------------------------------------------------------- legal pages */
.legal-hero { text-align: center; padding: 60px 0 28px; }
.legal-hero h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 400; margin-top: 12px; }
.legal-hero .app { color: var(--ink-soft); font-family: var(--font-display); font-style: italic; font-size: 1.1rem; margin-top: 8px; }
.legal-hero .date { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-ink); margin-top: 12px; }
.legal { padding-bottom: 32px; }
.legal .card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: clamp(22px, 5vw, 50px); box-shadow: var(--shadow); }
.legal h2 { font-size: 1.45rem; font-weight: 600; margin: 34px 0 10px; padding-left: 14px; border-left: 3px solid var(--ember); }
.legal h2:first-of-type { margin-top: 6px; }
.legal h3 { font-size: 1.12rem; font-weight: 600; margin: 20px 0 6px; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 8px; }
.legal .highlight {
  background: linear-gradient(135deg, var(--accent-wash), transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 18px 22px; margin: 0 0 26px;
}
.legal .highlight p:last-child { margin-bottom: 0; }
.legal .caps { text-transform: none; font-size: 0.95rem; }
.legal .contact { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hair); }
.legal .contact h2 { border: 0; padding: 0; }
.legal .contact a { font-size: 1.15rem; font-weight: 600; }
/* impressum.html: one <section> per language, stacked */
.legal section + section { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hair); }
.toc { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; background: var(--accent-wash); text-decoration: none; }

/* ---------------------------------------------------------- join page */
.join-main { padding-top: 28px; padding-bottom: 8px; }
.invite {
  position: relative; overflow: hidden; color: var(--on-sky); text-align: center;
  border-radius: 28px; padding: 38px 22px 0; box-shadow: var(--shadow);
  background:
    radial-gradient(110% 55% at 50% 108%, rgba(242, 193, 78, 0.6) 0%, rgba(224, 122, 58, 0.45) 26%, rgba(92, 48, 96, 0) 62%),
    linear-gradient(180deg, #141933 0%, #2B2452 55%, #5C3060 100%);
}
.invite .icon { width: 84px; height: 84px; border-radius: 27%; box-shadow: 0 0 0 1px rgba(242,193,78,0.45), 0 0 40px -6px rgba(242,193,78,0.5); }
.invite .who { margin-top: 18px; font-size: 0.95rem; font-weight: 600; color: var(--gold); overflow-wrap: anywhere; }
.invite h1 { font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 400; color: var(--on-sky); margin-top: 8px; overflow-wrap: anywhere; }
.invite .subtitle { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--on-sky-soft); margin-top: 6px; }
.invite .when {
  display: inline-block; margin-top: 20px; padding: 12px 18px; border-radius: 16px;
  background: rgba(20, 25, 51, 0.5); border: 1px solid rgba(242, 193, 78, 0.3);
}
.invite .when .label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-sky-soft); }
.invite .when .date { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--on-sky); margin-top: 2px; }
.invite .when .rel { display: block; font-size: 0.88rem; color: var(--gold); margin-top: 2px; }
.invite .horizon { margin-top: 22px; }
.actions { display: grid; gap: 12px; margin: 26px auto 0; max-width: 420px; }
.actions .btn { width: 100%; }
.how { margin: 30px auto 0; max-width: 520px; }
.how h2 { font-size: 1.35rem; font-weight: 600; text-align: center; }
.how ol { margin: 12px 0 0 22px; color: var(--ink-soft); }
.how li { margin: 6px 0; }
.how p { color: var(--ink-soft); font-size: 0.93rem; margin-top: 14px; text-align: center; }
.problem { text-align: center; padding: 44px 22px; }
.problem .icon { width: 84px; height: 84px; border-radius: 27%; box-shadow: 0 0 0 1px var(--hair), var(--shadow); }
.problem h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 400; margin-top: 12px; }
.problem p { color: var(--ink-soft); max-width: 46ch; margin: 12px auto 0; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------- 404 */
.lost { text-align: center; padding-top: 30px; padding-bottom: 60px; }
.lost h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); font-weight: 400; margin-top: 8px; }
.lost p { color: var(--on-sky-soft); max-width: 44ch; margin: 12px auto 26px; }
.lost .btn-primary { background: var(--gold); color: var(--indigo); }

/* ---------------------------------------------------------- motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-rise] { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes climb { from { transform: translate(-60px, 70px); opacity: 0.2; } to { transform: none; opacity: 1; } }
.horizon .climb { animation: climb 2.4s cubic-bezier(.2,.7,.2,1) 0.3s both; transform-box: view-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------- langtabs */
/* Contract (same as the developer's other support sites): .langtabs is the
   role="tablist"; each control is a button with role="tab" and
   data-lang-target. site.js maintains aria-selected and tabindex. The selected
   tab carries three cues — fill, weight and an ember underbar — so the state
   never rests on colour alone. */
.langtabs {
  display: inline-flex; gap: 2px; padding: 3px;
  border-radius: 999px;
  background: var(--accent-wash);
  border: 1px solid var(--hair);
}
.langtabs [role="tab"] {
  position: relative;
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; cursor: pointer;
  min-width: 38px; min-height: 32px;
  padding: 6px 10px 7px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.langtabs [role="tab"]:hover { color: var(--accent); }
.langtabs [role="tab"][aria-selected="true"] {
  background: var(--card);
  color: var(--accent);
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(29, 27, 51, 0.22);
}
.langtabs [role="tab"][aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 14px; height: 2px; border-radius: 1px; background: var(--ember);
}
/* Six tabs (EN · PT · ES · FR · IT · DE) and the brand share one row on a
   phone: from 440px down the tabs and the wordmark tighten, and below 370px
   the header keeps only the brand's mark. Its text stays in the link (size 0),
   so the link is still announced as "Lightfast". */
@media (max-width: 440px) {
  .nav .wrap { gap: 10px; }
  .langtabs [role="tab"] { min-width: 31px; padding: 5px 5px 6px; letter-spacing: 0.02em; }
  .brand { font-size: 1.2rem; gap: 8px; }
}
@media (max-width: 370px) {
  .nav .brand { font-size: 0; gap: 0; }
}

/* ---------------------------------------------------------- language visibility */
/* Language sections are hidden ONLY under the authorisation of data-js on
   <html>, which site.js sets first and withdraws if setup fails. Without it
   all six languages render stacked: showing six languages is a cosmetic
   failure; showing none would hide a legal document. Never hide [data-lang]
   outside an html[data-js="on"] scope. */
html[data-js="on"] [data-lang] { display: none; }
html[data-js="on"] [data-lang][data-lang-active] { display: block; }

html:not([data-js="on"]) [data-lang] + [data-lang] {
  border-top: 2px solid var(--hair);
  margin-top: 28px;
  padding-top: 28px;
}
html:not([data-js="on"]) .langtabs { display: none; }
