/*
 * The marketing site. Plain HTML and CSS on purpose.
 *
 * The app itself is a Compose canvas, which is the right trade for an app —
 * one codebase, native-quality interaction — and the wrong one for a page
 * whose entire job is to be found and read. A canvas has no text to index, no
 * text to select, nothing for Ctrl+F, and it costs a 16MB first load before a
 * visitor has decided whether they care. So the split is: everything a stranger
 * sees is HTML; everything behind sign-in is the app.
 */
@import url("./tokens.css");

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: var(--space-xxxl) var(--gutter) var(--space-huge);
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--gutter);
  border-bottom: var(--border-width) solid var(--border);
  background: var(--surface);
}

.wordmark {
  font-size: var(--title-size);
  line-height: var(--title-lh);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  color: var(--accent);
  text-decoration: none;
}

h1 {
  font-size: var(--display-size);
  line-height: var(--display-lh);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  margin: 0 0 var(--space-lg);
}

h2 {
  font-size: var(--title-size);
  line-height: var(--title-lh);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  margin: var(--space-xxxl) 0 var(--space-sm);
}

.lede {
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--text-secondary);
  margin: 0 0 var(--space-xxl);
}

p { margin: 0 0 var(--space-lg); color: var(--text-secondary); }
p strong { color: var(--text-primary); font-weight: 600; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-lg);
  padding: 0 var(--space-xxl);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: var(--row-reason-size);
  font-weight: var(--row-reason-weight);
  letter-spacing: var(--row-reason-tracking);
  text-decoration: none;
  transition: background var(--motion-press) var(--ease-house);
}
.cta:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.cta:active { background: var(--accent-pressed); }

.cards {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: var(--space-xxl) 0;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.cards h3 {
  margin: 0 0 var(--space-xs);
  font-size: var(--row-reason-size);
  line-height: var(--row-reason-lh);
  font-weight: var(--row-reason-weight);
  color: var(--text-primary);
}

.cards p { margin: 0; font-size: var(--title-sub-size); line-height: var(--title-sub-lh); }

.overline {
  font-size: var(--label-size);
  line-height: var(--label-lh);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-xs);
}

footer.site {
  border-top: var(--border-width) solid var(--border);
  padding: var(--space-xxl) var(--gutter);
  color: var(--text-tertiary);
  font-size: var(--meta-size);
  line-height: var(--meta-lh);
}
footer.site nav { display: flex; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-sm); }

/* Long-form pages: the privacy policy is meant to be read, not skimmed past. */
.prose h2 { font-size: var(--row-reason-size); line-height: var(--row-reason-lh); }
.prose ul { margin: 0 0 var(--space-lg); padding-left: var(--space-xxl); color: var(--text-secondary); }
.prose li { margin-bottom: var(--space-xs); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 var(--space-lg); font-size: var(--title-sub-size); }
.prose th, .prose td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--border-width) solid var(--border);
  vertical-align: top;
}
.prose th { color: var(--text-primary); font-weight: 600; }
.prose td { color: var(--text-secondary); }
.updated { color: var(--text-tertiary); font-size: var(--meta-size); }

/* ------------------------------------------------------------------------- */
/* The landing page. Everything below is scoped to .landing or to classes only
 * index.html uses, so the privacy policy keeps its long-form reading layout. */

/* Header: optional in-page links between the wordmark and the call to action. */
.site-nav { display: none; gap: var(--space-xl); margin-left: auto; }
.site-nav a {
  color: var(--text-secondary);
  font-size: var(--title-sub-size);
  line-height: var(--title-sub-lh);
  text-decoration: none;
}
.site-nav a:hover { color: var(--text-primary); }
@media (min-width: 800px) {
  .site-nav { display: flex; }
  /* Line the bars up with the page's 1120px column. */
  header.site,
  footer.site {
    padding-left: max(24px, calc((100% - 1120px) / 2 + 24px));
    padding-right: max(24px, calc((100% - 1120px) / 2 + 24px));
  }
}
header.site .cta { min-height: var(--control-sm); padding: 0 var(--space-lg); font-size: var(--title-sub-size); }

