/* ============================================================
   Uvro Labs — site-wide design system
   Self-contained: fonts are self-hosted (Inter + Lora italic,
   both SIL OFL), so type renders identically on every device.
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/lora-italic-var.woff2") format("woff2");
}

:root {
  --ink: #10151a;
  --ink-soft: #3d4750;
  --muted: #67717b;
  --bg: #f7f8f8;
  --surface: #ffffff;
  --hairline: #e6e9eb;
  --teal: #0f8b8d;
  --teal-deep: #0b6e70;
  --teal-wash: #e3f2f2;
  --gold: #d9a05b;
  --blue: #5b8def;
  --pill: #d7f2df;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 24px 60px -28px rgba(16, 21, 26, 0.18);
  --shadow-card: 0 10px 30px -18px rgba(16, 21, 26, 0.16);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 248, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal) 0%, #10646b 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 550;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* Mobile nav */
.nav-toggle { display: none; }

@media (max-width: 780px) {
  /* padding-block only: the horizontal 24px must keep coming from .wrap,
     which a `padding: 10px 0` here used to zero out. */
  .nav { flex-wrap: wrap; padding-block: 10px; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 0;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle svg { display: block; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 14px;
  }
  .nav-links.open { display: flex; animation: menu-in 0.22s ease both; }
  .nav-links a { display: block; padding: 8px 4px; font-size: 1rem; }
  /* The CTAs join the collapsible panel: they follow .nav-links in the
     DOM, so the open state can reach them with a sibling selector. */
  .nav-links.open ~ .nav-cta {
    display: flex;
    width: 100%;
    gap: 10px;
    padding-bottom: 14px;
    animation: menu-in 0.3s ease both;
  }
  .nav-links.open ~ .nav-cta .btn { flex: 1; text-align: center; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 10px 24px -12px rgba(16, 21, 26, 0.5); }

.btn-accent {
  /* Same teal as the serif accent word in display headlines. */
  background: var(--teal-deep);
  color: #fff;
}
.btn-accent:hover { box-shadow: 0 10px 24px -12px rgba(11, 110, 112, 0.65); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

/* ---------- Type ---------- */

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; }

.display {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 800;
}

.display .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--teal-deep);
}

.h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

.lede {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 560px;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; }
}

