/* Wildware Feed site. Colours and type follow the app's Palette.kt and Type.kt. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #111215;
  --raised: #16181c;
  --sunken: #0d0e10;
  --border: #1f2126;
  --border-strong: #2c2f36;
  --text: #ecedef;
  --muted: #9a9ea7;
  --faint: #868a93;
  --accent: #c6f169;
  --on-accent: #0b0d06;
  --accent-soft: #1c2410;
  --accent-text: #c6f169;
  --waiting: #f5b84a;
  --on-waiting: #1a1103;
  --waiting-soft: #231b0c;
  --info: #7da9ff;
  --success: #5bd69a;
  --error: #ff6b6b;
  --focus: #c6f169;
  --glow: rgba(198, 241, 105, 0.06);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-s: 5px;
  --r-m: 7px;
  --r-l: 10px;
  --r-xl: 18px;
  --page: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f7;
  --surface: #ffffff;
  --raised: #ffffff;
  --sunken: #f2f2f4;
  --border: #e3e4e8;
  --border-strong: #cbcdd3;
  --text: #0e0f12;
  --muted: #5b5f68;
  --faint: #686c75;
  --accent: #0e0f12;
  --on-accent: #ffffff;
  --accent-soft: #eaf6d3;
  --accent-text: #3f6e0c;
  --waiting: #b86e00;
  --on-waiting: #ffffff;
  --waiting-soft: #fff4e0;
  --info: #2f62d9;
  --success: #168454;
  --error: #d12c2c;
  --focus: #2f62d9;
  --glow: rgba(198, 241, 105, 0.22);
  --shadow: 0 24px 60px -24px rgba(14, 15, 18, 0.25);
}

/* Before the theme script runs, or with scripts off, follow the system. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f6f6f7;
    --surface: #ffffff;
    --raised: #ffffff;
    --sunken: #f2f2f4;
    --border: #e3e4e8;
    --border-strong: #cbcdd3;
    --text: #0e0f12;
    --muted: #5b5f68;
    --faint: #686c75;
    --accent: #0e0f12;
    --on-accent: #ffffff;
    --accent-soft: #eaf6d3;
    --accent-text: #3f6e0c;
    --waiting: #b86e00;
    --on-waiting: #ffffff;
    --waiting-soft: #fff4e0;
    --info: #2f62d9;
    --success: #168454;
    --error: #d12c2c;
    --focus: #2f62d9;
    --glow: rgba(198, 241, 105, 0.22);
    --shadow: 0 24px 60px -24px rgba(14, 15, 18, 0.25);
  }
}

/* Screenshots that come in both looks: show the one that matches. */
.only-light { display: none; }
:root[data-theme="light"] .only-light { display: block; }
:root[data-theme="light"] .only-dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .only-light { display: block; }
  :root:not([data-theme]) .only-dark { display: none; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; border-radius: var(--r-m); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.mono, .overline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.overline { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.overline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }
.overline.waiting { color: var(--waiting); }
.overline.waiting::before { background: var(--waiting); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; flex-shrink: 0; }
.brand svg { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 6px 10px; border-radius: var(--r-m); }
.nav a:hover { color: var(--text); background: var(--surface); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--r-m);
  color: var(--muted); cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 420px) {
  .top .btn-small { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 0 18px; height: 44px; border-radius: var(--r-m);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 17px; height: 17px; }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 70% 10%, var(--glow), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent-text); display: block; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin: 22px 0 30px; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--faint); font-size: 14px; }
.hero-note a { color: var(--muted); }

.stage { position: relative; display: grid; justify-items: center; padding: 8px 0 40px; }
.phone {
  position: relative; width: min(290px, 72vw); aspect-ratio: 1206 / 2622;
  border-radius: 52px; padding: 10px; background: #1b1c20;
  box-shadow: inset 0 0 0 1px #34363d, 0 0 0 1px #050506, var(--shadow), 0 40px 120px -40px rgba(198, 241, 105, 0.18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; }
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 26px; border-radius: 20px; background: #000;
}
.float {
  position: absolute; width: min(420px, 90vw);
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.55));
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.float img { width: 100%; }
.float-la { bottom: 36px; left: -40px; animation-delay: 0.25s; }
:root[data-theme="light"] .float { filter: drop-shadow(0 22px 40px rgba(14, 15, 18, 0.22)); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1060px) {
  .float-la { left: -8px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .stage { margin-top: 8px; }
  .float-la { left: 50%; transform: translateX(-50%); width: min(380px, 92vw); bottom: 4px; animation-name: rise-center; }
  @keyframes rise-center { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } }
}