.skip {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 10;
  padding: var(--space-sm) var(--space-md);
  background: var(--elevated);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-float);
}
.skip:focus { top: var(--space-sm); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 800px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

.landing h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-xl);
}
.landing h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}
.landing h3 {
  font-size: var(--reason-size);
  line-height: var(--reason-lh);
  font-weight: var(--reason-weight);
  letter-spacing: var(--reason-tracking);
  margin: 0 0 var(--space-xs);
}
.landing p { max-width: 62ch; }
.landing em { font-style: normal; font-weight: 600; color: var(--text-primary); }

.text-link {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { color: var(--accent-ink); text-decoration: underline; }

.section { padding-top: var(--space-huge); padding-bottom: var(--space-huge); }
.band { background: var(--grouped-bg); padding: var(--space-huge) 0; }
/* In dark the grouped background is black like the page; a rule keeps the band legible. */
@media (prefers-color-scheme: dark) {
  .band { border-top: var(--border-width) solid var(--border); border-bottom: var(--border-width) solid var(--border); }
}

.section-head { margin-bottom: var(--space-xxl); }
.section-head p { font-size: var(--reason-size); line-height: 24px; margin: 0; }

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xxl);
  padding-top: var(--space-xxxl);
  padding-bottom: var(--space-huge);
}
.hero__lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.45;
  margin-bottom: var(--space-xl);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-lg);
}
.hero__note { font-size: var(--title-sub-size); line-height: var(--title-sub-lh); margin: 0; }
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: var(--space-huge);
    padding-top: 88px;
    padding-bottom: 96px;
  }
}

