/* Shoal site: Material 3 Expressive palette, Outfit, light and dark via prefers-color-scheme. */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fdf7ff;
  --bg-2: #f3edf7;
  --card: #ffffff;
  --ink: #1d1b20;
  --muted: #5d5868;
  --line: #e6dff0;
  --primary: #6750a4;
  --on-primary: #ffffff;
  --violet: #8c6ce6;
  --pink: #ef78a0;
  --container: #eaddff;
  --on-container: #21005d;
  --blob-1: #d9c9ff;
  --blob-2: #ffd1e1;
  --blob-3: #cfdcff;
  --shadow: 0 24px 60px -28px rgba(60, 30, 110, 0.45);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141218;
    --bg-2: #1d1a23;
    --card: #211f26;
    --ink: #e6e0e9;
    --muted: #b3acbf;
    --line: #36313f;
    --primary: #d0bcff;
    --on-primary: #381e72;
    --violet: #b9a3ff;
    --pink: #ff9fbf;
    --container: #4f378b;
    --on-container: #eaddff;
    --blob-1: #3a2a6b;
    --blob-2: #5a2a44;
    --blob-3: #22325f;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }

/* Soft colour blobs behind the hero */
.glow { position: relative; isolation: isolate; }
.glow::before, .glow::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .9;
}
.glow::before { width: 520px; height: 520px; background: var(--blob-1); top: -160px; left: -140px; }
.glow::after { width: 460px; height: 460px; background: var(--blob-2); top: 120px; right: -160px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 40px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px;
  background: var(--container); color: var(--on-container); font-weight: 600; font-size: 14px;
}
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 18px; font-weight: 800; text-wrap: balance; }
.grad {
  background: linear-gradient(90deg, var(--violet), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 20px; color: var(--muted); max-width: 33ch; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 99px;
  font-weight: 600; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn svg { width: 22px; height: 22px; flex: none; }
.cta { align-items: center; }
.cta .btn-ghost { height: 56px; }
.store-badge { display: inline-block; border-radius: 10px; transition: transform .2s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.store-badge img { height: 56px; width: auto; }
.small { font-size: 14px; color: var(--muted); margin-top: 14px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art { padding: 10px 0 20px; }
.hero-art img {
  width: min(300px, 62%); border-radius: 38px; border: 10px solid #141318; box-shadow: var(--shadow);
  transform: rotate(4deg); position: relative; left: 8%;
}
.hero-art .back { position: absolute; width: min(250px, 50%); left: 6%; top: 12%; transform: rotate(-9deg); }

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 58ch; margin: 0 0 40px; }

/* Screenshot strip: scrolls sideways on phones */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 26px; }
.shots img { width: 240px; flex: none; border-radius: 26px; scroll-snap-align: start; box-shadow: var(--shadow); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px; }
.feature .ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--container); color: var(--on-container); margin-bottom: 16px;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 6px; font-size: 21px; }
.feature p { margin: 0; color: var(--muted); }

/* Steps */
.band { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border-radius: 28px; padding: 26px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

/* Open source call-out */
.oss {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: linear-gradient(135deg, var(--container), var(--bg-2)); border-radius: 36px; padding: 44px;
}
.oss h2 { margin-bottom: 8px; }
.oss p { margin: 0; color: var(--muted); max-width: 52ch; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 24px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages rendered into _layout.html */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); }
.doc h2 { font-size: 26px; margin-top: 40px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-2); }
.doc code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-art { margin-top: 10px; }
  .hero-art img { width: min(260px, 58%); }
  .hero-art .back { width: min(210px, 46%); left: 10%; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .oss { grid-template-columns: 1fr; padding: 32px; }
  .top nav .hide-sm { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .shots img { width: 200px; }
  section { padding: 52px 0; }
  .top nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
