/* ==========================================================================
   Rostrik — Alarm & Shift Planner
   Site stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts
   Manrope, self-hosted (SIL Open Font License — see assets/fonts/OFL.txt).
   One variable file per subset covers every weight from 200 to 800, and no
   visitor data is sent to a third-party font service.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the Rostrik logo and banner */
  --orange:        #f8811a;
  --orange-bright: #ffa94d;
  --orange-deep:   #d9660a;
  --blue:          #2e86e8;
  --blue-bright:   #6fb2fb;
  --blue-deep:     #0058a8;

  /* Surfaces */
  --bg:        #050a16;
  --bg-deep:   #03060f;
  --surface:   #0b1428;
  --surface-2: #101c38;
  --surface-3: #16244a;

  /* Ink */
  --text:      #eef3fa;
  --text-soft: #c3cee2;
  --muted:     #8f9db9;

  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Shift colours — mirror the app's timeline legend */
  --shift-day:       #f5c518;
  --shift-afternoon: #f8811a;
  --shift-night:     #4b62d8;
  --shift-off:       #33405e;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow:    0 18px 50px -20px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  --glow-orange: 0 0 0 1px rgba(248, 129, 26, 0.35), 0 14px 40px -12px rgba(248, 129, 26, 0.45);

  --wrap: 1160px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 4.1vw, 4.3rem); }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.5vw, 2.9rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.55vw, 1.35rem); letter-spacing: -0.022em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(248, 129, 26, 0.32); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 760px; }

section { position: relative; }

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
}

.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.775rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.section-head--center .eyebrow::before { display: none; }

.lede {
  font-size: clamp(1.02rem, 0.97rem + 0.28vw, 1.2rem);
  color: var(--text-soft);
  max-width: 62ch;
}

.section-head--center .lede { margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  background: var(--orange);
  color: #14100a;
  font-weight: 800;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  z-index: 200;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange) 45%, var(--orange-deep));
  color: #180f04;
  box-shadow: var(--glow-orange);
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(248, 129, 26, 0.5), 0 20px 50px -14px rgba(248, 129, 26, 0.62);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.9rem; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* Store badges ----------------------------------------------------------- */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: stretch;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 1.35rem 0.72rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              background-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.store-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: var(--shadow);
}

.store-badge__icon { width: 26px; height: 26px; flex: none; }

.store-badge__text { display: grid; line-height: 1.25; }
.store-badge__sm {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.store-badge__lg { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }

.store-badge--soon {
  cursor: default;
  opacity: 0.72;
}
.store-badge--soon:hover { transform: none; box-shadow: none; }

.store-badge--soon .store-badge__lg { color: var(--text-soft); }

.pill-soon {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-bright);
  border: 1px solid rgba(111, 178, 251, 0.4);
  background: rgba(46, 134, 232, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  align-self: center;
  margin-left: 0.1rem;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(5, 10, 22, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}

/* Logo lockup ------------------------------------------------------------ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  flex: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  filter: drop-shadow(0 3px 10px rgba(248, 129, 26, 0.35));
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }

.brand__word {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand__word span { color: var(--orange); }

.brand__tag {
  display: block;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* Nav -------------------------------------------------------------------- */
.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.header-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: background-color 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.25rem var(--gutter) 2rem;
    background: rgba(6, 11, 24, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }

  .nav a { padding: 0.85rem 0.9rem; font-size: 1.05rem; border-radius: 12px; }

  .header-cta { margin: 0.75rem 0 0; justify-content: center; }
}

/* --------------------------------------------------------------------------
   6. Backdrops & atmosphere
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.aurora::before {
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  top: -22%;
  right: -14%;
  background: radial-gradient(circle, rgba(248, 129, 26, 0.5), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora::after {
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  bottom: -26%;
  left: -16%;
  background: radial-gradient(circle, rgba(46, 134, 232, 0.45), transparent 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6%, 8%, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(8%, -7%, 0) scale(1); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}

#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy { max-width: 620px; }

.hero h1 { margin-bottom: 0.4em; }

.hero h1 .line { display: block; }

.hero h1 .accent {
  background: linear-gradient(96deg, #ffc178, var(--orange-bright) 28%, var(--orange) 68%, #ff6f00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.24rem);
  color: var(--text-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}

.hero__badge b { color: var(--text); font-weight: 800; }

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.7);
  animation: pulse-dot 2.4s infinite;
  margin-left: 0.45rem;
  flex: none;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(53, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.4rem 2rem;
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.proof-item { display: grid; gap: 0.15rem; }
.proof-item strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.proof-item span { font-size: 0.83rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   8. Phone mockup
   -------------------------------------------------------------------------- */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.phone-stage::before {
  content: "";
  position: absolute;
  width: 118%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 134, 232, 0.28), transparent 62%);
  filter: blur(40px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  aspect-ratio: 312 / 683;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(155deg, #4c5470, #171d31 38%, #0c1020 70%, #39405a);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.09) inset,
    0 0 60px -12px rgba(248, 129, 26, 0.32);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}

.phone--tilt { transform: rotateY(-11deg) rotateX(4deg) rotate(0.6deg); }

.phone-stage:hover .phone--tilt { transform: rotateY(-4deg) rotateX(1.5deg); }

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9) inset;
}

.phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

.phone__screen img.is-active { opacity: 1; transform: none; }

.phone__notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 3;
}

/* Floating chips around the hero phone */
.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: rgba(12, 20, 40, 0.86);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}

.float-chip small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.float-chip__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
}

.float-chip__icon svg { width: 16px; height: 16px; }

.float-chip--alarm {
  top: 11%;
  left: -6%;
  animation-delay: -1.2s;
}
.float-chip--alarm .float-chip__icon {
  background: rgba(248, 129, 26, 0.16);
  color: var(--orange-bright);
}

.float-chip--shift {
  bottom: 15%;
  right: -7%;
  animation-delay: -3.4s;
}
.float-chip--shift .float-chip__icon {
  background: rgba(46, 134, 232, 0.18);
  color: var(--blue-bright);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: none; }
  .phone--tilt { transform: none; }
  .float-chip--alarm { left: 0; }
  .float-chip--shift { right: 0; }
}

@media (max-width: 460px) {
  .float-chip { font-size: 0.75rem; padding: 0.5rem 0.7rem; }
  .float-chip--alarm { left: -2%; top: 8%; }
  .float-chip--shift { right: -2%; }
}

/* --------------------------------------------------------------------------
   9. Logo / trust strip
   -------------------------------------------------------------------------- */
.strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem 2rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.strip-item { display: flex; gap: 0.9rem; align-items: flex-start; }

.strip-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  background: rgba(248, 129, 26, 0.12);
  color: var(--orange);
}

.strip-item__icon svg { width: 19px; height: 19px; }

.strip-item h3 { font-size: 1rem; margin-bottom: 0.2em; }
.strip-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   10. Cards & feature grid
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(248, 129, 26, 0.55), transparent 42%, rgba(46, 134, 232, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card:hover::after { opacity: 1; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  background: linear-gradient(140deg, rgba(248, 129, 26, 0.22), rgba(248, 129, 26, 0.06));
  color: var(--orange-bright);
  border: 1px solid rgba(248, 129, 26, 0.24);
}

.feature__icon svg { width: 22px; height: 22px; }

.feature--blue .feature__icon {
  background: linear-gradient(140deg, rgba(46, 134, 232, 0.24), rgba(46, 134, 232, 0.06));
  color: var(--blue-bright);
  border-color: rgba(46, 134, 232, 0.28);
}

.feature p { font-size: 0.94rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   11. How it works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 2rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 2.9rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--orange);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(248, 129, 26, 0.11);
  border: 1px solid rgba(248, 129, 26, 0.26);
}

.step::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 56px;
  right: -1.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(248, 129, 26, 0.4), rgba(255, 255, 255, 0.05));
}

.step:last-child::after { display: none; }

.step h3 { margin-bottom: 0.35em; }
.step p { font-size: 0.94rem; color: var(--muted); }

@media (max-width: 760px) {
  .step::after { display: none; }
}

/* --------------------------------------------------------------------------
   12. Interactive rotation planner
   -------------------------------------------------------------------------- */
.planner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: stretch;
}

