:root {
  --teal: #335c67;
  --custard: #fff3b0;
  --bronze: #e09f3e;
  --red: #9e2a2b;
  --cherry: #540b0e;
  --bg: #fff9dd;
  --surface: #fffced;
  --ink: #2a1818;
  --muted: #6a5552;
  --border: rgba(84, 11, 14, 0.14);
  --flash-black: #000;
  --flash-navy: #14213d;
  --flash-gold: #fca311;
  --flash-gray: #e5e5e5;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(84, 11, 14, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.flash-page {
  background: #fffaf0;
}

body.chance-page {
  --chance-ink: #2d254e;
  --chance-teal: #2fa99a;
  --chance-lilac: #eee7ff;
  --chance-mint: #e7fbf6;
  --chance-amber: #ffbd4a;
  background: linear-gradient(180deg, #fbf7ef 0%, #f4f9f5 48%, #fffaf0 100%);
}

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

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

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 249, 221, 0.94);
  backdrop-filter: blur(12px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--teal);
  color: var(--custard);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.brand-mark::after {
  position: absolute;
  right: 7px;
  bottom: 6px;
  left: 7px;
  height: 8px;
  border: 1px dashed rgba(255, 243, 176, 0.6);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  content: "";
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--teal);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
}

.button.primary {
  border-color: rgba(84, 11, 14, 0.18);
  background: var(--bronze);
  color: var(--ink);
}

.button.primary:hover {
  background: var(--red);
  color: var(--custard);
}

.button.secondary {
  border-color: rgba(51, 92, 103, 0.24);
  color: var(--teal);
}

.button.secondary:hover {
  background: rgba(51, 92, 103, 0.08);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}

.store-badge img {
  width: 157px;
  height: auto;
}

.hero {
  padding: 72px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(51, 92, 103, 0.08);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero .eyebrow {
  display: flex;
  width: fit-content;
  clear: both;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--bronze);
  content: "";
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 70px);
  font-weight: 700;
  line-height: 1.04;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--teal);
  font-style: italic;
  font-weight: 500;
}

.hero-copy {
  max-width: 575px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts span::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.store-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px dashed rgba(43, 48, 62, 0.24);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.studio-visual {
  position: relative;
  min-height: 440px;
}

.studio-tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 66%;
  aspect-ratio: 1 / 1;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.studio-tile strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.05;
}

.studio-tile small {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-tile.flash {
  top: 18px;
  left: 6px;
  z-index: 2;
  background: var(--flash-black);
  color: var(--flash-gold);
  transform: rotate(-5deg);
}

.studio-tile.utility {
  top: 120px;
  right: 0;
  z-index: 1;
  background: var(--custard);
  color: var(--cherry);
  transform: rotate(6deg);
}

.studio-tile.patch {
  bottom: 0;
  left: 58px;
  width: 44%;
  background: var(--teal);
  color: var(--custard);
  transform: rotate(-2deg);
}

.section {
  padding: 58px 0;
}

.section.compact {
  padding-top: 32px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.section-intro {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.app-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.app-icon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.18);
}

.app-icon-link {
  display: block;
  width: fit-content;
  border-radius: 18px;
}

.app-title-link {
  text-decoration: none;
}

.app-title-link:hover,
.app-title-link:focus-visible {
  color: var(--cherry);
  text-decoration: none;
}

.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(224, 159, 62, 0.18);
  color: var(--cherry);
  font-size: 12px;
  font-weight: 800;
}

.app-card h3 {
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.15;
}

.app-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 243, 176, 0.45);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: start;
}

