/* Crumb — marketing site. Palette and type match Crumb/Design/CrumbDesign.swift. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/HankenGrotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #F2EBDC;
  --paper-2: #EAE0CC;
  --card: #FFFDF7;
  --ink: #2A2521;
  --ink-soft: #63594C;
  --ink-faint: #8A7E6B;
  --line: #E4D9C4;
  --terra: #B9543B;
  --terra-deep: #9C4530;
  --terra-tint: #F7E7DF;
  --olive: #6E7350;
  --gold: #D6A441;
  --gold-tint: #FBF1DC;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --radius: 26px;
  --shadow: 0 1px 0 rgba(42, 37, 33, .04), 0 18px 40px -18px rgba(42, 37, 33, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; margin: 0; font-variation-settings: "opsz" 144, "SOFT" 30; }
h1 { font-size: clamp(46px, 5.6vw, 82px); }
h2 { font-size: clamp(36px, 4.4vw, 60px); }
h3 { font-size: 23px; line-height: 1.2; font-variation-settings: "opsz" 36; }
em { font-style: italic; color: var(--terra); font-weight: 500; }
.center { text-align: center; }
.mono { font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

section { max-width: var(--wrap); margin: 0 auto; padding: 110px 28px; }

/* Nav */
.nav { max-width: var(--wrap); margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; gap: 32px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(156, 69, 48, .5); }
.wordmark { font: 600 28px/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -0.02em; color: var(--terra); }
.wordmark.small { font-size: 22px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.nav nav a:hover { color: var(--terra); }
.pill { font: 700 13px/1 var(--sans); padding: 10px 16px; border-radius: 999px; background: var(--terra); color: var(--card); white-space: nowrap; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding-top: 50px; padding-bottom: 70px; }
.hero-copy { position: relative; z-index: 4; }
.hero h1 { margin-bottom: 26px; }
.lede { font-size: 21px; color: var(--ink-soft); max-width: 460px; margin: 0 0 34px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px 11px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font: 600 20px/1 var(--sans); transition: transform .25s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: .75; margin-bottom: 3px; }
.store-badge.light { background: var(--terra); color: var(--card); }

.sources { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 40px 0 0; }
.sources li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 14px -10px rgba(42,37,33,.4); }
.sources svg { width: 18px; height: 18px; }
.tiktok svg { color: #111; filter: drop-shadow(1px 0 0 #25F4EE) drop-shadow(-1px 0 0 #FE2C55); }
.insta svg { color: #E1306C; }
.yt svg { color: #FF0033; }
.web svg { color: var(--olive); }

.hero-visual { position: relative; height: 640px; }
.blob { position: absolute; inset: 60px 10px 20px 40px; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; background: radial-gradient(circle at 30% 30%, var(--gold-tint), var(--terra-tint) 60%, transparent 72%); animation: morph 14s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 58% 42% 52% 48% / 42% 58% 42% 58%; transform: rotate(8deg) scale(1.04); } }

.phone { margin: 0; border-radius: 13.5% / 6.3%; overflow: hidden; background: var(--card); box-shadow: 0 0 0 9px #191512, 0 0 0 10px #3a332d, 0 40px 70px -30px rgba(28, 20, 15, .55); }
.phone img { width: 100%; }
.hero-visual .phone { position: absolute; }
.phone-front { width: 296px; right: 64px; top: 22px; rotate: 3deg; z-index: 2; animation: float 7s ease-in-out infinite; }
.phone-back { width: 236px; right: 290px; top: 92px; rotate: -7deg; z-index: 1; animation: float 9s ease-in-out -3s infinite; }
@keyframes float { 50% { translate: 0 -12px; } }

.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 11px 15px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }
.chip .ico { width: 18px; height: 18px; color: var(--terra); }
.chip .mono { color: var(--terra); margin-right: 4px; }
.chip-import { right: -10px; top: 0; padding: 10px 16px 10px 10px; animation: pop .7s cubic-bezier(.2,1.4,.4,1) .3s both; }
.chip-import .badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); color: #fff; }
.chip-import .badge svg { width: 18px; height: 18px; }
.chip-text { display: grid; gap: 6px; font-size: 13px; }
.bar { width: 130px; height: 5px; border-radius: 9px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; border-radius: 9px; background: var(--terra); animation: load 3.2s ease-in-out infinite; }
@keyframes load { 0% { width: 6%; } 70%, 100% { width: 100%; } }
.chip-step { left: 0; bottom: 150px; animation: pop .7s cubic-bezier(.2,1.4,.4,1) .7s both, float 8s ease-in-out 1.4s infinite; }
.chip-scale { right: 6px; bottom: 50px; animation: pop .7s cubic-bezier(.2,1.4,.4,1) 1.1s both, float 9s ease-in-out 1.8s infinite; }
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }

