/*
 * squish.online — the website. Same palette and type as the app, laid out for
 * a page that is read rather than used: wider, calmer, and fine on a phone.
 */
/* Served from here rather than Google Fonts, so loading this page tells nobody
   else that you did. Fredoka is under the SIL Open Font License — fonts/OFL.txt. */
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fdf6ec;
  --bg-tint: #f7eee2;
  --surface: #fffdfa;
  --line: #ece0d0;
  --ink: #2b2340;
  --ink-2: #6b6480;
  --ink-3: #8a839b;
  --brand: #6b5fe0;
  --brand-ink: #4a3fc0;
  --brand-soft: #e6e2fb;
  --pink-soft: #fbdce3;
  --peach-soft: #fde4cf;
  --mint-soft: #d6efdf;
  --yellow-soft: #fbeec4;
  --good: #15803d;
  --shadow: 0 18px 40px rgba(53, 38, 72, 0.14);
  --r: 26px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #17151f;
    --bg-tint: #1d1a27;
    --surface: #221f2e;
    --line: #342f45;
    --ink: #f4f0ff;
    --ink-2: #b7afd0;
    --ink-3: #928aac;
    --brand: #8b80f5;
    --brand-ink: #b3aaff;
    --brand-soft: #2e2a48;
    --pink-soft: #3d2733;
    --peach-soft: #3b2d25;
    --mint-soft: #223529;
    --yellow-soft: #3a3320;
    --good: #6dbb8d;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 12px; z-index: 10; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(107, 95, 224, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--small { padding: 10px 18px; font-size: 16px; }

/* ---------- Header ---------- */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- The moved banner (filled in by move.js) ---------- */
.moved {
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--brand-soft);
  border-radius: var(--r);
  padding: 18px 22px;
}
.moved[hidden] { display: none; }
.moved img { width: 64px; flex: none; }
.moved h3 { margin-bottom: 4px; }
.moved p { margin: 0; color: var(--ink-2); font-size: 16px; }
.moved .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) {
  .moved { flex-wrap: wrap; }
  .moved .btn { margin-left: 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .lede { font-size: 21px; color: var(--ink-2); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.hero .note { font-size: 15px; color: var(--ink-3); }
.hero-art { position: relative; justify-self: center; }
/* Beside the phone, peeking round its edge, never over the screen itself. */
.hero-art .mascot { position: absolute; width: 150px; left: -128px; bottom: 26px; filter: drop-shadow(0 12px 18px rgba(53, 38, 72, 0.18)); }
@media (max-width: 900px) {
  .hero { padding-top: 12px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { padding-left: 64px; }
  .hero-art .mascot { width: 104px; left: -34px; bottom: 18px; }
}

/* A phone, drawn in CSS around a real screenshot. */
.phone {
  width: min(310px, 78vw);
  border-radius: 44px;
  padding: 10px;
  background: #1f1a2c;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 34px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 20px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
}
.feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 14px;
}
.feature p { color: var(--ink-2); margin: 0; font-size: 17px; }
.feature .tag { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.i-pink { background: var(--pink-soft); }
.i-peach { background: var(--peach-soft); }
.i-mint { background: var(--mint-soft); }
.i-yellow { background: var(--yellow-soft); }
.i-brand { background: var(--brand-soft); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; justify-items: center; }
.screens figure { margin: 0; text-align: center; }
.screens figcaption { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 18em; }
.screens figcaption b { color: var(--ink); display: block; font-size: 19px; }
.screens .phone { width: min(280px, 80vw); }
@media (max-width: 900px) {
  .screens { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.plan--plus { border: 2px solid var(--brand); position: relative; }
.plan .price { font-size: 34px; font-weight: 700; margin: 4px 0 2px; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: baseline; font-size: 17px; }
.plan li::before { content: '✓'; color: var(--good); font-weight: 700; }
.plan .soon { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.plan-badge { position: absolute; top: -13px; right: 22px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 3px 12px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.privacy .mascot { width: min(280px, 60vw); justify-self: center; }
.points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.points li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.points b { display: block; }
.points span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }

/* ---------- Closing call ---------- */
.cta { text-align: center; }
.cta .mascot { width: 150px; margin: 0 auto 10px; }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Plain pages (support, 404) ---------- */
.page { padding: 24px 0 72px; }
.page .wrap { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; }
.faq details[open] summary { margin-bottom: 10px; }
.faq p { color: var(--ink-2); font-size: 17px; }
.contact { background: var(--brand-soft); border-radius: var(--r); padding: 24px 28px; margin-top: 32px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }
.foot p { margin: 0 0 6px; }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr; } }

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