/* 4wisemonkey.com: one stylesheet for the studio page, every product page and the
   legal pages. Plain CSS, system fonts (no web-font requests, so the privacy pages
   load nothing from third parties). Colours come from the League of Words icon. */

:root {
  --navy-950: #070a24;
  --navy-900: #0b1033;
  --navy-800: #121a4a;
  --navy-700: #1c2766;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #22c7d8;
  --cyan: #7eeaf5;
  --red: #ef3b4a;
  --gold: #ffc928;
  --green: #5fd068;
  --text: #eef1ff;
  --muted: #a9b1d6;
  --paper: #fbfaf6;
  --ink: #1b1f3b;
  --ink-muted: #545a7a;
  --radius: 18px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(34, 199, 216, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(239, 59, 74, 0.14), transparent 60%),
    var(--navy-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--cyan); }
a:hover { color: #fff; }

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

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

/* ---- Header and footer ------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 36, 0.6);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.2px;
}
.brand-mark { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-950);
  color: var(--muted);
  font-size: 14px;
  margin-top: 72px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between; padding-block: 28px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---- Common pieces ---------------------------------------------------------- */

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--gold);
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 850; }
h3 { font-size: 20px; font-weight: 800; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 800; text-decoration: none;
  border: 0; cursor: pointer; font-size: 16px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(180deg, #ffd955, var(--gold));
  color: #2a1d00;
  box-shadow: 0 4px 0 #b9860c, 0 12px 28px rgba(255, 201, 40, 0.25);
}
.button-primary:hover { color: #2a1d00; }
.button-ghost { color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.button-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.button svg { width: 22px; height: 22px; }

.section { padding-block: 64px; }

.card {
  background: linear-gradient(180deg, rgba(28, 39, 102, 0.75), rgba(18, 26, 74, 0.75));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---- Studio home ------------------------------------------------------------ */

.hero { padding-block: 88px 40px; }
.hero h1 span { color: var(--gold); }

.products {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.product-card {
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: rgba(126, 234, 245, 0.5); color: var(--text); }
.product-card .top { display: flex; align-items: center; gap: 16px; }
.product-card img { width: 72px; height: 72px; border-radius: 18px; }
.product-card p { margin: 0; color: var(--muted); }
.product-card .more { color: var(--cyan); font-weight: 700; margin-top: auto; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  background: rgba(95, 208, 104, 0.15); color: var(--green);
}
.product-card.soon { border-style: dashed; justify-content: center; align-items: flex-start; min-height: 180px; }
.product-card.soon:hover { transform: none; border-color: var(--line); }

.values { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.values .card p { margin: 0; color: var(--muted); }

/* ---- Product page ----------------------------------------------------------- */

.product-hero { padding-block: 72px 24px; }
.product-hero .wrap {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.product-hero .app-icon { width: 96px; height: 96px; border-radius: 24px; margin-bottom: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.product-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.product-hero .fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
.hero-phone { justify-self: center; }

.phone {
  width: min(300px, 70vw);
  aspect-ratio: 750 / 1334;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3680, #0b1033);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }

.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 14px;
}
.feature p { margin: 0; color: var(--muted); }
.i-teal { background: rgba(34, 199, 216, 0.16); }
.i-red { background: rgba(239, 59, 74, 0.16); }
.i-gold { background: rgba(255, 201, 40, 0.16); }
.i-green { background: rgba(95, 208, 104, 0.16); }

.screens {
  display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.screens figure { margin: 0; }
.screens .phone { width: 100%; }
.screens figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 14px; }

.promise { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.promise div {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; color: var(--muted);
}
.promise strong { color: var(--text); display: block; }

.legal-links { display: flex; flex-wrap: wrap; gap: 12px; }

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

.doc-head { padding-block: 56px 8px; }
.doc-head p { color: var(--muted); margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

.doc {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 52px);
  margin-top: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.doc { max-width: 860px; }
.doc h2 { font-size: 24px; margin-top: 40px; color: var(--ink); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; margin-top: 26px; color: var(--ink); }
.doc p, .doc li { color: var(--ink); }
.doc .muted { color: var(--ink-muted); }
.doc a { color: #1667b3; }
.doc a:hover { color: #0b3f70; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e3e1d8; }
.doc th { background: #f1efe6; font-weight: 800; }
.doc .summary {
  background: #eef9fb; border: 1px solid #bfe9ef; border-radius: 12px; padding: 16px 20px; margin-bottom: 8px;
}
.doc .summary ul { margin: 8px 0 0; }
.doc .callout {
  background: #fff6db; border: 1px solid #f1d98a; border-radius: 12px; padding: 16px 20px;
}
.doc ol.steps li { margin-bottom: 10px; }
.toc { columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }

/* ---- 404 -------------------------------------------------------------------- */

.not-found { padding-block: 120px; text-align: center; }
.not-found p { color: var(--muted); }

/* ---- Small screens ---------------------------------------------------------- */

@media (max-width: 900px) {
  .product-hero .wrap { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
  .screens {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  }
  .screens figure { scroll-snap-align: center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; padding-block: 12px; gap: 8px 16px; }
  .site-nav { gap: 6px 16px; }
  .site-nav a { font-size: 14px; }
  .hero { padding-block: 56px 24px; }
  .section { padding-block: 44px; }
  .toc { columns: 1; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border-bottom: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid #e3e1d8; padding: 10px 0; }
  .doc td:first-child { font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .product-card { transition: none; }
}
