/*
  NutriOrbit website: one stylesheet, no web fonts, nothing loaded from another domain.
  Look: "Orbit", a dark night theme with orange and blue glow. All motion is CSS and is switched off
  by prefers-reduced-motion at the end of this file.
  Colour values come from app/src/main/java/com/nutriorbit/ui/design/Palette.kt
  (NutriLightColors and NutriDarkMediumColors); roles follow design-system.md.
  `accent` is for fills and shapes, `accent-text` for accent-coloured text and button
  fills carrying white text, because the fill shade does not clear 4.5:1 as text.
*/

:root {
  color-scheme: dark;

  --canvas: #0b1020;
  --surface: #111832;
  --surface-alt: #171f3d;
  --border: #232d5c;
  --border-strong: #3a4780;
  --text: #eef1ff;
  --text-2: #b9c1e4;
  --accent: #ff7a4d;
  --accent-text: #ff9a76;
  --accent-soft: #2b1a2a;
  --on-accent: #1a0d08;
  --btn-bg: #ff7a4d;
  --btn-bg-hover: #ff9a76;
  --btn-fg: #1a0d08;
  --positive-text: #5fe0ac;
  --positive-soft: #10302a;
  --warning-text: #f8c76d;
  --warning-soft: #342a1a;
  --focus: #ff9a76;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --gutter: 16px;
  --measure: 68rem;
  --touch: 44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b1020;
    --surface: #111832;
    --surface-alt: #171f3d;
    --border: #232d5c;
    --border-strong: #3a4780;
    --text: #eef1ff;
    --text-2: #b9c1e4;
    --accent: #ff7a4d;
    --accent-text: #ff9a76;
    --accent-soft: #2b1a2a;
    --on-accent: #1a0d08;
    --btn-bg: #ff7a4d;
    --btn-bg-hover: #ff9a76;
    --btn-fg: #1a0d08;
    --positive-text: #5fe0ac;
    --positive-soft: #10302a;
    --warning-text: #f8c76d;
    --warning-soft: #342a1a;
    --focus: #ff9a76;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px, as the app's body text */
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
}

h3 {
  font-size: 1.1875rem;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1em;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  min-height: var(--touch);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--gutter);
}

/* Header and navigation */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  padding-block: 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--touch);
  color: var(--text);
  font-weight: 700;
  font-size: 1.1875rem;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.bm-bg {
  fill: var(--accent);
}

.bm-ring {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2;
}

.bm-dot {
  fill: var(--on-accent);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding-inline: 0.6rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  background: var(--surface-alt);
}

