/* ---------- Mobile app splash — page-specific styles ----------
   Loaded after /assets/css/style.css; only overrides where needed.
   ------------------------------------------------------------- */

:root {
  --phone-w: 230px;
  --phone-h: 470px;
  --phone-radius: 28px;
  --pill-shipped-bg: #d6efb1;
  --pill-shipped-fg: #2e5d10;
  --pill-roadmap-bg: #fff1d6;
  --pill-roadmap-fg: #7a5a00;
}

/* ---------- Hero ---------- */
.app-hero {
  background:
    radial-gradient(70% 80% at 20% 20%, rgba(133, 190, 0, 0.12) 0%, transparent 60%),
    radial-gradient(60% 70% at 90% 90%, rgba(13, 37, 64, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ef 100%);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.app-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.app-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.app-hero__lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 56ch;
}
.app-hero__lede strong {
  color: var(--ink);
}
.app-hero__badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.store-badge {
  display: inline-flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  min-width: 160px;
  transition: transform 0.15s ease, background 0.18s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  background: #143356;
  color: var(--white);
}
.store-badge__small {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}
.store-badge__large {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 1px;
}
.app-hero__sub {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0;
}

/* Phone fan in the hero */
.phone-fan {
  position: relative;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-fan__phone {
  position: absolute;
  width: var(--phone-w);
  height: var(--phone-h);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 14px 36px rgba(13, 37, 64, 0.22));
}
.phone-fan__phone--left   { transform: translate(-180px, 12px) rotate(-12deg); }
.phone-fan__phone--center { transform: translate(0, -28px); z-index: 2; }
.phone-fan__phone--right  { transform: translate(180px, 12px) rotate(12deg); }

/* ---------- Quick nav ---------- */
.app-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.4rem;
  justify-content: center;
}
.app-quicknav a {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--brand-green-soft);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.app-quicknav a:hover {
  background: var(--brand-green);
  border-color: var(--brand-green-dark);
  color: var(--ink);
}

/* ---------- Feature rows ---------- */
.app-feature {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.app-feature__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.app-feature__row--reverse .app-feature__visual {
  order: -1;
}
.app-feature__copy h2 {
  margin-top: 0.5rem;
}
.section--ink .app-feature__copy h2,
.section--ink h2 { color: var(--white); }
.app-feature__copy p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.app-feature__copy code {
  background: var(--brand-green-soft);
  color: var(--ink);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.section--ink code {
  background: rgba(133, 190, 0, 0.18);
  color: var(--brand-green);
}

.app-feature__media-note {
  font-size: 0.88rem;
  color: var(--slate);
  border-left: 3px solid var(--brand-green);
  padding-left: 0.85rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.subhead {
  font-size: 1.05rem;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.status-pill--shipped {
  background: var(--pill-shipped-bg);
  color: var(--pill-shipped-fg);
}
.status-pill--roadmap {
  background: var(--pill-roadmap-bg);
  color: var(--pill-roadmap-fg);
}

/* ---------- Step list ---------- */
.step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Check list ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}
.check-list li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--brand-green-dark);
  font-weight: 800;
}

/* ---------- Callout ---------- */
.callout {
  background: var(--brand-green-soft);
  border-left: 4px solid var(--brand-green);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 1.2rem 0;
}
.callout strong { color: var(--ink); }
.callout em { font-style: normal; color: var(--brand-green-dark); font-weight: 600; }

/* ---------- Phone mockup stack ---------- */
.phone-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
}
.phone-stack__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  filter: drop-shadow(0 10px 24px rgba(13, 37, 64, 0.14));
}
.phone-stack__phone svg {
  width: 100%;
  height: auto;
  max-width: 220px;
}
.phone-stack__caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  text-align: center;
}

/* Phone-pair (used for device-to-device share section) */
.phone-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.phone-pair__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  filter: drop-shadow(0 10px 24px rgba(13, 37, 64, 0.14));
}
.phone-pair__phone svg {
  width: 100%;
  height: auto;
  max-width: 220px;
}
.phone-pair__caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
}
.phone-pair__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Coverage table ---------- */
.coverage-table-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0 2.5rem;
}
.coverage-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.coverage-table th, .coverage-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  vertical-align: middle;
}
.coverage-table th {
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  background: rgba(0,0,0,0.15);
}
.coverage-table tbody tr:last-child td {
  border-bottom: 0;
}
.coverage-table a {
  color: var(--brand-green);
  text-decoration: underline;
  text-decoration-color: rgba(133, 190, 0, 0.4);
}
.coverage-table a:hover { color: var(--white); }
.coverage-table code {
  background: rgba(255,255,255,0.07);
  color: var(--brand-green);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.coverage-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.coverage-summary__item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.coverage-summary__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: var(--brand-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.coverage-summary__label {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

/* ---------- CTA ---------- */
.app-cta__lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 1rem auto 2rem;
}
.app-cta__row {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .app-hero__inner,
  .app-feature__row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .app-feature__row--reverse .app-feature__visual { order: 0; }
  .phone-fan { height: 460px; transform: scale(0.85); }
  .coverage-summary { grid-template-columns: 1fr; }
  .phone-stack { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .phone-stack__phone svg { max-width: 100%; }
}
@media (max-width: 640px) {
  .phone-fan { transform: scale(0.7); height: 380px; }
  .app-hero__title { font-size: 2.1rem; }
  .phone-pair { grid-template-columns: 1fr; gap: 1.5rem; }
  .phone-pair__arrow svg { transform: rotate(90deg); }
}
