/* apps/apps.html only. Loads after summit.css and site.css: the icon strip, the app
   catalog (cards, the detail panel that opens beneath its card's row, store badges,
   coming-soon and web-app treatments), the support form, and the Legal strip.

   The catalog markup and its inline script are unchanged from the pre-Summit page, so
   the class names below are a contract with that script: .app-card.is-open,
   .app-detail[hidden], .app-toggle[aria-expanded], .app-close, and the support form's
   [aria-invalid] fields with their .field-error slots. */

/* ---------------------------------------------------------------- hero */
.page-hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); animation: ping 2.4s infinite; }

/* ---------------------------------------------------------------- icon strip */
.apps-strip { padding: 18px 0; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; transition: background-color .5s; }
.apps-strip .marquee-track { gap: 26px; animation-duration: 64s; }
.apps-strip .strip-app { display: inline-flex; align-items: center; gap: 12px; }
.strip-app img { width: 34px; height: 34px; border-radius: var(--radius); object-fit: cover; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- catalog grid */
/* Compact cards four across. A card's detail panel is its grid sibling spanning the
   whole row; grid-auto-flow: dense lets the cards after it back-fill the rest of the
   card's row, so the panel always lands directly beneath the row its card is in. */
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; align-items: stretch; counter-reset: app; }
.app { display: contents; }

.app-card {
  --lift: 0px;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 44px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  background: radial-gradient(120% 70% at 50% 0%, rgba(194, 161, 77, .13), transparent 62%) no-repeat 50% -260px / 100% 100%, var(--surface);
  counter-increment: app; transform: translateY(var(--lift));
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease), background-position .6s var(--ease), background-color .5s;
  -webkit-tap-highlight-color: transparent;
}
/* brass bar along the top edge: grows in on hover, stays on the open card */
.app-card::before {
  content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, #C2A14D, #D9B65C); transform: scaleX(0); transform-origin: 50% 50%; transition: transform .5s var(--ease);
}
/* running number, top left */
.app-card-text::before {
  content: counter(app, decimal-leading-zero); position: absolute; left: 16px; top: 13px;
  font-family: var(--display); font-weight: 600; font-size: .86rem; letter-spacing: .14em; color: var(--text-3); transition: color .3s;
}
@media (hover: hover) {
  .app-card:hover { --lift: -6px; border-color: color-mix(in srgb, var(--brass) 70%, transparent); box-shadow: var(--shadow); background-position: 50% 0; }
  .app-card:hover::before { transform: scaleX(1); }
  .app-card:hover .app-card-text::before { color: var(--accent); }
    .app-card:hover .app-toggle { border-color: var(--brass); color: var(--accent); }
  .app-card:hover .app-toggle-caret { transform: translateY(2px); }
}
.app-card.is-open::before { transform: scaleX(1); }
.app-card.is-open .app-card-text::before { color: var(--accent); }
.app-card:active { --lift: -2px; transition-duration: .12s; }
.app-card.is-open {
  --lift: 0px; border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass), var(--shadow); background-position: 50% 0;
  background-color: color-mix(in srgb, var(--brass) 7%, transparent);
}
/* pointer from the open card down to its panel; sits in the 16px row gap */
.app-card.is-open::after {
  content: ''; position: absolute; left: 50%; bottom: -17px; margin-left: -10px;
  border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 11px solid var(--brass);
  animation: pointer-in .4s var(--ease) both;
}
@keyframes pointer-in { from { opacity: 0; transform: translateY(6px); } }

