/* DOSELY — design system (matched to reference tokens) */

:root {
  --radius: 1rem;
  --background: oklch(13% 0.005 60);
  --foreground: oklch(96% 0.012 80);
  --surface: oklch(17% 0.006 60);
  --card: oklch(17.5% 0.008 60);
  --card-foreground: oklch(96% 0.012 80);
  --popover: oklch(18% 0.008 60);
  --popover-foreground: oklch(96% 0.012 80);
  --primary: oklch(82% 0.1 78);
  --primary-foreground: oklch(13% 0.005 60);
  --secondary: oklch(22% 0.01 60);
  --secondary-foreground: oklch(92% 0.02 80);
  --muted: oklch(22% 0.008 60);
  --muted-foreground: oklch(72% 0.015 75);
  --accent: oklch(74% 0.12 72);
  --accent-foreground: oklch(13% 0.005 60);
  --sand: oklch(24% 0.018 65);
  --sand-foreground: oklch(92% 0.03 75);
  --mist: oklch(20% 0.008 60);
  --destructive: oklch(62% 0.18 25);
  --destructive-foreground: oklch(99% 0 0);
  --border: oklch(32% 0.012 70 / 0.55);
  --input: oklch(26% 0.01 60);
  --ring: oklch(78% 0.1 78);
  --gold-1: oklch(90% 0.07 84);
  --gold-2: oklch(80% 0.11 76);
  --gold-3: oklch(62% 0.1 64);
  --gradient-gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);
  --gradient-obsidian: radial-gradient(ellipse at top, oklch(22% 0.01 70) 0%, oklch(12% 0.005 60) 60%, oklch(8% 0.003 60) 100%);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --max: 72rem;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}

p { margin: 0; }

.font-display { font-family: var(--font-display); }
.text-gold {
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
}
.bg-gold {
  background: var(--gradient-gold);
  color: var(--primary-foreground);
}
.bg-obsidian { background: var(--gradient-obsidian); }
.bg-card { background: var(--card); }
.bg-muted { background: var(--muted); }
.bg-secondary { background: var(--secondary); }
.bg-primary { background: var(--primary); color: var(--primary-foreground); }
.bg-foreground { background: var(--foreground); color: var(--background); }
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-foreground { color: var(--foreground); }
.hairline {
  border: 1px solid color-mix(in oklab, var(--gold-2) 55%, transparent);
}
.ring-soft { box-shadow: 0 0 0 1px var(--border); }
.shadow-soft {
  box-shadow:
    0 1px 2px oklch(0% 0 0 / 0.4),
    0 12px 40px oklch(0% 0 0 / 0.35);
}
.shadow-pop {
  box-shadow: 0 10px 40px -10px oklch(78% 0.11 75 / 0.45);
}
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--gold-2) 60%, transparent), transparent);
  border: 0;
}

.tap { transition: transform 0.15s ease; }
.tap:active { transform: scale(0.975); }
.lift {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lift:hover { transform: translateY(-2px); }

.fade-up {
  animation: 0.75s cubic-bezier(0.16, 0.84, 0.24, 1) both fadeUp;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.float-slow { animation: 6.5s ease-in-out infinite floatSlow; }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.pulse-soft { animation: 2.6s ease-in-out infinite pulseSoft; }
@keyframes pulseSoft {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in oklab, var(--background) 82%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  white-space: nowrap;
}
.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--secondary) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--border) 70%, transparent);
}
.nav-links a {
  display: block;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  color: var(--muted-foreground);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--foreground);
  background: color-mix(in oklab, var(--card) 90%, transparent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-width: 0;
}
.nav-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--foreground);
  white-space: nowrap;
  box-shadow: 0 0 0 1px var(--border);
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
}
.mobile-nav a.active { color: var(--foreground); }