/* Sections */
section { position: relative; }
.band { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--border); }
.head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-size: clamp(30px, 4vw, 46px); }
.head p { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; overflow: hidden; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--accent-text); letter-spacing: 0.06em; }
.step h3 { font-size: 21px; margin: 10px 0 8px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.step .shot { margin-top: auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.code {
  margin-top: auto; background: var(--sunken); border: 1px solid var(--border); border-radius: var(--r-l);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; padding: 14px 16px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere;
}
:root[data-theme="light"] .code { background: #0e0f12; color: #d9dbdf; border-color: #0e0f12; }
.code .k { color: #c6f169; }
.code .s { color: #7dd3c0; }
.code .c { color: #6b707a; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Surfaces gallery */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; }
.tile .pic { border-bottom: 1px solid var(--border); background: #1b2440; }
.tile figcaption { padding: 16px 18px 18px; }
.tile figcaption b { display: block; font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.tile figcaption span { color: var(--muted); font-size: 14.5px; }
.t-7 { grid-column: span 7; } .t-5 { grid-column: span 5; } .t-4 { grid-column: span 4; } .t-6 { grid-column: span 6; } .t-8 { grid-column: span 8; }
.tile.split .pic { display: grid; grid-template-columns: 1fr 1fr; flex: 1; }
.tile .pic.fill { flex: 1; display: grid; align-items: center; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .t-7, .t-5, .t-4, .t-6, .t-8 { grid-column: span 2; }
  .t-4.half { grid-column: span 1; }
}
@media (max-width: 560px) {
  .t-4.half { grid-column: span 2; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.feature { background: var(--surface); padding: 24px 22px 26px; }
.feature svg { width: 22px; height: 22px; color: var(--accent-text); margin-bottom: 14px; }
.feature.amber svg { color: var(--waiting); }
.feature.red svg { color: var(--error); }
.feature h3 { font-size: 16.5px; letter-spacing: -0.015em; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.55; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature:last-child { grid-column: auto; } }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-xl); padding: 22px; }
.platform header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.platform header svg { width: 22px; height: 22px; color: var(--text); }
.platform h3 { font-size: 18px; letter-spacing: -0.02em; }
.platform p { color: var(--muted); font-size: 14.5px; margin: 0; }
.platform .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 9px; }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }

/* Open source */
.oss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.oss ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.oss li { display: flex; gap: 12px; color: var(--muted); }
.oss li b { color: var(--text); font-weight: 600; }
.oss li svg { flex: none; width: 20px; height: 20px; color: var(--accent-text); margin-top: 3px; }
.terminal { background: #0d0e10; border: 1px solid #1f2126; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.terminal .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #1f2126; }
.terminal .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2f36; }
.terminal pre { margin: 0; padding: 18px 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #d9dbdf; overflow-x: auto; }
.terminal .p { color: #c6f169; }
.terminal .c { color: #6b707a; }
@media (max-width: 900px) { .oss { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px 24px 24px; display: flex; flex-direction: column; }
.plan.main { border-color: color-mix(in srgb, var(--accent-text) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-text) 30%, transparent), var(--shadow); }
.plan .name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; font-weight: 500; }
.badge.lime { background: var(--accent-soft); color: var(--accent-text); }
.badge.amber { background: var(--waiting-soft); color: var(--waiting); }
.plan .price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price strong { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { color: var(--muted); font-size: 15px; }
.plan .sub { color: var(--muted); font-size: 14.5px; min-height: 2.9em; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 0 0 24px; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--accent-text); margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.soon { opacity: 0.92; }
.price-note { color: var(--faint); font-size: 14px; margin-top: 20px; text-align: center; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .plan .sub { min-height: 0; } }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17px; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); margin: -4px 0 20px; max-width: 64ch; }

/* Waitlist */
.join { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.join .head { margin-bottom: 0; }
.join-points { margin-top: 24px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.join-points div { display: flex; gap: 10px; }
.join-points svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; margin-top: 3px; }
.card-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label, .field legend { font-weight: 600; font-size: 14.5px; padding: 0; }
.field .hint { color: var(--faint); font-weight: 400; font-size: 13.5px; }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
input[type="email"], select, input[type="text"] {
  font: inherit; font-size: 16px; color: var(--text); background: var(--sunken);
  border: 1px solid var(--border-strong); border-radius: var(--r-m); height: 46px; padding: 0 14px; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--error); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-m); font-size: 14.5px; font-weight: 500; color: var(--muted);
  background: var(--sunken); transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--faint); flex: none; }
.check input:checked + span { color: var(--text); border-color: var(--accent-text); background: var(--accent-soft); }
.check input:checked + span::before { border-color: var(--accent-text); background: var(--accent-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
:root[data-theme="light"] .check input:checked + span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-foot .btn { min-width: 180px; }
.small { color: var(--faint); font-size: 13.5px; margin: 0; }
.small a { color: var(--muted); }
.status { margin-top: 16px; font-size: 15px; min-height: 1.5em; }
.status.error { color: var(--error); }
.done { text-align: left; }
.done .tick { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.done h3 { font-size: 22px; margin-bottom: 8px; }
.done p { color: var(--muted); margin: 0; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: 14.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* Plain text pages */
.doc { max-width: 720px; padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.doc .meta { color: var(--faint); font-family: var(--mono); font-size: 12.5px; margin-bottom: 36px; }
.doc h2 { font-size: 21px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--text); }

/* Wallpaper behind the iPhone shots, matching the simulator's own. */
:root { --wall: linear-gradient(135deg, #2a3a60 0%, #121827 55%, #08090f 100%); }
:root[data-theme="light"] { --wall: linear-gradient(135deg, #d3e2fb 0%, #b3c5e6 55%, #93a7cc 100%); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --wall: linear-gradient(135deg, #d3e2fb 0%, #b3c5e6 55%, #93a7cc 100%); } }
.tile .pic { background: var(--wall); height: var(--h, auto); position: relative; }
.tile .pic.dark-wall { background: linear-gradient(135deg, #2a3a60 0%, #121827 55%, #08090f 100%); }
.tile .pic { display: grid; place-items: center; overflow: hidden; }
/* Fade each shot's own wallpaper edge into the tile so no seam shows. */
.tile .pic img {
  width: auto; height: auto; max-width: 100%; max-height: var(--h, none);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent), linear-gradient(to bottom, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent), linear-gradient(to bottom, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  .tile .pic { height: auto; }
  .tile .pic img { width: 100%; max-height: none; }
}
