/* ==========================================================================
   Fitness App Studio — main stylesheet
   ========================================================================== */

:root {
  --ink: #17131f;
  --ink-2: #3b3547;
  --muted: #6d6678;
  --line: #e9e2da;
  --bg: #fbf7f2;
  --bg-2: #f4ede4;
  --card: #ffffff;
  --coral: #ff6b57;
  --coral-d: #e8503c;
  --coral-soft: #ffe4de;
  --sage: #5f9e86;
  --sage-soft: #dcefe6;
  --lilac: #8b7bd8;
  --lilac-soft: #ebe7fb;
  --sun: #f4b545;
  --sun-soft: #fdf0d3;
  --sky: #4f9bd9;
  --sky-soft: #dfeefa;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(23, 19, 31, .04), 0 12px 32px -12px rgba(23, 19, 31, .18);
  --shadow-lg: 0 30px 60px -20px rgba(23, 19, 31, .28);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.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(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 107, 87, .8); }
.btn-primary:hover { background: var(--coral-d); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #2a2435; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-d); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font: 600 12.5px/1.2 var(--font-body);
  background: var(--bg-2); color: var(--ink-2);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(244, 181, 69, .25); }
.chip-dev .dot { animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(244, 181, 69, 0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 242, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--font-body); letter-spacing: -.01em; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo span em { font-style: normal; color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.nav-cta { padding: 11px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px;
    display: none; flex-direction: column; align-items: stretch; gap: 12px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
  .nav-cta { justify-content: center; }
}
@media (min-width: 861px) { .nav-menu { display: flex; align-items: center; gap: 18px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; z-index: -1;
  background: radial-gradient(circle, var(--coral-soft) 0%, rgba(255, 228, 222, 0) 65%);
}
.hero::after {
  content: ""; position: absolute; width: 600px; height: 600px; left: -280px; bottom: -300px; z-index: -1;
  background: radial-gradient(circle, var(--sage-soft) 0%, rgba(220, 239, 230, 0) 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); margin-bottom: 24px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--coral); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; color: var(--muted); font-size: 14px; }
.hero-trust strong { display: block; font: 600 26px/1.1 var(--font-display); color: var(--ink); }

.hero-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 210px 210px 120px; gap: 14px; }
.hero-collage .ph { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.hero-collage .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hero-collage .ph:hover img { transform: scale(1.04); }
.hero-collage .ph-a { grid-row: 1 / 3; }
.hero-collage .ph-b { grid-row: 1 / 2; }
.hero-collage .ph-c { grid-row: 2 / 4; }
.hero-collage .ph-d { grid-row: 3 / 4; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 15px; }
.float-card span { color: var(--muted); }
.float-card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .ico svg { width: 22px; height: 22px; }
.float-1 { left: -34px; top: 46%; }
.float-2 { right: -22px; top: 8%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { grid-template-rows: 170px 170px 100px; }
  .float-1 { left: 8px; top: auto; bottom: -20px; }
  .float-2 { right: 8px; top: -18px; }
}
@media (max-width: 520px) {
  .hero-collage { grid-template-rows: 130px 130px 90px; gap: 10px; }
  .float-card { font-size: 12px; padding: 8px 12px 8px 8px; }
  .float-card .ico { width: 32px; height: 32px; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; padding: 20px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font: italic 400 clamp(22px, 2.6vw, 30px)/1 var(--font-display); white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .6em; color: var(--coral); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); }
.section-head h2 em { font-style: italic; font-weight: 400; color: var(--coral); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- App cards ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.app-card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.app-card.wide { grid-column: span 3; }
.app-card .media { aspect-ratio: 16 / 11; overflow: hidden; position: relative; background: var(--bg-2); }
.app-card.wide .media { aspect-ratio: 16 / 9; }
.app-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.app-card:hover .media img { transform: scale(1.05); }
.app-card .media .chip { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
.app-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-top: -48px; position: relative; border: 4px solid #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.3); }
.app-icon svg { width: 24px; height: 24px; color: #fff; }
.app-card h3 { font-size: 24px; margin: 6px 0 0; }
.app-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.app-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.app-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.app-card:hover .more svg { transform: translateX(4px); }
.c-coral { background: var(--coral); } .c-sage { background: var(--sage); } .c-lilac { background: var(--lilac); }
.c-sun { background: var(--sun); } .c-sky { background: var(--sky); } .c-ink { background: var(--ink); }

.app-card.soon { background: var(--ink); color: #fff; justify-content: center; padding: 32px; }
.app-card.soon h3 { color: #fff; font-size: 28px; }
.app-card.soon p { color: rgba(255,255,255,.7); }
.app-card.soon .plus { width: 56px; height: 56px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.4); display: grid; place-items: center; margin-bottom: 18px; }
.app-card.soon .plus svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card, .app-card.wide { grid-column: span 1; }
}
@media (max-width: 600px) {
  .apps-grid { grid-template-columns: 1fr; }
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 21px; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }
.bg-coral-soft { background: var(--coral-soft); color: var(--coral-d); }
.bg-sage-soft { background: var(--sage-soft); color: var(--sage); }
.bg-lilac-soft { background: var(--lilac-soft); color: var(--lilac); }
.bg-sun-soft { background: var(--sun-soft); color: #c98a12; }
.bg-sky-soft { background: var(--sky-soft); color: var(--sky); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Split / story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-media .badge {
  position: absolute; right: -16px; bottom: 32px; background: var(--coral); color: #fff;
  border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 220px;
}
.split-media .badge strong { display: block; font: 600 34px/1 var(--font-display); }
.split-media .badge span { font-size: 13.5px; opacity: .9; }
.split h2 { font-size: clamp(32px, 4.2vw, 50px); }
.split h2 em { font-style: italic; font-weight: 400; color: var(--coral); }
.split p { color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li svg { width: 22px; height: 22px; flex: none; color: var(--sage); margin-top: 2px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media .badge { right: 12px; }
}

/* ---------- Photo band ---------- */
.band { position: relative; min-height: 520px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,19,31,.25), rgba(23,19,31,.65)); }
.band .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.band blockquote { margin: 0 auto; max-width: 880px; font: italic 400 clamp(30px, 4.4vw, 56px)/1.15 var(--font-display); letter-spacing: -.02em; }
.band cite { display: block; margin-top: 22px; font: 600 14px/1 var(--font-body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }

/* ---------- Gallery strip ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-2); }
.gallery figure:nth-child(even) { transform: translateY(28px); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery figure:nth-child(even) { transform: none; } }

/* ---------- Blog cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.post-card:hover .media img { transform: scale(1.05); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.post-meta .cat { color: var(--coral-d); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.post-card h3 { font-size: 22px; line-height: 1.2; margin: 0; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.featured .media { flex: 1.25; aspect-ratio: auto; min-height: 380px; }
.post-card.featured .body { flex: 1; padding: clamp(28px, 4vw, 48px); justify-content: center; }
.post-card.featured h3 { font-size: clamp(28px, 3vw, 40px); }
.post-card.featured p { font-size: 17px; }
@media (max-width: 960px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.featured { flex-direction: column; }
  .post-card.featured .media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) { .posts-grid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { border: 0; background: var(--card); color: var(--ink-2); padding: 10px 18px; border-radius: 999px; font: 600 14px/1 var(--font-body); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 17.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--font-body); color: var(--coral); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: 32px; background: var(--ink); color: #fff;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch;
}
.cta-box .copy { padding: clamp(36px, 6vw, 72px); position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(32px, 4.4vw, 52px); }
.cta-box h2 em { font-style: italic; font-weight: 400; color: var(--coral); }
.cta-box p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 460px; margin-bottom: 28px; }
.cta-box .media { position: relative; min-height: 320px; }
.cta-box .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-box .media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, rgba(23,19,31,0) 45%); }
.cta-box .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-box .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.cta-box .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
@media (max-width: 860px) {
  .cta-box { grid-template-columns: 1fr; }
  .cta-box .media { min-height: 240px; order: -1; }
  .cta-box .media::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(23,19,31,0) 60%); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; z-index: -1; background: radial-gradient(circle, var(--coral-soft) 0%, rgba(255,228,222,0) 65%); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 900px; }
.page-hero h1 em { font-style: italic; font-weight: 400; color: var(--coral); }
.page-hero p { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 660px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- App detail rows ---------- */
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.app-row:first-child { border-top: 0; }
.app-row:nth-child(even) .app-row-media { order: 2; }
.app-row-media { position: relative; }
.app-row-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow-lg); }
.app-row-media .app-icon { position: absolute; left: 24px; bottom: -26px; width: 68px; height: 68px; border-radius: 20px; margin: 0; }
.app-row-media .app-icon svg { width: 32px; height: 32px; }
.app-row h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 14px; }
.app-row p { color: var(--ink-2); }
.app-row .checklist { margin: 18px 0 26px; }
@media (max-width: 860px) {
  .app-row { grid-template-columns: 1fr; }
  .app-row:nth-child(even) .app-row-media { order: 0; }
}

/* ---------- Prose (blog + legal) ---------- */
.article-hero { padding: clamp(40px, 6vw, 80px) 0 32px; }
.article-hero .wrap { max-width: 900px; }
.article-hero h1 { font-size: clamp(36px, 5.4vw, 62px); }
.article-hero .post-meta { font-size: 15px; margin-top: 18px; }
.article-cover { max-width: 1100px; margin: 0 auto 8px; padding: 0 var(--gutter); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.article-layout { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) 40px; }

.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose .lead { font-size: 21px; line-height: 1.6; color: var(--ink); }
.prose h2 { font-size: clamp(28px, 3vw, 34px); color: var(--ink); margin: 2em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; font-size: 20px; color: var(--ink); margin: 1.6em 0 .5em; }
.prose a { color: var(--coral-d); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--coral); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--coral); font: italic 400 22px/1.5 var(--font-display); color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.prose .callout { background: var(--sage-soft); border-radius: var(--radius-sm); padding: 20px 24px; margin: 1.6em 0; color: #234e3e; }
.prose .callout p:last-child { margin: 0; }
.prose .callout.warn { background: var(--sun-soft); color: #6b4a07; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--ink); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.disclaimer { margin-top: 48px; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--bg-2); font-size: 14.5px; color: var(--muted); }
.share { display: flex; align-items: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.share a svg { width: 18px; height: 18px; }
.share a:hover { background: var(--ink); color: #fff; }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 64px); padding-bottom: 80px; align-items: start; }
.toc { position: sticky; top: 96px; background: var(--card); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow); font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc strong { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--coral-d); }
.legal .prose { font-size: 16.5px; }
.legal .prose h2 { font-size: 26px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding-bottom: 96px; }
.contact-card { background: var(--card); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 30px; }
.contact-mail { display: inline-flex; align-items: center; gap: 12px; font: 600 clamp(20px, 2.4vw, 28px)/1.2 var(--font-display); color: var(--coral-d); text-decoration: none; word-break: break-all; margin: 8px 0 20px; }
.contact-mail:hover { text-decoration: underline; }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.topic-list a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg); text-decoration: none; transition: background .2s; }
.topic-list a:hover { background: var(--bg-2); }
.topic-list .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.topic-list .ico svg { width: 20px; height: 20px; }
.topic-list strong { display: block; font-size: 15.5px; }
.topic-list span { font-size: 14px; color: var(--muted); }
.contact-photo { border-radius: var(--radius); overflow: hidden; min-height: 300px; position: relative; }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.site-footer p { font-size: 15px; max-width: 340px; }
.site-footer h3 { font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-mail { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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

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

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(80px, 14vw, 160px); color: var(--coral); margin: 0; }

/* "More apps" banner card spans the full grid */
.apps-grid .app-card.soon { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.app-card.soon .plus { margin: 0; flex: none; }
.app-card.soon .soon-copy { flex: 1; min-width: 240px; }
.app-card.soon h3 { margin: 0 0 6px; }
@media (max-width: 520px) { .hero-trust { gap: 18px; } .hero-trust strong { font-size: 22px; } .hero-trust > div { font-size: 13px; } }
