/* Shared styles for intricatelabs.site. Palette and orb come from the Mowa banner image. */
:root {
  --bg: #0e0e12;
  --surface: #16161b;
  --text: #f0ede4;
  --muted: #9a978c;
  --accent: #ef9f27;
  --accent-soft: #f5c876;
  --border: rgba(255, 255, 255, 0.10);
  --radius: 20px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 var(--sans);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(239, 159, 39, 0.11), transparent 62%),
    linear-gradient(180deg, #16161b 0%, #0e0e12 70%);
  background-color: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #1a1a14; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 12px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header { padding: 18px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-dot { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle closest-side, #feec9b 0%, #f6ac33 38%, rgba(207, 122, 28, 0.6) 68%, rgba(207, 122, 28, 0) 100%); }
.wordmark { position: relative; padding-bottom: 5px; font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: 0.01em; }
.wordmark::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44%; height: 2px; border-radius: 2px; background: var(--accent); }
.brand.plain .wordmark { font-size: 1.3rem; }
.brand.plain .wordmark::after { display: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
/* Must come after the two rules above and be at least as specific, or the button text goes grey. */
.nav a.btn { color: #1a1a14; }
.nav a.btn:hover { color: #1a1a14; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a1a14; }
.btn-primary:hover { background: var(--accent-soft); box-shadow: 0 8px 26px rgba(239, 159, 39, 0.28); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(239, 159, 39, 0.45); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; gap: 8px; }

/* Official Google Play badge: unmodified, at least 28px tall, with clear space of a quarter of its height around it. */
.badge-link { display: inline-block; line-height: 0; padding: 4px; transition: transform .15s ease; }
.badge-link:hover { transform: translateY(-2px); }
.badge-link img { display: block; height: 56px; width: auto; }

/* ── The orb: a soft glow with no hard edge, colours sampled from the banner ─ */
.orb {
  --size: 240px;
  --glow: 1;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle closest-side at 50% 50%,
    #feec9b 0%, #fddd72 11%, #f6ac33 23%, rgba(207, 122, 28, 0.85) 34%,
    rgba(160, 85, 16, 0.50) 49%, rgba(120, 60, 14, 0.24) 63%,
    rgba(90, 45, 12, 0.09) 80%, rgba(90, 45, 12, 0) 100%);
  opacity: calc(0.45 + 0.55 * var(--glow));
  animation: breathe 4.8s ease-in-out infinite;
}
/* Slow and gentle, but you can actually see it: a 10% swell and a brightness lift. */
@keyframes breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.10); filter: brightness(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  html { scroll-behavior: auto; }
  .card.interactive, .btn { transition: none; }
  .phone img, .phone img.is-active { transform: none; transition: opacity .2s ease; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 28px 0 56px; }
.hero > * { position: relative; z-index: 1; }
.hero > .orb { --size: 300px; margin: 0 auto -10px; z-index: 0; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(239, 159, 39, 0.12); color: var(--accent); border: 1px solid rgba(239, 159, 39, 0.22); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
h1 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 3.7rem); line-height: 1.12; margin: 20px auto 18px; max-width: 22ch; text-wrap: balance; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 40rem; margin: 0 auto 14px; }
.lead.muted { color: var(--muted); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.fineprint { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

/* ── Sections and cards ───────────────────────────────────────────────────── */
section { padding: 52px 0; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; }
.section-intro { color: var(--muted); max-width: 40rem; margin: 0 0 34px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(22, 22, 27, 0.92); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30); }
.card h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--accent); }
.card p { margin: 0; color: var(--text); }
.card p + p { margin-top: 10px; }
.card h2 { color: var(--accent); }
.muted { color: var(--muted); }

/* Interactive cards: lift, amber edge, and a soft light that follows the cursor (site.js sets --x / --y).
   Hover effects only apply on devices that can hover; touch gets a press effect instead. */
.card.interactive { position: relative; transition: transform .25s ease, border-color .3s ease, box-shadow .25s ease, background-color .35s ease; }
.card.interactive > * { position: relative; }
.card.interactive::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(340px circle at var(--x, 50%) var(--y, 0%), rgba(239, 159, 39, 0.15), transparent 45%); }
@media (hover: hover) {
  .card.interactive:hover { transform: translateY(-4px); border-color: rgba(239, 159, 39, 0.38); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 159, 39, 0.08); }
  .card.interactive:hover::before { opacity: 1; }
}
.card.interactive:active { transform: scale(0.99); }

/* ── "Sound like you?" and long-form lines ────────────────────────────────── */
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding: 16px 20px 16px 54px; background: rgba(22, 22, 27, 0.92); border: 1px solid var(--border); border-radius: 16px; }
.checklist li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle closest-side, #feec9b 0%, #f6ac33 38%, rgba(207, 122, 28, 0.6) 68%, rgba(207, 122, 28, 0) 100%); }
.closing-line { margin: 26px 0 0; max-width: 44rem; font-family: var(--serif); font-size: 1.15rem; }
.prose p { max-width: 44rem; margin: 0 0 14px; }
.cite { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--muted); font-style: normal; font-family: var(--sans); }

