/* HealthHackr — app site. Copied from ayyed.com's stylesheet, with the app's monochrome tokens (ADR-0008). No JS. */
:root {
  /* Ayyed brand (docs/company/BRAND.md): monochrome with one violet accent. */
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-tint: #efeff1;
  --text: #0b0b0c;
  --muted: #4a4a50;
  --subtle: #6b6b72;
  --line: #e6e6ea;
  --brand: #0b0b0c;
  --brand-strong: #000000;
  --brand-soft: #f0f0f2;
  --accent: #e5484d;  /* protein red, the app's warmest data color */
  /* Fixed zone colors (sections that ignore the system theme, see "Zones" below). */
  --zone-dark-bg: #050506;
  --zone-dark-surface: #141416;
  --brand-light: #0b0b0c;
  --brand-dark: #f5f5f7;
  --accent-light: #e5484d;
  --accent-dark: #ff6369;
  --glow-a: #e5484d;
  --glow-b: #3e63dd;
  /* The app's data colors: protein, carbs, fat, fiber, water. */
  --progress: linear-gradient(90deg, #e5484d, #e38b00, #3e63dd, #2b9a66, #0894b3);
  --ink: #0b0b0c;
  --on-ink: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(11, 11, 12, .04), 0 12px 32px -12px rgba(11, 11, 12, .14);
  --shadow-lg: 0 30px 60px -20px rgba(11, 11, 12, .35);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0c0c0e;
    --bg-tint: #18181b;
    --text: #f5f5f7;
    --muted: #c4c4ca;
    --subtle: #94949c;
    --line: #232327;
    --brand: #f5f5f7;
    --brand-strong: #ffffff;
    --brand-soft: #18181b;
    --accent: #ff6369;
    --ink: #f5f5f7;
    --on-ink: #000000;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--bg); padding: 8px 12px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.brand .word { font-weight: 800; letter-spacing: -.035em; }
.brand .word i { font-style: normal; color: var(--accent); }
.tagline-cursor { color: var(--accent); font-weight: 400; margin-left: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-tint); }
.nav .btn { margin-left: 6px; }
@media (max-width: 640px) { .nav a:not(.btn) { padding: 8px 8px; font-size: 14px; } .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 650; font-size: 15px; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { opacity: .9; }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--bg-tint); }
.btn-brand { background: var(--brand); color: #fff; }
.nav .btn-primary { color: var(--on-ink); background: var(--ink); }

/* Type */
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 780; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--subtle); }
.gradient-text {
  background: linear-gradient(100deg, var(--brand) 20%, var(--subtle) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Sections */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 15% 20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(45% 40% at 70% 80%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Phone mockups */
.phones { position: relative; display: flex; justify-content: center; gap: 18px; }
.phone {
  width: min(250px, 42vw); border-radius: 40px; padding: 9px; background: #0b0b0c;
  box-shadow: var(--shadow-lg); flex: none;
}
.phone img { border-radius: 32px; width: 100%; }
.phones .phone:nth-child(2) { transform: translateY(44px); }
.phone.solo { width: min(290px, 70vw); margin: 0 auto; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand);
}
.icon-tile svg { width: 22px; height: 22px; }

/* Product showcase */
.product {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line); border-radius: 28px; padding: 48px; box-shadow: var(--shadow); overflow: hidden;
}
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.product-head img { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow); }
.product-head .meta { font-size: 14px; color: var(--subtle); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.chip { font-size: 13px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: var(--bg-tint); color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230b0b0c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.links-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; padding: 28px; } }

/* Stats / facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--bg); padding: 26px; }
.fact strong { display: block; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 6px; }
.fact span { color: var(--subtle); font-size: 14px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 14px; font-weight: 800; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 6px 12px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Screens gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.gallery figure { margin: 0; }
.gallery .phone { width: 100%; }
.gallery figcaption { text-align: center; font-size: 14px; color: var(--subtle); margin-top: 12px; font-weight: 600; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Definition table */
.dl { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.dl dt, .dl dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--subtle); font-weight: 600; font-size: 15px; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; padding-bottom: 0; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta {
  background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: 56px; display: flex;
  align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background-image: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 60%);
}
.cta h2 { margin: 0 0 8px; color: var(--on-ink); }
.cta p { margin: 0; color: color-mix(in srgb, var(--on-ink) 75%, transparent); }
.cta .btn { background: var(--on-ink); color: var(--ink); }
@media (max-width: 640px) { .cta { padding: 32px; } }

/* Contact cards */
.contact-card h3 { margin-bottom: 6px; }
.contact-card a.mail { font-weight: 650; text-decoration: none; }

/* Legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { font-size: 18px; margin-top: 24px; }
.prose li { margin: 6px 0; color: var(--muted); }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.callout { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 20px 22px; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.page-head { padding: 72px 0 24px; }
.page-head .lede { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 24px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--subtle); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Utilities (inline styles are blocked by the site's CSP) */
.m0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.pt-0 { padding-top: 0; }
.pt-24 { padding-top: 24px; }
.pt-32 { padding-top: 32px; }
.maxw-30 { max-width: 30em; }
.fs-19 { font-size: 19px; }
.fs-28 { font-size: 28px; }
.items-start { align-items: start; }
.items-center { align-items: center; }

/* ===== Zones and motion (shared block, identical on ayyed.com and healthhackr.app; edit both) =====
   Home pages alternate fixed light and dark zones that ignore the system theme, so the rhythm survives dark mode.
   Header and footer are always dark. CSS only (the CSP blocks JS); all motion is decorative and off under Reduce Motion. */

.zone-light, .zone-soft {
  --bg: #ffffff; --bg-soft: #f5f5f7; --bg-tint: #ececef;
  --text: #0b0b0c; --muted: #4a4a50; --subtle: #6b6b72; --line: #e4e4e8;
  --brand: var(--brand-light); --brand-soft: color-mix(in srgb, var(--brand-light) 9%, white); --accent: var(--accent-light);
  --ink: #0b0b0c; --on-ink: #ffffff;
  --shadow: 0 1px 2px rgba(11, 11, 12, .04), 0 12px 32px -12px rgba(11, 11, 12, .14);
  --shadow-lg: 0 30px 60px -20px rgba(11, 11, 12, .3);
  color-scheme: light; color: var(--text); background: var(--bg);
}
.zone-soft {
  background-color: var(--bg-soft);
  background-image: radial-gradient(rgba(11, 11, 12, .07) 1px, transparent 1.3px);
  background-size: 24px 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.zone-dark, .site-header, .site-footer {
  --bg: var(--zone-dark-surface); --bg-soft: var(--zone-dark-bg); --bg-tint: #26252d;
  --text: #f5f5f7; --muted: #b9b9c0; --subtle: #8c8c95; --line: rgba(255, 255, 255, .09);
  --brand: var(--brand-dark); --brand-soft: color-mix(in srgb, var(--brand-dark) 14%, transparent); --accent: var(--accent-dark);
  --ink: #f5f5f7; --on-ink: #0b0b0c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .9);
  color-scheme: dark; color: var(--text);
}
.zone-dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(45% 60% at 90% 0%, color-mix(in srgb, var(--glow-a) 24%, transparent), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--glow-b) 18%, transparent), transparent 70%),
    var(--zone-dark-bg);
}
.zone-dark .card { background: color-mix(in srgb, var(--zone-dark-surface) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Header: dark glass that firms up once you scroll. Footer: dark. */
.site-header { background: var(--zone-dark-bg); border-bottom-color: transparent; }
.site-header .brand, .site-footer .brand { color: var(--text); }
.site-footer { background: var(--zone-dark-bg); border-top: 1px solid var(--line); margin-top: 0; }
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-firm linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
}
@keyframes header-firm {
  to { background: color-mix(in srgb, var(--zone-dark-bg) 90%, transparent); border-bottom-color: var(--line); }
}

/* Scroll progress: a hairline across the top that fills as you read. Hidden where unsupported. */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 20; pointer-events: none;
    background: var(--progress); transform-origin: 0 50%; transform: scaleX(0);
    animation: progress linear both; animation-timeline: scroll(root);
  }
}
@keyframes progress { to { transform: scaleX(1); } }

/* Hero: grid lines fading out, drifting glow, shimmering headline, staggered entrance, floating phones. */
.hero { padding: 104px 0 96px; isolation: isolate; }
.hero::before { animation: glow-drift 18s ease-in-out infinite alternate; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 20%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 20%, #000, transparent 75%);
}
.zone-light.hero::after { background-image: linear-gradient(rgba(11, 11, 12, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 11, 12, .05) 1px, transparent 1px); }
.hero .gradient-text {
  background-image: linear-gradient(100deg, var(--brand) 0%, var(--accent) 30%, var(--text) 50%, var(--accent) 70%, var(--brand) 100%);
  background-size: 250% 100%;
  animation: shimmer 9s ease-in-out infinite alternate;
}
.hero-grid > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-grid > :nth-child(2) { animation-delay: .15s; }
.hero .phones .phone:first-child { rotate: -3deg; animation: float 7s ease-in-out infinite alternate; }
.hero .phones .phone:nth-child(2) { rotate: 3deg; animation: float 7s ease-in-out -3.5s infinite alternate; }
.tagline-cursor { animation: blink 1.1s steps(1) infinite; }