.panel {
  padding: clamp(1.35rem, 2.6vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
}

.panel--controls { display: flex; flex-direction: column; }

.panel__foot {
  margin-top: auto;
  padding-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

.panel__foot .planner-note { margin-top: 0; }

.field { margin-bottom: 1.5rem; }
.field:last-child { margin-bottom: 0; }

.field > label,
.field__label {
  display: block;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.stack { display: grid; gap: 0.45rem; }

.mini-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip-set { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  transform: translateY(-1px);
}

.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(248, 129, 26, 0.22), rgba(248, 129, 26, 0.08));
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(248, 129, 26, 0.9);
}

.chip small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.72); }

.input,
.select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 8, 18, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(248, 129, 26, 0.18);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9db9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 17px;
  padding-right: 2.5rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.range-wrap { display: flex; align-items: center; gap: 0.9rem; }

input[type="range"] {
  flex: 1;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) var(--fill, 40%), rgba(255, 255, 255, 0.12) var(--fill, 40%));
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--orange);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--orange);
  cursor: pointer;
}

.range-value {
  min-width: 88px;
  text-align: right;
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

/* Calendar preview ------------------------------------------------------- */
.preview { display: grid; gap: 1.15rem; }

.preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.preview__head > div:first-child { min-width: 0; }

.month-nav { display: flex; gap: 0.4rem; flex: none; }

.nav-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.preview__title { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.preview__sub { font-size: 0.85rem; color: var(--muted); }

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal__dow {
  text-align: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.3rem;
}

.cal__cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: scale(0.82);
  animation: cell-in 0.42s var(--ease) forwards;
}

@keyframes cell-in {
  to { opacity: 1; transform: none; }
}

.cal__cell::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 5px;
  height: 3px;
  border-radius: 3px;
  background: var(--bar, transparent);
}

.cal__cell[data-shift="day"]   { --bar: var(--shift-day);       background: rgba(245, 197, 24, 0.11); border-color: rgba(245, 197, 24, 0.25); color: #fff; }
.cal__cell[data-shift="night"] { --bar: var(--shift-night);     background: rgba(75, 98, 216, 0.15); border-color: rgba(75, 98, 216, 0.32); color: #fff; }
.cal__cell[data-shift="arvo"]  { --bar: var(--shift-afternoon); background: rgba(248, 129, 26, 0.13); border-color: rgba(248, 129, 26, 0.3);  color: #fff; }
.cal__cell[data-shift="off"]   { --bar: var(--shift-off); }

.cal__cell[data-today="true"] {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.cal__cell--pad { background: transparent; border-color: transparent; color: var(--muted); opacity: 0.25; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }

.legend i {
  width: 12px;
  height: 4px;
  border-radius: 3px;
  background: currentColor;
  display: inline-block;
}

.legend .lg-day   { color: var(--shift-day); }
.legend .lg-arvo  { color: var(--shift-afternoon); }
.legend .lg-night { color: var(--shift-night); }
.legend .lg-off   { color: var(--shift-off); }

/* Alarm list ------------------------------------------------------------- */
.alarms {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alarm {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 13px;
  background: rgba(4, 8, 18, 0.55);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-8px);
  animation: alarm-in 0.45s var(--ease) forwards;
}

@keyframes alarm-in {
  to { opacity: 1; transform: none; }
}

.alarm__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  background: rgba(248, 129, 26, 0.14);
  color: var(--orange-bright);
}

.alarm__icon svg { width: 17px; height: 17px; }

.alarm--night .alarm__icon { background: rgba(75, 98, 216, 0.18); color: #8f9ff5; }
.alarm--arvo  .alarm__icon { background: rgba(248, 129, 26, 0.18); color: var(--orange-bright); }

.alarm__body { display: grid; gap: 0.1rem; min-width: 0; }
.alarm__time { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.alarm__meta { font-size: 0.79rem; color: var(--muted); }

.alarm__tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  flex: none;
}

.planner-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .planner { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   13. Screens gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.9rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem calc(var(--gutter)) 2rem;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 999px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; }

.shot {
  flex: 0 0 auto;
  width: min(248px, 62vw);
  scroll-snap-align: center;
  text-align: center;
}

.shot .phone {
  width: 100%;
  margin-bottom: 1rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.shot:hover .phone {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.13) inset,
              0 0 70px -14px rgba(46, 134, 232, 0.5);
}

.shot .phone__screen img { opacity: 1; transform: none; position: static; }

.shot h3 { font-size: 1.02rem; margin-bottom: 0.25em; }
.shot p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   14. Audience
   -------------------------------------------------------------------------- */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 0.85rem;
}

.aud {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  text-align: center;
  padding: 1.35rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.aud:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.aud__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(46, 134, 232, 0.14);
  color: var(--blue-bright);
}

.aud__icon svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0.7rem; }

.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.032);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq details[open] {
  border-color: rgba(248, 129, 26, 0.35);
  background: rgba(248, 129, 26, 0.045);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  margin-left: auto;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
  flex: none;
}

.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq__body {
  padding: 0 1.3rem 1.3rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq details[open] .faq__body { animation: faq-in 0.35s var(--ease); }

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 80% 120% at 15% 10%, rgba(248, 129, 26, 0.22), transparent 60%),
    radial-gradient(ellipse 80% 120% at 85% 90%, rgba(46, 134, 232, 0.22), transparent 60%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  text-align: center;
}

.cta h2 { margin-bottom: 0.4em; }

.cta .lede { margin-inline: auto; margin-bottom: 2rem; }

.cta .store-row { justify-content: center; }

.cta__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 129, 26, 0.3), transparent 65%);
  filter: blur(70px);
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018));
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 34ch;
  margin-top: 1rem;
}

