/* Uma! marketing site — editorial cookbook, one theme.
   ----------------------------------------------------------------------------
   Every rule lives here: the CSP sets style-src 'self', so an inline <style>
   block or a style="..." attribute would not render.

   Single light theme on purpose (no prefers-color-scheme swap): the page commits
   to the app's cream paper, and the only dark surface is the cover, which is a
   deliberate block of colour rather than a theme.

   Type: ui-serif resolves to New York on Apple platforms — the same serif the app
   uses for recipe titles — and falls back to Iowan/Palatino/Georgia elsewhere. No
   webfont, so no network, no CSP carve-out, no flash of fallback text. */

:root {
  color-scheme: light;

  --paper: #F7F2E9;
  --paper-deep: #EFE6D6;
  --wash: #E8DAC0;
  --ink: #221D19;
  --ink-soft: #5F564E;
  --ink-faint: #8B7B6A;
  --rule: #E0D6C6;

  /* The cover */
  --cover: #211A16;
  --cover-deep: #17110E;
  --cover-ink: #F6EFE4;
  --cover-soft: #BCAB98;
  --cover-rule: rgba(246, 239, 228, .16);

  /* #C74320 is the app's PrimaryAccent; it measures 4.39:1 on cream, so text uses
     the darker #AD3211 (5.76:1) and the fill keeps the app's colour with white on it. */
  --accent-text: #AD3211;
  --accent-fill: #C74320;
  --accent-fill-hover: #A9371A;
  --accent-bright: #FF9C7A;
  --on-accent: #FFF6EC;

  --shadow-soft: 0 18px 40px rgba(42, 37, 33, .12);
  --halo: rgba(139, 74, 47, .16);
  --dissolve: linear-gradient(to bottom, #000 0 72%, rgba(0, 0, 0, .6) 89%, transparent 100%);

  --serif: ui-serif, "New York", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --column: min(100% - 2.5rem, 1120px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }

h1, h2, h3, .quote-line, .brand-name, .step-number, .colophon {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
}

em { font-style: italic; color: var(--accent-text); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.25rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .75rem 1rem;
  background: var(--paper-deep);
  color: var(--ink);
  border-radius: 0 0 .75rem 0;
}
.skip:focus { left: 0; z-index: 10; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: .35rem;
}

/* ---------------------------------------------------------------- Device body
   A screenshot with rounded corners still reads as a pasted PNG: what makes the
   eye accept it as an object is the body around the screen — a metal rim catching
   light from above, a black gap between rim and glass, and a shadow that falls
   away rather than a flat blur. */

.device {
  position: relative;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(152deg, #6B625C 0%, #332C28 26%, #241E1B 55%, #4A423C 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    0 28px 52px -24px rgba(42, 37, 33, .55),
    0 10px 20px -12px rgba(42, 37, 33, .40);
}

/* The dark gap between the rim and the glass. */
.device::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 40px;
  background: #0B0908;
}

.device img {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 37px;
}

/* ---------------------------------------------------------------- Cover */

.cover {
  position: relative;
  background: var(--cover);
  background-image: radial-gradient(120% 90% at 78% 0%, #2C231D 0%, var(--cover) 42%, var(--cover-deep) 100%);
  color: var(--cover-ink);
  overflow: hidden;
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
}

.cover-inner {
  position: relative;
  z-index: 1;
  width: var(--column);
  margin-inline: auto;
  padding-bottom: 1.25rem;
}

.cover .eyebrow { color: var(--cover-soft); }
.cover em { color: var(--accent-bright); }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--cover-ink);
  text-decoration: none;
}

.brand-mark { border-radius: 22.37%; }
.brand-name { font-size: 1.3rem; }

.masthead-actions { display: flex; align-items: center; gap: .6rem; }

.language {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--cover-rule);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cover-ink);
}
.language:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.9rem, 6.6vw, 5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--cover-ink);
}

h1 .line { display: block; }

.lede {
  margin: 1.6rem 0 0;
  max-width: 42ch;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--cover-soft);
}

.hero-shot { position: relative; display: flex; justify-content: center; }

.hero-shot .device {
  width: 330px;
  mask-image: var(--dissolve);
  -webkit-mask-image: var(--dissolve);
}

/* Floating labels — the cover's one piece of theatre, borrowed from the app's own
   pill vocabulary rather than invented. They sit *over* the phone, so they need to
   outrank the device's own stacking context. */
.float-label {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: .5rem 1rem;
  border-radius: 999px;
  /* Not backdrop-filter: blurring the backdrop over the masked device layer makes
     the browser composite the pill *under* the phone, whatever its z-index. */
  background: rgba(33, 26, 22, .88);
  border: 1px solid rgba(246, 239, 228, .22);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cover-ink);
  white-space: nowrap;
}

.float-label-top { top: 11%; right: -3%; }
.float-label-bottom { bottom: 29%; left: -5%; }

/* Call to action */

.cta { margin: 2.2rem 0 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.8rem;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-fill-hover); }

.button-small { min-height: 44px; padding: 0 1.1rem; font-size: .9rem; }

.cta-soon { margin: 1rem 0 .4rem; font-size: .95rem; color: var(--ink-faint); }

