:root {
  --bg: #f4f4f2;
  --bg-2: #ebebe8;
  --paper: #ffffff;
  --ink: #0e0e0e;
  --mute: #6a6a66;
  --faint: #9a9a94;
  --line: rgba(14, 14, 14, 0.07);
  --accent: #e85d04;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --display: "Syne", system-ui, sans-serif;
  --sans: "Figtree", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.grain {
  display: none;
}

/* —— Floating island nav —— */
.nav-float {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(100% - 28px, 760px);
}

.island {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(14, 14, 14, 0.08);
  border: 1px solid rgba(14, 14, 14, 0.06);
}

.island-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.island-brand img {
  border-radius: 7px;
}

.island-links {
  display: flex;
  gap: 22px;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--mute);
}

.island-links a:hover {
  color: var(--ink);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.04);
}

.burger i {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}

.burger i:first-child {
  top: 16px;
}

.burger i:last-child {
  top: 22px;
}

.burger.is-open i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.burger.is-open i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #242424;
}

.btn-xl {
  padding: 14px 16px 14px 22px;
  font-size: 1rem;
}

.btn-orb {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  transition: transform 0.45s var(--ease);
}

.group:hover .btn-orb {
  transform: translate(2px, -1px) scale(1.06);
}

/* —— Hero —— */
.hero {
  min-height: 100dvh;
  padding: 148px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(232, 93, 4, 0.12), transparent 60%),
    linear-gradient(180deg, #fafaf8 0%, var(--bg) 55%, var(--bg-2) 100%);
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 48px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: 18px;
}

.wordmark-sm {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--accent);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.sub {
  color: var(--mute);
  font-size: 1.1rem;
  max-width: 28em;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  justify-content: center;
}

/* Double-bezel phone stage */
.hero-visual {
  width: min(100%, 320px);
  position: relative;
  z-index: 1;
}

.bezel {
  padding: 8px;
  border-radius: 36px;
  background: rgba(14, 14, 14, 0.045);
  border: 1px solid rgba(14, 14, 14, 0.05);
  box-shadow: 0 32px 64px rgba(14, 14, 14, 0.12);
}

.bezel-inner {
  border-radius: 28px;
  overflow: hidden;
  background: #f3f2f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}

.bezel-inner::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 7px;
  border-radius: 999px;
  background: #1a1a1a;
  z-index: 5;
}

.shot-rail {
  position: relative;
  aspect-ratio: 9 / 19.2;
  background: #f3f2f0;
}

.shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
  overflow: hidden;
}

.shot.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.shot-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.18);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease),
    width 0.45s var(--ease);
}

.dot.is-on {
  width: 22px;
  background: var(--ink);
}

/* —— Crisp in-phone UI (no bitmap screenshots) —— */
.ui {
  height: 100%;
  padding: 28px 12px 14px;
  text-align: left;
  color: #141414;
  font-family: var(--sans);
  background: #f3f2f0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.ui-sm {
  padding-top: 26px;
  font-size: 0.92em;
}

.ui-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ui-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.ui-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #1a1a1a;
}

.ui-streak {
  font-size: 0.78rem;
  font-weight: 650;
  color: #e85d04;
}

.ui-title {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.ui-sub {
  font-size: 0.72rem;
  color: #6b6b6b;
  margin: -6px 0 12px;
}

.ui-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 0.58rem;
  color: #9a9a9a;
  font-weight: 600;
}

.ui-week b {
  display: block;
  margin-top: 2px;
  color: #141414;
  font-size: 0.78rem;
}

.ui-week .on {
  background: #141414;
  color: #fff;
  border-radius: 999px;
  padding: 6px 0;
}

.ui-week .on b {
  color: #fff;
}

.ui-week.compact span {
  padding: 7px 0;
  border-radius: 10px;
  font-size: 0.7rem;
}

.ui-week.compact .on {
  border-radius: 10px;
}

.ui-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 0 rgba(14, 14, 14, 0.03);
}

.ui-cal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-cal strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ui-cal em {
  font-style: normal;
  font-weight: 650;
  font-size: 0.85rem;
}

.ui-cal small,
.meta,
.hint {
  display: block;
  color: #6b6b6b;
  font-size: 0.68rem;
  margin-top: 3px;
}

.lg {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.pace {
  color: #e85d04;
  font-weight: 650;
  font-size: 0.78rem;
  margin-top: 6px;
}

.ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(#e85d04 var(--p), #e8e6e3 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
}

.ui-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.mac {
  background: #fff;
  border-radius: 12px;
  padding: 8px 6px;
}

.mac strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.mac span {
  font-size: 0.58rem;
  color: #6b6b6b;
}

.mac.protein {
  background: #f8e9e7;
}
.mac.carbs {
  background: #f8efe3;
}
.mac.fat {
  background: #e4f2f0;
}

.ui-next {
  background: #1a1a1a;
  color: #fff;
  border-radius: 16px;
  padding: 12px;
}

.ui-next small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.ui-next strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.ui-next p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 4px 0 10px;
}

.ui-cta {
  background: #e85d04;
  color: #fff;
  text-align: center;
  border-radius: 999px;
  padding: 8px;
  font-weight: 700;
  font-size: 0.78rem;
}

.meal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.meal b {
  display: block;
  font-size: 0.72rem;
  color: #9a9a9a;
}