.nav-list a[aria-current="page"] {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Buttons and badges */

.btn,
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.btn {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn:hover {
  background: var(--btn-bg-hover);
}

.btn-quiet {
  background: transparent;
  color: var(--accent-text);
  border: 1px solid var(--border-strong);
}

.btn-quiet:hover {
  background: var(--surface-alt);
}

/* A placeholder, not a link: no href, no pointer, dashed outline. */
.store-badge {
  background: var(--surface-alt);
  color: var(--text);
  border: 2px dashed var(--border-strong);
  cursor: default;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

/* Hero */

.hero {
  padding-block: 2.5rem 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text-2);
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.fine {
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Screenshot placeholder (drawn, not a real screenshot) */

.device {
  margin: 0 auto;
  width: min(100%, 17rem);
}

.device svg {
  display: block;
  width: 100%;
}

.device figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.dv-body {
  fill: var(--surface-alt);
  stroke: var(--border-strong);
  stroke-width: 3;
}

.dv-screen {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
}

.dv-bar {
  fill: var(--border);
}

.dv-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  opacity: 0.55;
}

.dv-text {
  fill: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  text-anchor: middle;
}

/* Sections */

.section {
  padding-block: 3rem;
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head p {
  color: var(--text-2);
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.grid > * {
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  color: var(--text-2);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps */

.steps {
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-top: 3.25rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
}

/* Privacy block */

.privacy-block {
  display: grid;
  gap: 1.5rem;
  background: var(--positive-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
}

.privacy-block > * {
  min-width: 0;
}

.privacy-block h2 {
  color: var(--positive-text);
}

.checklist {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.35rem;
  border-left: 2.5px solid var(--positive-text);
  border-bottom: 2.5px solid var(--positive-text);
  transform: rotate(-45deg);
}

/* FAQ */

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.faq summary {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.faq details[open] summary {
  color: var(--accent-text);
}

.faq details > :not(summary) {
  padding-inline: 1.25rem;
  color: var(--text-2);
}

.faq details > p:last-child {
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding-inline: 0.5rem;
}

.footer-nav li:first-child a {
  padding-left: 0;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

/* Legal and support pages */

.page-head {
  padding-block: 2.5rem 1rem;
}

.page-head .lead {
  margin-bottom: 0;
}

.prose {
  padding-bottom: 3rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--warning-text);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--warning-text);
  font-weight: 600;
}

.banner svg {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 0.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc a {
  display: inline-block;
  min-height: 2rem;
  padding-block: 0.15rem;
}

/* Owner placeholders: visible on purpose so none is published by accident. */
mark.ph {
  background: var(--warning-soft);
  color: var(--warning-text);
  border: 1px dashed var(--warning-text);
  border-radius: 4px;
  padding: 0 0.3em;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-alt);
  font-weight: 600;
}

.notfound {
  text-align: center;
  padding-block: 4rem;
}

.notfound .lead {
  margin-inline: auto;
}

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

@media (min-width: 48rem) {
  :root {
    --gutter: 24px;
  }

  .hero {
    padding-block: 4rem 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .privacy-block {
    grid-template-columns: 1fr 1fr;
    padding: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.site-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-list a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
}

.chips {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  min-height: var(--touch);
  line-height: 1.6;
}

/* ---- Orbit look: glow, orbit rings and motion (CSS only) ---- */

html {
  background: var(--canvas);
  overflow-x: clip;
}

body {
  position: relative;
  overflow-x: clip;
}

body::before,
body::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  top: -14rem;
  right: -10rem;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(255, 122, 77, 0.36), rgba(255, 122, 77, 0) 65%);
  animation: glow 7s ease-in-out infinite;
}

body::after {
  top: 36rem;
  left: -16rem;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(92, 120, 255, 0.3), rgba(92, 120, 255, 0) 65%);
  animation: glow 9s 1s ease-in-out infinite;
}

h1,
h2,
h3,
.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
}

.site-header {
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-list a {
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list a:hover {
  color: var(--text);
}

.btn {
  position: relative;
  overflow: hidden;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255, 122, 77, 0.4);
}

.btn:not(.btn-quiet)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%);
  animation: sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-quiet:hover {
  box-shadow: none;
}

.eyebrow {
  border: 1px solid var(--border-strong);
  background: transparent;
}

.tagline {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent-text);
}

.hero {
  padding-block: 3rem 4rem;
}

.hero-grid > :first-child > * {
  animation: rise 0.9s ease both;
}

.hero-grid > :first-child > :nth-child(2) { animation-delay: 0.1s; }
.hero-grid > :first-child > :nth-child(3) { animation-delay: 0.2s; }
.hero-grid > :first-child > :nth-child(4) { animation-delay: 0.3s; }
.hero-grid > :first-child > :nth-child(5) { animation-delay: 0.4s; }
.hero-grid > :first-child > :nth-child(6) { animation-delay: 0.5s; }

/* Orbit rings around the placeholder phone */

.orbit {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-ring i {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.orbit-ring-1 {
  inset: 0;
  border: 1px solid var(--border-strong);
  animation: spin 38s linear infinite;
}

.orbit-ring-1 i {
  top: -0.5rem;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin-left: -0.5rem;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}

.orbit-ring-2 {
  inset: 12%;
  border: 1px dashed var(--border-strong);
  animation: spin-back 26s linear infinite;
}

.orbit-ring-2 i {
  bottom: -0.4rem;
  left: 50%;
  width: 0.8rem;
  height: 0.8rem;
  margin-left: -0.4rem;
  background: #7f9bff;
  box-shadow: 0 0 20px #7f9bff;
}

.orbit-ring-3 {
  inset: 26%;
  border: 1px solid var(--border);
  animation: spin 16s linear infinite;
}

.orbit-ring-3 i {
  top: 50%;
  right: -0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  background: var(--accent-text);
}

.orbit .device {
  position: relative;
  width: 40%;
  animation: float 7s ease-in-out infinite;
}

.orbit .device figcaption {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 14rem;
  margin: 0.5rem 0 0 -7rem;
}

.dv-body {
  fill: #1b2347;
  stroke: var(--border-strong);
}

.dv-screen {
  fill: #0f1530;
}

.dv-ring {
  opacity: 0.9;
}

/* Sections and cards */

.section-alt {
  background: linear-gradient(180deg, rgba(23, 31, 61, 0.55), rgba(23, 31, 61, 0.2));
}

.card {
  background: var(--surface);
  border-color: var(--border);
  border-radius: 22px;
  padding: 1.5rem;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: var(--surface-alt);
}

.icon-tile {
  background: var(--accent-soft);
}

.steps > li::before {
  top: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
}

.steps > li {
  padding-top: 4.25rem;
}

.steps > li:nth-child(2)::before {
  background: #7f9bff;
  color: #0b1020;
}

.steps > li:nth-child(3)::before {
  background: #ffd0bd;
  color: #1a0d08;
}

.privacy-block {
  background: linear-gradient(135deg, #131b3d, #0f1530);
  border-color: var(--border);
  border-radius: 28px;
}

.faq details {
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.faq details:hover {
  border-color: var(--accent);
}

.recipes-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, #131b3d, #0f1530);
}

.recipes-teaser h2 {
  margin-bottom: 0.4rem;
}

.recipes-teaser p {
  margin: 0;
  color: var(--text-2);
  max-width: 36rem;
}

.site-footer {
  background: transparent;
}

.site-list a,
.chips a {
  background: var(--surface);
  border-color: var(--border-strong);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.site-list a:hover,
.chips a:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-alt);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-back {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes sweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(260%); }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ---- Features page: drawn app screens with CSS-only mini demos ---- */

.feature {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.feature-grid > * {
  min-width: 0;
}

@media (min-width: 52rem) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .feature:nth-of-type(even) .feature-screen {
    order: -1;
  }
}

.feature-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callouts {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  counter-reset: callout;
  display: grid;
  gap: 0.75rem;
}

.callouts li {
  position: relative;
  padding-left: 2.5rem;
  counter-increment: callout;
}

.callouts li::before {
  content: counter(callout);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.9375rem;
}

.good {
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--positive-text);
  border-radius: 0 12px 12px 0;
  background: var(--positive-soft);
  font-size: 0.9375rem;
}

.feature-screen {
  margin: 0;
  display: grid;
  justify-items: center;
}

.feature-screen figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-align: center;
}

.screen {
  position: relative;
  width: min(100%, 17rem);
  aspect-ratio: 9 / 17;
  padding: 1rem 0.8rem;
  overflow: hidden;
  border-radius: 30px;
  border: 2px solid var(--border-strong);
  background: linear-gradient(170deg, #1b2347, #0f1530);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 122, 77, 0.12);
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text);
}

.s-title {
  margin: 0 0 0.6rem;
  font-weight: 800;
  font-size: 0.95rem;
}

.s-card {
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.s-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.s-row-start {
  justify-content: flex-start;
}

.s-row + .s-row {
  margin-top: 0.4rem;
}

.s-muted {
  color: var(--text-2);
}

.s-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.s-chip-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.s-days {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}

.s-days span {
  flex: 1;
  padding: 0.3rem 0;
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
  font-weight: 600;
}

.s-days .s-day-on {
  background: var(--accent);
  color: var(--on-accent);
}

.s-btn {
  display: block;
  padding: 0.5rem;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  text-align: center;
}

.s-btn-quiet {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--accent-text);
}

.s-field {
  display: block;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #0b1020;
  overflow: hidden;
  white-space: nowrap;
}

.s-typing {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.s-bar {
  display: flex;
  height: 0.55rem;
  margin: 0.45rem 0 0.3rem;
  overflow: hidden;
  border-radius: 6px;
  background: var(--border);
}

.s-bar i {
  display: block;
  height: 100%;
}

.s-bar .b1 { width: 46%; background: #ffd0bd; }
.s-bar .b2 { width: 26%; background: #7f9bff; }
.s-bar .b3 { width: 28%; background: var(--accent); }

.s-ring {
  display: block;
  width: 7rem;
  margin: 0 auto;
}

.ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}

.ring-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 90;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.s-ring-wrap {
  position: relative;
}

.s-ring-mid {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.s-ring-mid strong {
  font-size: 1.05rem;
}

.s-phase {
  flex: 1;
  position: relative;
  height: 1.2rem;
  margin-top: 0.15rem;
  text-align: center;
  color: var(--accent-text);
  font-weight: 700;
}

.s-phase span {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.s-phase .ph-c {
  opacity: 1;
}

.pin {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #7f9bff;
  color: #0b1020;
  font-weight: 800;
  font-size: 0.7rem;
}

.s-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7rem;
}

.s-badge-cheap {
  background: var(--positive-soft);
  color: var(--positive-text);
  border: 1px solid var(--positive-text);
}

.s-badge-fast {
  background: var(--warning-soft);
  color: var(--warning-text);
  border: 1px solid var(--warning-text);
}

.s-check {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  flex: none;
}

.s-check b {
  color: var(--positive-text);
  font-size: 0.8rem;
  line-height: 1;
}

.s-switch {
  position: relative;
  flex: none;
  width: 2.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--border-strong);
}

.s-switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--text);
}

.s-switch-on {
  background: var(--accent);
}

.s-switch-on::after {
  left: 1.15rem;
  background: var(--on-accent);
}

.s-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 4.5rem;
  margin-top: 0.4rem;
}

.s-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  transform-origin: bottom;
}

.s-bars .h1 { height: 40%; }
.s-bars .h2 { height: 70%; }
.s-bars .h3 { height: 55%; }
.s-bars .h4 { height: 90%; }
.s-bars .h5 { height: 65%; }
.s-bars .h6 { height: 80%; }
.s-bars .h7 { height: 50%; }

.s-sheet {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--surface-alt);
}

/* One 9 s loop per screen. Each element appears at its own point; the end state is the full screen. */

.screen * {
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease;
}

.feature:hover .screen *,
.feature:hover .screen *::after,
.feature:focus-within .screen *,
.feature:focus-within .screen *::after {
  animation-play-state: paused;
}

.show-a { animation-name: show-a; }
.show-b { animation-name: show-b; }
.show-c { animation-name: show-c; }
.show-d { animation-name: show-d; }
.ring-arc { animation-name: ring-fill; }
.ph-a { animation-name: ph-a; }
.ph-b { animation-name: ph-b; }
.ph-c { animation-name: ph-c; }
.s-typing { animation-name: typing; animation-timing-function: steps(26, end); }
.s-switch-anim::after { animation: knob-on 9s ease infinite; }
.s-switch-anim { animation-name: switch-on; }
.s-bars i { animation-name: grow; }
.s-bars .h2 { animation-delay: 0.15s; }
.s-bars .h3 { animation-delay: 0.3s; }
.s-bars .h4 { animation-delay: 0.45s; }
.s-bars .h5 { animation-delay: 0.6s; }
.s-bars .h6 { animation-delay: 0.75s; }
.s-bars .h7 { animation-delay: 0.9s; }

@keyframes show-a {
  0%, 4% { opacity: 0; transform: translateY(10px); }
  12%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes show-b {
  0%, 24% { opacity: 0; transform: translateY(10px); }
  32%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes show-c {
  0%, 44% { opacity: 0; transform: translateY(10px); }
  52%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes show-d {
  0%, 64% { opacity: 0; transform: translateY(10px); }
  72%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes ring-fill {
  0%, 4% { stroke-dashoffset: 283; }
  70%, 92% { stroke-dashoffset: 90; }
  100% { stroke-dashoffset: 283; }
}

@keyframes ph-a {
  0%, 4% { opacity: 0; }
  8%, 28% { opacity: 1; }
  34%, 100% { opacity: 0; }
}

@keyframes ph-b {
  0%, 30% { opacity: 0; }
  36%, 58% { opacity: 1; }
  64%, 100% { opacity: 0; }
}

@keyframes ph-c {
  0%, 60% { opacity: 0; }
  66%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes typing {
  0%, 4% { width: 0; }
  26%, 94% { width: 100%; }
  100% { width: 0; }
}

@keyframes switch-on {
  0%, 20% { background: var(--border-strong); }
  28%, 70% { background: var(--accent); }
  78%, 100% { background: var(--border-strong); }
}

@keyframes knob-on {
  0%, 20% { left: 0.15rem; }
  28%, 70% { left: 1.15rem; }
  78%, 100% { left: 0.15rem; }
}

@keyframes grow {
  0%, 4% { transform: scaleY(0.05); }
  25%, 92% { transform: scaleY(1); }
  100% { transform: scaleY(0.05); }
}

@media (prefers-reduced-motion: reduce) {
  .s-switch-anim::after {
    animation: none !important;
  }
}

/* Real app media inside the phone frame (see README, "Real demos") */

.screen-real {
  padding: 0;
  background: #0f1530;
}

.screen-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-real .pin {
  position: absolute;
}