.app-icon {
  width: 76px; height: 76px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; margin-bottom: 18px;
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
:root[data-theme="light"] .app-icon { box-shadow: 0 16px 28px -14px rgba(12, 31, 63, .5), 0 0 0 1px var(--line); }
.app-card:hover > .app-icon { transform: translateY(-4px) scale(1.06) rotate(-2deg); box-shadow: 0 26px 36px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(194, 161, 77, .5); }
.app-card.is-open > .app-icon { transform: scale(1.04); box-shadow: 0 20px 32px -14px rgba(0, 0, 0, .7), 0 0 0 2px var(--brass); }

.app-card-text { flex: 1; }
.app-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 1.6rem; line-height: 1; margin-bottom: 8px; }
.app-category { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; line-height: 1.3; color: var(--accent); margin-bottom: 12px; }
.app-tagline { font-size: .93rem; line-height: 1.5; color: var(--text-2); margin-bottom: 18px; }

/* platform pills: live ones link to the store, upcoming ones are dashed */
.app-platforms { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.app-plat {
  position: relative; display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; color: var(--text); text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s, transform .15s var(--ease);
}
a.app-plat::after { content: ''; position: absolute; inset: -9px -3px; }   /* 44px hit area, same look */
a.app-plat:hover, a.app-plat:focus-visible { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 16%, transparent); }
a.app-plat:active { transform: scale(.94); }
.app-plat.is-soon { color: var(--text-3); border-style: dashed; }
.app-plat.is-soon::after { content: " soon"; font-weight: 500; text-transform: none; letter-spacing: 0; }

.app-toggle {
  min-height: 44px; margin-top: auto; padding: 8px 18px 8px 20px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; font-weight: 700; letter-spacing: .02em; color: var(--text);
  transition: border-color .2s, background-color .25s, color .25s, transform .15s var(--ease);
}
.app-toggle-caret { display: inline-block; font-size: .72rem; transition: transform .45s var(--ease); }
.app-toggle:active { transform: scale(.95); }
.app-card.is-open .app-toggle { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.app-card.is-open .app-toggle-caret { transform: rotate(180deg); }

/* ---------------------------------------------------------------- detail panel */
.app-detail {
  grid-column: 1 / -1; position: relative; padding: clamp(24px, 3.4vw, 44px);
  background: radial-gradient(70% 120% at 100% 0%, rgba(194, 161, 77, .1), transparent 60%), var(--bg-2);
  border: 1px solid var(--line); border-top: 2px solid var(--brass); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: panel-in .6s var(--ease);
}
:root[data-theme="light"] .app-detail { background: radial-gradient(70% 120% at 100% 0%, rgba(194, 161, 77, .14), transparent 60%), var(--bg-3); }
/* the clip grows past the edges so the panel's shadow is not cut while it opens */
@keyframes panel-in { from { opacity: 0; transform: translateY(-12px); clip-path: inset(-10px -10px 100% -10px); } to { opacity: 1; transform: none; clip-path: inset(-10px -10px -90px -10px); } }

.app-detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.app-detail-head .app-icon { width: 60px; height: 60px; margin: 0; }
.app-detail-head > div { min-width: 0; }
.app-detail-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: .95; }
.app-detail-head .app-category { margin: 6px 0 0; }
.app-close {
  margin-left: auto; flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: 1.6rem; line-height: 1; color: var(--text-2);
  transition: border-color .2s, color .2s, background-color .2s, transform .45s var(--ease);
}
.app-close:hover, .app-close:focus-visible { border-color: var(--brass); color: var(--text); background: var(--surface-2); transform: rotate(90deg); }
.app-close:active { transform: rotate(90deg) scale(.88); transition-duration: .1s; }

.app-detail-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.app-detail-main { position: sticky; top: 104px; }
.app-desc { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; margin-bottom: 26px; }

