@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #65558f;
  --brand-dark: #493b70;
  --brand-pale: #ede9f3;
  --ink: #2d2933;
  --muted: #716b75;
  --line: #c9bfd3;
  --paper: #fcf9fe;
  --white: #ffffff;
  --red: #f25f7d;
  --orange: #ff8a52;
  --yellow: #ffd65a;
  --green: #4fd19a;
  --blue: #55a9f4;
  --indigo: #6f73e6;
  --violet: #b267d9;
  --shadow: 0 24px 54px rgba(45, 41, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Rubik", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}

body::before {
  content: "";
  display: block;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--red) 0 14.28%,
    var(--orange) 14.28% 28.56%,
    var(--yellow) 28.56% 42.84%,
    var(--green) 42.84% 57.12%,
    var(--blue) 57.12% 71.4%,
    var(--indigo) 71.4% 85.68%,
    var(--violet) 85.68% 100%
  );
}

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

a:focus-visible {
  outline: 3px solid rgba(101, 85, 143, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--brand-dark);
}

.brand-logo {
  width: 116px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

nav a,
.footer-links a {
  transition: color 160ms ease;
}

nav a:hover,
.footer-links a:hover {
  color: var(--brand);
}

.hero {
  min-height: 690px;
  padding: 76px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3.5rem, 6.5vw, 5.9rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

h1 span {
  display: inline-block;
  margin-top: 0.12em;
  padding: 0.02em 0.13em 0.08em;
  border-radius: 0.17em;
  background: var(--red);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
  transform: rotate(-1deg);
}

.hero-description {
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 6px 6px 0 var(--ink);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(3px, 3px);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(79, 209, 154, 0.18);
}

.app-preview {
  position: relative;
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 12px 12px 0 var(--indigo), var(--shadow);
  transform: rotate(1.4deg);
}

.app-preview::before,
.app-preview::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.app-preview::before {
  width: 210px;
  height: 210px;
  top: -72px;
  right: -64px;
  background: var(--yellow);
}

.app-preview::after {
  width: 150px;
  height: 150px;
  bottom: -55px;
  left: -55px;
  background: var(--red);
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.preview-topbar strong,
.preview-topbar span {
  display: block;
}

.preview-topbar strong {
  font-size: 1.25rem;
  font-weight: 700;
}

.preview-kicker {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: var(--white);
  font-weight: 700;
}

.summary-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 18px 8px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(45, 41, 51, 0.06);
}

.summary-card div {
  min-width: 0;
  text-align: center;
}

.summary-card div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.65rem;
}

.summary-card strong {
  display: block;
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}

.summary-card strong span {
  color: var(--muted);
  font-size: 0.65em;
  font-weight: 500;
}

.meal-list {
  padding: 13px 0 8px;
}

.meal-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid #eee9f1;
}

.meal-row > div:nth-child(2) {
  min-width: 0;
}

.meal-row strong,
.meal-row span {
  display: block;
}

.meal-row strong {
  overflow: hidden;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-row div > span,
.meal-cal {
  color: var(--muted);
  font-size: 0.66rem;
}

.meal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand-dark);
  font-size: 1rem;
}

.breakfast { background: var(--yellow); }
.lunch { background: var(--green); }
.dinner { background: var(--red); }

.composer {
  display: flex;
  min-height: 50px;
  margin-top: 10px;
  padding: 0 10px 0 18px;
  align-items: center;
  justify-content: space-between;
  border-radius: 17px;
  background: var(--indigo);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
}

.camera {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.value-strip {
  display: flex;
  padding: 24px 30px;
  align-items: center;
  justify-content: space-between;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
}

.value-strip p {
  margin: 0;
}

.value-strip strong {
  color: var(--yellow);
}

.features {
  padding: 124px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 58px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

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

.feature-grid article {
  min-height: 270px;
  padding: 30px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--orange);
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature-grid article:nth-child(2) {
  background: var(--yellow);
}

.feature-grid article:nth-child(3) {
  background: var(--blue);
}

.feature-grid article:hover {
  transform: translate(-2px, -4px) rotate(-0.5deg);
  box-shadow: 10px 12px 0 var(--ink);
}

.feature-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 18px 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

h3 {
  margin: 28px 0 10px;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.feature-grid p,
.how-it-works p,
.closing-card > p,
footer p {
  color: var(--muted);
}

.feature-grid p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.how-it-works {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 120px);
  padding: 88px;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--blue);
  box-shadow: 10px 10px 0 var(--violet);
  color: var(--ink);
}

.how-it-works h2 {
  margin-bottom: 0;
  color: var(--ink);
}

.how-it-works .eyebrow {
  background: var(--yellow);
  color: var(--ink);
}

.how-it-works ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-it-works li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(45, 41, 51, 0.32);
}

.how-it-works li:first-child {
  padding-top: 4px;
}

.how-it-works li > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.how-it-works strong {
  display: block;
  margin-bottom: 3px;
}

.how-it-works p {
  margin-bottom: 0;
  color: rgba(45, 41, 51, 0.78);
  font-size: 0.9rem;
}

.closing-card {
  margin: 110px 0;
  padding: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--red);
  box-shadow: 10px 10px 0 var(--yellow);
  color: var(--ink);
}

.closing-card .eyebrow {
  background: var(--yellow);
  color: var(--ink);
}

.closing-card h2,
.closing-card p {
  margin-bottom: 0;
}

.closing-card > p {
  max-width: 280px;
  padding-bottom: 7px;
  color: rgba(45, 41, 51, 0.8);
  font-size: 0.9rem;
}

footer {
  padding: 16px 0 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}

.footer-brand {
  margin-bottom: 12px;
}

footer p {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Legal pages */
.legal-shell::before {
  background: var(--brand);
}

.legal-shell main {
  max-width: 790px;
}

.legal-shell .site-header {
  border-bottom: 1px solid var(--line);
}

.legal-shell nav a[aria-current="page"] {
  color: var(--brand);
}

.legal-header {
  padding: 88px 0 46px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.2rem);
}

.legal-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-content {
  padding: 54px 0 100px;
}

.legal-content h2 {
  margin: 48px 0 14px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #58525d;
  font-size: 0.96rem;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(101, 85, 143, 0.35);
  text-underline-offset: 3px;
}

.legal-note {
  padding: 20px 22px;
  border-left: 3px solid var(--brand);
  background: var(--brand-pale);
  color: var(--ink) !important;
}

.legal-shell footer {
  max-width: 790px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .app-preview {
    width: min(100%, 610px);
    margin-inline: auto;
    transform: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .feature-grid article + article {
    padding: 30px;
    border: 3px solid var(--ink);
  }

  .how-it-works {
    grid-template-columns: 1fr;
    padding: 60px;
  }

  .closing-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 52px;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1160px);
  }

  .site-header {
    min-height: 74px;
  }

  nav {
    gap: 16px;
    font-size: 0.8rem;
  }

  nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 54px 0 78px;
    gap: 64px;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 4.5rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .app-preview {
    padding: 18px;
    border-radius: 24px;
  }

  .meal-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .meal-icon {
    width: 38px;
    height: 38px;
  }

  .meal-cal {
    display: none !important;
  }

  .value-strip {
    padding-inline: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .features {
    padding: 92px 0;
  }

  .how-it-works {
    padding: 42px 24px;
    border-radius: 24px;
  }

  .closing-card {
    margin: 76px 0;
    padding: 42px 24px;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .copyright {
    grid-column: 1;
  }

  .legal-header {
    padding-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
