:root {
  color-scheme: light;
  --page-bg: #f8f7f3;
  --surface: #ffffff;
  --surface-soft: #f1efe9;
  --ink: #121713;
  --muted: #59615b;
  --line: rgba(18, 23, 19, 0.13);
  --theme: #315f49;
  --theme-dark: #143326;
  --theme-deep: #0d2119;
  --theme-soft: #dcece3;
  --accent: #d8a03c;
  --on-theme: #ffffff;
  --shadow: 0 28px 80px rgba(18, 23, 19, 0.14);
  --radius-lg: 34px;
  --radius-md: 22px;
  --content: 1180px;
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

body.theme-routines {
  --page-bg: #fffaf4;
  --surface-soft: #fff0e6;
  --theme: #a73f32;
  --theme-dark: #5f211a;
  --theme-deep: #27100d;
  --theme-soft: #ffe2d4;
  --accent: #f6c453;
}

body.theme-meals {
  --page-bg: #faf8f1;
  --surface-soft: #edf7ef;
  --theme: #2f7450;
  --theme-dark: #17452f;
  --theme-deep: #0d281c;
  --theme-soft: #dff1e4;
  --accent: #e5a84c;
}

body.theme-cartkind {
  --page-bg: #f6f8f5;
  --surface-soft: #eaf0e8;
  --theme: #386047;
  --theme-dark: #1f3f2c;
  --theme-deep: #0b1c12;
  --theme-soft: #dce8dc;
  --accent: #d4aa43;
}

body.theme-setharbor {
  --page-bg: #f5f7f4;
  --surface-soft: #e8efeb;
  --theme: #17756c;
  --theme-dark: #0d514d;
  --theme-deep: #082d2b;
  --theme-soft: #d9ece8;
  --accent: #df8a25;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: var(--theme-dark); text-underline-offset: 0.18em; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.site-nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.company-home {
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 820;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.app-home {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
}

.app-home img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(18, 23, 19, 0.12);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav__links a:hover { color: var(--theme); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--theme) 70%, transparent), transparent 31rem),
    linear-gradient(135deg, var(--theme-deep), var(--theme-dark));
  color: var(--on-theme);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -18%;
  bottom: -70%;
  width: 64vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.hero__inner {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding-block: clamp(72px, 10vw, 126px);
}

.eyebrow {
  margin: 0 0 18px;
  color: color-mix(in srgb, var(--accent) 85%, white);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.35rem, 8.1vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.072em;
}

.hero__tagline {
  max-width: 710px;
  margin: 28px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hero__summary {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.07rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--light { background: #fff; color: var(--theme-deep); }
.button--ghost { border-color: rgba(255, 255, 255, 0.38); color: #fff; }
.button--theme { background: var(--theme-dark); color: #fff; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.85rem;
  font-weight: 680;
  list-style: none;
}

.hero__proof li::before { margin-right: 7px; color: var(--accent); content: "✓"; }

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 390px);
}

.hero__icon {
  position: absolute;
  z-index: 2;
  top: -48px;
  left: 50%;
  width: 104px;
  height: 104px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.3);
}

.hero__screenshot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.hero__screenshot img { width: 100%; height: auto; }

.brand-stage {
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), transparent 12rem),
    linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.08));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.brand-stage__icon {
  width: min(56%, 218px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 25%;
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.34);
}

.brand-stage__chip {
  position: absolute;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 36, 33, 0.72);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.035em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-stage__chip--plan { top: 42px; left: -12px; }
.brand-stage__chip--move { top: 42%; right: -16px; }
.brand-stage__chip--return { bottom: 44px; left: 4px; }

.quick-facts {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.quick-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.quick-fact { padding: 25px clamp(12px, 3vw, 32px); border-left: 1px solid var(--line); }
.quick-fact:first-child { border-left: 0; }
.quick-fact strong { display: block; font-size: 0.96rem; line-height: 1.25; }
.quick-fact span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8rem; }

.section { padding-block: clamp(76px, 10vw, 132px); }
.section--white { background: var(--surface); }
.section--soft { background: var(--surface-soft); }
.section--dark { background: var(--theme-deep); color: #fff; }

.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.section-heading p { margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; }
.section--dark .section-heading p { color: rgba(255, 255, 255, 0.7); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 260px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 94%, var(--theme-soft));
}

.feature-card__number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--theme-soft);
  color: var(--theme-dark);
  font-size: 0.8rem;
  font-weight: 850;
}