.text-block p {
  color: var(--muted);
  font-size: 17px;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.principle strong {
  display: block;
  margin-bottom: 4px;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 34px 0;
  background: var(--cherry);
  color: var(--custard);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-row a {
  color: var(--custard);
  text-decoration: underline;
  text-decoration-color: rgba(255, 243, 176, 0.35);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-hero {
  padding: 68px 0 42px;
}

.flash-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 48px;
  align-items: center;
}

.flash-lockup {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 14px;
  margin-bottom: 24px;
}

.flash-lockup img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.flash-lockup strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.flash-lockup span {
  color: var(--muted);
  font-size: 14px;
}

.phone-demo {
  position: relative;
  width: min(390px, 100%);
  margin-left: auto;
  padding: 18px;
  border-radius: 44px;
  background: #111;
  box-shadow: 0 28px 70px rgba(20, 33, 61, 0.28);
}

.phone-screen {
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(252, 163, 17, 0.28);
  border-radius: 32px;
  background: var(--flash-black);
  color: var(--flash-gold);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 20px 22px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.banner-message {
  display: grid;
  min-height: 450px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.banner-message span {
  display: block;
  color: var(--flash-gold);
  font-size: clamp(44px, 12vw, 88px);
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(252, 163, 17, 0.35);
}

.phone-toolbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 18px;
}

.phone-toolbar span {
  padding: 10px 4px;
  border-radius: 8px;
  background: rgba(229, 229, 229, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.chance-page .site-header {
  background: rgba(251, 247, 239, 0.94);
}

.chance-page .brand,
.chance-page .page-hero h1 span,
.chance-page .section-kicker {
  color: var(--chance-ink);
}

.chance-page .brand-mark,
.chance-page .feature .icon-dot {
  background: var(--chance-ink);
  color: #fffaf0;
}

.chance-page .eyebrow {
  background: rgba(47, 169, 154, 0.12);
  color: var(--chance-ink);
}

.chance-page .eyebrow::before {
  background: var(--chance-amber);
}

.chance-page .button.primary {
  background: var(--chance-ink);
  color: #fffaf0;
}

.chance-page .button.secondary {
  border-color: rgba(45, 37, 78, 0.18);
  color: var(--chance-ink);
}

.chance-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
}

.chance-phone-demo {
  background: #2d254e;
  box-shadow: 0 28px 70px rgba(45, 37, 78, 0.24);
}

.chance-phone-screen {
  border-color: rgba(255, 189, 74, 0.34);
  background: #fbf7ef;
}

.food-page {
  --food-green: #123b2e;
  --food-cream: #fff4d8;
  --food-lemon: #f7d86b;
  --food-lime: #9ccf7a;
}

.disabled-button {
  cursor: default;
  opacity: 0.82;
}

.food-phone-demo {
  width: min(390px, 100%);
  margin-left: auto;
  padding: 18px;
  border-radius: 44px;
  background: #111;
  box-shadow: 0 28px 70px rgba(20, 33, 61, 0.28);
}

.food-screen {
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(247, 216, 107, 0.3);
  border-radius: 32px;
  background: linear-gradient(145deg, #1a100b 0%, var(--food-green) 100%);
  color: var(--food-cream);
}

.food-preview {
  display: grid;
  gap: 16px;
  padding: 30px 22px 22px;
}

.scanner-frame {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 2px solid rgba(247, 216, 107, 0.4);
  border-radius: 24px;
  background: rgba(255, 244, 216, 0.06);
  text-align: center;
}

.scanner-frame span {
  display: block;
  width: 88px;
  height: 56px;
  border: 2px solid rgba(247, 216, 107, 0.45);
  border-right: 0;
  border-left: 0;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(247, 216, 107, 0.85) 10% 14%, transparent 14% 22%, rgba(247, 216, 107, 0.7) 22% 27%, transparent 27% 39%, rgba(247, 216, 107, 0.9) 39% 44%, transparent 44% 54%, rgba(247, 216, 107, 0.65) 54% 59%, transparent 59% 73%, rgba(247, 216, 107, 0.95) 73% 78%, transparent 78%);
}

.scanner-frame strong {
  color: var(--food-lemon);
  font-size: 22px;
}

.score-panel,
.food-card {
  padding: 16px;
  border: 1px solid rgba(255, 244, 216, 0.16);
  border-radius: 18px;
  background: rgba(255, 244, 216, 0.1);
}

.score-panel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.score-dot {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--food-lime);
  box-shadow: 0 0 0 8px rgba(156, 207, 122, 0.18);
}

.score-panel strong,
.food-card strong {
  display: block;
  color: var(--food-cream);
  font-size: 18px;
}

.score-panel p,
.food-card span {
  margin: 0;
  color: rgba(255, 244, 216, 0.68);
  font-size: 13px;
  font-weight: 750;
}

.food-card.warning {
  border-color: rgba(224, 159, 62, 0.36);
}

.food-card.muted {
  opacity: 0.82;
}

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

.feature {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature .icon-dot {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--flash-black);
  color: var(--flash-gold);
  font-weight: 900;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.use-case-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.use-case-list span {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.support-screenshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-screenshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screenshot-card {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(84, 11, 14, 0.08);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 1242 / 2688;
  border-radius: 7px;
  object-fit: cover;
  background: #111;
}

.screenshot-card figcaption {
  min-height: 44px;
  padding: 10px 2px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.light-phone-screen {
  min-height: auto;
  border-color: rgba(255, 255, 255, 0.18);
  background: #111;
}

.light-phone-screen img {
  width: 100%;
  border-radius: 31px;
}

.pricing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(252, 163, 17, 0.35);
  border-radius: var(--radius);
  background: var(--flash-black);
  color: white;
}

.pricing-strip strong {
  display: block;
  color: var(--flash-gold);
  font-size: 22px;
}

.pricing-strip p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.fine-print {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .nav-row,
  .footer-row,
  .section-heading,
  .pricing-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-grid,
  .flash-hero-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .studio-visual {
    min-height: 360px;
  }

  .studio-tile {
    width: 60%;
  }

  .app-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .app-card .button {
    grid-column: 1 / -1;
  }

  .card-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .feature-grid,
  .use-case-list,
  .screenshot-grid,
  .product-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-demo,
  .food-phone-demo {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    position: static;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .page-hero {
    padding-top: 44px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 43px;
  }

  .studio-visual {
    min-height: 300px;
  }

  .studio-tile {
    border-radius: 18px;
    padding: 18px;
  }

  .studio-tile strong {
    font-size: 23px;
  }

  .feature-grid,
  .use-case-list,
  .screenshot-grid,
  .product-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .phone-screen,
  .food-screen {
    min-height: 520px;
  }
}
