/* NutriHall: colors and type taken from the iOS app (App Store screenshots, Oct 2026).
   Layout follows the approved Claude Design canvas (NutriHall Design, Oct 30 2026). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0d1419;
  --band: #111c23;
  --tray: #152129;
  --tray-raised: #1b2a34;
  --line: #24343f;
  --line-strong: #3a4c58;
  --text: #eaf1f6;
  --soft: #c9d6df;
  --muted: #9db0be;
  --blue: #2776af;
  --blue-deep: #1f659a;
  --sky: #7db8e8;
  --open: #20c45c;
  --star: #f2b544;

  /* School roster: names before a search, and names that don't match one */
  --roster: #dbe6ee;
  --roster-dim: #566977;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1120px;
  --gutter: 16px;
  --nav-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  background: var(--night);
  color-scheme: dark;
  scroll-padding-top: 12px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

p,
figure {
  margin: 0;
}

a,
button,
input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(125 184 232 / 0.25);
}

a {
  color: var(--sky);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--night);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.nowrap {
  white-space: nowrap;
}

/* Buttons: pill shape, like the app's meal and View buttons */
.button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--blue-deep);
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 0.15s ease;
  }
}

/* Brand: app icon plus the two-tone wordmark from the App Store screenshots */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand__word {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__hall {
  color: var(--blue);
}

/* Header: the logo and one plain link to the App Store */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}

.nav__cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  text-underline-offset: 0.25em;
}

/* Hero */
.hero {
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 7vw, 5rem);
}

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

.hero__title {
  font-weight: 800;
}

.hero__headline {
  display: block;
  max-width: 11em;
  font-size: clamp(2.5rem, 1.25rem + 4.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__sub {
  display: block;
  max-width: 26em;
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.3rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero__lede {
  max-width: 32em;
  margin-top: 0.9rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 2rem;
}

.rating {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rating strong {
  color: var(--text);
  font-weight: 700;
}

.hero__media {
  justify-self: center;
  width: min(332px, 100%);
}

.hero__screen {
  width: 100%;
  border-radius: 38px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -40px rgb(0 0 0 / 0.9);
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 332px;
    align-items: center;
    gap: 88px;
  }
}

.section-title {
  font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Schools: the one bold piece. Every supported school, set large; the search lights up matches. */
.schools {
  padding-block: clamp(3.5rem, 7vw, 4.5rem) clamp(3.5rem, 7vw, 5rem);
  background: var(--band);
}

.schools__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.schools__heading {
  flex: 1 1 22rem;
  min-width: 0;
}

.schools__intro {
  margin-top: 0.5rem;
  color: var(--muted);
}

.schools__search {
  display: grid;
  flex: 0 1 24rem;
  gap: 0.5rem;
  min-width: 0;
}

.schools__label {
  font-size: 0.95rem;
  font-weight: 700;
}

.schools__input {
  width: 100%;
  min-height: 52px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--night);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
}

.schools__input::placeholder {
  color: #8095a3;
}

.schools__input:focus-visible {
  border-color: var(--sky);
  outline-offset: 2px;
}

.schools__status {
  overflow-wrap: anywhere;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.roster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12em 0.8em;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--roster);
  font-size: clamp(1.375rem, 0.95rem + 1.75vw, 2.125rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.roster .is-match {
  color: var(--sky);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

.roster .is-dim {
  color: var(--roster-dim);
}

@media (prefers-reduced-motion: no-preference) {
  .roster li {
    transition: color 0.15s ease;
  }
}

.schools__request {
  overflow-wrap: anywhere;
  max-width: 40em;
  margin-top: 2.25rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Inside the app: the App Store screenshots in one row, swiped sideways on small screens */
.inside {
  padding-block: clamp(4rem, 8vw, 6rem) 1.5rem;
}

.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 250px;
  gap: 24px;
  margin: 2.25rem calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter) 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}

.screens__item {
  display: grid;
  align-content: start;
  gap: 1rem;
  scroll-snap-align: start;
}

.screens__item img {
  width: 100%;
  border-radius: 20px;
}

.screens figcaption {
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.5;
}

.also__title {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.also {
  display: grid;
  gap: 0.6rem 3.5rem;
  margin: 1rem 0 0;
  padding-left: 1.1em;
  color: var(--soft);
  font-size: 1rem;
}

@media (min-width: 760px) {
  .also {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Getting started: a real sequence, so numbered */
.start {
  padding-block: clamp(4rem, 8vw, 6rem) clamp(3.5rem, 7vw, 5.5rem);
}

.start__list {
  display: grid;
  gap: 40px;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.start__list li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  counter-increment: step;
}

.start__list li::before {
  content: counter(step);
  color: var(--sky);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.start__title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.start__list p {
  color: var(--muted);
  font-size: 1rem;
}

@media (min-width: 760px) {
  .start__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
  }
}

/* Closing */
.closing {
  padding-block: 0 clamp(4rem, 8vw, 6rem);
}

.closing__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}

.closing__icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.closing__copy {
  flex: 1 1 22rem;
  min-width: 0;
}

.closing__title {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.closing__copy p {
  max-width: 34em;
  margin-top: 0.25rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer__inner {
  display: grid;
  gap: 24px;
  padding-block: 2.5rem 3rem;
}

.footer__brand p {
  max-width: 30em;
  margin-top: 0.75rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--soft);
}

.footer__fine {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer__fine p {
  max-width: 62em;
}

@media (min-width: 760px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 64px;
  }

  .footer__links {
    flex-direction: column;
    gap: 0;
  }

  .footer__fine {
    grid-column: 1 / -1;
  }
}

/* Legal and 404 pages */
.doc {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem);
}

.doc__inner {
  max-width: 46rem;
}

.doc h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.doc__meta {
  margin-top: 0.75rem;
  color: var(--muted);
}

.doc h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.doc p,
.doc ul {
  margin-top: 0.85rem;
  color: var(--soft);
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc .button {
  margin-top: 1.75rem;
}

/* Marks text that still needs a real answer before launch */
.placeholder {
  padding: 0 0.3em;
  border-radius: 4px;
  background: #f2d64b;
  color: #1a1a1a;
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