.footer-col h4 {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.footer-col a {
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  display: inline-block;
}

.footer-col a:hover { color: var(--orange); transform: translateX(3px); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.4rem; flex-wrap: wrap; }

.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.social svg { width: 19px; height: 19px; }

.social:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(140deg, var(--orange), var(--orange-deep));
  border-color: transparent;
  box-shadow: 0 12px 28px -12px rgba(248, 129, 26, 0.85);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--orange); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   18. Legal / content pages
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-hero .lede { margin-top: 0.5rem; }

.updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-top: 1.2rem;
}

.prose {
  max-width: 74ch;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.prose h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 { margin-top: 1.9rem; color: var(--text); }

.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange-bright); }
.prose strong { color: var(--text); }

.callout {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(46, 134, 232, 0.08);
  border: 1px solid rgba(46, 134, 232, 0.28);
  margin-bottom: 2.5rem;
  font-size: 0.93rem;
  line-height: 1.65;
}

.callout__icon { color: var(--blue-bright); flex: none; }
.callout__icon svg { width: 22px; height: 22px; }
.callout strong { color: var(--text); }

.callout h2 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.callout p { margin-bottom: 0.7em; color: var(--text-soft); }
.callout p:last-child { margin-bottom: 0; }

.callout--summary {
  background: rgba(248, 129, 26, 0.07);
  border-color: rgba(248, 129, 26, 0.3);
}

.callout--summary .callout__icon { color: var(--orange-bright); }

.prose + .callout { margin-top: 2rem; }

.placeholder {
  border: 1px dashed rgba(248, 129, 26, 0.5);
  background: rgba(248, 129, 26, 0.06);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.placeholder h3 {
  margin-top: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.toc {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 2.6rem;
}

.toc h2 {
  font-size: 0.75rem !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
  border: 0 !important;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9rem;
}

.toc__extra {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.toc__extra a { color: var(--text-soft); }
.toc__extra a:hover { color: var(--orange); }

.addendum {
  margin-top: 3.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, rgba(46, 134, 232, 0.08), rgba(255, 255, 255, 0.015));
}

.addendum h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  margin-bottom: 0;
}

.addendum .updated { margin: 0.9rem 0 1.4rem; }

.toc li { margin-bottom: 0.4em; break-inside: avoid; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--orange); }

@media (max-width: 620px) {
  .toc ol { columns: 1; }
}

/* 404 --------------------------------------------------------------------- */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
  position: relative;
  overflow: hidden;
}

.notfound__code {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange) 40%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.15em;
}

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }

  .cal__cell, .alarm { opacity: 1; transform: none; }

  #constellation { display: none; }

  .phone--tilt { transform: none; }
}

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .aurora, .grid-lines, #constellation,
  .cta, .store-row { display: none !important; }
  .prose, .prose * { color: #000 !important; }
  a { text-decoration: underline; }
}