@media (max-width: 30rem) {
  .streak-split,
  .nav-user span { display: none; }
}
@media (min-width: 90rem) {
  .nav-links {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .menu-btn { display: none; }
  .mobile-nav,
  .mobile-nav.open { display: none !important; }
}

.site-main { min-height: 70vh; }

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}
.site-footer .disclaimer {
  margin-top: 0.4rem;
  opacity: 0.8;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.container-sm {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.container-md {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
}
.kicker-muted {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.15s, opacity 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-gold {
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  box-shadow: 0 10px 40px -10px oklch(78% 0.11 75 / 0.45);
}
.btn-ghost {
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--gold-2) 55%, transparent);
  color: var(--foreground);
}
.btn-ghost:hover { background: var(--secondary); }
.btn-solid {
  background: var(--foreground);
  color: var(--background);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

.card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 0 0 1px var(--border);
}
.card-hairline {
  border: 1px solid color-mix(in oklab, var(--gold-2) 55%, transparent);
  border-radius: 1.5rem;
  background: var(--card);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-obsidian);
}
.hero-glow {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: -20%;
  height: 640px;
  width: 640px;
  transform: translateX(-50%);
  border-radius: 999px;
  opacity: 0.4;
  filter: blur(64px);
  background: radial-gradient(circle, oklch(0.78 0.11 75 / 0.45), transparent 60%);
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo {
  height: 11rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(212, 175, 108, 0.35));
}
@media (min-width: 48rem) {
  .hero-inner { padding: 7rem 1.5rem 8rem; }
  .hero-logo { height: 14rem; }
}
.hero-eyebrow {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero h1 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 0.95;
}
.hero h1 em {
  font-style: italic;
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.trust-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head h2 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
}

.principle-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
}
.principle-card .glow {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  opacity: 0.2;
  filter: blur(40px);
  background: var(--gradient-gold);
  transition: opacity 0.4s;
}
.principle-card:hover .glow { opacity: 0.4; }

.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.product-card .mrp {
  text-decoration: line-through;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}
.product-card .price {
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 600;
}
.bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.bullets li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  color: color-mix(in oklab, var(--foreground) 90%, transparent);
}
.bullets li::before {
  content: "—";
  color: var(--gold-2);
}

.manifesto {
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem;
}
.manifesto h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  max-width: 40rem;
  margin: 0 auto;
}
.manifesto h2 em {
  font-style: italic;
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Pod strip */
.pod-strip {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0 1.75rem;
}
.pod {
  width: 1.35rem;
  height: 3.4rem;
  border-radius: 999px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 18px rgba(0,0,0,0.35);
  transition: transform 0.5s ease;
}
.pod-strip:hover .pod { transform: translateY(-2px); }
.pod::after {
  content: "";
  position: absolute;
  inset: 10% 18% auto;
  height: 35%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0));
  filter: blur(1px);
  pointer-events: none;
}
.pod-strip.lg .pod {
  width: 1.7rem;
  height: 4.2rem;
}
.pod-strip.clear .pod:nth-child(1) { background: oklch(0.92 0.03 230); }
.pod-strip.clear .pod:nth-child(2) { background: oklch(0.86 0.05 235); }
.pod-strip.clear .pod:nth-child(3) { background: oklch(0.78 0.07 240); }
.pod-strip.clear .pod:nth-child(4) { background: oklch(0.70 0.09 250); }
.pod-strip.hydrate .pod:nth-child(1) { background: oklch(0.95 0.025 78); }
.pod-strip.hydrate .pod:nth-child(2) { background: oklch(0.91 0.04 70); }
.pod-strip.hydrate .pod:nth-child(3) { background: oklch(0.86 0.055 62); }
.pod-strip.hydrate .pod:nth-child(4) { background: oklch(0.80 0.07 55); }

