/* ============================================================
   ProgrezPro landing — design tokens
   ============================================================ */

@font-face {
  font-family: "LINE Seed Sans";
  src: url("../assets/fonts/LINESeedSans_W_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans";
  src: url("../assets/fonts/LINESeedSans_W_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans";
  src: url("../assets/fonts/LINESeedSans_W_XBd.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans";
  src: url("../assets/fonts/LINESeedSans_W_He.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #252324;
  --color-bg-alt: #1a1919;
  --color-bg-footer: #111010;
  --color-text: #fafafa;
  --color-text-60: rgba(250, 250, 250, 0.6);
  --color-text-50: rgba(250, 250, 250, 0.5);
  --color-accent: #ddf93a;
  --color-orange: #fe572a;
  --color-blue: #38bdf8;
  --color-yellow: #fbbc04;
  --color-border: rgba(250, 250, 250, 0.08);
  --color-border-soft: rgba(250, 250, 250, 0.06);
  --color-phone-border: rgba(255, 255, 255, 0.14);
  --font-sans: "LINE Seed Sans", "Inter", -apple-system, "Segoe UI", sans-serif;
  --container: 1152px;
  --nav-height: 72px;
}

/* ============================================================
   Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

[hidden] {
  display: none !important;
}

/* Shared typography */

.eyebrow {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.h2 {
  font-size: 56px;
  font-weight: 900;
  line-height: 60px;
  text-transform: uppercase;
}

.h3 {
  font-size: 44px;
  font-weight: 800;
  line-height: 48px;
}

.accent {
  color: var(--color-accent);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(37, 35, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  color: var(--color-text-60);
  font-size: 14px;
  line-height: 20px;
  transition: color 0.2s ease;
}

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

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-pill:hover {
  background: var(--color-accent);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: calc(1074px - var(--nav-height));
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--lime {
  width: 1275px;
  height: 1275px;
  left: calc(50% + 92px);
  top: -521px;
  background: radial-gradient(circle, rgba(221, 249, 58, 0.12) 0%, rgba(111, 125, 29, 0.06) 35%, rgba(0, 0, 0, 0) 70%);
}

.hero__glow--orange {
  width: 1272px;
  height: 1272px;
  left: calc(50% - 1509px);
  top: 116px;
  background: radial-gradient(circle, rgba(254, 87, 42, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 100px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  font-size: 64px;
  font-weight: 900;
  line-height: 72px;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 448px;
  margin-top: 32px;
  color: var(--color-text-60);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* Composite App Store badge (offsets from Figma, 172.63 x 56) */
.badge-appstore {
  position: relative;
  width: 173px;
  height: 56px;
  border: 1.12px solid rgba(250, 250, 250, 0.5);
  border-radius: 5.6px;
  transition: border-color 0.2s ease;
}

.badge-appstore__apple {
  position: absolute;
  left: 13px;
  top: 11.7px;
  width: 25.9px;
  height: 31.9px;
}

.badge-appstore__caption {
  position: absolute;
  left: 50.7px;
  top: 11.3px;
  width: 101.2px;
  height: 9.3px;
}

.badge-appstore__label {
  position: absolute;
  left: 48.9px;
  top: 25.1px;
  width: 109.9px;
  height: 22.9px;
}

.badge-gplay {
  display: block;
  width: 189px;
  height: 56px;
  border-radius: 5.6px;
  transition: opacity 0.2s ease;
}

.badge-appstore:hover,
.badge-gplay:hover {
  opacity: 0.85;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
  padding-top: 8px;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
}

.stat__value {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.stat__value--accent {
  color: var(--color-accent);
}

.stat__label {
  color: var(--color-text-60);
  font-size: 12px;
  line-height: 16px;
}

.stat__divider {
  width: 1px;
  height: 32px;
  background: rgba(250, 250, 250, 0.12);
}

/* Phone mockup primitives */

.phone {
  position: relative;
  background: var(--color-bg);
  border: 2.5px solid var(--color-phone-border);
  border-radius: 30px;
  overflow: hidden;
}

.phone > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
}

.phone__btn {
  position: absolute;
  width: 3.5px;
  background: rgba(250, 250, 250, 0.18);
  border-radius: 999px;
}

.phone__btn--r  { right: -6px; top: 113px; height: 48px; }
.phone__btn--l1 { left: -6px;  top: 92px;  height: 28px; }
.phone__btn--l2 { left: -6px;  top: 139px; height: 44px; }

/* Hero visual composition (528 x 640 canvas) */

.hero__visual {
  position: relative;
  height: 640px;
}

.phone--hero-main {
  position: absolute;
  left: 141px;
  top: 78px;
  width: 260px;
  height: 557px;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.7));
}

.phone--hero-tilted {
  position: absolute;
  left: 348px;
  top: 215px;
  width: 200px;
  height: 427px;
  transform: rotate(13.71deg);
  opacity: 0.6;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.phone--hero-tilted .phone__btn,
.phone--feature .phone__btn {
  overflow: visible;
}

/* side buttons must not be clipped — pull them out via outer wrapper trick */
.phone--hero-tilted,
.phone--feature,
.phone--hero-main {
  overflow: visible;
}

.phone--hero-tilted > img,
.phone--feature > img,
.phone--hero-main > img {
  height: calc(100% - 0px);
  clip-path: inset(0 round 26px);
}

.float-card {
  position: absolute;
  width: 148px;
  padding: 16px;
  background: #323031;
  border-radius: 16px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.float-card--kcal { left: 37px; top: 228px; }
.float-card--streak { left: 355px; top: 68px; }

.float-card__value {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
}

.float-card__value--accent { color: var(--color-accent); }
.float-card__value--orange { color: var(--color-orange); }

.float-card__label {
  color: var(--color-text-60);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll p {
  color: var(--color-text-60);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(221, 249, 58, 0.6), rgba(0, 0, 0, 0));
}

/* ============================================================
   Marquee
   ============================================================ */

.marquee {
  background: var(--color-accent);
  border-top: 1px solid rgba(37, 35, 36, 0.1);
  border-bottom: 1px solid rgba(37, 35, 36, 0.1);
  padding: 19px 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee__list {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

.marquee__list li {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--color-bg);
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__list li::after {
  content: "";
  width: 18px;
  height: 18px;
  background: url("../assets/img/diamond-lg.svg") no-repeat center / contain;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Features
   ============================================================ */

.features {
  padding: 128px 0;
}

.features__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 577px;
}

.features__rows {
  display: flex;
  flex-direction: column;
  gap: 112px;
  padding-top: 80px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* keep text/phone order alternating on desktop */
.feature-row__visual { order: 0; }
.feature-row__content { order: 1; }
.feature-row--flip .feature-row__visual { order: 1; }
.feature-row--flip .feature-row__content { order: 0; }

.feature-row__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.feature-badge {
  padding: 4px 12px;
  background: var(--feature-badge-bg);
  color: var(--feature-color);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 999px;
}

.feature-row__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 48px;
}

.feature-row__text {
  color: var(--color-text-50);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.feature-tags li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--feature-color);
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-tags li:not(:last-child)::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--feature-color);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.feature-row__visual {
  display: flex;
  justify-content: center;
}

.feature-phone {
  position: relative;
  width: 240px;
}

.feature-phone__glow {
  position: absolute;
  left: 36px;
  top: 77px;
  width: 168px;
  height: 360px;
  background: var(--feature-glow, var(--feature-color));
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.2;
}

.phone--feature {
  position: relative;
  width: 240px;
  height: 514px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* scroll-reveal for feature phones (classes added by JS) */
.feature-row__visual.reveal {
  opacity: 0;
  transform: translateY(56px) rotate(3deg) scale(0.95);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feature-row--flip .feature-row__visual.reveal {
  transform: translateY(56px) rotate(-3deg) scale(0.95);
}

.feature-row__visual.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Partners
   ============================================================ */

.partners {
  padding: 124px 0;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 1100px;
  margin: 48px auto 0;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: rgba(250, 250, 250, 0.08);
  border-radius: 24px;
  color: rgba(250, 250, 250, 0.4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.partners__note {
  max-width: 728px;
  margin: 32px auto 0;
  color: var(--color-text-50);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

/* ============================================================
   Preview (See Inside the App)
   ============================================================ */

.preview {
  background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-alt));
  padding: 124px 0;
  overflow: hidden;
}

.preview__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 64px;
}

.preview-tab {
  width: 80px;
  padding: 9px 0;
  background: rgba(250, 250, 250, 0.06);
  border: 1px solid rgba(250, 250, 250, 0.1);
  border-radius: 999px;
  color: var(--color-text-60);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.preview-tab:hover {
  background: rgba(250, 250, 250, 0.12);
  color: var(--color-text);
}

.preview-tab.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.preview__carousel {
  padding-top: 48px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.preview__carousel.is-dragging {
  cursor: grabbing;
}

.preview__stage {
  position: relative;
  height: 457px;
}

/* one element per screen; JS drives translateX/scale/opacity from the drag position */
.phone--carousel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 215px;
  height: 457px;
  margin-left: -107.5px;
  border-width: 3.4px;
  transform-origin: center bottom;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.5));
  will-change: transform, opacity;
}

.preview__caption {
  padding-top: 40px;
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.6px;
  text-align: center;
  text-transform: uppercase;
}

/* ============================================================
   Steps (How It Works)
   ============================================================ */

.steps {
  background: var(--color-bg-alt);
  padding: 156px 0;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 80px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 33px;
  background: rgba(250, 250, 250, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 24px;
}

.step-card__number {
  font-size: 60px;
  font-weight: 900;
  line-height: 60px;
}

.step-card__number--lime { color: var(--color-accent); }
.step-card__number--orange { color: var(--color-orange); }
.step-card__number--blue { color: var(--color-blue); }

.step-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card__body h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.step-card__body p {
  color: var(--color-text-60);
  font-size: 16px;
  line-height: 26px;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
  position: relative;
  padding: 208px 0;
  overflow: hidden;
  background-image: radial-gradient(ellipse 1122px 512px at center, rgba(221, 249, 58, 0.1), rgba(0, 0, 0, 0) 70%);
}

.cta__noise {
  position: absolute;
  inset: 0;
  background: url("../assets/img/noise.png") repeat;
  opacity: 0.03;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.cta__title {
  font-size: 56px;
  font-weight: 900;
  line-height: 60px;
  text-transform: uppercase;
}

.cta__text {
  max-width: 512px;
  color: var(--color-text-50);
}

.store-badges--center {
  justify-content: center;
  margin-top: 0;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--color-bg-footer);
  border-top: 1px solid var(--color-border-soft);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__copy {
  color: var(--color-text-60);
  font-size: 14px;
  line-height: 20px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  line-height: 20px;
}

.footer__links a {
  color: var(--color-text-60);
  text-decoration: underline;
  text-underline-position: from-font;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__links .footer__email {
  margin-left: 40px;
  color: var(--color-text);
  text-decoration: none;
}

/* ============================================================
   Legal pages (Terms / Privacy)
   ============================================================ */

.legal-main {
  max-width: 768px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-main h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 48px;
  text-transform: uppercase;
}

.legal-updated {
  margin-top: 12px;
  color: var(--color-text-50);
  font-size: 14px;
  line-height: 20px;
}

.legal-main h2 {
  margin-top: 48px;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.legal-main p,
.legal-main li {
  margin-top: 16px;
  color: var(--color-text-60);
  font-size: 16px;
  line-height: 26px;
}

.legal-main ul {
  padding-left: 24px;
  list-style: disc;
}

.legal-main ul li {
  margin-top: 8px;
}

.legal-main a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-position: from-font;
}

@media (max-width: 768px) {
  .legal-main { padding: 40px 20px 64px; }
  .legal-main h1 { font-size: 28px; line-height: 34px; }
  .legal-main h2 { margin-top: 36px; font-size: 18px; line-height: 26px; }
  .legal-main p, .legal-main li { font-size: 14px; line-height: 22px; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1240px) {
  .hero__visual {
    transform: scale(0.88);
    transform-origin: left center;
  }
}

@media (max-width: 1100px) {
  .h2 { font-size: 48px; line-height: 52px; }
  .hero__title { font-size: 56px; line-height: 64px; }
  .hero__visual { transform: scale(0.78); }
  .feature-row { gap: 40px; }
  .feature-row__title { font-size: 36px; line-height: 42px; }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .hero {
    min-height: 0;
  }

  .hero {
    display: block;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 72px;
  }

  .hero__visual {
    transform: none;
    height: auto;
    display: flex;
    justify-content: center;
    padding-top: 24px;
  }

  /* single centered phone on small screens, cards follow it */
  .phone--hero-main {
    position: relative;
    left: auto;
    top: auto;
    width: 260px;
    height: 565px;
    border-width: 3px;
    filter: drop-shadow(0 24px 96px rgba(0, 0, 0, 0.5));
  }

  .phone--hero-tilted { display: none; }

  .float-card--kcal { left: calc(50% - 230px); top: 150px; }
  .float-card--streak { left: calc(50% + 90px); top: 48px; }

  .hero__scroll { display: none; }

  .features { padding: 72px 0; }
  .features__rows { gap: 72px; padding-top: 56px; }

  .feature-row,
  .feature-row--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .feature-row__content { order: 0; }
  .feature-row__visual { order: 1; }

  .steps__grid { grid-template-columns: 1fr; padding-top: 48px; }
  .steps { padding: 96px 0; }

  .partners { padding: 96px 0; }
  .preview { padding: 96px 0; }
}

@media (max-width: 768px) {
  body { font-size: 15px; line-height: 22px; }

  .nav__links { display: none; }
  .nav__inner { height: 64px; }

  .eyebrow { letter-spacing: 2px; }

  .h2,
  .cta__title { font-size: 32px; line-height: 36px; }

  .h3 { font-size: 32px; line-height: 36px; }

  .hero__title { font-size: 44px; line-height: 48px; }
  .hero__lead { margin-top: 16px; font-size: 15px; line-height: 22px; }
  .store-badges { margin-top: 28px; }
  .hero__stats { margin-top: 28px; gap: 16px; }
  .stat__value { font-size: 18px; line-height: 24px; }
  .stat__label { font-size: 11px; }
  .stat__divider { height: 24px; }

  /* scaled-down store badges (48px tall, factor 0.857) */
  .badge-appstore { width: 148px; height: 48px; border-radius: 4.8px; }
  .badge-appstore__apple { left: 11.2px; top: 10px; width: 22.2px; height: 27.3px; }
  .badge-appstore__caption { left: 43.5px; top: 9.7px; width: 86.8px; height: 8px; }
  .badge-appstore__label { left: 41.9px; top: 21.5px; width: 94.2px; height: 19.6px; }
  .badge-gplay { width: 162px; height: 48px; }
  .badge-gplay img { width: 162px; height: 48px; }

  .float-card { width: 124px; padding: 12px; }
  .float-card__value { font-size: 18px; line-height: 24px; }
  .float-card__label { font-size: 11px; }
  .float-card--kcal { left: calc(50% - 178px); top: 140px; }
  .float-card--streak { left: calc(50% + 62px); top: 40px; }

  .marquee { padding: 12px 0; }
  .marquee__list { gap: 16px; padding-right: 16px; }
  .marquee__list li { gap: 16px; font-size: 14px; line-height: 20px; }
  .marquee__list li::after { width: 10px; height: 10px; }

  .features { padding: 48px 0; }
  .features__rows { gap: 48px; padding-top: 40px; }
  .feature-row__title { font-size: 24px; line-height: 30px; }
  .feature-row__text { font-size: 14px; line-height: 22px; }
  .feature-tags li { font-size: 13px; gap: 12px; }
  .feature-tags { column-gap: 12px; }

  .partners { padding: 48px 0; }
  .partners__grid { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
  .partner-card { height: 44px; border-radius: 12px; font-size: 10px; letter-spacing: 1px; }
  .partner-card--row2 { display: none; }
  .partners__note { margin-top: 24px; font-size: 13px; line-height: 18px; }

  .preview { padding: 48px 0; }
  .preview__tabs { padding-top: 28px; flex-wrap: wrap; }
  .preview-tab { width: auto; padding: 8px 16px; font-size: 13px; }
  .preview__carousel { padding-top: 28px; }
  .preview__stage { height: 420px; }
  .phone--carousel { width: 198px; height: 420px; margin-left: -99px; border-width: 3px; filter: drop-shadow(0 16px 64px rgba(0, 0, 0, 0.5)); }
  .preview__caption { padding-top: 28px; font-size: 16px; }

  .steps { padding: 48px 0; }
  .steps__grid { padding-top: 32px; gap: 16px; }
  .step-card { padding: 24px; border-radius: 20px; gap: 24px; }
  .step-card__number { font-size: 48px; line-height: 48px; }
  .step-card__body h3 { font-size: 18px; line-height: 24px; }
  .step-card__body p { font-size: 13px; line-height: 20px; }

  .cta { padding: 64px 0; }
  .cta__inner { gap: 32px; }
  .cta__text { font-size: 14px; line-height: 20px; }

  .footer { padding: 40px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__copy { font-size: 12px; line-height: 18px; }
  .footer__links { width: 100%; gap: 16px; }
  .footer__links .footer__email { margin-left: auto; }
}

@media (max-width: 420px) {
  .float-card--kcal { left: 4px; }
  .float-card--streak { left: auto; right: 4px; }
  .hero__title { font-size: 38px; line-height: 42px; }
}

/* Short desktop viewports (typical laptops): fit the whole hero above the fold */
@media (min-width: 961px) and (max-height: 950px) {
  .hero {
    min-height: calc(100vh - var(--nav-height));
  }

  .hero__grid {
    padding-top: 8px;
    padding-bottom: 56px;
  }

  .hero__visual {
    height: 540px;
    transform: scale(0.82);
    transform-origin: left top;
  }

  .hero__scroll {
    bottom: 16px;
  }
}