.feature-card h3 { margin: 48px 0 10px; font-size: 1.45rem; line-height: 1.12; letter-spacing: -0.03em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.gallery-block + .gallery-block { margin-top: clamp(72px, 9vw, 120px); }
.gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.gallery-toolbar h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.45rem); letter-spacing: -0.04em; }
.gallery-toolbar p { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 0.92rem; }
.section--dark .gallery-toolbar p { color: rgba(255, 255, 255, 0.66); }
.gallery-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.gallery-button {
  min-width: 46px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 780;
}
.gallery-button--wide { padding-inline: 16px; }
.section--dark .gallery-button { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); color: #fff; }
.gallery-position { min-width: 64px; text-align: center; font-size: 0.82rem; font-weight: 760; }

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(252px, 30vw, 344px);
  align-items: start;
  gap: 20px;
  overflow-x: auto;
  padding: 12px max(20px, calc((100vw - var(--content)) / 2)) 28px;
  scroll-padding-inline: max(20px, calc((100vw - var(--content)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track--ipad { grid-auto-columns: clamp(620px, 72vw, 920px); }
.gallery-track--responsive { grid-auto-columns: clamp(300px, 72vw, 900px); }

.gallery-card { min-width: 0; margin: 0; scroll-snap-align: center; }
.gallery-card img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.gallery-card figcaption {
  max-width: 92%;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.section--dark .gallery-card figcaption { color: rgba(255, 255, 255, 0.7); }

.ipad-device {
  padding: 14px;
  border: 2px solid #30302f;
  border-radius: 36px;
  background: #111;
  box-shadow: var(--shadow);
}
.ipad-device img { border-radius: 23px; box-shadow: none; }

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
}
.video-copy h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 0.95; letter-spacing: -0.06em; }
.video-copy p { margin: 22px 0 0; color: rgba(255, 255, 255, 0.7); }
.video-note { font-size: 0.82rem; }
.video-frame {
  width: min(100%, 370px);
  justify-self: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}
.video-frame video {
  width: 100%;
  aspect-ratio: 500 / 1080;
  border-radius: 25px;
  background: #000;
  object-fit: cover;
}

.plan-grid, .trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.plan-card, .trust-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.plan-card--featured { border-color: color-mix(in srgb, var(--theme) 42%, var(--line)); background: linear-gradient(145deg, var(--surface), var(--theme-soft)); }
.plan-label { color: var(--theme-dark); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.plan-card h3, .trust-card h3 { margin: 12px 0 8px; font-size: 1.55rem; line-height: 1.12; letter-spacing: -0.035em; }
.plan-card p, .trust-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.plan-card ul { margin: 22px 0 0; padding: 0; list-style: none; }
.plan-card li { margin-top: 9px; }
.plan-card li::before { margin-right: 9px; color: var(--theme); content: "✓"; font-weight: 900; }
.trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-card { padding: 28px; }
.trust-card h3 { margin-top: 0; font-size: 1.2rem; }
.trust-card p + p { margin-top: 12px; }

.safety-callout {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
}
.safety-callout h3 { margin: 0 0 9px; font-size: 1.35rem; }
.safety-callout p { margin: 0; color: var(--muted); }

.cta {
  padding-block: clamp(76px, 10vw, 120px);
  background: linear-gradient(135deg, var(--theme-deep), var(--theme-dark));
  color: #fff;
  text-align: center;
}
.cta h2 { max-width: 820px; margin: 0 auto; font-size: clamp(2.45rem, 6vw, 5rem); line-height: 0.94; letter-spacing: -0.06em; }
.cta p { max-width: 700px; margin: 22px auto 0; color: rgba(255, 255, 255, 0.72); }
.cta .button { margin-top: 28px; }

.site-footer { padding-block: 42px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 30px; }
.footer-brand { font-weight: 820; }
.footer-note { max-width: 670px; margin: 8px 0 0; color: var(--muted); font-size: 0.78rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.footer-links a { color: var(--ink); font-size: 0.82rem; font-weight: 700; text-decoration: none; }

.redirect-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; text-align: center; }
.redirect-shell a { font-weight: 800; }

@media (max-width: 980px) {
  .hero__inner { min-height: auto; grid-template-columns: 1fr minmax(260px, 0.55fr); gap: 42px; }
  .hero h1 { font-size: clamp(3.2rem, 9vw, 5.6rem); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .container { width: min(var(--content), calc(100% - 28px)); }
  .company-home { font-size: 0.76rem; }
  .brand-divider { display: none; }
  .app-home span { max-width: 128px; overflow: hidden; text-overflow: ellipsis; }
  .site-nav__links li:not(:last-child) { display: none; }
  .site-nav__links { gap: 0; }
  .site-nav__links a { padding: 10px 0; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 74px 82px; }
  .hero__visual { width: min(100%, 330px); margin-top: 32px; }
  .brand-stage { min-height: 360px; }
  .brand-stage__chip--plan { left: 10px; }
  .brand-stage__chip--move { right: 8px; }
  .brand-stage__chip--return { left: 20px; }
  .hero__icon { width: 84px; height: 84px; top: -38px; border-radius: 22px; }
  .quick-facts__grid { grid-template-columns: repeat(2, 1fr); }
  .quick-fact { border-top: 1px solid var(--line); }
  .quick-fact:nth-child(odd) { border-left: 0; }
  .quick-fact:nth-child(-n+2) { border-top: 0; }
  .feature-grid, .plan-grid, .trust-grid, .video-layout { grid-template-columns: 1fr; }
  .feature-card:last-child:nth-child(odd) { grid-column: auto; }
  .gallery-toolbar { align-items: start; flex-direction: column; }
  .gallery-actions { width: 100%; }
  .gallery-button--wide { margin-left: auto; }
  .gallery-track { grid-auto-columns: min(78vw, 320px); padding-inline: 14px; scroll-padding-inline: 14px; }
  .gallery-track--ipad { grid-auto-columns: min(91vw, 720px); }
  .gallery-track--responsive { grid-auto-columns: min(88vw, 700px); }
  .video-copy { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .company-home { display: inline; }
  .app-home span { display: none; }
  .hero h1 { font-size: clamp(3.05rem, 16vw, 4.6rem); }
  .hero__actions .button { width: 100%; }
  .quick-fact { padding: 20px 14px; }
  .gallery-position { min-width: 54px; }
  .gallery-button--wide { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
