:root {
  color-scheme: light;
  --background: #fff8f1;
  --surface: rgba(255, 255, 255, 0.88);
  --ink: #1f1916;
  --muted: #786d66;
  --line: #eaded4;
  --accent: #e4512c;
  --accent-soft: #ffe1d3;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

.auth-callback {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}

.auth-callback-logo {
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(112, 47, 26, 0.16);
}

.auth-callback-card {
  width: min(100%, 520px);
  padding: clamp(28px, 7vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(112, 47, 26, 0.1);
  text-align: center;
}

.auth-callback-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.auth-callback-card h1 {
  margin: 22px 0 12px;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.04;
}

.auth-callback-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.auth-callback-button {
  display: block;
  margin-top: 28px;
  padding: 16px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.auth-callback-note {
  margin-top: 18px !important;
  font-size: 13px !important;
}

.coming-soon-page {
  min-height: 100svh;
  overflow-x: hidden;
}

.coming-soon {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1120px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) clamp(20px, 5vw, 64px) max(22px, env(safe-area-inset-bottom));
}

.coming-soon-header,
.coming-soon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(112, 47, 26, 0.12);
}

.header-note,
.coming-soon-footer {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.coming-soon-hero {
  display: flex;
  align-items: center;
  align-self: center;
  flex-direction: column;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(42px, 8vh, 86px) 0;
  text-align: center;
}

.hero-logo-wrap {
  width: clamp(126px, 28vw, 184px);
  aspect-ratio: 1;
  margin-bottom: clamp(28px, 5vh, 44px);
  border-radius: 32%;
  box-shadow: 0 26px 70px rgba(126, 55, 30, 0.16);
  transform: rotate(-2deg);
}

.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.coming-soon-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 9vw, 78px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 590px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.5;
}

.launch-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.launch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.coming-soon-footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px max(112px, calc(env(safe-area-inset-bottom) + 92px));
}

.brand {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 17px;
  box-shadow: 0 10px 28px rgba(112, 47, 26, 0.12);
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.hero { padding: 18vh 0 24px; }
.hero h1, .list-title { margin: 0; font-size: clamp(34px, 9vw, 52px); line-height: 1.03; }
.hero p, .description { color: var(--muted); font-size: 17px; line-height: 1.5; }

.list-head {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.owner { margin: 12px 0 0; color: var(--accent); font-weight: 750; }
.meta { margin-top: 16px; color: var(--muted); font-size: 14px; }

.restaurant-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.join-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.join-card img { width: 52px; height: 52px; border-radius: 16px; }
.join-card h2 { margin: 0 0 4px; font-size: 18px; }
.join-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.restaurant {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.restaurant-photo, .restaurant-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.restaurant-placeholder { background: var(--accent-soft); }
.restaurant-name { margin: 0 0 5px; font-size: 17px; line-height: 1.2; }
.restaurant-detail { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.score { min-width: 44px; padding: 7px 9px; border-radius: 999px; background: var(--accent-soft); text-align: center; font-weight: 800; }

.open-app {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  z-index: 2;
  display: block;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(87, 43, 27, 0.22);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.empty { padding: 18vh 0; text-align: center; }
.empty h1 { font-size: 32px; }
.empty p { color: var(--muted); line-height: 1.5; }

@media (min-width: 640px) {
  .shell { padding-right: 28px; padding-left: 28px; }
  .list-head { padding: 28px; }
}

@media (max-width: 520px) {
  .header-note { max-width: 180px; text-align: right; }
  .hero-copy { max-width: 350px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-logo-wrap {
    animation: logo-arrival 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .coming-soon-hero > :not(.hero-logo-wrap) {
    animation: copy-arrival 640ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes logo-arrival {
  from { opacity: 0; transform: translateY(14px) rotate(-5deg) scale(0.94); }
  to { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); }
}

@keyframes copy-arrival {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.legal-shell {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.legal-nav,
.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-nav a,
.legal-footer a { text-decoration: none; }

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.legal-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.legal-card {
  margin: 36px 0 24px;
  padding: clamp(26px, 6vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(112, 47, 26, 0.08);
}

.legal-card h1 {
  margin: 8px 0 6px;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1.04;
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.legal-card ul { padding-left: 22px; }
.legal-card a { color: var(--accent); font-weight: 750; }
.legal-kicker { margin: 0 !important; color: var(--accent) !important; font-size: 13px !important; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; }
.legal-updated { margin: 0 0 28px; font-size: 14px !important; }

.support-shell { min-height: 100svh; display: flex; flex-direction: column; }
.support-card { margin-top: auto; margin-bottom: auto; text-align: center; }
.support-button { display: block; margin: 28px 0 20px; padding: 16px 20px; border-radius: 14px; color: #fff !important; background: var(--accent); text-decoration: none; }
.support-note { font-size: 14px !important; }