.cta-note {
  margin: 0;
  max-width: 44ch;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

.cover .cta-soon,
.cover .cta-note { color: var(--cover-soft); }

.cta-secondary { margin: 1rem 0 0; font-size: .95rem; }
.badge { width: 180px; }

/* Watermark and strip */

.watermark {
  position: absolute;
  left: -.04em;
  bottom: 2.5rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(7rem, 20vw, 16rem);
  line-height: .8;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 239, 228, .16);
  pointer-events: none;
  user-select: none;
}

.cover-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 2rem 0 0;
  padding: 1.1rem 0 1.4rem;
  border-top: 1px solid var(--cover-rule);
  list-style: none;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cover-soft);
}

.cover-strip li { display: flex; align-items: center; gap: .6rem; }

.cover-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-fill);
}

/* ---------------------------------------------------------------- Body */

main { width: var(--column); margin-inline: auto; }

.intro { padding: 5rem 0 2.5rem; }

.intro-heading {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

/* Numbered rows */

.steps { border-top: 1px solid var(--rule); }

.step {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--rule);
}

.step p { margin: 0; }

.step-number { font-size: 1rem; color: var(--accent-text); letter-spacing: .04em; }

.step h3 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.15; }

.step-body p { max-width: 62ch; font-size: 1rem; line-height: 1.62; color: var(--ink-soft); }

/* Photo band */

.band {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3rem;
  margin: 0;
  padding: 4.5rem 0 0;
}

.band::before {
  content: "";
  position: absolute;
  inset: 12% 3% 58%;
  border-radius: 999px;
  background: var(--wash);
}

.band figure { position: relative; margin: 0; }
.band figure:first-child { margin-bottom: 2rem; }

.band .device {
  width: 278px;
  mask-image: var(--dissolve);
  -webkit-mask-image: var(--dissolve);
}

/* Pull quote */

.quote { padding: 4rem 0 4.2rem; text-align: center; }

.quote-line {
  margin: 0 auto;
  max-width: 21ch;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.18;
  text-wrap: balance;
}

.quote-note {
  margin: 1.3rem auto 0;
  max-width: 58ch;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* Local-first strip */

.local {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}

.local-shot { position: relative; display: flex; justify-content: center; }

.local-shot::before {
  content: "";
  position: absolute;
  top: -2%;
  left: 40%;
  width: 320px;
  max-width: 124%;
  margin-left: -160px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wash);
}

.local-shot .device {
  position: relative;
  width: 278px;
  mask-image: var(--dissolve);
  -webkit-mask-image: var(--dissolve);
}

.local h2 { margin: 0 0 .9rem; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.1; }
.local-text p { margin: 0 0 1.1rem; max-width: 48ch; color: var(--ink-soft); }
.local-text p:last-child { margin-bottom: 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: .45rem .9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--ink-soft);
}

.inline-link { font-weight: 600; }

/* Closing call to action */

.closing {
  padding: 4rem 0 4.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.closing h2 {
  margin: 0 auto .9rem;
  max-width: 18ch;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
}

.closing .lede { margin: 0 auto; max-width: 48ch; color: var(--ink-soft); }
.closing .cta { display: flex; justify-content: center; }
.closing .cta-soon,
.closing .cta-note { margin-inline: auto; text-align: center; }

/* Small print */

.caveat { padding: 2.4rem 0 0; border-top: 1px solid var(--rule); max-width: 62ch; }
.caveat h2 { margin: 0 0 .6rem; font-size: 1.35rem; }
.caveat p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.62; color: var(--ink-faint); }

.platforms { margin: 0 0 3rem; }

/* Footer */

.site-footer {
  width: var(--column);
  margin-inline: auto;
  padding: 1.6rem 0 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
  color: var(--ink-faint);
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.colophon { margin: 0; font-size: 1rem; }

/* ---------------------------------------------------------------- Narrow */

@media (max-width: 900px) {
  .hero,
  .local {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero { padding-top: 2.5rem; }
  .hero-shot { order: -1; }
  .hero-shot .device { width: min(66vw, 318px); }

  .float-label-top { top: 8%; right: 2%; }
  .float-label-bottom { bottom: 30%; left: 2%; }

  .masthead-actions .button-small { display: none; }

  .step { grid-template-columns: minmax(0, 1fr); gap: .4rem; }

  .band { gap: 1.25rem; padding-top: 3rem; }
  .band .device { width: min(43vw, 250px); }
  .band::before { inset: 16% -4% 58%; }

  .local-shot { justify-content: flex-start; }
  .local-shot .device { width: min(56vw, 258px); }
  .local-shot::before { left: 34%; }

  .watermark { bottom: 4.5rem; }
}

@media (max-width: 520px) {
  .cover { border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
  .cover-strip { gap: 1rem 1.6rem; }
  .quote-line { max-width: 100%; }
}

/* Motion lives entirely in motion.js and animates `from` hidden to the resting
   state described above — deliberately nothing here hides anything, because a
   CSS-hidden element would give GSAP's `from` an end state of 0 and never
   appear. A viewer without the script sees this stylesheet's page, complete. */