/* Dish marquee */
.marquee { max-width: none; padding: 20px 0 30px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 18px; width: max-content; animation: scroll 50s linear infinite; }
.track img { height: 180px; width: auto; border-radius: 20px; box-shadow: var(--shadow); }
.track img:nth-child(odd) { rotate: -1.5deg; }
.track img:nth-child(even) { rotate: 1.5deg; translate: 0 10px; }
@keyframes scroll { to { transform: translateX(calc(-50% - 9px)); } }

/* How */
.how h2 { margin-bottom: 64px; }
.steps-flow { list-style: none; padding: 0; margin: 0 0 90px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.steps-flow::before { content: ""; position: absolute; top: 44px; left: 16%; right: 16%; border-top: 2px dashed var(--line); }
.steps-flow li { text-align: center; position: relative; }
.ico-bubble { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 28px; display: grid; place-items: center; color: var(--card); background: var(--c); box-shadow: 0 14px 30px -14px var(--c); transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
.ico-bubble svg { width: 38px; height: 38px; }
.steps-flow li:hover .ico-bubble { transform: rotate(-6deg) scale(1.08); }
.steps-flow h3 { margin-bottom: 6px; }
.steps-flow p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.phone-row { display: flex; justify-content: center; align-items: flex-start; gap: 56px; padding: 30px 0 10px; }
.phone-row .phone { width: 260px; }
.phone-row .raised { transform: translateY(-36px); }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; isolation: isolate; }
.spotlight::before { content: ""; position: absolute; z-index: -1; inset: 30px 0; background: var(--paper-2); box-shadow: 0 0 0 100vmax var(--paper-2); clip-path: inset(0 -100vmax); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--terra); color: var(--card); font-weight: 700; font-size: 13px; margin-bottom: 22px; }
.spotlight-copy h2 { margin-bottom: 34px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--ink-soft); background: var(--card); border-radius: 16px; padding: 14px 18px; box-shadow: 0 8px 20px -16px rgba(42,37,33,.5); }
.facts b { color: var(--ink); }
.facts svg { width: 26px; height: 26px; color: var(--terra); }
.spotlight-visual { display: flex; gap: 30px; justify-content: center; }
.spotlight-visual .phone { width: 250px; }
.spotlight-visual .offset { transform: translateY(70px); }

