/* Dlar Fitness website
   Same design system as the app: Inter only · 3 sizes · Regular or Bold · black, card-based.
   The large size (.t34) is 34px on phones and grows smoothly to 56px on wide screens. */

:root {
  --bg: #000000;
  --card: #1C1C1E;
  --fill: #2C2C2E;
  --text: #FFFFFF;
  --sec: #98989F;
  --line: rgba(255, 255, 255, 0.08);

  /* App palette */
  --violet: #9D8CFF;  /* calories, brand accent */
  --red: #FF453A;     /* protein */
  --yellow: #FFD60A;  /* carbs */
  --teal: #4CD9B4;    /* fat */
  --blue: #409CFF;    /* weight */

  --radius: 20px;
  --gap: 12px;
  --side: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --side: 24px; --gap: 16px; }
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: #2C2C2E #000000;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 24px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fine film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { overflow-x: clip; }

h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: rgba(157, 140, 255, 0.35); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- Type: 3 sizes, 2 weights ---------- */
.t34 {
  font-size: clamp(34px, calc(12px + 4.2vw), 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
/* The same 34px size, fixed (prices and the phone preview, where it must not grow) */
.m34 { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -0.5px; }
.t17 { font-size: 17px; line-height: 24px; letter-spacing: -0.011em; }
.t13 { font-size: 13px; line-height: 18px; }
.b   { font-weight: 700; }
.sec { color: var(--sec); }
.num-tab { font-variant-numeric: tabular-nums; }

/* Soft white-to-silver headline fill */
.title,
.title.split .w {
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(255, 255, 255, 0.58) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title { padding: 0.04em 0 0.1em; }
.title.split { background: none; }
.title.split .w {
  display: inline-block;
  padding: 0.04em 0 0.12em;
  margin: -0.04em 0 -0.12em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(1080px + 2 * var(--side));
  margin: 0 auto;
  padding: 0 var(--side);
}

.section { position: relative; padding-top: 96px; }
.section-title { margin-bottom: 24px; }

.grid { display: grid; gap: var(--gap); }

@media (min-width: 768px) {
  .section { padding-top: 144px; }
  .section-title { margin-bottom: 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text);
  color: #000000;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.011em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  color: #000000;
  background: linear-gradient(180deg, #FFFFFF 0%, #E4E4EA 100%);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 28px -10px rgba(157, 140, 255, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 16px 40px -10px rgba(157, 140, 255, 0.85),
    0 2px 8px rgba(0, 0, 0, 0.4);
}
.btn-primary:active { transform: scale(0.97); }

.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.btn-glass:active { transform: scale(0.97); }

/* Light sweep across glass buttons on hover */
.btn-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.8s var(--ease);
}
.btn-glass:hover::after { transform: translateX(110%); }

.btn-sm {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 18px;
}
.btn-sm.btn-primary {
  box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 18px -8px rgba(157, 140, 255, 0.7);
}

.btn-block { width: 100%; }

/* ---------- Top bar (glass capsule at the top of the page; it scrolls away with the page) ---------- */
.topbar {
  position: relative;
  z-index: 60;
  padding: 12px var(--side) 0;
}

.topbar-inner {
  max-width: 1080px;
  height: 60px;
  margin: 0 auto;
  padding: 0 8px 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  background: rgba(18, 18, 20, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px -12px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  justify-self: start;
  white-space: nowrap;
}
/* The app's logo (mark + wordmark), copied from the app's brand files */
.logo { width: auto; height: 28px; }

.nav { display: none; gap: 2px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--sec);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.topbar-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: var(--side);
  right: var(--side);
  display: grid;
  padding: 8px;
  border-radius: 20px;
  background: rgba(18, 18, 20, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 48px -12px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.06); }

@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-btn,
  .mobile-menu { display: none; }
}

/* ---------- Background effects ---------- */
.glow { position: absolute; border-radius: 50%; pointer-events: none; }

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 70%);
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: 40px; }

.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -160px;
  height: 960px;
  z-index: -1;
  pointer-events: none;
}
.glow-a {
  left: 50%;
  top: -80px;
  width: 1000px;
  height: 640px;
  margin-left: -640px;
  background: radial-gradient(closest-side, rgba(157, 140, 255, 0.34), rgba(157, 140, 255, 0.1) 55%, transparent);
}
.glow-b {
  left: 50%;
  top: 80px;
  width: 820px;
  height: 580px;
  margin-left: -60px;
  background: radial-gradient(closest-side, rgba(64, 156, 255, 0.22), transparent);
}

.hero-inner { display: grid; gap: 48px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pulse {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--violet);
}

