:root {
  --paper: #F7F2E9;
  --paper-2: #EFE8DB;
  --ink: #1C1A18;
  --ink-2: #4B4541;
  --muted: #7D7569;
  --line: #E3DACB;
  --peri: #5468D4;
  --peri-deep: #3C4DB3;
  --peri-wash: #E9ECFA;
  --peri-light: #7C8FE8;
  --radius: 22px;
  --maxw: 1120px;
  --gutter: 16px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* The page is light on purpose: restate the tokens so a dark-mode viewer sees the same warm paper. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #F7F2E9; --paper-2: #EFE8DB; --ink: #1C1A18; --ink-2: #4B4541; --muted: #7D7569; --line: #E3DACB; }
}
:root[data-theme="dark"] { --paper: #F7F2E9; --paper-2: #EFE8DB; --ink: #1C1A18; --ink-2: #4B4541; --muted: #7D7569; --line: #E3DACB; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--ink-2); line-height: 1.55; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--peri-deep); margin-bottom: 14px; }
.muted { color: var(--muted); }
section { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- brand lockup ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; font-size: 1.45rem; line-height: 1; }
.lockup svg { width: 30px; height: 31px; }
.lockup .wm-strand { color: var(--peri); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 242, 233, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(227, 218, 203, 0.6);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 0.95rem; color: var(--ink-2); }
.nav-links .links a:hover { color: var(--ink); }
.nav-links .links { display: flex; gap: 26px; }
@media (max-width: 720px) { .nav-links .links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2a2724; }
.btn-peri { background: var(--peri); color: #fff; }
.btn-peri:hover { background: var(--peri-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: rgba(28, 26, 24, 0.06); }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.stores-note a { text-decoration: underline; text-underline-offset: 3px; }
/* platform awareness: phones see the one store that matters */
html.is-ios .store-android, html.is-android .store-ios { display: none; }
html.is-ios .other-ios, html.is-android .other-android { display: none; }
html.is-desktop .stores-other, html.is-unknown .stores-other { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0; background: var(--paper-2); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-inner { max-width: 560px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 540px; }
.hero-shot { margin: 0; }
.hero-shot img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(28,26,24,0.35);
}
.hero-shot figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- three strands ---------- */
.strands { background: var(--paper); }
.strands-head { max-width: 640px; margin-bottom: 44px; }
.strand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.strand {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px;
}
.strand h3 { margin-bottom: 8px; }
.strand p { color: var(--ink-2); margin: 0; font-size: 1rem; }
@media (max-width: 820px) { .strand-grid { grid-template-columns: 1fr; } }

/* ---------- photo band ---------- */
.band {
  position: relative; isolation: isolate; color: #fff;
  padding: clamp(80px, 12vw, 160px) 0;
}
.band-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.band-wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,16,0.25), rgba(20,18,16,0.6)); }
.band .wrap { max-width: 860px; text-align: center; }
.band h2 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.band p { color: rgba(255,255,255,0.9); font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 620px; margin: 18px auto 0; }

/* ---------- table (coffee shop) ---------- */
.table-section { background: var(--paper-2); }
.two { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.two .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -30px rgba(28,26,24,0.35); }
.two .photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.steps .dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--peri); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; margin-top: 2px;
}
.steps.uses li { grid-template-columns: 22px 1fr; }
.steps.uses .dot { width: 10px; height: 10px; margin: 10px 6px 0; }
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--ink-2); }
.aside { margin-top: 30px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 0.98rem; color: var(--ink-2); }
.aside a { color: var(--peri-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; }
  .two .photo { aspect-ratio: 4 / 3; order: -1; }
}

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.how {
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--peri-wash); color: var(--ink);
}
.how h3 { margin: 14px 0 8px; }
.how p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.how svg { width: 28px; height: 28px; color: var(--peri-deep); }
.sees { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.sees svg { width: 24px; height: 24px; flex: none; color: var(--peri-deep); margin-top: 3px; }
.sees p { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }

/* ---------- what we're after ---------- */
.about { background: var(--paper); }
.about .photo { aspect-ratio: 4 / 5; }
.about .about-p { color: var(--ink-2); font-size: 1.05rem; margin-top: 4px; }
@media (max-width: 860px) { .about .photo { aspect-ratio: 4 / 3; } }

/* ---------- close ---------- */
.close { position: relative; isolation: isolate; padding: clamp(90px, 13vw, 170px) 0; color: var(--ink); }
.close .band-bg { background-image: url("/assets/photos/cafe-plants.jpg"); filter: saturate(0.8); }
.close .band-wash { background: linear-gradient(180deg, rgba(247,242,233,0.9), rgba(247,242,233,0.84)); }
.close .wrap { max-width: 720px; text-align: center; }
.close h2 { margin-bottom: 16px; }
.close .lead { margin-bottom: 30px; }
.close .stores { justify-content: center; }

/* ---------- footer ---------- */
footer { background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.92rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
footer .links a:hover { color: var(--ink); }
footer .lockup { font-size: 1.15rem; color: var(--ink); }
footer .lockup svg { width: 24px; height: 25px; }
footer .formerly { width: 100%; font-size: 0.85rem; }

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

/* ---------- store badges (official Apple and Google artwork) ---------- */
.stores .store { display: inline-block; line-height: 0; border-radius: 8px; transition: transform .15s ease; }
.stores .store:hover { transform: translateY(-1px); }
.stores .store img { height: 54px; width: auto; }
/* Google's badge carries its own transparent margin, so it is drawn larger to match Apple's. */
.stores .store-android img { height: 80px; margin: -13px; }

/* ---------- reviews ---------- */
.quotes { background: var(--paper); padding: clamp(44px, 6vw, 80px) 0; }
.quotes-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; font-weight: 600; color: var(--ink-2); }
.stars { color: #E0A82E; letter-spacing: 3px; font-size: 1.05rem; line-height: 1; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.quote p { margin: 0; font-size: 1.02rem; color: var(--ink); flex: 1; }
.quote .who { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 820px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- landing pages (one ad, one page) ---------- */
.landing .nav-links .links { display: none; }
.landing .hero-inner { max-width: 600px; }
.landing .how-grid { margin-top: 32px; }
.landing .fine { font-size: 0.95rem; color: var(--muted); margin-top: 26px; }
.landing .fine a { color: var(--peri-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