/* Forms / sliders */
.field { margin-bottom: 1.25rem; }
.field label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}
.field input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}
.field input[type="number"],
.field input[type="time"],
.field select,
.field textarea,
.field input[type="text"] {
  width: 100%;
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border);
  border: 0;
  padding: 0.7rem 0.9rem;
  outline: none;
}
.field textarea { min-height: 5rem; resize: vertical; }
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  box-shadow: 0 0 0 1px var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  transition: background 0.2s, color 0.2s;
}
.chip.active {
  background: var(--foreground);
  color: var(--background);
  box-shadow: none;
}
.gender-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.gender-row .chip {
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}
@media (min-width: 40rem) {
  .gender-row { grid-template-columns: repeat(4, 1fr); }
}
.step-dots {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.step-dots span {
  height: 0.3rem;
  flex: 1;
  border-radius: 999px;
  background: var(--muted);
}
.step-dots span.on { background: var(--primary); }

.selfie-box {
  aspect-ratio: 1;
  border-radius: 1rem;
  background: var(--muted);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}
.selfie-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tips-box {
  margin-top: 1.5rem;
  border-radius: 1rem;
  padding: 1.25rem;
  background: color-mix(in oklab, var(--card) 60%, transparent);
  border: 1px solid color-mix(in oklab, var(--gold-2) 40%, transparent);
}
.tips-box h3 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
}
.tips-box ul {
  margin: 0.75rem 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}
.tips-box li { margin-bottom: 0.35rem; }
.tips-box li::before { content: "• "; }

.error-box {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--destructive) 30%, transparent);
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  padding: 1rem;
  font-size: 0.875rem;
}

/* Analysis scan */
.scan-wrap {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.scan-orb {
  position: relative;
  width: 14rem;
  height: 14rem;
}
.scan-orb .ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary) 20%, transparent);
  animation: spin 8s linear infinite;
}
.scan-orb .ring.r2 {
  inset: 0.75rem;
  animation-duration: 12s;
  animation-direction: reverse;
  border-color: color-mix(in oklab, var(--primary) 15%, transparent);
}
.scan-orb .face {
  position: absolute;
  inset: 1.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--accent), var(--mist));
}
.scan-orb .face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.scan-line {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 60%, transparent), transparent);
  animation: scanY 2.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scanY {
  0% { top: 15%; }
  50% { top: 80%; }
  100% { top: 15%; }
}
.progress-bar {
  width: 100%;
  max-width: 18rem;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
  margin-top: 1.5rem;
}
.progress-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.5s;
}

/* Coach */
.coach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.avatar {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: grid;
  place-items: center;
  color: var(--background);
  font-weight: 600;
  box-shadow: 0 1px 2px oklch(0% 0 0 / 0.4), 0 12px 40px oklch(0% 0 0 / 0.35);
}
.avatar .online {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: oklch(76.5% 0.177 163.223 / 0.95);
  box-shadow: 0 0 0 2px var(--background);
}
.chat-log {
  margin-top: 1.5rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.bubble-user {
  align-self: flex-end;
  max-width: 80%;
  border-radius: 1rem 1rem 0.35rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px oklch(0% 0 0 / 0.4), 0 12px 40px oklch(0% 0 0 / 0.25);
}
.bubble-coach {
  align-self: flex-start;
  max-width: 90%;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.typing {
  display: flex;
  gap: 0.35rem;
  color: var(--muted-foreground);
}
.typing i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
  animation: bounce 1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}
.composer {
  position: sticky;
  bottom: 0.75rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border), 0 1px 2px oklch(0% 0 0 / 0.4), 0 12px 40px oklch(0% 0 0 / 0.3);
  padding: 0.45rem 0.45rem 0.45rem 1rem;
}
.composer textarea {
  flex: 1;
  resize: none;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0.65rem 0;
  max-height: 7rem;
  font-size: 0.9rem;
}
.send-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  display: grid;
  place-items: center;
}

/* Routine */
.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.ring-progress {
  position: relative;
  width: 5rem;
  height: 5rem;
}
.ring-progress svg { transform: rotate(-90deg); }
.ring-progress .label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.step-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.step-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-icon.done {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 40%, transparent);
}
.step-icon.glow {
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 40%, transparent);
}
.why-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  padding-left: 3.25rem;
}
.why-panel.open {
  max-height: 6rem;
  opacity: 1;
  padding-bottom: 0.5rem;
}
.toggle {
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--muted);
  position: relative;
  transition: background 0.2s;
}
.toggle.on { background: var(--primary); }
.toggle i {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--foreground);
  transition: left 0.2s;
}
.toggle.on i { left: 1.4rem; background: var(--primary-foreground); }

