/* SlouchPal marketing site. One stylesheet, no build step. Colours are the app's own
   (slouchpal/src/constants/palette.ts); the type is Nunito, as in the app. */

@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('/fonts/nunito-600.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/fonts/nunito-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/nunito-800.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('/fonts/nunito-900.woff2') format('woff2'); }

:root {
  --ink: #1d1b2e;
  --ink-soft: #5b5874;
  --ink-faint: #8c89a6;
  --violet: #9c43ff;
  --violet-deep: #7212de;
  --violet-wash: #f1e8ff;
  --card: rgba(255, 255, 255, 0.78);
  --card-edge: rgba(255, 255, 255, 0.95);
  --green: #50d15a;
  --night: #1b1446;
  --radius: 28px;
  --shadow: 0 18px 50px -20px rgba(64, 30, 140, 0.35);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: Nunito, ui-rounded, -apple-system, system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(170deg, #efe8fc 0%, #e0e4fa 30%, #eef0fb 55%, #f6edfb 100%);
  line-height: 1.5;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ blobs */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.6; animation: drift 20s ease-in-out infinite alternate; }
.blob.a { width: 460px; height: 460px; background: #ac9cf0; top: -140px; left: -160px; }
.blob.b { width: 400px; height: 400px; background: #8fc2f7; top: 30%; right: -180px; animation-delay: -7s; }
.blob.c { width: 420px; height: 420px; background: #f0aedd; bottom: -180px; left: 20%; animation-delay: -13s; }
@keyframes drift { to { transform: translate(50px, 40px) scale(1.08); } }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(239, 232, 252, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(64, 30, 140, 0.4); }
.brand b { font-weight: 900; }
.brand b span { color: var(--violet); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 800; font-size: 15px; }
.nav-links a:hover { color: var(--violet-deep); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-weight: 900; font-size: 17px; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { color: #fff; background: var(--violet); box-shadow: 0 6px 0 var(--violet-deep), 0 16px 30px -12px rgba(114, 18, 222, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--violet-deep), 0 20px 34px -12px rgba(114, 18, 222, 0.6); }
.btn-ghost { color: var(--violet-deep); background: var(--card); border: 1px solid var(--card-edge); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 22px; height: 22px; }
.store-note { font-size: 14px; color: var(--ink-faint); margin-top: 12px; font-weight: 800; }

/* Apple's own badge artwork, unaltered - only sized. Their guidelines ask for a minimum
   height of 40pt on screen and clear space around it, so it is never squeezed. */
.badge { display: inline-block; border-radius: 12px; transition: transform 0.15s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 56px; width: auto; }
.cta-actions { margin-top: 28px; }

/* ------------------------------------------------------------------ type */
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(44px, 7vw, 82px); }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); font-weight: 700; max-width: 34ch; }
.hand { font-weight: 800; font-style: italic; color: var(--violet); transform: rotate(-4deg); display: inline-block; font-size: 26px; }
.accent { color: var(--violet); }

section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; }
.hero h1 { margin: 0 0 18px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.hero-art { position: relative; height: min(600px, 72vh); display: grid; place-items: center; }
.hero-art::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 70%);
}
.hero-art .pal { position: absolute; inset: 0; margin: auto; height: 92%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(64, 30, 140, 0.25)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.chip {
  position: absolute; background: #fff; border-radius: 18px; padding: 10px 16px;
  font-weight: 900; font-size: 15px; box-shadow: var(--shadow); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.chip small { display: block; font-size: 12px; color: var(--ink-faint); font-weight: 800; }
.chip .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-wash); }
svg[aria-hidden] { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip .dot svg { width: 19px; height: 19px; }
.chip.one { top: 14%; left: 0; animation: bob 6s ease-in-out infinite -1s; }
.chip.two { top: 44%; right: -2%; animation: bob 6s ease-in-out infinite -3s; }
.chip.three { bottom: 16%; left: -4%; animation: bob 6s ease-in-out infinite -4.5s; }

/* ------------------------------------------------------------------ slumped / standing tall */
.familiar .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.slouch-card {
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 36px; box-shadow: var(--shadow);
  padding: 28px 28px 32px; text-align: center;
}
.slouch-stage { position: relative; aspect-ratio: 1078 / 1408; max-height: 440px; margin: 0 auto; }
.slouch-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.25s ease; }
.slouch-stage img.on { opacity: 1; }
.toggle { display: inline-flex; gap: 4px; padding: 5px; margin-top: 18px; border-radius: 999px; background: var(--violet-wash); }
.toggle button {
  font: inherit; font-weight: 900; font-size: 16px; border: 0; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; background: transparent; color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.toggle button[aria-pressed='true'] { background: #fff; color: var(--violet-deep); box-shadow: 0 4px 12px -4px rgba(64, 30, 140, 0.35); }
.slouch-stage img { transition: opacity 0.45s ease; }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step { text-align: left; background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step .num { width: 44px; height: 44px; border-radius: 14px; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 20px; margin-bottom: 18px; box-shadow: 0 4px 0 var(--violet-deep); }
.step p { color: var(--ink-soft); margin-top: 10px; font-weight: 700; }

/* ------------------------------------------------------------------ demo */
.demo { background: var(--night); color: #fff; overflow: hidden; }
.demo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 40%, rgba(156, 67, 255, 0.45), transparent 55%); }
.demo .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; gap: 64px; align-items: center; }
.demo .lede { color: rgba(255, 255, 255, 0.75); max-width: 30ch; }
.demo h2 { max-width: 11em; }
.demo h2 .accent { color: #c9a2ff; }
.ticks { list-style: none; margin-top: 28px; display: grid; gap: 14px; max-width: 30em; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.ticks li::before { content: '✓'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(80, 209, 90, 0.2); color: #7ee08a; font-weight: 900; font-size: 15px; }
.phone {
  /* The frame is the video's own 9:16 plus the bezel, so nothing is cropped: at a phone's
     taller 19.5:9 the captions baked into the video ran off both sides. */
  width: 300px; aspect-ratio: 300 / 515; border-radius: 40px; padding: 12px; background: #0b0820;
  box-shadow: 0 0 0 2px #3a2f6e, 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}
.phone video { width: 100%; height: 100%; object-fit: contain; border-radius: 30px; background: #1b1446; }

/* ------------------------------------------------------------------ friends */
.friends .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.friend-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.friend { background: var(--card); border: 1px solid var(--card-edge); border-radius: 26px; padding: 16px; box-shadow: var(--shadow); position: relative; }
.friend .avatar { aspect-ratio: 1; border-radius: 20px; background: linear-gradient(160deg, #fff4f4, #ffd2d2); overflow: hidden; display: grid; place-items: end center; }
.friend .avatar img { height: 96%; width: auto; }
.friend:nth-child(2) .avatar { background: linear-gradient(160deg, #f1fff8, #c9f1e2); }
.friend:nth-child(3) .avatar { background: linear-gradient(160deg, #fff8ec, #ffe2b8); }
.friend:nth-child(4) .avatar { background: linear-gradient(160deg, #f0f6ff, #cfe3ff); }
.friend b { display: block; margin-top: 12px; font-size: 18px; font-weight: 900; }
.friend small { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 800; font-size: 14px; }
.friend small::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.friend.idle small::before { background: #b9b7c9; }
.bubble { position: absolute; top: -14px; right: -8px; background: var(--violet); color: #fff; font-size: 14px; font-weight: 900; padding: 8px 12px; border-radius: 16px 16px 4px 16px; box-shadow: 0 8px 20px -8px rgba(114, 18, 222, 0.7); }
.friend-points { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.friend-points li { display: flex; gap: 14px; align-items: flex-start; }
.friend-points .icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.friend-points .icon svg { width: 22px; height: 22px; }
.friend-points p { color: var(--ink-soft); font-weight: 700; }
.friend-points b { color: var(--ink); font-weight: 900; }

/* ------------------------------------------------------------------ privacy strip */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.promise { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 26px; }
.promise .icon { width: 48px; height: 48px; border-radius: 16px; background: var(--violet-wash); display: grid; place-items: center; }
.promise .icon svg { width: 24px; height: 24px; }
.promise h3 { margin-top: 12px; font-size: 20px; }
.promise p { color: var(--ink-soft); margin-top: 8px; font-weight: 700; }

/* ------------------------------------------------------------------ faq */
.faq-list { max-width: 760px; margin: 48px auto 0; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--card-edge); border-radius: 22px; padding: 0 24px; }
summary { cursor: pointer; list-style: none; font-weight: 900; font-size: 18px; padding: 20px 32px 20px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--violet); transition: transform 0.2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--ink-soft); padding-bottom: 20px; font-weight: 700; }

/* ------------------------------------------------------------------ cta + footer */
.cta-card {
  background: linear-gradient(140deg, #a95bff, #7212de); color: #fff; border-radius: 44px; padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; overflow: hidden; position: relative;
  box-shadow: 0 40px 80px -30px rgba(114, 18, 222, 0.7);
}
.cta-card .lede { color: rgba(255, 255, 255, 0.85); margin-top: 14px; }

.cta-card img { justify-self: center; max-height: 340px; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3)); }
.cta-card .store-note { color: rgba(255, 255, 255, 0.75); }

footer { padding: 48px 0 56px; color: var(--ink-faint); font-size: 14px; }
footer .wrap { display: grid; gap: 18px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer a { text-decoration: none; font-weight: 800; color: var(--ink-soft); }
footer a:hover { color: var(--violet-deep); }
footer .disclaimer { max-width: 80ch; line-height: 1.6; }

/* ------------------------------------------------------------------ legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 12px; }
.doc .updated { color: var(--ink-faint); margin-bottom: 36px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-soft); font-weight: 700; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc strong { color: var(--ink); font-weight: 900; }
.doc .card { background: var(--card); border: 1px solid var(--card-edge); border-radius: 22px; padding: 22px 24px; margin: 18px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(29, 27, 46, 0.08); vertical-align: top; color: var(--ink-soft); }
.doc th { color: var(--ink); font-weight: 900; }

/* ------------------------------------------------------------------ reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 900px) {
  .hero .wrap, .familiar .wrap, .demo .wrap, .friends .wrap, .cta-card { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .actions, .cta-actions { justify-content: center; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; height: 440px; }
  .steps, .promises { grid-template-columns: 1fr; }
  .demo .wrap { justify-items: center; text-align: center; }
  .demo .lede { margin-inline: auto; }
  .ticks { text-align: left; max-width: 420px; }
  .familiar .text, .friends .text { text-align: center; }
  .familiar .lede, .friends .lede { margin-inline: auto; }
  .friend-points { text-align: left; }
  .cta-card { text-align: center; }
  .cta-card .lede { margin-inline: auto; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .chip { font-size: 13px; padding: 8px 12px; }
  .chip.two { right: 0; }
  .phone { width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