.hero .lede { margin: 20px 0 28px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Soft gradient blobs behind heroes and section accents */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.blob-teal { background: #9ed9d4; }
.blob-gold { background: #f2d9b0; }
.blob-blue { background: #c7d8fb; }

/* ---------- Phone mockups ---------- */

/* The frame's height comes from the screen's fixed aspect ratio (9:19),
   never from the image inside — a missing or oversized screenshot can't
   stretch the mockup. */
.phone {
  position: relative;
  width: min(264px, 68vw);
  border-radius: 42px;
  background: #0d1114;
  padding: 10px;
  box-shadow: var(--shadow-soft), inset 0 0 0 2px #262c31;
}

.phone::before {
  /* punch-hole camera */
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #05070a;
  border-radius: 50%;
  z-index: 3;
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 33px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, #1d2a2e 0%, #12181c 55%, #0e1418 100%);
}

/* Placeholder wordmark, visible only until a screenshot loads over it. */
.phone-screen::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.phone-float { position: relative; }

.phone-sm { width: min(216px, 58vw); border-radius: 36px; }
.phone-sm .phone-screen { border-radius: 28px; }

.phone-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.phone-tilt-l { transform: rotate(-4deg); }
.phone-tilt-r { transform: rotate(4deg); margin-top: 34px; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-head { margin-bottom: 42px; }
.section-head .lede { margin-top: 14px; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: 0.93rem; color: var(--muted); }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--teal-wash);
  color: var(--teal-deep);
  font-size: 1.15rem;
}

/* Feature split rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.rev .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
}
.split h3 { font-size: 1.5rem; margin-bottom: 12px; }
.split p { color: var(--muted); }
.split ul { margin: 14px 0 0 18px; color: var(--ink-soft); font-size: 0.95rem; }
.split li { margin-bottom: 6px; }
.split-media { display: flex; justify-content: center; }

/* Product showcase rows (homepage Products section — one panel per app,
   stack grows as the studio ships more) */
.product-panel {
  position: relative;
  /* Clips the phone that intentionally runs past the bottom edge. */
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.product-panel + .product-panel { margin-top: 26px; }
@media (max-width: 900px) { .product-panel { grid-template-columns: 1fr; } }

/* The mockup bleeds off the panel's bottom edge — the card's height comes
   from the copy, not from a full phone plus padding, which is what left the
   text floating in whitespace. */
.product-panel .phone {
  margin-bottom: clamp(-170px, -12vw, -100px);
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-wash);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.product-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.product-panel > div > p { color: var(--muted); max-width: 480px; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.product-media { display: flex; justify-content: center; }

/* ---------- Zigzag feature sections (product detail) ---------- */

/* Alternating full-bleed band — every other feature section sits on white
   so the zigzag reads as distinct sections, not one long scroll. */
.band-alt {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.zig {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 84px) 0;
}
.zig-media { display: flex; justify-content: center; }
/* Z-pattern: reversed rows put the media first (left) */
.zig.rev .zig-media { order: -1; }
@media (max-width: 900px) {
  .zig { grid-template-columns: 1fr; }
  .zig.rev .zig-media { order: 0; }
}

.zig-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  color: var(--teal-deep);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.zig-num::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--teal);
  opacity: 0.5;
}

.zig h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.zig .zig-line { color: var(--muted); font-size: 1.02rem; max-width: 460px; }
.zig .chips { margin-top: 20px; }

/* ---------- Contact form ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.form-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2367717b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
  background: var(--surface);
}
.field textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* "Prefer email?" secondary row under the form */
.form-alt {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Toolbox grid (product detail) — mirrors the app's Tools tab, one small
   card per shipped tool. */
.tool-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.tool-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal-wash);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.tool-ico svg { width: 19px; height: 19px; display: block; }

.tool-card h4 { font-size: 0.97rem; margin-bottom: 4px; }
.tool-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* Compact "everything else" strip */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Numbered principle rows (About) ---------- */

.principles { max-width: 860px; margin: 0 auto; }
.principle {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.principle:last-child { border-bottom: none; }
.principle .p-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--teal-deep);
  opacity: 0.55;
  line-height: 1;
}
.principle h3 { font-size: 1.2rem; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 0.97rem; max-width: 560px; }
@media (max-width: 600px) {
  .principle { grid-template-columns: 56px 1fr; }
  .principle .p-num { font-size: 1.8rem; }
}

/* Editorial pull quote (About) */
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--teal);
  padding-left: 24px;
}
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.story .prose-loose p { color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Contact split ---------- */

.contact-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }

.contact-panel {
  background: #10151a;
  color: #eef1f3;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 16px;
  border-radius: 14px;
  color: inherit;
}
.contact-row:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.contact-row + .contact-row { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.contact-row .card-icon {
  margin-bottom: 0;
  background: rgba(15, 139, 141, 0.22);
  color: #7fd0cd;
  flex: none;
}
.contact-row h3 { font-size: 1rem; color: #f2f4f6; margin-bottom: 3px; }
.contact-row p { font-size: 0.88rem; color: #9aa3ab; }
.contact-row .cr-mail { font-size: 0.88rem; color: #7fd0cd; font-weight: 650; }

.contact-facts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 18px;
}
.fact small { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.fact span { font-weight: 700; font-size: 0.95rem; }

/* Checklist chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 7px 13px;
  border-radius: 999px;
}
.chip::before { content: "✓ "; color: var(--teal); font-weight: 800; }

/* ---------- Dark band (privacy) ---------- */

.band-dark {
  background: #10151a;
  color: #eef1f3;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.band-dark h2 { color: #fff; }
.band-dark p { color: #aeb6bd; }
.band-dark .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}
.band-dark .card h3 { color: #f2f4f6; }
.band-dark .card p { color: #9aa3ab; }
.band-dark .card-icon { background: rgba(15, 139, 141, 0.22); color: #7fd0cd; }
@media (max-width: 700px) { .band-dark { padding: 36px 22px; } }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA panel ---------- */

.cta-panel {
  background: linear-gradient(120deg, var(--teal-wash), #fdf3e4 70%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}
.cta-panel .lede { margin: 14px auto 26px; }

/* Store badges — logo + two-line label, App Store / Google Play style */
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: #fff;
  border: 1px solid #2c343b;
  border-radius: 13px;
  padding: 9px 20px 9px 15px;
  line-height: 1.2;
  min-width: 168px;
}
.store-badge:hover { text-decoration: none; opacity: 0.92; transform: translateY(-1px); }

/* On phones the pair rides side by side: the badges give up their fixed
   min-width and share the row instead of wrapping into a stack. */
@media (max-width: 480px) {
  .store-badges { flex-wrap: nowrap; }
  .store-badge {
    min-width: 0;
    flex: 1 1 0;
    justify-content: center;
    padding: 9px 10px;
    gap: 8px;
  }
  .store-badge svg { width: 22px; height: 22px; }
  .sb-text small { font-size: 0.56rem; }
  .sb-text span { font-size: 0.88rem; }
  .cta-panel { padding: 48px 20px; }
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.sb-text { display: flex; flex-direction: column; align-items: flex-start; }
.sb-text small { font-size: 0.64rem; opacity: 0.78; letter-spacing: 0.02em; }
.sb-text span { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }

/* Badges that aren't live yet: a "Coming soon" bubble on hover (or on tap,
   via the .tapped class the script adds for touch screens). */
.store-badge[href="#"] { position: relative; cursor: default; }
.store-badge[href="#"]::before {
  content: "Coming soon";
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 5;
}
.store-badge[href="#"]:hover::before,
.store-badge[href="#"]:focus-visible::before,
.store-badge[href="#"].tapped::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* One-line status toast, used by badge taps and mailto copies. */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
  max-width: min(92vw, 560px);
  text-align: center;
}
.site-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  padding: 48px 0 34px;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-soft); font-size: 0.92rem; }
.site-footer .brand { margin-bottom: 12px; }
.footer-blurb { color: var(--muted); font-size: 0.9rem; max-width: 280px; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Legal / prose pages ---------- */

.prose {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 48px clamp(22px, 5vw, 56px);
}

.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 6px; }
.prose .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }
.prose h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; color: var(--ink-soft); font-size: 0.97rem; }
.prose ul, .prose ol { margin: 0 0 14px 22px; color: var(--ink-soft); font-size: 0.97rem; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 14px 0 20px;
}
.prose th, .prose td {
  text-align: left;
  border: 1px solid var(--hairline);
  padding: 9px 12px;
  vertical-align: top;
  color: var(--ink-soft);
}
.prose th { background: var(--bg); color: var(--ink); font-size: 0.82rem; }

.prose .callout {
  background: var(--teal-wash);
  border: 1px solid #cde8e7;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Page hero for inner pages */
.page-hero { padding: 64px 0 36px; text-align: center; position: relative; overflow: hidden; }
.page-hero .lede { margin: 14px auto 0; }

/* ---------- Contact ---------- */

.contact-cards { max-width: 860px; margin: 0 auto; }
.contact-cards .card { text-align: center; }
.contact-cards .card a { font-weight: 700; }

/* ---------- Utility ---------- */

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mt-4 { margin-top: 48px; }

/* ---------- Motion ---------- */

a { transition: color 0.15s ease, opacity 0.15s ease; }
.store-badge { transition: transform 0.18s ease, opacity 0.18s ease; }
.card,
.tool-card,
.product-panel,
.faq-item { transition: transform 0.25s ease, box-shadow 0.25s ease; }

/* Hover lift only where a real pointer hovers — touch screens skip it. */
@media (hover: hover) {
  .card:hover,
  .tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
}

/* FAQ answers ease in instead of snapping open. */
details[open] .faq-body { animation: fade-slide 0.28s ease; }
@keyframes fade-slide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Scroll reveal: site.js tags blocks with .reveal and flips .in-view as
   they enter the viewport. Without JS nothing gets the class, so the
   page renders fully visible. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav-links.open,
  .nav-links.open ~ .nav-cta,
  details[open] .faq-body { animation: none; }
}

/* ---------- Small-screen centering ---------- */
/* Phones and tablets read the stacked blocks centered; desktop keeps the
   editorial left-aligned layout. 900px is where every two-column grid
   (hero, zig, split, product panels, story) collapses to one column. */
@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .zig,
  .split,
  .product-panel,
  .story { text-align: center; }
  .lede { margin-inline: auto; }
  .zig .zig-line { margin-inline: auto; }
  .zig ul,
  .split ul,
  .story ul { display: inline-block; text-align: left; }
  .chips,
  .hero-actions { justify-content: center; }
  .card,
  .tool-card { text-align: center; }
  .card-icon,
  .tool-ico { margin-inline: auto; }
}

@media (max-width: 520px) {
  .footer-grid { text-align: center; }
  .footer-grid .brand { justify-content: center; }
  .footer-blurb { margin-inline: auto; }
}
