/* Iron Apps - shared styles */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #5b6779;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e2e7f0;
  --iron: #1e2433;
  --ember: #e8590c;
  --ember-soft: #fff1e6;
  --water: #1672d6;
  --water-deep: #0b4fa3;
  --water-soft: #e8f2fe;
  --felt: #1c7c43;
  --felt-soft: #e7f5ec;
  --amber-soft: #fff6dd;
  --amber-ink: #8a5300;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 24px 48px rgba(15, 23, 42, .14);
  --display: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}

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

a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--water-deep); }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.eyebrow {
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}
.eyebrow.water { color: var(--water); }
.eyebrow.felt { color: var(--felt); }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50;
}
.skip:focus { left: 8px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 247, 251, .86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 4px; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: 1rem;
  color: var(--ink-soft); text-decoration: none; padding: 8px 14px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: #e7ebf3; color: var(--ink); }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #000; color: #fff; }
.btn-water { background: var(--water); color: #fff; box-shadow: var(--shadow); }
.btn-water:hover { background: var(--water-deep); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c5cddb; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: .86rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  background: #e9edf4; color: var(--ink-soft); white-space: nowrap;
}
.chip.beta { background: var(--amber-soft); color: var(--amber-ink); }
.chip.beta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.chip.water { background: var(--water-soft); color: var(--water-deep); }
.chip.felt { background: var(--felt-soft); color: #14592f; }
.chip.ember { background: var(--ember-soft); color: #a33d05; }

/* Home hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--water); }
.hero h1 em.felt { color: var(--felt); }
.hero .lead { margin-top: 22px; max-width: 33em; }
.hero-art { position: relative; height: 520px; }
.hero-art .screen {
  position: absolute; right: -40px; top: 46px; width: 92%;
  border-radius: 16px; box-shadow: var(--shadow-lg); transform: rotate(3deg);
  border: 6px solid #10141d;
}
.hero-art .phone { position: absolute; left: 4%; top: 0; width: 44%; transform: rotate(-4deg); }

.phone {
  border-radius: 12.5% / 5.6%;
  box-shadow: 0 0 0 5px #10141d, var(--shadow-lg);
  background: #000;
  aspect-ratio: 9 / 20;
  width: 100%;
  height: auto;
  align-self: flex-start;
}

/* Spotlight (PipePulse on home) */
.spotlight {
  background: linear-gradient(140deg, #0b4fa3 0%, #1672d6 55%, #2f9bf0 100%);
  color: #fff; border-radius: 32px; padding: 56px 56px 0;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.spotlight h2 { font-size: clamp(2rem, 4vw, 3rem); }
.spotlight .lead { color: #e3effc; margin-top: 16px; }
.spotlight .chip { background: rgba(255, 255, 255, .16); color: #fff; }
.spotlight .chip.beta { background: #fff6dd; color: var(--amber-ink); }
.spotlight ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.spotlight li { display: flex; gap: 12px; align-items: flex-start; color: #f1f7ff; }
.spotlight li svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.spotlight .btn-row { margin-bottom: 56px; }
.spotlight .btn-light { background: #fff; color: var(--water-deep); }
.spotlight .btn-light:hover { color: var(--water-deep); box-shadow: var(--shadow-lg); }
.spotlight-art { display: flex; gap: 22px; align-items: flex-end; justify-content: center; }
.spotlight-art .phone { align-self: flex-end; width: 46%; margin-bottom: -18%; box-shadow: 0 0 0 5px #0a1930, 0 24px 48px rgba(3, 22, 51, .45); }
.spotlight-art .phone:last-child { margin-bottom: -32%; }
.logo-drop { width: 46px; height: 46px; margin-bottom: 18px; }

/* Game cards */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-card .cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #dfe5ee; }
.game-card .body { padding: 0 22px 22px; display: flex; flex-direction: column; flex: 1; }
.game-card .icon {
  width: 68px; height: 68px; border-radius: 16px; margin-top: -34px;
  border: 4px solid var(--surface); box-shadow: var(--shadow); background: #fff; position: relative;
}
.game-card h3 { margin-top: 12px; }
.game-card h3 a { color: var(--ink); text-decoration: none; }
.game-card h3 a::after { content: ""; position: absolute; inset: 0; }
.game-card p { color: var(--muted); margin-top: 6px; font-size: .98rem; }
.game-card .meta {
  margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center;
  font-size: .92rem; color: var(--muted); gap: 10px;
}
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.rating svg { width: 16px; height: 16px; color: #f59e0b; }
.rating span { font-weight: 400; color: var(--muted); }
.more { font-family: var(--display); font-weight: 600; color: var(--water); white-space: nowrap; }

.game-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.game-mini {
  position: relative; display: flex; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.game-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game-mini img { width: 68px; height: 68px; border-radius: 16px; flex: none; }
.game-mini h3 { font-size: 1.12rem; }
.game-mini h3 a { color: var(--ink); text-decoration: none; }
.game-mini h3 a::after { content: ""; position: absolute; inset: 0; }
.game-mini p { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.sub-head { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--muted); margin: 44px 0 0; }

/* Stats and values */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--surface); padding: 28px 24px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--felt-soft); color: var(--felt);
}
.value .ico svg { width: 24px; height: 24px; }
.value p { color: var(--muted); margin-top: 8px; }

/* App detail pages */
.crumb { padding-top: 28px; font-size: .95rem; }
.crumb a { color: var(--muted); text-decoration: none; font-family: var(--display); font-weight: 500; }
.crumb a:hover { color: var(--ink); }
.app-hero { padding: 28px 0 56px; }
.app-hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.app-hero.pp .wrap { grid-template-columns: 1.2fr .8fr; }
.app-title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-title img, .app-title svg { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); flex: none; background: #fff; }
.app-title svg { padding: 16px; }
.app-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.app-hero .lead { margin-top: 14px; }
.app-hero .chips { margin-top: 20px; }
.app-hero .shot { border-radius: 18px; box-shadow: var(--shadow-lg); border: 6px solid #10141d; width: 100%; }
.app-hero .phones { display: flex; gap: 20px; justify-content: center; }
.app-hero .phones .phone { width: 47%; }
.app-hero .phones .phone:last-child { margin-top: 12%; }
.fineprint { font-size: .88rem; color: var(--muted); margin-top: 14px; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0;
}
.facts div { background: var(--surface); padding: 20px 22px; }
.facts dt { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--display); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--ink-soft); }
.prose h2 { margin-bottom: 18px; }
.callout {
  margin-top: 22px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--ember-soft); color: #7a2e04; font-family: var(--display); font-weight: 600; font-size: 1.05rem;
}
.quotes { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.quotes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .97rem; }
.quotes cite { color: var(--muted); font-style: normal; font-size: .88rem; }

.checklist { list-style: none; margin: 0; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--felt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%231c7c43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.checklist-title { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: 14px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery button, .rail button {
  padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.gallery button:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.rail {
  display: flex; overflow-x: auto; padding: 8px 24px 28px; margin: 0 -24px;
  scroll-snap-type: x proximity; scroll-padding-left: 24px; scroll-padding-right: 24px;
}
.rail figure { margin: 0 22px 0 0; flex: 0 0 232px; scroll-snap-align: start; }
.rail figure:last-child { margin-right: 0; }
.rail button { border-radius: 30px; box-shadow: none; overflow: visible; }
.rail figcaption { margin-top: 16px; font-size: .93rem; color: var(--muted); text-align: center; }
.rail figcaption b { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--water-soft); color: var(--water);
}
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin-top: 8px; font-size: .98rem; }
.feature.wide { grid-column: span 2; background: var(--water-soft); border-color: #cfe3fb; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info p { color: var(--ink-soft); margin-top: 10px; }
.info ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }
.info li + li { margin-top: 6px; }

.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--amber-soft); border: 1px solid #f3dfa4; color: #5f3b00;
  border-radius: var(--radius); padding: 24px 28px;
}
.notice svg { width: 28px; height: 28px; flex: none; color: #c57a00; margin-top: 2px; }
.notice h3 { color: #4a2e00; }
.notice p { margin-top: 6px; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; }

.doc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc-links a {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600;
}
.doc-links a:hover { border-color: var(--water); color: var(--water-deep); }
.doc-links span { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }

.band { background: var(--surface); border-top: 1px solid var(--line); }
.band + .section { border-top: 1px solid var(--line); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 12, 22, .86); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox form { text-align: right; margin-bottom: 10px; }
.lightbox button {
  font: 600 .95rem var(--display); color: #fff; background: rgba(255, 255, 255, .16);
  border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .28); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .wordmark { font-size: 1.05rem; }
.site-footer .wordmark svg { width: 30px; height: 30px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 72px; }
.site-footer .group { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { margin-top: 22px; max-width: 880px; font-size: .85rem; line-height: 1.55; }

.notfound { text-align: center; padding: 120px 0; }
.notfound p { color: var(--muted); margin-top: 14px; }
.notfound .btn-row { justify-content: center; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .app-hero .wrap, .app-hero.pp .wrap, .two-col { grid-template-columns: 1fr; }
  .hero-art { height: auto; aspect-ratio: 10 / 9; max-width: 560px; }
  .hero-art .screen { right: -4%; top: 12%; width: 84%; }
  .spotlight { grid-template-columns: 1fr; padding: 40px 32px 0; }
  .spotlight .btn-row { margin-bottom: 8px; }
  .spotlight-art { max-width: 460px; margin: 0 auto; }
  .game-grid, .game-row, .values, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats, .facts { grid-template-columns: repeat(2, 1fr); }
  .app-hero .phones { max-width: 460px; margin: 0 auto; }
  .two-col { gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero { padding-top: 40px; }
  .nav a { padding: 8px 10px; font-size: .95rem; }
  .wordmark span { display: none; }
  .site-footer .wordmark span { display: inline; }
  .spotlight { border-radius: 24px; padding: 32px 22px 0; }
  .game-grid, .game-row, .values, .feature-grid, .info-grid, .doc-links { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rail { margin: 0 -16px; padding: 8px 16px 24px; scroll-padding-left: 16px; scroll-padding-right: 16px; }
  .rail figure { flex-basis: 200px; }
  .app-title img, .app-title svg { width: 64px; height: 64px; border-radius: 16px; }
  .notice { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