/* Glass chips that float over the hero phones. */
.glass {
  background: rgba(16, 16, 20, .74);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7);
  border-radius: 18px; color: #f5f5f7;
}
.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  font-size: 14px; font-weight: 650; white-space: nowrap; animation: float 6s ease-in-out infinite alternate;
}
.float-chip small { display: block; font-size: 12px; font-weight: 550; color: #b9b9c0; }
.float-chip img { width: 34px; height: 34px; border-radius: 9px; }
.float-chip .swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chip-a { left: -4%; top: 14%; }
.chip-b { right: -2%; top: 46%; animation-delay: -2s; }
.chip-c { left: 6%; bottom: 2%; animation-delay: -4s; }
@media (max-width: 640px) { .float-chip { font-size: 12px; padding: 8px 10px; } .chip-a { left: 0; } .chip-b { right: 0; } }
.swatch-protein { background: #ff6369; } .swatch-carbs { background: #ffb224; } .swatch-fat { background: #6e8fff; }
.swatch-fiber { background: #3dd68c; } .swatch-water { background: #3bc5e6; } .swatch-brand { background: var(--accent-dark); }

/* Ticker: a slow, endless strip of features. Pauses on hover. */
.ticker { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--zone-dark-bg); }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: #b9b9c0; white-space: nowrap; }
.ticker .swatch { width: 8px; height: 8px; border-radius: 50%; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Rings that fill when they scroll into view (conic gradient driven by a registered property). */
@property --fill { syntax: "<number>"; inherits: false; initial-value: 0; }
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.ring { display: grid; justify-items: center; gap: 10px; text-align: center; }
.ring-dial {
  --fill: var(--to); width: 108px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ring) calc(var(--fill) * 1%), rgba(255, 255, 255, .08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
}
.ring strong { font-size: 22px; letter-spacing: -.02em; }
.ring span { font-size: 14px; color: var(--subtle); font-weight: 600; }
.ring-protein { --ring: #ff6369; --to: 86; } .ring-carbs { --ring: #ffb224; --to: 64; }
.ring-fat { --ring: #6e8fff; --to: 72; } .ring-fiber { --ring: #3dd68c; --to: 92; }
@supports (animation-timeline: view()) {
  .ring-dial { animation: ring-fill linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
}
@keyframes ring-fill { from { --fill: 0; } to { --fill: var(--to); } }
@media (max-width: 640px) { .rings { grid-template-columns: repeat(2, 1fr); } }

/* Glass app panel in the Ayyed hero. */
.app-panel { padding: 18px; width: min(380px, 100%); }
.app-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: #b9b9c0; margin-bottom: 12px; }
.app-row { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: #f5f5f7; text-decoration: none; }
.app-row img { width: 52px; height: 52px; border-radius: 13px; }
.app-row strong { display: block; font-size: 17px; }
.app-row small { color: #b9b9c0; font-size: 13px; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent-dark) 22%, transparent); color: #e7e0ff; }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; text-align: center; }
.panel-stats div { padding: 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.panel-stats strong { display: block; font-size: 18px; color: #f5f5f7; }
.panel-stats small { font-size: 12px; color: #8c8c95; }
.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-visual .app-panel { position: absolute; left: -6%; bottom: -8%; z-index: 2; animation: float 8s ease-in-out -2s infinite alternate; }
@media (max-width: 900px) { .hero-visual .app-panel { position: relative; left: auto; bottom: auto; margin-top: -40px; } }

/* Scroll reveals where supported; elsewhere content simply shows. */
@supports (animation-timeline: view()) {
  .section-head, .card, .gallery figure, .fact, .product, .cta, .grid-2 > *, .faq details {
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
  }
}

/* Interaction */
.card, .product { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  .phone { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .gallery .phone:hover { transform: translateY(-6px); }
}
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .15s, background-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; translate: -120% 0; transition: translate .7s ease;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--on-ink) 28%, transparent) 50%, transparent 70%);
}
.btn-primary:hover::after { translate: 120% 0; }
.faq summary::after { transition: rotate .25s ease; }
.faq details[open] summary::after { content: "+"; rotate: 45deg; }
.faq details[open] p { animation: rise .35s ease both; }
.product {
  border-color: transparent;
  background:
    linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, transparent), var(--line) 35%, var(--line) 65%, color-mix(in srgb, var(--accent) 45%, transparent)) border-box;
}

@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { from { translate: 0 0; } to { translate: 0 -12px; } }
@keyframes glow-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes blink { 50% { opacity: 0; } }

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

/* Anchored sections clear the sticky header. */
[id] { scroll-margin-top: 80px; }