/* ── Feature explorer ─────────────────────────────────────────────────────── */
/* Wide screens with a mouse: a list on the left, a phone on the right. Hovering a feature only changes
   the phone; the text never moves, so it can't fight with reading.
   Phones and tablets: no hover. Tapping a feature opens its screenshot inline, like an accordion. */
.explorer { display: grid; gap: 14px; }
.explorer-list { display: grid; gap: 14px; }
.explorer-phone { display: none; }
.feature { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; appearance: none; padding: 22px 24px; }
.feature-title { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 1.15rem; color: var(--accent); }
.feature-text { display: block; color: var(--text); }
.feature.is-active { border-color: rgba(239, 159, 39, 0.55); background: rgba(239, 159, 39, 0.07); }
.feature .inline-shot { display: none; width: min(100%, 320px); height: auto; margin: 16px auto 0; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.feature.is-active .inline-shot { display: block; }
.phone {
  --h: min(700px, calc(100vh - 56px));
  position: relative; height: var(--h); width: calc(var(--h) * 9 / 16); max-width: 100%;
  margin: 0 auto; border-radius: 30px; border: 1px solid var(--border); background: #070607; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 100px rgba(239, 159, 39, 0.12);
}
/* The screenshots are 1080x1920 (9:16), so the frame is 9:16 and nothing is cropped. */
.phone img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: translateY(14px) scale(0.975);
  transition: opacity .4s ease, transform .4s ease; will-change: opacity, transform;
}
/* Leaving is a little quicker than arriving, and the new one slides up slightly as it fades in, so the two overlap as a soft crossfade. */
.phone img.is-active {
  opacity: 1; transform: none;
  transition: opacity .6s ease .03s, transform .75s cubic-bezier(.2, .7, .2, 1) .03s;
}
@media (min-width: 860px) {
  .explorer { grid-template-columns: minmax(0, 1fr) 400px; gap: 44px; align-items: start; }
  .explorer-phone { display: block; position: sticky; top: 28px; }
  .feature .inline-shot, .feature.is-active .inline-shot { display: none; }
}

/* ── Timeline: the glow grows left to right ───────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step { text-align: center; padding: 30px 22px; overflow: hidden; }
.step .orb { margin: 0 auto; animation-duration: 6.5s; transition: scale .4s ease; }
@media (hover: hover) { .step:hover .orb { scale: 1.15; } }
.step h3 { color: var(--text); margin-top: 6px; }
.step .when { display: block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }

/* ── Founder ──────────────────────────────────────────────────────────────── */
.quote { font-family: var(--serif); font-style: italic; font-size: 1.1rem; border-left: 2px solid rgba(239, 159, 39, 0.4); padding-left: 18px; margin: 18px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: 0.85rem; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; }
.links-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.links-row a { padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--text); transition: border-color .2s ease, color .2s ease; }
.links-row a:hover { border-color: rgba(239, 159, 39, 0.5); color: var(--accent); text-decoration: none; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq details { background: rgba(22, 22, 27, 0.92); border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; transition: border-color .2s ease; }
.faq details:hover, .faq details[open] { border-color: rgba(239, 159, 39, 0.3); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ── Document pages (privacy policy, data deletion) ───────────────────────── */
/* Built for reading: a narrow measure, generous spacing, and a contents list that stays beside the text. */
.doc { max-width: 1040px; margin: 0 auto; padding: 28px 20px 72px; display: grid; gap: 28px; }
.doc-toc { font-size: 0.92rem; }
.doc-toc summary { cursor: pointer; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-weight: 600; list-style: none; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.doc-toc a { display: block; padding: 7px 14px; border-left: 2px solid var(--border); color: var(--muted); }
.doc-toc a:hover, .doc-toc a.is-current { color: var(--text); border-left-color: var(--accent); text-decoration: none; }
.doc-toc a.is-current { color: var(--accent); }
.doc-body { max-width: 720px; min-width: 0; }
.doc-body h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 16px 0 6px; }
.doc-meta { margin: 0 0 40px; color: var(--muted); }
.doc-body section { padding: 0; margin: 0 0 44px; scroll-margin-top: 24px; }
.doc-body h2 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.3; margin: 0 0 16px; color: var(--text); }
.doc-body p { margin: 0 0 16px; line-height: 1.75; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 22px; }
.doc-body li { margin-bottom: 12px; line-height: 1.7; }
.doc-body li::marker { color: var(--accent); }
.doc-body a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:hover { color: var(--accent); }
.doc-steps { list-style: none; counter-reset: step; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.doc-steps li { counter-increment: step; position: relative; margin: 0; padding: 16px 20px 16px 62px; background: rgba(22, 22, 27, 0.92); border: 1px solid var(--border); border-radius: 14px; }
.doc-steps li::before { content: counter(step); position: absolute; left: 20px; top: 14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(239, 159, 39, 0.14); color: var(--accent); font-weight: 700; font-size: 0.9rem; }
@media (min-width: 900px) {
  .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
  .doc-toc { position: sticky; top: 28px; align-self: start; }
  .doc-toc summary { pointer-events: none; border: 0; padding: 0 14px 8px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 24px; padding: 32px 0 56px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer p { margin: 4px 0; }