.app-features { list-style: none; padding: 4px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
/* hanging indent, not flex: a flex row would turn a bolded lead-in into its own column */
.app-features li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--line); font-size: .96rem; line-height: 1.55; color: var(--text-2); }
.app-features li:last-child { border-bottom: 0; }
.app-features strong { color: var(--text); font-weight: 700; }
.feature-check {
  position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; color: transparent; font-size: 0;
  background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23071225' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.app-detail:not([hidden]) .app-features li { animation: feat-in .55s var(--ease) var(--d, .44s) both; }
.app-features li:nth-child(1) { --d: .12s; } .app-features li:nth-child(2) { --d: .16s; } .app-features li:nth-child(3) { --d: .2s; }
.app-features li:nth-child(4) { --d: .24s; } .app-features li:nth-child(5) { --d: .28s; } .app-features li:nth-child(6) { --d: .32s; }
.app-features li:nth-child(7) { --d: .36s; } .app-features li:nth-child(8) { --d: .4s; }
@keyframes feat-in { from { opacity: 0; transform: translateX(14px); } }

.feature-link, .app-more {
  color: var(--accent); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), opacity .15s;
}
.feature-link:hover, .app-more:hover { background-size: 100% 1.5px; }
.app-more { display: inline-block; margin-top: 20px; padding: 10px 0 8px; font-weight: 700; background-position: 0 calc(100% - 4px); }
.app-more:active, .feature-link:active { opacity: .6; }

/* store badges */
.store-badges { display: flex; align-items: flex-end; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.store-badge-link { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; border-radius: var(--radius); }
a.store-badge-link { transition: transform .3s var(--ease), filter .3s; }
a.store-badge-link:hover { transform: translateY(-3px); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); }
a.store-badge-link:active { transform: scale(.96); transition-duration: .1s; }
.apple-badge { height: 52px; width: auto; display: block; }
/* cancel the transparent padding baked into the Google badge canvas, top and bottom */
.google-badge { height: 78px; width: auto; max-width: none; display: block; margin-top: -13px; margin-bottom: -13px; }
.store-badge-link.badge-coming-soon { cursor: default; }
.store-badge-link.badge-coming-soon img { opacity: .4; filter: grayscale(.4); }
.badge-cs-label { font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* web apps: one outlined button, deliberately not dressed as a store badge */
.web-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border: 1px solid var(--brass); border-radius: var(--radius);
  color: var(--text); font-size: .98rem; font-weight: 700; white-space: nowrap; transition: background-color .25s, color .25s, box-shadow .3s;
}
.web-btn::after {
  content: ''; width: 14px; height: 14px; background: currentColor; transition: transform .35s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
a:hover > .web-btn { background: var(--brass); color: var(--on-brass); box-shadow: var(--glow); }
a:hover > .web-btn::after { transform: translate(2px, -2px); }
.store-badges.badges-3up { gap: 12px; }
.badges-3up .apple-badge { height: 44px; }
.badges-3up .web-btn { height: 44px; }
/* the Google badge art sits in 41px of transparent padding on a 646x250 canvas */
.badges-3up .google-badge { height: 66px; margin: -11px -10px -11px; }

.beta-interest-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 360px; min-height: 48px; margin-top: 16px;
  padding: 11px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: .92rem; font-weight: 700; color: var(--text-2); text-align: center;
  transition: border-color .2s, color .2s, background-color .2s, transform .15s var(--ease);
}
.beta-interest-btn:hover { border-style: solid; border-color: var(--brass); color: var(--text); background: color-mix(in srgb, var(--brass) 10%, transparent); }
.beta-interest-btn:active { transform: scale(.97); }

/* closing tile: fills what the last row leaves empty (13 cards: 3 cells at four across) */
.apps-help {
  grid-column: span 3; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: clamp(24px, 3vw, 40px); border: 1px dashed var(--line-2); border-radius: var(--radius); overflow: hidden; isolation: isolate;
}
.apps-help::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 120% at 100% 100%, rgba(194, 161, 77, .14), transparent 70%);
}
.apps-help-tag { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: .86rem; color: var(--text-3); }
.apps-help-title { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: .95; max-width: 24ch; text-wrap: balance; }
.apps-help-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 14px; }
.btn-down:hover .btn-arrow { transform: translateY(3px); }

