@font-face {
  font-family: 'Solitreo';
  src: url('/fonts/Solitreo-latin.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Jua';
  src: url('/fonts/Jua-latin.woff2') format('woff2');
  font-display: swap;
}

/* ----------------------------------------------------------------------------
   Ristra marketing site — site-specific tokens only.
   Core design tokens load from /tokens.css, a verbatim copy of the Ristra
   design system (github.com/longbrook-design/ristra-design). Never hand-edit
   tokens.css; re-copy it to update. Each page links tokens.css BEFORE this
   file and sets data-theme via the inline pre-paint script in <head>.
   ------------------------------------------------------------------------- */

:root {
  /* Dark field (always-dark surfaces: hero, story, footer) — earth-ramp aliases */
  --ink: var(--earth-950);
  --ink-2: color-mix(in srgb, var(--earth-950) 60%, var(--earth-900));
  --ink-3: color-mix(in srgb, var(--earth-950) 30%, var(--earth-900));
  --ink-border: var(--earth-800);
  --ink-text: var(--earth-100);
  --ink-muted: var(--earth-300);
  --ink-faint: var(--earth-600);
  --ink-accent: var(--terra-400);
  --ink-on-accent: var(--earth-975);

  /* Legacy alias used throughout this stylesheet */
  --mono: var(--font-mono);

  /* Paper grain (SVG turbulence), tiled at low opacity over big surfaces */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-strong); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-accent);
  margin: 0 0 14px;
}
.eyebrow-dark { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 650;
  text-decoration: none;
}
.btn-primary { background: var(--ink-accent); color: var(--ink-on-accent); }
.btn-primary:hover { background: #e0b6a9; }
.btn-small { padding: 9px 18px; font-size: 0.9rem; background: var(--ink-accent); color: var(--ink-on-accent); }

.pill-soon {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 650;
  background: var(--ink-2);
  color: var(--ink-muted);
  border: 1px solid var(--ink-border);
}

/* --- header -------------------------------------------------------------- */

.site-head { background: var(--ink); position: relative; z-index: 3; }
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 6px;
}
.head-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-text);
  font-family: 'Solitreo', var(--font);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.head-mark { width: 30px; height: 30px; border-radius: 8px; }
.head-nav { display: flex; align-items: center; gap: 22px; }
.head-nav a { color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.head-nav a:hover { color: var(--ink-text); }
.head-nav .btn-small { color: var(--ink-on-accent); }

/* --- hero ---------------------------------------------------------------- */

.hero-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(212, 164, 151, 0.07), transparent 60%),
    var(--ink);
}
/* dot grid, fading toward the edges */
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 164, 151, 0.13) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 55% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 75% at 55% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
/* grain */
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}

.mega-mark {
  position: absolute;
  top: -110px;
  right: -150px;
  width: 560px;
  color: rgba(212, 164, 151, 0.06);
  transform: rotate(12deg);
  pointer-events: none;
}

.phone-glow {
  position: absolute;
  top: 90px;
  right: 6%;
  width: 480px;
  height: 620px;
  background: radial-gradient(ellipse at center, rgba(184, 103, 81, 0.24), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 84px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink-text);
}
.hero h1 em { font-style: normal; color: var(--ink-accent); }

.hero .lede {
  max-width: 28em;
  margin: 20px 0 0;
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* --- phone mockup (scoped to the app's dark theme) ------------------------- */

.phone {
  /* local theme: the mockup always renders the app's dark mode */
  --bg: var(--earth-975);
  --surface: var(--earth-950);
  --border: var(--earth-800);
  --text: var(--earth-100);
  --text-muted: var(--earth-300);
  --text-faint: var(--earth-600);
  --accent: var(--terra-400);
  --on-accent: var(--earth-975);
  --pill-bg: #43382e; /* dark pill tone from tokens (earth hue, L 0.30) */

  position: relative;
  z-index: 1;
  justify-self: center;
  text-align: left;
  width: clamp(240px, 23vw, 276px);
  aspect-ratio: 1320 / 2868; /* iPhone 17 Pro display proportions */
  border: 9px solid #0f0d0c;
  border-radius: 42px;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(212, 164, 151, 0.18), 0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 18px;
  font-size: 0.78rem;
  color: var(--text);
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 10px 8px;
  font-size: 0.68rem;
  font-weight: 700;
}
.status-row .sig { color: var(--text-faint); letter-spacing: 2px; }

.app-bar { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; }
.app-logo { width: 20px; height: 20px; }
.app-title { font-weight: 700; font-size: 0.85rem; }
.avatars { margin-left: auto; display: flex; }

.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--terra-300);
  color: var(--terra-800);
  font-size: 0.62rem;
  font-weight: 700;
}
.av + .av { margin-left: -5px; }
.av-b { background: var(--turquoise-300); color: var(--turquoise-600); }

.store-tabs { display: flex; gap: 6px; padding: 0 2px 10px; }
.tab {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tab-on { background: var(--accent); color: var(--on-accent); }

.dept {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 9px;
  padding: 7px 9px 3px;
}

.dept-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-bottom: 4px;
}