/* --- The garden mock: the app's own card shapes, drawn in HTML. --- */
.garden {
  column-count: 2;
  column-gap: var(--masonry-gap);
}
@media (min-width: 600px) { .garden { column-gap: var(--masonry-column-gap); } }
.gcard {
  display: flex;
  flex-direction: column;
  break-inside: avoid;
  margin-bottom: var(--space-md);
  color: var(--ink);
}
@media (min-width: 600px) { .gcard { margin-bottom: var(--masonry-column-gap); } }
@media (max-width: 599px) { .gcard--hide-sm { display: none; } }
.gcard__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}
.gcard__media--place { aspect-ratio: 16 / 10; }
.gcard__media--dish { aspect-ratio: 4 / 5; }
.gcard__text { display: flex; flex-direction: column; padding: var(--space-sm) var(--space-xxs) 0; min-width: 0; }
.gcard__headline {
  font-size: var(--row-reason-size);
  line-height: var(--row-reason-lh);
  font-weight: var(--row-reason-weight);
  letter-spacing: var(--row-reason-tracking);
}
.gcard__meta {
  margin-top: var(--space-xxs);
  color: var(--secondary);
  font-size: var(--title-sub-size);
  line-height: var(--title-sub-lh);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gcard--panel { padding: 14px; border-radius: var(--radius-md); background: var(--card); }
.gcard__kicker { color: var(--secondary); font-size: var(--meta-size); line-height: var(--meta-lh); }
.gcard__title {
  margin-top: 6px;
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.19px;
}
@media (max-width: 599px) { .gcard__title { font-size: 17px; line-height: 22px; } }
.gcard__reason {
  margin-top: var(--space-sm);
  font-size: var(--body-size);
  line-height: 20px;
  font-weight: 600;
  letter-spacing: var(--body-tracking);
}
.gcard__play {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.came-back {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b5e59;
  font-size: var(--meta-size);
  font-weight: 600;
}

/* Map tiles, the same drawing the app uses until a real map loads. */
.map-tile, .places-map { display: block; width: 100%; height: 100%; }
.map-tile__bg { fill: var(--map); }
.map-tile__roads { stroke: var(--map-road); }
.map-tile__blocks { fill: var(--map-road); opacity: 0.55; }
.map-tile__pin { fill: var(--accent); }
.map-tile__pin-dot { fill: var(--bg); }
.places-map__me { fill: #2f7cf6; stroke: #ffffff; stroke-width: 2.5; }

/* A plate seen from above: the stand-in for a recipe video's thumbnail. */
.gcard__media--dish { background: var(--table, #d8c3a0); display: flex; align-items: center; justify-content: center; }
.dish {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--plate, #f6f3ec);
  box-shadow: 0 6px 18px rgba(60, 40, 10, 0.18);
}
.dish__food {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: var(--food, #e6b45a);
  box-shadow:
    inset 10px -8px 0 -4px var(--food-shade, #d39a3e),
    inset -14px 10px 0 -8px var(--herb, #5e8a4a);
}
.dish__lemon {
  position: absolute;
  width: 24%;
  aspect-ratio: 1;
  right: 22%;
  top: 22%;
  border-radius: 50%;
  background: var(--lemon, #f4dc5a);
  border: 3px solid var(--lemon-rind, #e2c234);
}
@media (prefers-color-scheme: dark) {
  :root {
    --table: #4a3d2c;
    --plate: #d9d4ca;
    --food: #c99a48;
    --food-shade: #b08236;
    --herb: #5b7f48;
    --lemon: #d9c24e;
    --lemon-rind: #c3a934;
  }
  .places-map__me { stroke: #000000; }
}

/* --- How it works --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--masonry-column-gap); } }
.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  background: var(--cell);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.step__text p { margin: 0; }
.step__num {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--accent-ink);
  font-size: var(--label-size);
  line-height: var(--label-lh);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step__num::before { content: "Step "; }
.step__visual { margin-top: auto; }

.mock {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--ink);
  font-size: var(--title-sub-size);
  line-height: var(--title-sub-lh);
}
/*
 * A mock sits on a white cell in light, so it is grey and its controls white.
 * In dark the cell and the grey are the same #1C1C1E, so the mock steps up to
 * the field grey instead.
 */
@media (prefers-color-scheme: dark) {
  .step .mock { background: var(--field); }
}
.mock__url { color: var(--secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__title { margin-top: var(--space-xxs); font-size: var(--row-reason-size); line-height: var(--row-reason-lh); font-weight: 600; }
.mock__quote {
  margin-top: var(--space-md);
  padding-left: var(--space-md);
  border-left: var(--rule-width) solid var(--accent);
  font-size: var(--body-size);
  line-height: 20px;
}
.mock__hint { margin-top: var(--space-md); color: var(--secondary); font-size: var(--meta-size); line-height: var(--meta-lh); }
.mock__label { color: var(--secondary); font-size: var(--meta-size); line-height: var(--meta-lh); font-weight: 600; margin-bottom: var(--space-xs); }
.mock__label + .mock__body { margin-top: 0; }
.mock__body { margin: 0 0 var(--space-md); color: var(--ink); max-width: none; }
.mock__field {
  display: flex;
  align-items: center;
  min-height: var(--control);
  padding: 0 var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--cell);
  border-radius: var(--radius-sm);
  font-size: var(--reason-size);
  font-weight: 600;
}
.caret { display: inline-block; width: 2px; height: 20px; margin-left: 2px; background: var(--accent); }
.reasons, .suggest { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.reason, .suggest__item, .btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-sm);
  padding: 0 var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--cell);
  color: var(--ink);
  font-size: var(--title-sub-size);
  font-weight: 600;
  white-space: nowrap;
}
.reason.is-on { background: var(--accent-tint); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.suggest__item { color: var(--accent-ink); }

.search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--control);
  padding: 0 var(--space-md);
  background: var(--cell);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--body-size);
}
.search svg { flex: none; color: var(--secondary); }
.result {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--cell);
  border-radius: var(--radius-sm);
}
.result__reason { font-size: var(--row-reason-size); line-height: var(--row-reason-lh); font-weight: 600; }
.result__meta { color: var(--secondary); }

/* --- Use cases --- */
.uses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}
@media (min-width: 640px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--masonry-column-gap); } }
@media (min-width: 1000px) { .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.use {
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.use h3 { margin-bottom: var(--space-md); }
.minicard {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) 14px;
  margin-bottom: var(--space-lg);
  background: var(--card);
  border-radius: var(--radius-md);
}
.minicard__reason { font-size: var(--row-reason-size); line-height: var(--row-reason-lh); font-weight: 600; letter-spacing: var(--row-reason-tracking); }
.minicard__meta { margin-top: var(--space-xxs); color: var(--secondary); font-size: var(--title-sub-size); line-height: var(--title-sub-lh); }
.use dl { margin: 0; }
.use dt {
  color: var(--text-primary);
  font-size: var(--label-size);
  line-height: var(--label-lh);
  font-weight: var(--label-weight);
}
.use dd { margin: var(--space-xxs) 0 var(--space-md); color: var(--text-secondary); }
.use dd:last-child { margin-bottom: 0; }

/* --- Features --- */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xxxl);
}
.spotlight__text p { margin: 0; }
.spotlight__text h3 { font-size: var(--title-size); line-height: var(--title-lh); font-weight: 700; letter-spacing: var(--title-tracking); margin-bottom: var(--space-sm); }
@media (min-width: 860px) {
  .spotlight { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-huge); }
  .spotlight:nth-of-type(even) .spotlight__text { order: 2; }
}
.spotlight .mock { background: var(--cell); padding: var(--space-xl); border-radius: var(--radius-lg); }
.spotlight .btn { background: var(--card); }
@media (prefers-color-scheme: dark) {
  .spotlight .btn { background: var(--field); }
}

.revisit__meta { color: var(--secondary); font-size: var(--meta-size); line-height: var(--meta-lh); font-weight: 600; }
.revisit__reason {
  margin-top: var(--space-md);
  font-size: var(--reason-lg-size);
  line-height: var(--reason-lg-lh);
  font-weight: var(--reason-lg-weight);
  letter-spacing: var(--reason-lg-tracking);
}
.revisit__title { margin-top: var(--space-xs); color: var(--secondary); }
.revisit__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); margin-top: var(--space-xl); }
.revisit__actions .btn { justify-content: center; min-height: var(--control); }