/* Progress */
.stat-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}
.chart-wrap {
  width: 100%;
  height: 180px;
}
.chart-wrap svg { width: 100%; height: 100%; }
.selfie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.selfie-tile {
  aspect-ratio: 1;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--mist), var(--sand));
  box-shadow: 0 0 0 1px var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: var(--muted-foreground);
}
.selfie-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}
.badge.on {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.badge.off {
  background: var(--muted);
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}

/* Shop */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border);
}
.qty-control button {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
}
.checkout-box {
  margin-top: 2rem;
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border), 0 1px 2px oklch(0% 0 0 / 0.4), 0 12px 40px oklch(0% 0 0 / 0.3);
  padding: 1.75rem;
}
.line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 0.4rem;
}
.line.total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.order-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 42rem;
}
.order-card .order-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.order-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--muted);
  color: var(--muted-foreground);
}
.order-status.paid {
  background: var(--primary);
  color: var(--primary-foreground);
}
.order-status.failed {
  background: color-mix(in oklab, var(--destructive) 28%, transparent);
  color: oklch(90% 0.06 25);
}
.order-items {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}
.order-items .item-name {
  color: var(--foreground);
}
.order-items .item-price {
  color: var(--muted-foreground);
  white-space: nowrap;
}
.empty-orders {
  margin-top: 2rem;
  max-width: 32rem;
}

/* Results */
.score-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}
.score-ring .center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring .center strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}
.marker-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.marker-track {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.marker-track > i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}

.flash {
  max-width: min(var(--max), calc(100% - 2.5rem));
  margin: 0.75rem auto 0;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}
.flash.success {
  background: color-mix(in oklab, oklch(69.6% 0.17 162.48) 15%, var(--card));
}
.flash.info {
  background: var(--secondary);
}

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 360px) {
  .hero-logo { height: 8.5rem; }
  .container, .container-sm, .container-md { padding-left: 1rem; padding-right: 1rem; }
}

.scale-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}
.scale-row button {
  border: 1px solid var(--border);
  background: var(--secondary);
  border-radius: 0.75rem;
  min-height: 2.6rem;
}
.scale-row button.active {
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  border-color: transparent;
}
.field-error {
  color: var(--destructive);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}
textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  resize: vertical;
}
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
}
.streak-split {
  color: var(--muted-foreground);
  font-weight: 500;
}
.week-dots {
  display: flex;
  gap: 0.35rem;
}
.week-dot {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  background: var(--secondary);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}
.week-dot.on {
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  border-color: transparent;
}
.week-dot.today {
  box-shadow: 0 0 0 2px var(--background), 0 0 0 3px var(--primary);
}
.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: oklch(8% 0.003 60 / 0.82);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.camera-sheet {
  width: min(36rem, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1rem;
}
.camera-sheet video {
  width: 100%;
  border-radius: 0.9rem;
  background: #000;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-top: 0.75rem;
}
.camera-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 9rem;
  font-size: 0.78rem;
  color: var(--foreground);
}
.nav-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  object-fit: cover;
}
.nav-actions form,
.mobile-nav form {
  margin: 0;
}
.auth-card {
  text-align: center;
  padding-top: 4rem;
  max-width: 36rem;
}
.math-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}
.math-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}
.math-list strong {
  color: var(--foreground);
  font-weight: 500;
}

/* Narrow header: logo, streak, and menu. Sign-in and Shop live in the menu.
   These rules sit after .btn so display:none is not overridden. */
@media (max-width: 89.99rem) {
  .nav-inner {
    padding: 0.65rem 1rem;
  }
  .nav-actions .nav-shop,
  .nav-actions .nav-auth {
    display: none;
  }
  .streak-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .mobile-nav .btn {
    width: 100%;
    margin-top: 0.85rem;
    justify-content: center;
  }
}
@media (max-width: 24rem) {
  .nav-inner { padding-inline: 0.75rem; }
  .brand { letter-spacing: 0.1em; font-size: 0.78rem; }
}