/* cards drift up as each row scrolls in, one column a beat behind the last */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .app-card { animation: card-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .app:nth-child(4n+2) .app-card { animation-range: entry 8% entry 78%; }
    .app:nth-child(4n+3) .app-card { animation-range: entry 16% entry 86%; }
    .app:nth-child(4n+4) .app-card { animation-range: entry 24% entry 94%; }
    @keyframes card-in { from { opacity: 0; translate: 0 48px; } }
  }
}

/* ---------------------------------------------------------------- support */
.support { background: var(--bg-2); transition: background-color .5s; }
.support-grid { display: grid; grid-template-columns: 1fr minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.support-head { position: sticky; top: 120px; }
.support-head .display { font-size: clamp(2.7rem, 6.4vw, 6rem); }
.support-mail { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); }

.form-card {
  position: relative; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(194, 161, 77, .1), transparent 50%), var(--bg); box-shadow: var(--shadow);
}
:root[data-theme="light"] .form-card { background: linear-gradient(160deg, rgba(194, 161, 77, .12), transparent 50%), var(--bg-3); }
.form-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #C2A14D, #D9B65C); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 8px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .86rem; color: var(--text-2); transition: color .2s; }
.form-row:focus-within label { color: var(--accent); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font-family: var(--sans); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-3); opacity: 1; }
.form-row input:hover, .form-row select:hover, .form-row textarea:hover { border-color: var(--text-3); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(194, 161, 77, .22); }
.form-row textarea { resize: vertical; min-height: 140px; }
.form-row select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D9B65C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
:root[data-theme="light"] .form-row select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A5F1C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.form-row select option { background: var(--bg); color: var(--text); }
.form-row [aria-invalid="true"] { border-color: var(--alert); box-shadow: 0 0 0 3px var(--alert-soft); }
/* dark theme: Guidon Red is too dark to be text on navy, so the message is light text on a red rule */
.field-error {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--alert); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--alert-soft); color: var(--text); font-size: .9rem; font-weight: 600; animation: err-in .35s var(--ease);
}
:root[data-theme="light"] .field-error { color: var(--alert); }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }
.btn-primary { margin-top: 6px; }
.form-note { margin-top: 14px; font-size: .88rem; color: var(--text-3); text-align: center; }