.meal span {
  display: block;
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.meal small {
  color: #6b6b6b;
  font-size: 0.65rem;
}

.meal .check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #2f9e5b;
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
}

.spark,
.chart {
  width: 100%;
  margin-top: 8px;
  display: block;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.pill {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f2f0;
  color: #6b6b6b;
}

.ui-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ui-card.mini strong {
  display: block;
  font-size: 1.1rem;
  margin: 4px 0;
}

.dots {
  display: flex;
  gap: 4px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #e8e6e3;
  display: block;
}

.dots i.g {
  background: #2f9e5b;
}

/* —— Strip —— */
.strip {
  padding: 88px 24px;
  text-align: center;
}

.strip-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
  max-width: 16em;
  margin: 0 auto;
  color: var(--ink);
}

.strip-line em {
  font-style: normal;
  color: var(--accent);
}

/* —— Cascade showcase —— */
.showcase {
  padding: 40px 20px 120px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.showcase-head {
  text-align: center;
  margin-bottom: 72px;
}

.micro {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.showcase-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.cascade {
  display: grid;
  gap: 56px;
}

.cascade-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cascade-item:nth-child(2) .bezel-sm {
  justify-self: end;
}

.bezel-sm {
  width: min(250px, 70%);
  box-shadow: 0 30px 60px rgba(14, 14, 14, 0.09);
}

.bezel-sm .bezel-inner {
  aspect-ratio: 9 / 17;
}

.cascade-copy .num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.cascade-copy h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.cascade-copy p {
  color: var(--mute);
  font-size: 1.08rem;
  max-width: 22em;
}

.cascade-item:nth-child(odd) .cascade-copy {
  text-align: left;
}

.cascade-item:nth-child(even) .cascade-copy {
  text-align: right;
  justify-self: end;
}

.cascade-item:nth-child(even) .cascade-copy p {
  margin-left: auto;
}

/* —— Closer —— */
.closer {
  padding: 0 20px 100px;
}

.closer-panel {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 88px 32px;
  text-align: center;
  border-radius: 40px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 40px 80px rgba(14, 14, 14, 0.18);
}

.closer-panel h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.closer-panel > p {
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 28px;
}

.closer-panel .btn-dark {
  background: #fff;
  color: var(--ink);
}

.closer-panel .btn-dark:hover {
  background: #f2f2f2;
}

.closer-panel .btn-orb {
  background: rgba(14, 14, 14, 0.08);
}

.fine {
  margin-top: 28px !important;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
  max-width: 32em;
  margin-inline: auto;
}

/* —— Footer —— */
.foot {
  padding: 48px 24px 56px;
  border-top: 1px solid var(--line);
}

.foot-top {
  width: min(100%, var(--max));
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.foot-top strong {
  font-family: var(--display);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 6px;
}

.foot-top p,
.foot-top a {
  color: var(--mute);
  font-size: 0.92rem;
}

.foot-top a:hover {
  color: var(--ink);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: flex-start;
  color: var(--mute);
  font-size: 0.92rem;
  font-weight: 550;
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-bot {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.82rem;
}

/* —— Legal —— */
.legal-page {
  width: min(100% - 40px, 720px);
  margin: 0 auto;
  padding: 140px 0 100px;
}

.legal-page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--faint);
  margin-bottom: 36px;
}

.legal-body {
  display: grid;
  gap: 18px;
  color: var(--mute);
  font-size: 1.02rem;
}

.legal-body h2 {
  color: var(--ink);
  font-size: 1.08rem;
  margin-top: 8px;
}

.legal-body ul {
  padding-left: 1.15em;
  display: grid;
  gap: 6px;
}

.legal-body a {
  color: var(--accent);
  font-weight: 600;
}

.legal-footer-links {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--faint);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Keep photo frames sharp — no blur filter on image stages */
.hero-visual.reveal,
.cascade-item .bezel.reveal,
.cascade-item.reveal .bezel {
  filter: none;
}

/* —— Mobile —— */
@media (max-width: 860px) {
  .island-links {
    display: none;
  }

  .burger {
    display: block;
  }

  .island.is-open .island-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 14px;
    gap: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(14, 14, 14, 0.06);
    box-shadow: 0 20px 40px rgba(14, 14, 14, 0.1);
  }

  .island.is-open .island-links a {
    padding: 14px 12px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(12px);
    animation: linkIn 0.55s var(--ease) forwards;
  }

  .island.is-open .island-links a:nth-child(1) {
    animation-delay: 0.05s;
  }
  .island.is-open .island-links a:nth-child(2) {
    animation-delay: 0.1s;
  }
  .island.is-open .island-links a:nth-child(3) {
    animation-delay: 0.15s;
  }
  .island.is-open .island-links a:nth-child(4) {
    animation-delay: 0.2s;
  }

  @keyframes linkIn {
    to {
      opacity: 1;
      transform: none;
    }
  }

  .cascade-item,
  .cascade-item:nth-child(2) {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cascade-item .bezel-sm,
  .cascade-item:nth-child(2) .bezel-sm {
    justify-self: center;
    order: -1;
  }

  .cascade-item:nth-child(odd) .cascade-copy,
  .cascade-item:nth-child(even) .cascade-copy {
    text-align: center;
    justify-self: center;
  }

  .cascade-item:nth-child(even) .cascade-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .nav-float {
    width: min(100% - 20px, 520px);
  }
}
