/* Brand tokens from cafeteria/src/constants/theme.ts. CTA 18px bold: large-text contrast on #E84F17. */

@font-face {
  font-family: Pretendard;
  src: url("assets/fonts/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Pretendard;
  src: url("assets/fonts/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Pretendard;
  src: url("assets/fonts/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Pretendard;
  src: url("assets/fonts/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Pretendard;
  src: url("assets/fonts/Pretendard-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #e84f17;
  --accent-deep: #c54111;
  --ink: #231e1a;
  --muted: #6e5e53;
  --paper: #f7f4f1;
  --white: #ffffff;
  --header-h: 64px;
  --btn-radius: 999px;
  --phone-radius: 32px;
  --max: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Pretendard, "Apple SD Gothic Neo", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color-scheme: light;
}

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

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
  word-break: keep-all;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 40;
  padding: 0;
  background: var(--white);
  color: var(--ink);
}

.skip:focus {
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  clip-path: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 28px;
  color: var(--white);
}

.site-header.is-solid {
  color: var(--ink);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(249 213 200 / 0.7);
}

.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-panel a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.nav-panel a:not(.btn):hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
}

.btn-outline {
  border: 1.5px solid var(--accent-deep);
  color: var(--accent-deep);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.btn-on-accent {
  border: 1.5px solid var(--white);
  color: var(--accent-deep);
  background: var(--white);
}

.btn-on-accent:hover {
  background: var(--paper);
  color: var(--accent-deep);
}

.btn:focus-visible,
.store-link:focus-visible,
.nav-toggle:focus-visible,
.nav-panel a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 48%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(35 30 26 / 0.78) 0%, rgb(35 30 26 / 0.42) 50%, rgb(35 30 26 / 0.08) 85%),
    linear-gradient(180deg, rgb(35 30 26 / 0.45) 0%, transparent 28%, rgb(35 30 26 / 0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: clamp(600px, 82dvh, 780px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px 80px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  max-width: 12em;
}

.hero-subcopy {
  margin-top: 20px;
  color: rgb(255 255 255 / 0.9);
  font-size: 20px;
}

.hero-inner > .btn {
  margin-top: 28px;
}


.journey {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 56px;
}

.journey + .journey { padding-top: 24px; }
.journey-copy { min-width: 0; }
.journey-reverse .journey-copy { order: 2; }
.journey-copy .btn { margin-top: 28px; }
.kicker { margin-bottom: 12px; color: var(--accent-deep); font-weight: 700; font-size: 18px; }
.journey h2, .close h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.lede { margin-top: 18px; max-width: 25em; color: var(--muted); font-size: 18px; font-weight: 500; }
.journey-summary { display: grid; gap: 12px; margin: 28px 0 0; padding-left: 24px; font-size: 16px; word-break: keep-all; }
.journey-summary li { padding-left: 4px; }
.journey-summary li::marker { color: var(--accent-deep); font-weight: 700; }
.motion-demo { width: min(520px, 100%); margin: 0; justify-self: center; min-width: 0; }
.motion-demo figcaption { margin-top: 16px; color: var(--muted); font-size: 12px; text-align: center; word-break: keep-all; }
.motion-fallback { aspect-ratio: 4 / 5; display: flex; justify-content: center; padding: 24px 0; }
.motion-fallback img { max-width: 70%; height: 100%; object-fit: contain; border-radius: 24px; }
.motion-stage { aspect-ratio: 4 / 5; }
.motion-stage > div { width: 100%; height: 100%; }
.motion-controls { margin-top: 12px; }
.motion-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.motion-step { position: relative; min-width: 0; min-height: 60px; padding: 12px 0 4px; border: 0; border-top: 2px solid #e7ded8; background: none; color: var(--muted); font: inherit; font-size: 13px; text-align: left; word-break: keep-all; cursor: pointer; }
.motion-step[aria-current="step"] { border-color: var(--accent-deep); color: var(--accent-deep); font-weight: 700; }
.motion-step span { display: block; margin-bottom: 4px; font-size: 11px; }
.motion-step:hover { color: var(--accent-deep); }
.motion-step:focus-visible, .qr-try a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; }
.qr-try { display: flex; align-items: center; gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #e7ded8; }
.qr-try .qr-link { flex: 0 0 132px; }
.qr-try img { display: block; width: 132px; height: 132px; }
.qr-try strong { font-size: 16px; }
.qr-try p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.qr-try a { text-underline-offset: 4px; }

.close h2 span {
  color: var(--accent-deep);
}

.close {
  padding: 112px 28px 72px;
  text-align: center;
}

.close-mark {
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
}

.close p {
  margin: 14px 0 28px;
  color: var(--muted);
  font-weight: 500;
}

.app-downloads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto 56px;
  padding: 40px 28px;
  border-top: 1px solid #e7ded8;
}

.app-downloads h2 {
  font-size: 26px;
  line-height: 1.3;
}

.app-downloads p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.store-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 12px;
  flex-shrink: 0;
}

.store-link,
.app-downloads .android-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 78px;
  margin: 0;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.store-link {
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.store-link > span,
.android-status > span {
  font-size: 12px;
}

.store-link:hover {
  background: var(--accent-deep);
}

.app-downloads .android-status {
  border-color: #e7ded8;
  background: var(--paper);
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 0 28px 56px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
    background: var(--white);
    color: var(--ink);
  }

  .nav-toggle {
    display: block;
    color: inherit;
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 20px 24px;
    background: var(--white);
    color: var(--ink);
    border-bottom: 1px solid #f2ac92;
  }

  body.nav-open .nav-panel {
    display: flex;
  }

  body.nav-open .site-header {
    color: var(--ink);
    background: var(--white);
  }

  .nav-panel .btn {
    width: 100%;
  }

  .hero-inner {
    min-height: 0;
    padding: 28px 20px 40px;
    background: var(--paper);
  }

  .hero h1 {
    color: var(--ink);
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  }

  .hero-subcopy {
    margin-top: 16px;
    color: var(--muted);
    font-size: 16px;
  }


  .hero-inner .btn {
    align-self: stretch;
    margin-top: 24px;
  }

  .hero {
    margin-top: 0;
  }

  .hero-media {
    position: static;
    display: block;
    height: auto;
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 1586 / 992;
    object-fit: contain;
  }

  .hero-shade {
    display: none;
  }

  .journey { grid-template-columns: 1fr; gap: 28px; padding: 56px 20px; }
  .journey + .journey { padding-top: 24px; }
  .journey-reverse .journey-copy { order: 0; }
  .kicker { font-size: 16px; }
  .qr-try { gap: 16px; }

  .close {
    padding: 80px 20px 48px;
  }

  .app-downloads {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 20px 40px;
    padding: 32px 0 0;
    gap: 24px;
  }

  .app-downloads h2 {
    font-size: 24px;
  }

  .store-links {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .store-links {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.is-solid {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
#menu,
#qr,
#daily,
#owners,
#download {
  scroll-margin-top: var(--header-h);
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