/* ---------------------------------------------------------------- closing */
.final-badge { height: 128px; width: auto; margin: 0 auto 34px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .4)); animation: badge-float 7s ease-in-out infinite; }
@keyframes badge-float { 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- legal strip */
/* sits on the footer's Midnight in both themes, so it reads as part of the footer */
.legal-bar { background: #071225; color: rgba(245, 242, 234, .8); border-top: 1px solid rgba(216, 210, 194, .12); padding: 56px 0 40px; }
.legal-inner { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 22px; }
.legal-heading {
  display: flex; align-items: center; gap: 12px; padding-top: 6px; font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .2em; font-size: .9rem; color: #D9B65C;
}
.legal-heading::after { content: ''; width: 36px; height: 1.5px; background: #C2A14D; }
.legal-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.legal-app { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 1.08rem; color: #F5F2EA; margin-bottom: 2px; }
.legal-group ul { list-style: none; }
.legal-group a {
  display: inline-block; padding: 11px 0; font-size: .9rem; line-height: 1.35; color: rgba(245, 242, 234, .74); text-decoration: none;
  background: linear-gradient(#D9B65C, #D9B65C) 0 calc(100% - 8px) / 0 1.5px no-repeat; transition: color .2s, background-size .35s var(--ease), opacity .15s;
}
.legal-group a:hover, .legal-group a:focus-visible { color: #F5F2EA; background-size: 100% 1.5px; }
.legal-group a:active { opacity: .6; }
.legal-bar + .foot { border-top: 0; padding-top: 24px; }
.legal-bar + .foot .foot-inner { padding-top: 32px; border-top: 1px solid rgba(216, 210, 194, .12); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .support-grid { grid-template-columns: 1fr; }
  .support-head { position: static; }
}
@media (max-width: 1024px) {
  .apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apps-help { grid-column: span 2; }
  @supports (animation-timeline: view()) {
    .app:nth-child(n) .app-card { animation-range: entry 0% entry 70%; }
    .app:nth-child(3n+2) .app-card { animation-range: entry 10% entry 80%; }
    .app:nth-child(3n+3) .app-card { animation-range: entry 20% entry 90%; }
  }
}
@media (max-width: 768px) {
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps-help { grid-column: span 1; }
  @supports (animation-timeline: view()) {
    .app:nth-child(n) .app-card { animation-range: entry 0% entry 70%; }
    .app:nth-child(2n) .app-card { animation-range: entry 12% entry 82%; }
  }
  .app-detail-cols { grid-template-columns: 1fr; gap: 26px; }
  .app-detail-main { position: static; }
}
/* phones: one column, each card a horizontal row so thirteen of them stay short */
@media (max-width: 560px) {
  .apps-strip { padding: 14px 0; }
  .apps-grid { grid-template-columns: 1fr; gap: 12px; }
  .apps-help { padding: 22px 18px; }
  @supports (animation-timeline: view()) { .app:nth-child(n) .app-card { animation-range: entry 0% entry 60%; } }
  .app-card {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "icon text text" "plats plats btn";
    column-gap: 14px; row-gap: 14px; align-items: center; text-align: left; padding: 16px 16px 14px;
    background-position: 0 -260px;
  }
  @media (hover: hover) { .app-card:hover { --lift: -3px; } .app-card:hover > .app-icon { transform: scale(1.04) rotate(-2deg); } }
  .app-card-text::before { display: none; }
  .app-card > .app-icon { grid-area: icon; }
  .app-card .app-icon { width: 56px; height: 56px; margin-bottom: 0; }
  .app-card-text { grid-area: text; min-width: 0; }
  .app-name { font-size: 1.4rem; margin-bottom: 4px; }
  .app-category { margin-bottom: 4px; letter-spacing: .12em; }
  .app-tagline { margin-bottom: 0; font-size: .88rem; }
  .app-platforms { grid-area: plats; justify-content: flex-start; margin: 0; gap: 6px; }
  .app-toggle { grid-area: btn; margin: 0; justify-self: end; padding: 8px 14px 8px 16px; }
  .app-card.is-open::after { left: 28px; margin-left: 0; bottom: -13px; border-left-width: 8px; border-right-width: 8px; border-bottom-width: 9px; }
  .app-detail { padding: 20px 18px 24px; }
  .app-detail-head { gap: 14px; margin-bottom: 20px; padding-bottom: 18px; }
  .app-detail-head .app-icon { width: 48px; height: 48px; }
  .app-detail-name { font-size: 1.9rem; }
  .app-features { padding: 2px 14px; }
  .app-features li { font-size: .93rem; }
  .apple-badge { height: 44px; }
  .google-badge { height: 66px; margin-top: -11px; margin-bottom: -11px; }
  .web-btn { height: 44px; }
  .final-badge { height: 104px; }
  .legal-bar { padding: 40px 0 24px; }
  .legal-groups { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
}
/* very narrow (a phone at 200% zoom is about 195px): stack the card row */
@media (max-width: 360px) {
  .app-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "text" "plats" "btn"; }
  .app-category { letter-spacing: .06em; }
  .app-card-text, .app-detail-head > div { overflow-wrap: anywhere; }
  .app-toggle { justify-self: start; }
  .legal-groups { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .app-card, .app-card > .app-icon, .app-toggle-caret { transition: none; }
  .app-card:hover, .app-card:active { --lift: 0px; }
  .app-card:hover > .app-icon { transform: none; }
  .app-detail, .app-detail .app-features li, .app-card.is-open::after, .field-error, .final-badge, .page-hero .eyebrow .dot { animation: none !important; }
}