.hero-title { margin-top: 20px; }
.lead { margin-top: 16px; max-width: 30em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row .btn { flex: 1 1 150px; }

.hero-media { position: relative; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(157, 140, 255, 0.42), rgba(64, 156, 255, 0.14) 60%, transparent);
  filter: blur(24px);
}
.hero-photo { aspect-ratio: 3 / 4; }

/* Phones: top corner, so the photographer's mark at the bottom of the photo stays visible */
.float-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
  background: rgba(22, 22, 24, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px -12px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.chip-text { display: grid; min-width: 0; }
.chip-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 768px) {
  .hero { padding-top: 88px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 64px; }
  .btn-row .btn { flex: 0 0 auto; }
  .hero-media { width: 100%; max-width: 460px; justify-self: end; }
  .float-chip { top: auto; left: -28px; bottom: 40px; }
}

/* ---------- Photos and placeholders ---------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0E0E10;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder box. Replace it with <img class="photo" ...> when the real photo is ready. */
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
  color: var(--sec);
  background: radial-gradient(120% 90% at 50% 0%, #1B1B1F 0%, #0C0C0E 70%);
}

.zoom .photo,
.zoom .ph { transition: transform 1.2s var(--ease); }
.zoom:hover .photo,
.zoom:hover .ph { transform: scale(1.04); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #161618 0%, #0E0E10 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
  .card { padding: 24px; }
}

/* Cursor spotlight + glowing edge (mouse only) */
@media (hover: hover) and (pointer: fine) {
  .spot::before,
  .spot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
  }
  .spot::before {
    background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.06), transparent 45%);
  }
  .spot::after {
    padding: 1px;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(157, 140, 255, 0.8), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  .spot:hover::before,
  .spot:hover::after { opacity: 1; }
}

.icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--c, var(--text));
  background: color-mix(in srgb, var(--c, #FFFFFF) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #FFFFFF) 30%, transparent);
}

/* ---------- About ---------- */
.bio { display: grid; gap: 16px; margin-bottom: var(--gap); }
.bio-head { display: grid; gap: 2px; align-content: start; }
.bio-text { display: grid; gap: 8px; }
@media (min-width: 768px) {
  .bio { grid-template-columns: 240px 1fr; gap: 32px; padding: 32px; }
}

/* Numbers row at the bottom of the bio card */
.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stat { display: grid; align-content: start; gap: 4px; }
.stat-num {
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(255, 255, 255, 0.58) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 768px) {
  .stats { padding-top: 28px; }
}

/* Phones: icon beside the text (shorter cards). Bigger screens: icon on top. */
.cred { display: grid; grid-template-columns: 44px 1fr; align-items: center; column-gap: 14px; row-gap: 2px; }
.cred .icon { grid-row: 1 / 3; }
@media (min-width: 768px) {
  .cred { grid-template-columns: none; justify-items: start; align-items: start; row-gap: 4px; }
  .cred .icon { grid-row: auto; margin-bottom: 12px; }
}

/* Stage photos: swipeable on phones; on bigger screens a grid with the first photo large */
.gallery {
  display: flex;
  gap: var(--gap);
  margin: var(--gap) calc(-1 * var(--side)) 0;
  padding: 0 var(--side);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--side);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .frame { flex: 0 0 72%; aspect-ratio: 3 / 4; scroll-snap-align: start; }

@media (min-width: 768px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: var(--gap) 0 0;
    padding: 0;
    overflow: visible;
  }
  .gallery .g-main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- Results: before / after slider ---------- */
.result p + p { margin-top: 2px; }

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 14px;
  background: #0C0C0E;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.compare-img { position: absolute; inset: 0; }
.compare-img.after { clip-path: inset(0 0 0 var(--pos)); }

.compare .ph { justify-content: flex-end; padding-bottom: 20px; }
.compare .before .ph { padding-right: 50%; background: linear-gradient(180deg, #141416 0%, #0B0B0D 100%); }
.compare .after .ph { padding-left: 50%; background: linear-gradient(180deg, #232327 0%, #161619 100%); }

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s var(--ease);
}
.compare:active .compare-knob { transform: scale(0.9); }
.compare:focus-within .compare-knob { outline: 2px solid var(--violet); outline-offset: 3px; }

.compare-range {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
}

.tag {
  position: absolute;
  top: 10px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.tag-l { left: 10px; }
.tag-r { right: 10px; }

/* ---------- Plans ---------- */
.section-glow {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: -1;
  width: 960px;
  height: 640px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(157, 140, 255, 0.16), transparent);
  pointer-events: none;
}

/* 1 plan per row on phones, 2 on tablets, 4 on wide screens */
@media (min-width: 600px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .plans { grid-template-columns: repeat(4, 1fr); }
}

.plan { display: flex; flex-direction: column; }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 20px;
}

.checks {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%239D8CFF' fill-opacity='0.16'/%3E%3Cpath d='M6.5 11.3l3 3 6-6.3' fill='none' stroke='%239D8CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}
/* Extra that only some plans have (sparkle instead of a check) */
.checks li.perk::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%239D8CFF' fill-opacity='0.16'/%3E%3Cpath d='M11 4.5l1.6 4.9 4.9 1.6-4.9 1.6L11 17.5l-1.6-4.9L4.5 11l4.9-1.6z' fill='%239D8CFF'/%3E%3C/svg%3E");
}

/* "Every plan includes" card */
.includes { display: grid; gap: 20px; margin-top: var(--gap); }
.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(157, 140, 255, 0.14), rgba(157, 140, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(157, 140, 255, 0.24);
}
.includes-list { flex: none; margin: 0; }
@media (min-width: 600px) {
  .includes-list { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
}
@media (min-width: 768px) {
  .includes { padding: 32px; }
}
@media (min-width: 1100px) {
  .includes-list { grid-template-columns: repeat(3, 1fr); }
}

/* Recommended plan: lifted, glowing, with a light running around its edge */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.featured {
  background: linear-gradient(180deg, #1C1B24 0%, #0F0F13 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 100px -40px rgba(157, 140, 255, 0.6);
}
.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--angle),
    rgba(157, 140, 255, 0.22) 0deg,
    rgba(157, 140, 255, 0.22) 200deg,
    #9D8CFF 255deg,
    #409CFF 295deg,
    rgba(157, 140, 255, 0.22) 340deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(157, 140, 255, 0.3), rgba(64, 156, 255, 0.3)), #111116;
  box-shadow: inset 0 0 0 1px rgba(157, 140, 255, 0.5);
}
.badge svg { color: var(--yellow); }
@media (min-width: 768px) {
  .badge { top: 24px; right: 24px; }
}
/* 4 plans in a row: the badge sits on the card's top edge */
@media (min-width: 1100px) {
  .badge { top: 0; right: auto; left: 50%; transform: translate(-50%, -50%); }
}

/* ---------- Benefits (bento) ---------- */
.bento { display: grid; gap: var(--gap); }

.cell { display: flex; flex-direction: column; gap: 28px; overflow: hidden; }
.cell-text { display: grid; justify-items: start; gap: 4px; }
.cell-text .icon { margin-bottom: 12px; }

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .cell-macros { grid-column: span 2; }
  .cell-progress {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: 32px;
  }
}

.bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.bar-lg { height: 10px; }
.bar i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, #000000), var(--c));
  transition: width 1.6s var(--ease) 0.3s;
}

.viz-macros { display: grid; gap: 20px; margin-top: auto; }
.viz-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.macros .t17 { margin: 2px 0 8px; }

.viz-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: auto;
}
.day { display: grid; justify-items: center; gap: 8px; }
.day i {
  width: 100%;
  max-width: 40px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 300ms);
}
.day.on i {
  background: color-mix(in srgb, var(--red) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 45%, transparent), 0 0 18px -6px var(--red);
}

.viz-chart { width: 100%; height: auto; overflow: visible; }
.viz-chart .line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(64, 156, 255, 0.6));
  transition: stroke-dashoffset 2.2s var(--ease) 0.3s;
}
.viz-chart .area { transition: opacity 1.2s ease 1.2s; }
.viz-chart .end { transition: opacity 0.4s ease 2s; }
.viz-chart .ring { transform-box: fill-box; transform-origin: center; }

/* ---------- Download ---------- */
.cta {
  display: grid;
  gap: 40px;
  padding: 48px 20px 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow-c {
  left: 50%;
  top: 50%;
  width: 900px;
  height: 700px;
  margin: -350px 0 0 -450px;
  background: radial-gradient(closest-side, rgba(157, 140, 255, 0.3), rgba(64, 156, 255, 0.1) 55%, transparent);
}
.cta .grid-lines {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 70%);
}

.cta-text { display: grid; justify-items: center; gap: 12px; }
.get-buttons {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 12px;
}

