/* Pulse & Pause Lab: site stylesheet (2026 redesign) */

:root {
  --navy: #0f2a44;
  --navy-deep: #0c1826;
  --ink: #1f3550;
  --muted: #4f6a85;
  --muted-2: #7e93a8;
  --teal: #177c8b;
  --teal-dark: #146f7d;
  --teal-soft: #e3f2f4;
  --ekg: #19c2ae;
  --paper: #f6f9fb;
  --white: #ffffff;
  --line: #dde6ee;
  --line-soft: #e8eff5;
  --chip: #eef3f7;
  --font-head: "Sora", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-quote: "Newsreader", Georgia, "Times New Roman", serif;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.accent { color: var(--teal); font-style: italic; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}
.kicker {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.9;
}
.kicker-line { width: 44px; height: 2px; background: var(--navy); margin: 22px 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper); color: var(--navy); }
.btn .arrow { width: 16px; height: 16px; }

/* Wordmark */
.wordmark { display: inline-flex; flex-direction: column; gap: 2px; color: var(--navy); }
.wordmark .wm-text { font-family: var(--font-head); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.wordmark .wm-amp { color: var(--teal); font-weight: 500; }
.wordmark .wm-lab { color: var(--muted-2); font-weight: 400; }
.wordmark .wm-line { width: 100%; height: 12px; display: block; }
.wordmark.on-dark { color: #eaf2f7; }
.wordmark.on-dark .wm-lab { color: #7e93a8; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(221,230,238,.6); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-family: var(--font-body); font-size: 15px; color: var(--ink); padding: 8px 0; position: relative; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); border-radius: 2px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--paper); min-height: 520px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 30%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.35) 58%, rgba(255,255,255,0) 72%);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 100%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 40px; padding-block: 76px 84px; }
.hero h1 { font-size: clamp(36px, 4.8vw, 56px); font-weight: 600; margin-bottom: 22px; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 46ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-tag { position: absolute; top: 34px; right: 24px; z-index: 2; text-align: left; }
.hero-tag .kicker-line { width: 36px; margin: 10px 0 0; }
.hero-fallback { position: absolute; inset: 0; background: linear-gradient(180deg, #cfe3ef 0%, #f3d9c0 55%, #6a7d8f 100%); }

/* Pillars */
.pillars { padding-block: 64px; border-bottom: 1px solid var(--line-soft); }
.pillars .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { text-align: center; padding: 8px 28px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; }
.icon-ring { width: 60px; height: 60px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.icon-ring svg { width: 26px; height: 26px; }
.pillar .eyebrow { color: var(--teal); margin-bottom: 10px; }
.pillar p { color: var(--ink); margin: 0; font-size: 17px; }

/* Split feature (home) */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.split-media { position: relative; min-height: 460px; background: #4c6478; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media .kicker { position: absolute; top: 34px; left: 36px; color: #fff; z-index: 2; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.split-body { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.split-body h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 22px; }
.split-body p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.split-body .kicker-line { width: 44px; }

/* Quote band */
.quote-band { padding-block: 84px; text-align: center; background: var(--paper); position: relative; overflow: hidden; }
.quote-band blockquote { margin: 0 auto; max-width: 720px; font-family: var(--font-quote); font-style: italic; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; color: var(--navy); }
.quote-band .kicker-line { margin: 30px auto 0; }
.topo { position: absolute; inset: 0; opacity: .45; pointer-events: none; }

/* CTA band (photo) */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--navy-deep); }
.cta-band .band-media { position: absolute; inset: 0; }
.cta-band .band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cta-band .band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,24,38,.78) 0%, rgba(12,24,38,.35) 55%, rgba(12,24,38,.55) 100%); }
.cta-band .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 72px; min-height: 340px; }
.cta-band h2 { color: #fff; font-size: clamp(34px, 4.4vw, 50px); }
.cta-band .kicker { color: #fff; }
.cta-band .accent { color: #6fd6e6; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 17px; max-width: 40ch; }
.cta-band .kicker-line { background: #fff; width: 36px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c8d6e2; position: relative; overflow: hidden; }
.site-footer .topo { opacity: .35; }
.site-footer .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; padding-block: 56px 40px; }
.site-footer .tagline { margin-top: 18px; color: #eaf2f7; font-size: 15px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 28px; justify-content: flex-end; }
.foot-nav a { color: #eaf2f7; font-size: 15px; }
.foot-nav a:hover { color: var(--ekg); }
.foot-meta { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.foot-legal { display: flex; gap: 18px; font-size: 13px; }
.foot-legal a { color: #9fb3c6; }
.foot-legal a:hover { color: var(--ekg); }
.foot-sep { width: 1px; height: 34px; background: rgba(255,255,255,.25); }
.foot-copy { font-size: 13px; color: #9fb3c6; line-height: 1.5; text-align: right; }
.social { display: flex; gap: 18px; }
.social a { color: #eaf2f7; display: inline-flex; }
.social svg { width: 22px; height: 22px; }

/* Apps grid */
.apps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 56px 28px; flex-wrap: wrap; }
.apps-head h2 { font-size: 34px; }
.apps-head p { color: var(--muted); margin: 4px 0 0; font-size: 18px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 72px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(15,42,68,.03); transition: box-shadow .2s, transform .2s; }
.app-card:hover { box-shadow: 0 14px 34px rgba(15,42,68,.10); transform: translateY(-2px); }
.app-card.next { background: var(--paper); }
.app-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.app-icon { width: 84px; height: 84px; border-radius: 20px; flex: none; overflow: hidden; }
.app-icon svg { width: 100%; height: 100%; display: block; }
.app-title h3 { font-size: 24px; font-weight: 600; }
.app-title .sub { color: var(--muted); font-size: 16px; margin: 2px 0 0; }
.app-card > p { color: var(--muted); font-size: 16px; margin-bottom: 18px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { background: var(--chip); color: var(--ink); font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ekg); box-shadow: 0 0 0 3px rgba(25,194,174,.18); }
.status.soon .dot { background: #f0b45a; box-shadow: 0 0 0 3px rgba(240,180,90,.2); }
.status svg { width: 16px; height: 16px; }
.more { font-family: var(--font-head); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.more svg { width: 15px; height: 15px; }

/* Approach steps */
.steps { padding-block: 40px 72px; }
.step { display: grid; grid-template-columns: 48px 88px minmax(0, 300px) 1fr; gap: 0 20px; align-items: start; padding: 30px 0; position: relative; }
.step + .step::before { content: ""; position: absolute; left: 92px; top: -30px; height: 30px; width: 1px; background: var(--line); }
.step .num { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 17px; padding-top: 16px; }
.step .icon-ring { margin: 0; width: 64px; height: 64px; }
.step h3 { font-size: 26px; font-weight: 600; margin-top: 4px; }
.step .eyebrow { margin-bottom: 6px; font-size: 11px; }
.step .body { border-left: 1px solid var(--line); padding-left: 34px; color: var(--muted); font-size: 16px; }
.step .body strong { color: var(--navy); display: block; margin-top: 4px; font-weight: 600; }
.step .body p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-block: 56px 40px; }
.panel { border: 1px solid var(--line); border-radius: 22px; padding: 34px 32px; background: #fff; }
.panel.tint { background: var(--paper); }
.panel-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.panel-head .icon-ring { width: 64px; height: 64px; margin: 0; flex: none; }
.panel-head h2 { font-size: 32px; }
.panel-head .eyebrow { margin-bottom: 6px; }
.panel-head p { color: var(--muted); margin: 6px 0 0; font-size: 16px; }
.panel .lede { color: var(--muted); font-size: 17px; }
label.field { display: block; margin-bottom: 18px; }
label.field span { display: block; font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,138,155,.14); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f2a44' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.hp { position: absolute; left: -9999px; }
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-block: 24px 64px; }
.info { display: flex; gap: 18px; align-items: flex-start; padding: 8px 28px; border-left: 1px solid var(--line); }
.info:first-child { border-left: 0; padding-left: 0; }
.info .icon-ring { width: 52px; height: 52px; margin: 0; flex: none; }
.info .icon-ring svg { width: 22px; height: 22px; }
.info .eyebrow { margin-bottom: 4px; font-size: 11px; }
.info h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.info p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.quote-photo { position: relative; overflow: hidden; min-height: 300px; background: var(--navy-deep); }
.quote-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.quote-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 45%, rgba(255,255,255,.92) 75%, #ffffff 100%); }
.quote-photo .wrap { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding-block: 64px; }
.quote-photo blockquote { margin: 0; max-width: 420px; text-align: center; font-family: var(--font-quote); font-style: italic; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; color: var(--navy); }
.quote-photo .kicker { display: block; text-align: center; margin-top: 26px; }
.quote-photo .kicker-line { margin: 22px auto 0; width: 36px; }

/* Simple content pages (terms, thanks) */
.content-page { padding-block: 64px 80px; max-width: 760px; }
.content-page h1 { font-size: 44px; margin-bottom: 20px; }
.content-page h2 { font-size: 24px; margin: 36px 0 10px; }
.content-page p, .content-page li { color: var(--muted); }
.notice { background: #fff6e5; border: 1px solid #f3dcae; border-radius: 12px; padding: 14px 18px; color: #7a5a1c; font-size: 15px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media::before { background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.92) 55%, rgba(255,255,255,.55) 100%); }
  .hero-tag { display: none; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 320px; }
  .split-body { padding: 56px 32px; }
  .step { grid-template-columns: 40px 64px 1fr; }
  .step .icon-ring { width: 52px; height: 52px; }
  .step .body { grid-column: 2 / -1; border-left: 0; padding-left: 0; margin-top: 16px; }
  .step + .step::before { left: 72px; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 22px; }
  .info { border-left: 0; padding-left: 0; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-nav, .foot-meta { justify-content: flex-start; }
  .foot-copy { text-align: left; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 72px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; font-size: 17px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero .wrap { padding-block: 56px 64px; }
  .pillars .wrap { grid-template-columns: 1fr; gap: 28px; }
  .pillar { border-left: 0; padding: 0; }
  .apps-grid { grid-template-columns: 1fr; }
  .panel { padding: 26px 20px; }
  .quote-photo::after { background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.94) 45%); }
  .quote-photo .wrap { justify-content: center; }
}

/* Featured apps (home) */
.featured { padding-top: 8px; }
.featured .apps-head .eyebrow { margin-bottom: 8px; }
.featured .apps-grid { padding-bottom: 80px; }

/* Idea band (home) */
.idea-band { padding-block: 88px; text-align: center; background: var(--paper); position: relative; overflow: hidden; }
.idea-band .wrap { position: relative; z-index: 1; }
.idea-band h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px auto 18px; max-width: 760px; }
.idea-band p { color: var(--muted); font-size: 18px; max-width: 54ch; margin: 0 auto; }
.idea-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Simple page header (privacy, support) */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line-soft); padding-block: 72px 56px; }
.page-head h1 { font-size: clamp(36px, 4.4vw, 52px); margin: 8px 0 18px; }
.page-head .lede { color: var(--muted); font-size: 19px; max-width: 60ch; }
.page-head .meta { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 60ch; }
.page-head a, .content-page a { color: var(--teal); }
.content-page h3 { font-size: 18px; margin: 26px 0 6px; }
.support-apps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-soft); }
.support-apps li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.support-apps strong { color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.support-apps span { color: var(--muted); }
@media (max-width: 720px) { .support-apps li { grid-template-columns: 1fr; gap: 2px; } .page-head { padding-block: 52px 40px; } }

/* Thanks page */
.thanks { background: var(--paper); padding-block: 110px 120px; text-align: center; }
.thanks-pulse { width: 200px; height: 34px; display: block; margin: 0 auto 28px; }
.thanks h1 { font-size: clamp(36px, 4.6vw, 54px); margin: 10px 0 18px; }
.thanks .lede { color: var(--muted); font-size: 19px; max-width: 56ch; margin: 0 auto; }
.thanks .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
@media (max-width: 720px) { .thanks { padding-block: 72px 84px; } }

.app-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.app-icon--light { border: 1px solid var(--line); }

/* Photo location tags */
.photo-loc { position: absolute; right: 18px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.55); pointer-events: none; }
.photo-loc svg { width: 13px; height: 13px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.photo-loc--left { right: auto; left: 18px; z-index: 3; }
.band-media .photo-loc { z-index: 2; }
@media (max-width: 720px) { .hero .photo-loc { display: none; } }

/* Made in Utah (approach) */
.made-in-utah { background: var(--paper); border-top: 1px solid var(--line-soft); padding-block: 80px; }
.made-in-utah .miu-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.made-in-utah h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 8px 0 16px; }
.made-in-utah p { color: var(--muted); font-size: 19px; max-width: 58ch; }
.made-in-utah .kicker-line { margin-top: 26px; }
.content-page ul:not(.support-apps) { color: var(--muted); padding-left: 1.2em; }
.content-page .fine { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 40px; }
@media (max-width: 980px) { .made-in-utah .miu-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 720px) { .made-in-utah { padding-block: 56px; } }

/* Wide-screen balance (Oct 13): column a little wider; hero fade tied to the text column, not the window */
:root { --max: 1280px; --edge: max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
@media (min-width: 981px) {
  .hero-media::before {
    background: linear-gradient(90deg,
      rgba(255,255,255,.70) calc(var(--edge) - 300px),
      rgba(255,255,255,.96) var(--edge),
      #ffffff calc(var(--edge) + 380px),
      rgba(255,255,255,.86) calc(var(--edge) + 500px),
      rgba(255,255,255,.32) calc(var(--edge) + 660px),
      rgba(255,255,255,0) calc(var(--edge) + 800px));
  }
  .hero-tag { right: var(--edge); }
  .hero .photo-loc { right: var(--edge); }
}

/* Phones and tablets: stack the hero so the photo shows at full strength below the text */
@media (max-width: 980px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero .wrap { order: 1; padding-block: 44px 36px; }
  .hero-media { position: relative; inset: auto; order: 2; height: clamp(240px, 62vw, 420px); }
  .hero-media::before, .hero-media::after { display: none; }
  .hero .photo-loc { display: inline-flex; right: 16px; bottom: 14px; }
}

/* App pages (Nearwater, Miles Upstream): studio frame, app colors in the hero */
.app-nearwater { --app-bg: #102457; --app-bg-2: #1c47a3; --app-accent: #ffae73; --app-glow: rgba(244,116,33,.18); }
.app-miles { --app-bg: #1b140f; --app-bg-2: #3b2717; --app-accent: #f0b85a; --app-glow: rgba(224,162,58,.16); }
.app-hero { background: radial-gradient(1200px 500px at 75% 20%, var(--app-glow), transparent 60%), linear-gradient(160deg, var(--app-bg) 0%, var(--app-bg-2) 120%); color: #fff; padding-block: 28px 72px; }
.app-back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 500; }
.app-back svg { width: 16px; height: 16px; }
.app-back:hover { color: #fff; }
.app-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 28px; }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app-hero-icon { width: 88px; height: 88px; border-radius: 21px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.app-chip { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--app-accent); border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; }
.app-hero h1 { color: #fff; font-size: clamp(42px, 5.4vw, 64px); margin: 0 0 12px; }
.app-tagline { font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; color: var(--app-accent); margin: 0 0 16px; }
.app-hero .lede { color: rgba(255,255,255,.88); font-size: 19px; max-width: 54ch; }
.app-sub { color: rgba(255,255,255,.72); font-size: 16px; }
.app-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.app-badges span { font-size: 13px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; }
.app-devices { display: flex; justify-content: center; gap: 24px; align-items: flex-start; }
.device { margin: 0; width: min(46%, 236px); text-align: center; }
.device img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0,0,0,.4)); }
.device:nth-child(2) { margin-top: 48px; }
.device figcaption { margin-top: 14px; font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.device--shot img { border-radius: 30px; border: 7px solid #0b0b0d; box-sizing: border-box; }
.app-section { padding-block: 80px 24px; }
.app-section + .app-section { padding-top: 40px; }
.app-section h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 8px 0 18px; max-width: 22ch; }
.app-lede { color: var(--muted); font-size: 19px; max-width: 64ch; }
.app-lede strong { color: var(--navy); }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.app-card-f { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.app-card-f .icon-ring { width: 52px; height: 52px; margin-bottom: 16px; }
.app-card-f .icon-ring svg { width: 22px; height: 22px; }
.app-card-f h3 { font-size: 19px; margin-bottom: 8px; }
.app-card-f p { color: var(--muted); font-size: 16px; margin: 0; }
.app-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; max-width: 900px; }
.app-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.app-steps h3 { font-size: 19px; margin: 8px 0 6px; }
.app-steps p { color: var(--muted); margin: 0; font-size: 16px; }
.app-steps .step-flag { color: var(--teal-dark); font-weight: 600; margin-top: 8px; }
.app-band { margin-top: 72px; background: linear-gradient(160deg, var(--app-bg) 0%, var(--app-bg-2) 140%); color: #fff; padding-block: 76px; }
.app-band-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.app-band .eyebrow { color: var(--app-accent); }
.app-band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); margin: 8px 0 16px; }
.app-band p { color: rgba(255,255,255,.85); font-size: 18px; }
.app-band strong { color: #fff; }
.band-points { display: grid; gap: 18px; margin-top: 28px; }
.band-points > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.band-points .icon-ring { width: 44px; height: 44px; margin: 0; background: rgba(255,255,255,.1); color: var(--app-accent); }
.band-points .icon-ring svg { width: 20px; height: 20px; }
.band-points h3 { color: #fff; font-size: 17px; margin: 2px 0 4px; }
.band-points p { font-size: 15px; color: rgba(255,255,255,.75); margin: 0; }
.device--band { width: min(100%, 260px); justify-self: center; margin-top: 0 !important; }
.flowcard { background: #fff; color: var(--navy); border-radius: 22px; padding: 24px; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.flow-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.flow-pill { background: var(--navy); color: #fff; font-size: 12px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.flow-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.flow-nums > div { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.flow-nums b { font-family: var(--font-head); font-size: 30px; display: block; line-height: 1.1; }
.flow-nums small { color: var(--muted); font-size: 14px; }
.flowcard .flow-cmp { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.flow-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); }
.flow-row b { color: var(--navy); font-size: 17px; }
.flow-delta { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.flow-bar { position: relative; height: 8px; border-radius: 99px; background: var(--chip); margin: 10px 0 16px; }
.flow-fill { position: absolute; left: 58%; right: 22%; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #9fb4d9, var(--navy)); }
.flow-bar i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%,-50%); border: 2px solid #fff; }
.flow-bar .dot-a { left: 58%; background: #9fb4d9; }
.flow-bar .dot-b { left: 78%; background: var(--navy); }
.flowcard .flow-note { color: var(--muted); font-size: 15px; margin: 0; }
.flowcard .flow-note strong { color: var(--navy); }
.app-verdict { margin-top: 0; }
.app-verdict blockquote { font-size: clamp(22px, 2.6vw, 30px); max-width: 860px; }
.app-verdict blockquote strong { color: var(--teal); font-weight: 500; }
.app-coverage { color: var(--muted); margin-top: 28px; max-width: 70ch; }
.app-coverage strong { color: var(--navy); }
.app-cta-wrap { padding-block: 72px 88px; }
.app-cta { background: linear-gradient(160deg, var(--app-bg) 0%, var(--app-bg-2) 140%); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center; }
.app-cta .eyebrow { color: var(--app-accent); }
.app-cta h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); margin: 8px 0 12px; }
.app-cta p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 52ch; margin: 0 auto; }
.app-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.app-cta .app-cta-meta { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.65); }
@media (max-width: 980px) {
  .app-hero-grid, .app-band-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-hero { padding-bottom: 56px; }
  .app-section { padding-top: 56px; }
  .app-steps li { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .device:nth-child(2) { margin-top: 32px; }
  .app-band { padding-block: 56px; margin-top: 56px; }
  .app-cta { padding: 44px 22px; }
}
.app-hero-icon { box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 12px 30px rgba(0,0,0,.35); }

.miu-photo { position: relative; margin: 0; }
.miu-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(15,42,68,.16); }
.miu-photo .photo-loc { bottom: 40px; }
.photo-credit { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: right; }

/* Support page */
.support-main { padding-block: 64px 88px; }
.support-card { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px 34px; box-shadow: 0 14px 34px rgba(15,42,68,.07); max-width: 860px; }
.support-card .icon-ring { width: 64px; height: 64px; margin: 0; }
.support-card h2 { font-size: clamp(28px, 3.2vw, 36px); margin: 6px 0 10px; }
.support-email { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 2.8vw, 30px); color: var(--teal); word-break: break-word; margin-bottom: 14px; }
.support-email:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }
.support-card p { color: var(--muted); font-size: 18px; max-width: 58ch; margin-bottom: 22px; }
.support-h2 { font-size: clamp(26px, 3vw, 34px); margin: 72px 0 8px; }
.support-intro { color: var(--muted); font-size: 18px; margin: 0; }
.support-main .app-cards { margin-top: 28px; grid-template-columns: repeat(2, 1fr); max-width: 980px; }
.support-card .support-reply { font-size: 15px; color: var(--muted); margin: -6px 0 18px; }
.support-main .app-card-f a { color: var(--teal); }
@media (max-width: 720px) {
  .support-card { grid-template-columns: 1fr; gap: 16px; padding: 28px 22px; }
  .support-h2 { margin-top: 56px; }
  .support-main .app-cards { grid-template-columns: 1fr; }
}