/* Promises */
.promises { padding-top: 160px; }
.promises h2 { margin-bottom: 56px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promise-grid article { border-radius: var(--radius); padding: 38px 32px; color: var(--card); position: relative; overflow: hidden; transition: transform .35s; }
.promise-grid article:hover { transform: translateY(-6px) rotate(-.6deg); }
.promise-grid article::after { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; bottom: -60px; border-radius: 50%; background: rgba(255,253,247,.08); }
.p1 { background: var(--ink); }
.p2 { background: var(--terra); }
.p3 { background: var(--olive); }
.big-ico { width: 52px; height: 52px; color: var(--gold); margin-bottom: 40px; }
.p2 .big-ico { color: var(--gold-tint); }
.promise-grid h3 { font-size: 27px; margin-bottom: 10px; }
.promise-grid p { margin: 0; opacity: .8; font-size: 16px; }

/* More */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.more-grid article { text-align: center; }
.more-grid .phone.small { width: 210px; margin: 0 auto 32px; transition: transform .4s; }
.more-grid article:hover .phone.small { transform: translateY(-8px) rotate(-2deg); }
.more-grid h3 { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.more-grid h3 svg { color: var(--terra); width: 24px; height: 24px; }
.more-grid p { color: var(--ink-soft); margin: 0 auto; max-width: 300px; font-size: 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--terra-deep); background: var(--terra-tint); padding: 4px 10px; border-radius: 999px; }

/* Pricing strip */
.pricing { padding-top: 30px; padding-bottom: 30px; }
.price-strip { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1.3fr; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.price-strip > div { display: flex; align-items: center; gap: 12px; padding: 26px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.price-strip > div + div { border-left: 1px solid var(--line); }
.price-strip .big { font: 600 54px/1 var(--serif); color: var(--terra); }
.price-strip svg { width: 22px; height: 22px; color: var(--olive); }
.price-strip .prem { flex-direction: column; align-items: flex-start; gap: 8px; background: var(--gold-tint); border-radius: 0 26px 26px 0; align-self: stretch; justify-content: center; }

/* FAQ */
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; font: 600 21px/1.3 var(--serif); font-variation-settings: "opsz" 30; display: flex; justify-content: space-between; gap: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--terra); font: 400 26px/1 var(--sans); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 10px 0 0; color: var(--ink-soft); }

/* Close */
.close { text-align: center; padding-top: 90px; padding-bottom: 130px; }
.close-icon { margin: 0 auto 34px; border-radius: 30px; box-shadow: 0 24px 50px -20px rgba(156, 69, 48, .6); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
.close h2 { font-size: clamp(50px, 7vw, 96px); font-style: italic; font-weight: 500; color: var(--terra); margin-bottom: 30px; }

/* Footer */
.footer { max-width: var(--wrap); margin: 0 auto; padding: 36px 28px 52px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: center; color: var(--ink-faint); font-size: 14px; }
.footer p { margin: 0; }
.footer .brand img { border-radius: 7px; box-shadow: none; }
.footer .fine { grid-column: 2; margin-top: 4px; font-size: 12px; }

/* Reveal on scroll (content stays visible where unsupported) */
@supports (animation-timeline: view()) {
  .steps-flow li, .promise-grid article, .more-grid article, .phone-row .phone, .spotlight-visual .phone, .facts li, .price-strip {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
  @keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
}

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

/* Tablet */
@media (max-width: 980px) {
  .nav nav { display: none; }
  .pill { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-visual { height: 600px; max-width: 560px; width: 100%; margin: 0 auto; }
  .spotlight { grid-template-columns: 1fr; gap: 56px; }
  .promise-grid, .more-grid { grid-template-columns: 1fr; }
  .more-grid { gap: 64px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .phone-row { gap: 24px; }
  .phone-row .phone { width: 30%; }
  .price-strip { grid-template-columns: 1fr 1fr; }
  .price-strip > div + div { border-left: 0; }
  .price-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .price-strip .prem { border-radius: 0 0 26px 0; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 76px 20px; }
  .nav { padding: 16px 20px; }
  .wordmark { font-size: 24px; }
  .brand img { width: 32px; height: 32px; }
  .lede { font-size: 18px; }
  .sources { margin-top: 30px; }
  .hero-visual { height: 500px; }
  .phone-front { width: 220px; right: 4%; }
  .phone-back { width: 180px; right: 44%; top: 70px; }
  .chip { font-size: 12px; padding: 9px 12px; }
  .chip-import { right: 0; top: -8px; }
  .bar { width: 90px; }
  .chip-step { left: 0; bottom: 90px; }
  .chip-scale { right: 0; bottom: 14px; }
  .track img { height: 130px; }
  .steps-flow { grid-template-columns: 1fr; gap: 40px; margin-bottom: 50px; }
  .steps-flow::before { display: none; }
  .phone-row { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding: 50px 26px 20px; margin: 0 -20px; scrollbar-width: none; }
  .phone-row .phone { flex: 0 0 62%; width: auto; scroll-snap-align: center; }
  .phone-row .raised { transform: none; }
  .spotlight-visual .phone { width: 46%; }
  .spotlight-visual .offset { transform: translateY(40px); }
  .price-strip { grid-template-columns: 1fr; }
  .price-strip > div + div { border-top: 1px solid var(--line); }
  .price-strip .prem { border-radius: 0 0 26px 26px; }
  .footer { grid-template-columns: 1fr; row-gap: 10px; }
  .footer .fine { grid-column: 1; }
}