.cta-phone {
  position: relative;
  height: 420px;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

@media (min-width: 768px) {
  .cta {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 0 56px;
    text-align: left;
  }
  .cta-text { justify-items: start; padding: 72px 0; }
  .cta-phone { align-self: stretch; height: auto; min-height: 540px; }
}

/* Phone preview of the app (uses the app's own sizes) */
.phone {
  position: absolute;
  top: 0;
  left: 50%;
  width: 300px;
  margin-left: -150px;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(160deg, #3A3A3E 0%, #1A1A1D 30%, #111113 70%, #2A2A2E 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -20px rgba(157, 140, 255, 0.4);
  transition: transform 1.4s var(--ease) 0.2s;
}
@media (min-width: 768px) {
  .phone { top: 64px; }
}

.screen {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px 14px 24px;
  border-radius: 42px;
  background: #000000;
  text-align: left;
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 27px;
  margin-left: -46px;
  border-radius: 999px;
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 16px;
}
.status-icons { display: flex; align-items: center; gap: 6px; }
.screen-head { margin: 6px 2px 2px; }

.m-card { padding: 14px; border-radius: 20px; background: var(--card); }
.m-card .bar { margin-top: 10px; background: var(--fill); }
.m-card .bar i { background: var(--c); }
.m-kcal { display: flex; align-items: baseline; gap: 6px; }
.m-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-macros .m-card { padding: 12px 10px; border-radius: 16px; }
.m-macros .bar { margin-top: 8px; }
.m-row { display: flex; align-items: center; justify-content: space-between; }

/* Social buttons: 2 × 2 on phones, 4 in a row on bigger screens */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: var(--gap); }
.contact .btn { width: 100%; }
@media (min-width: 768px) {
  .contact { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 96px;
  padding: 24px 0 calc(40px + env(safe-area-inset-bottom));
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1080px, 100%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.footer-links { display: flex; gap: 4px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer .container > p + p { margin-top: 4px; }

@media (min-width: 768px) {
  .footer { margin-top: 144px; }
}

/* ---------- Privacy and Terms pages ---------- */
.legal { max-width: calc(760px + 2 * var(--side)); }
.legal-hero { padding-bottom: 32px; }
.legal-title { margin-top: 20px; }

/* Privacy / Terms switch */
.legal-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.legal-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--sec);
  transition: color 0.2s, background-color 0.2s;
}
.legal-tabs a:hover { color: var(--text); }
.legal-tabs a[aria-current="page"] {
  color: #000000;
  background: linear-gradient(180deg, #FFFFFF 0%, #E4E4EA 100%);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 6px 18px -8px rgba(157, 140, 255, 0.7);
}

.legal-list { display: grid; gap: var(--gap); }
.legal-item { display: grid; gap: 14px; }
.legal-text { display: grid; gap: 8px; align-content: start; }
.legal-next { margin-top: 32px; }
.inline-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a[aria-current="page"] { color: var(--text); }

@media (min-width: 768px) {
  .legal-hero { padding-bottom: 48px; }
  .legal-item { grid-template-columns: 44px 1fr; gap: 20px; padding: 28px; }
  .legal-next { justify-content: flex-start; }
  .legal-next .btn { flex: 0 0 auto; }
}

/* ======================================================
   Motion (turned off for people who ask for less motion)
   ====================================================== */

/* Scroll reveal: fade up from a soft blur */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }

.grid > .reveal:nth-child(2),
.bento > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3),
.bento > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Things inside a card that animate once it appears */
.js .reveal:not(.in) .bar i { width: 0; }
.js .reveal:not(.in) .day i { transform: scale(0.6); opacity: 0; }
.js .reveal:not(.in) .viz-chart .line { stroke-dashoffset: 1; }
.js .reveal:not(.in) .viz-chart .area,
.js .reveal:not(.in) .viz-chart .end { opacity: 0; }
.js .reveal:not(.in) .phone { transform: translateY(60px); }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .enter {
    animation: enter 1s var(--ease) both;
    animation-delay: calc(var(--d, 0) * 100ms + 150ms);
  }
  .title.split .w {
    animation: word 1s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 80ms + 250ms);
  }

  /* Ambient motion */
  .glow-a { animation: drift-a 18s ease-in-out infinite alternate; }
  .glow-b { animation: drift-b 22s ease-in-out infinite alternate; }
  .pulse::after { animation: ping 2s var(--ease) infinite; }
  .float-chip { animation: bob 6s ease-in-out infinite; }
  .featured::before { animation: spin 5s linear infinite; }
  .viz-chart .ring { animation: ping 2.4s var(--ease) infinite; }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(16px); filter: blur(10px); }
}
@keyframes word {
  from { opacity: 0; transform: translateY(0.35em); filter: blur(12px); }
}
@keyframes drift-a {
  to { transform: translate(80px, 40px) scale(1.08); }
}
@keyframes drift-b {
  to { transform: translate(-90px, -30px) scale(1.12); }
}
@keyframes ping {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(3); opacity: 0; }
}
@keyframes bob {
  50% { transform: translateY(-6px); }
}
@keyframes spin {
  to { --angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .js .reveal:not(.in) .bar i { width: var(--v); }
  .js .reveal:not(.in) .day i { transform: none; opacity: 1; }
  .js .reveal:not(.in) .viz-chart .line { stroke-dashoffset: 0; }
  .js .reveal:not(.in) .viz-chart .area,
  .js .reveal:not(.in) .viz-chart .end { opacity: 1; }
  .js .reveal:not(.in) .phone { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