.glyph {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--border); }
.tick { width: 15px; height: 15px; border-radius: 50%; border: 1.6px solid var(--text-faint); flex: none; }
.row.done .tick { border-color: var(--accent); background: var(--accent); position: relative; }
.row.done .tick::after {
  content: "";
  position: absolute;
  left: 4px; top: 1.5px;
  width: 4px; height: 8px;
  border: solid var(--on-accent);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.row.done .item { color: var(--text-faint); text-decoration: line-through; }
.item { flex: 1; min-width: 0; }

.who {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--terra-100);
  color: var(--terra-700);
  font-size: 0.56rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.who-b { background: var(--turquoise-100); color: var(--turquoise-600); }

.add-bar {
  margin-top: auto;
  border: 1.5px dashed var(--text-faint);
  border-radius: 999px;
  color: var(--text-muted);
  text-align: center;
  padding: 7px 0;
  font-size: 0.72rem;
}

/* --- aisle marquee ---------------------------------------------------------- */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--ink-border);
  padding: 16px 0;
  background: var(--ink);
}
.track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  animation: slide 48s linear infinite;
}
.track i { font-style: normal; color: var(--ink-accent); opacity: 0.6; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

/* --- bento features ----------------------------------------------------------- */

.bento-shell {
  position: relative;
  background: var(--bg);
  padding: 72px 0 84px;
}
.bento-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.035;
  pointer-events: none;
}

.section-title {
  margin: 0 0 36px;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--title);
}

.bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.cell {
  grid-column: span 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}
.cell-feed { grid-column: span 4; display: flex; flex-direction: column; }
.cell-feed .vig { flex: 1; }
.cell-feed h3 + p { max-width: 36em; }
.cell-order { grid-column: span 2; }
.cell-photo {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.cell-num {
  position: absolute;
  top: 18px;
  right: 20px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.cell-photo .cell-num { position: static; margin-bottom: 8px; }

.cell h3 { margin: 16px 0 8px; font-size: 1.12rem; color: var(--accent-strong); }
.cell-photo h3 { margin-top: 0; }
.cell p:not(.cell-num) { margin: 0; line-height: 1.55; color: var(--text-muted); }

.vig {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 122px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text);
}
.faded { opacity: 0.45; }

.feed-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.feed-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-text em { font-style: normal; color: var(--accent-strong); }
.feed-when { color: var(--text-faint); font-size: 0.75rem; }
.strike { text-decoration: line-through; color: var(--text-muted); }

.tick-mini {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex: none;
}
.tick-mini::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 2px;
  width: 4px; height: 8px;
  border: solid var(--on-accent);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.vig-order { align-items: flex-start; gap: 4px; }
.order-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  font-weight: 650;
  font-size: 0.8rem;
}
.order-n {
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--sage-500);
  color: #ffffff;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.order-link { width: 2px; height: 10px; margin-left: 14px; border-left: 2px dashed var(--text-faint); }

.link-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-pill .glyph { color: var(--accent); }
.join-note { color: var(--text-muted); font-size: 0.82rem; padding-left: 4px; }

.offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.vig-photo { flex-direction: row; align-items: center; gap: 14px; min-height: 150px; }
.photo-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--ochre-300);
  color: var(--ochre-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.photo-thumb .glyph { width: 26px; height: 26px; }
.arrow { color: var(--text-faint); font-size: 1.2rem; }
.fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}
.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
}

/* --- story band ------------------------------------------------------------------ */

.story-shell {
  background: var(--ink);
  border-top: 1px solid var(--ink-border);
  position: relative;
  overflow: hidden;
}
.story-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}

.story {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.ristra-vertical { width: 104px; color: var(--ink-accent); opacity: 0.5; }

.story-copy h2 { font-family: 'Solitreo', var(--font); font-weight: 400; font-size: 2.1rem; color: var(--ink-accent); margin: 0 0 14px; }
.story-copy p { max-width: 40em; margin: 0; font-size: 1.08rem; line-height: 1.65; color: var(--ink-muted); }

/* --- inner pages (privacy / support) ----------------------------------------------- */

.page {
  background: var(--bg);
  margin: 0 -24px;
  padding: 56px 24px 40px;
}
.page .mark-sm { width: 44px; height: 44px; border-radius: 10px; }
.page h1 { color: var(--title); letter-spacing: -0.01em; margin: 14px 0 6px; }
.page h2 { color: var(--accent-strong); font-size: 1.2rem; margin: 34px 0 8px; }
.page p, .page li { line-height: 1.65; color: var(--text); }
.page .meta { color: var(--text-muted); font-size: 0.95rem; }

/* --- footer -------------------------------------------------------------------------- */

footer { background: var(--ink); border-top: 1px solid var(--ink-border); }
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 30px;
  padding-bottom: 40px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
footer .head-brand { font-size: 0.98rem; }
footer nav a { color: var(--ink-muted); text-decoration: none; margin-right: 18px; }
footer nav a:hover { color: var(--ink-text); }
footer p { margin: 0; color: var(--ink-faint); }

/* fallback for pages whose footer isn't a .foot-row (privacy/support) */
footer > .wrap:not(.foot-row) { padding: 28px 24px 44px; text-align: center; color: var(--ink-muted); }
footer > .wrap:not(.foot-row) a { color: var(--ink-muted); text-decoration: none; margin: 0 10px; }

/* --- responsive ------------------------------------------------------------------------ */

@media (max-width: 800px) {
  .section-title br { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 44px; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .mega-mark { width: 380px; right: -120px; top: -60px; }
  .phone-glow { right: -10%; width: 90vw; }
  .phone { width: min(74vw, 268px); }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell-feed, .cell-order, .cell-photo { grid-column: span 1; }
  .cell-photo { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .ristra-vertical { display: none; }
  .head-nav a:not(.btn-small) { display: none; }
}
