/* Mobile apps on Google Play — download page cards and the home page band.
   Flat: borders only, no gradients or drop shadows. Uses the tokens from main25.css. */

/* "Get it on Google Play" badge, drawn in HTML so it stays sharp and scales with text. */
.play-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 12px; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 10px; text-decoration: none; line-height: 1; flex-shrink: 0; transition: background 0.15s, border-color 0.15s; }
.play-badge:hover { background: #1f1f1f; border-color: #d0d0d0; color: #fff; }
.play-badge:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.play-badge svg { width: 22px; height: 24px; flex-shrink: 0; }
.play-badge .pb-txt { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.play-badge small { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.play-badge b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }

/* App icon: the icons are full-bleed squares, so round them and add a hairline edge. */
.app-icon { display: block; border-radius: 22%; border: 1px solid var(--border); background: #fff; flex-shrink: 0; object-fit: cover; }

/* ── Download page: one card per app ─────────────────────────────── */
section.apps-section { border-top: 1px solid var(--border); background: var(--surface); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.app-card { display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: border-color 0.2s; }
.app-card:hover { border-color: var(--border-strong); }
.ac-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; min-width: 0; }
.ac-head .app-icon { width: 64px; height: 64px; }
.ac-title { min-width: 0; }
.ac-title h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.ac-title span { display: block; font-size: 13px; font-weight: 600; color: var(--textmuted); margin-top: 2px; }
.ac-aud { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); background: var(--tint); padding: 5px 10px; border-radius: 8px; line-height: 1.4; margin-bottom: 12px; }
.ac-pitch { font-size: 14.5px; color: var(--textsub); line-height: 1.65; margin-bottom: 18px; }
.ac-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; padding: 0; }
.ac-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); line-height: 1.5; }
.ac-feats svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.ac-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.ac-qr { display: flex; align-items: center; gap: 8px; }
.ac-qr img { width: 64px; height: 64px; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.ac-qr span { font-size: 11.5px; font-weight: 600; color: var(--textmuted); line-height: 1.35; max-width: 56px; }
.apps-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; font-size: 13.5px; color: var(--textsub); line-height: 1.6; }
.apps-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--primary); }

/* ── Home page: compact band ─────────────────────────────────────── */
section.apps-band { background: var(--surface); border-bottom: 1px solid var(--border); }
.apps-band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-tile { display: flex; flex-direction: column; gap: 14px; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: border-color 0.2s; }
.app-tile:hover { border-color: var(--border-strong); }
.at-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.at-head .app-icon { width: 56px; height: 56px; }
.at-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.at-head span { display: block; font-size: 12.5px; font-weight: 600; color: var(--textmuted); margin-top: 2px; }
.app-tile p { font-size: 14px; color: var(--textsub); line-height: 1.6; flex: 1; }
.app-tile .play-badge { align-self: flex-start; }
.apps-band-more { text-align: center; margin-top: 28px; }
.apps-band-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 8px; font-size: 15px; font-weight: 700; color: var(--primary); text-decoration: none; }
.apps-band-more a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* QR codes only help someone browsing on a computer. */
@media (max-width: 1000px), (hover: none) {
  .ac-qr { display: none; }
}
@media (max-width: 1000px) {
  .app-grid, .apps-band-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .app-card { padding: 22px 18px; }
  .app-tile { padding: 20px 18px; }
  .ac-head .app-icon { width: 56px; height: 56px; }
}

/* ── Mobile apps page ────────────────────────────────────────────── */
.hca-list { display: flex; flex-direction: column; gap: 10px; }
.hca-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; color: var(--text); text-decoration: none; transition: border-color 0.2s; }
.hca-row:hover { border-color: var(--border-strong); }
.hca-row .app-icon { width: 44px; height: 44px; }
.hca-row span { flex: 1; min-width: 0; }
.hca-row b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.hca-row small { display: block; font-size: 12.5px; color: var(--textmuted); }
.hca-arr { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--textmuted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-card { scroll-margin-top: 96px; }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); -webkit-overflow-scrolling: touch; }
.cmp-wrap:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.cmp { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.5; }
.cmp thead th { background: var(--surface2); font-size: 14px; font-weight: 800; vertical-align: middle; }
.cmp thead th span:not(.sr-only) { display: inline-block; vertical-align: middle; margin-left: 10px; }
.cmp thead .app-icon { display: inline-block; width: 32px; height: 32px; vertical-align: middle; }
.cmp tbody th { font-weight: 700; color: var(--text); width: 22%; }
.cmp td { color: var(--textsub); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: none; }
.cmp th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
.cmp thead th:first-child { background: var(--surface2); }
.cmp-yes { display: inline-flex; gap: 8px; align-items: flex-start; color: var(--text); }
.cmp-yes svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.cmp-no { color: var(--textmuted); font-weight: 700; }
.cmp-get td { vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ma-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; }
.ma-steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.ma-n { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint-strong); color: var(--primary); font-weight: 800; font-size: 15px; margin-bottom: 16px; }
.ma-steps h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.ma-steps p { font-size: 14px; color: var(--textsub); line-height: 1.6; }

.ma-faq-wrap { max-width: 820px; }
.ma-faq { border: 1px solid var(--border); border-radius: 14px; background: var(--card); margin-bottom: 10px; }
.ma-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; }
.ma-faq summary::-webkit-details-marker { display: none; }
.ma-faq summary::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-right: 2px solid var(--textmuted); border-bottom: 2px solid var(--textmuted); transform: rotate(45deg); transition: transform 0.15s; }
.ma-faq[open] summary::after { transform: rotate(-135deg); }
.ma-faq p { padding: 0 20px 18px; font-size: 14.5px; color: var(--textsub); line-height: 1.7; }
.ma-faq a, .ma-more a { color: var(--primary); font-weight: 600; }
.ma-more { margin-top: 20px; text-align: center; font-size: 14px; color: var(--textmuted); line-height: 2; }

@media (max-width: 900px) {
  .ma-steps { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .ma-faq summary { padding: 12px 16px; font-size: 15px; }
  .ma-faq p { padding: 0 16px 16px; }
}

/* Phones: the comparison table becomes one card per feature, each value labelled with its app. */
@media (max-width: 640px) {
  .cmp-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .cmp { min-width: 0; display: block; }
  .cmp thead { display: none; }
  .cmp tbody { display: flex; flex-direction: column; gap: 12px; }
  .cmp tr { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 4px 16px 8px; }
  .cmp th, .cmp td { display: block; padding: 0; border: 0; }
  .cmp tbody th { position: static; width: auto; background: none; padding: 12px 0 8px; font-size: 15px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
  .cmp td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 0; font-size: 14px; }
  .cmp td::before { content: attr(data-label); flex-shrink: 0; font-weight: 700; color: var(--text); font-size: 13px; }
  .cmp td { text-align: right; }
  .cmp td::before { text-align: left; }
  .cmp-yes { justify-content: flex-end; }
  .cmp-get td { align-items: center; }
}