.mock--places { padding: 0 !important; overflow: hidden; }
.places-map { aspect-ratio: 8 / 3; height: auto; }
.places-list { list-style: none; margin: 0; padding: var(--space-xs) var(--space-lg) var(--space-sm); }
.places-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: var(--border-width) solid var(--separator);
}
.places-list li:last-child { border-bottom: 0; }
.places-list li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.places-list b { font-size: var(--body-size); font-weight: 600; }
.places-list i { font-style: normal; color: var(--secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist { flex: none; color: var(--secondary); font-variant-numeric: tabular-nums; }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl) var(--space-xxl);
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.features li { border-top: var(--border-width) solid var(--border); padding-top: var(--space-lg); }
.features p { margin: 0; }

/* --- Plans and privacy --- */
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xxxl); }
@media (min-width: 860px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-huge); } }
.pair__item p:last-child { margin-bottom: 0; }
.checks { list-style: none; margin: var(--space-md) 0 var(--space-lg); padding: 0; }
.checks li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) 28px;
  color: var(--text-secondary);
  border-bottom: var(--border-width) solid var(--separator);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- FAQ --- */
.faq { margin: 0; max-width: 760px; }
.faq__item { padding: var(--space-lg) 0; border-top: var(--border-width) solid var(--border); }
.faq__item:last-child { border-bottom: var(--border-width) solid var(--border); }
.faq dt { font-size: var(--reason-size); line-height: var(--reason-lh); font-weight: 600; letter-spacing: var(--reason-tracking); }
.faq dd { margin: var(--space-xs) 0 0; color: var(--text-secondary); max-width: 66ch; }

/* --- Closing --- */
.closing {
  padding-top: var(--space-huge);
  padding-bottom: 96px;
  text-align: center;
}
.closing p { margin: 0 auto var(--space-xl); }
