/* Therafolio product site — page-specific components.
   The design system itself lives in style.css (synced from the repo root).
   The shared pieces are copied from sites/bitstrom/site.css. */

/* header: app icon next to the product wordmark */
.product-mark { display: inline-flex; align-items: center; gap: 10px; }
.product-mark-icon { inline-size: 28px; block-size: 28px; border-radius: 22.5%; }
/* narrow phones: icon-only wordmark so the nav never collides */
@media (max-width: 519px) {
  .product-mark-name { display: none; }
}

/* language menu — current code highlighted like selected text (a tight
   light-gray rectangle behind it, in the site's neutral palette); click
   stacks the other codes below, text starts aligned. Pure <details>, no JS. */
.lang-menu { position: relative; display: inline-block; }
.lang-chip {
  display: inline-block;
  background: var(--line); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.82rem;
  padding: 2px 6px; border-radius: 3px;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.lang-menu summary {
  list-style: none; cursor: pointer; padding-block: 8px;
  display: inline-block;   /* shrink-wrap so the chip starts on the menu's edge */
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover .lang-chip { background: var(--ink); color: var(--accent-ink); }
/* open list: stacked, each chip's text start aligned with the summary's */
.lang-menu ul {
  position: absolute; inset-inline-start: 0; inset-block-start: 100%;
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 60;
}
.lang-menu ul a.lang-chip { text-decoration: none; color: var(--ink); }
.lang-menu ul a.lang-chip:hover { background: var(--ink); color: var(--accent-ink); }

/* hero: large app icon above the overline */
.product-hero-icon {
  inline-size: clamp(72px, 10vw, 96px); block-size: auto;
  border-radius: 22.5%; margin-block-end: 24px;
  outline: 1px solid rgba(29, 29, 31, 0.1); outline-offset: -1px;
}

/* official App Store badges; unlinked until the listing is live, so the
   coming-soon chip sits on the same baseline as the badge art. */
.store-badge { display: inline-flex; align-items: center; }
.store-badge img { block-size: 52px; inline-size: auto; display: block; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

/* features: six caps sit better on three columns */
@media (min-width: 1080px) {
  .cap-grid--three { grid-template-columns: repeat(3, 1fr); }
}

a.store-badge { transition: opacity 0.2s ease; }
a.store-badge:hover { opacity: 0.82; }

/* screenshots: a grid of buttons opening a lightbox (inline script) — copied
   from apps/app-page.css, the tier-2 family, so both tiers look alike */
/* screenshots */
.shot-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .shot-grid { grid-template-columns: repeat(2, 1fr); } }
/* phone captures: two across on a phone, all of them in one row from 900px */
.shot-grid--phone { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .shot-grid--phone { grid-template-columns: repeat(5, 1fr); } }
.shot {
  inline-size: 100%; block-size: auto;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface); display: block;
}

/* each screenshot is a button that opens the lightbox (see the inline
   script in app-page-template.html). Reset button chrome WITHOUT touching
   opacity/transform, so the .reveal animation on the same element survives. */
.shot-btn {
  display: block; inline-size: 100%; padding: 0; border: 0;
  background: none; font: inherit; color: inherit; cursor: zoom-in;
  -webkit-appearance: none; appearance: none;
}
.shot-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-card); }

/* lightbox overlay (one per page, built by the inline script) */
.shot-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(15, 15, 17, 0.82);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.shot-modal.is-open { display: flex; }
.shot-modal-img {
  max-inline-size: min(2560px, 92vw); max-block-size: 90vh;
  inline-size: auto; block-size: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  background: var(--surface);
}
.shot-modal-close {
  position: absolute;
  inset-block-start: clamp(10px, 2vw, 20px); inset-inline-end: clamp(10px, 2vw, 20px);
  inline-size: 44px; block-size: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%; cursor: pointer;
  transition: background 0.15s ease-out;
}
.shot-modal-close:hover { background: rgba(255, 255, 255, 0.24); }
.shot-modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .shot-modal.is-open { animation: shot-modal-in 0.18s ease-out; }
  @keyframes shot-modal-in { from { opacity: 0; } to { opacity: 1; } }
}


/* ---------- Therafolio additions ---------- */

/* Screenshot placeholders — shown only while the "screenshots" flag in
   i18n/_config.json is false. A dashed frame at the Mac window's proportion,
   labelled with what will go there, so the page is honest about the gap. */
.shot-placeholders { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .shot-placeholders { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  border: 1px dashed var(--ink-soft); border-radius: var(--radius-card);
  background: var(--surface);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft);
}

/* a closing sentence under a grid: a limit or a pointer, not a fifth claim */
.section-note { margin-block-start: 28px; max-inline-size: 68ch; color: var(--ink-soft); font-size: 0.95rem; }
.section-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* what the app does not do — a ruled list, plainer than the capability cards */
.not-list { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line); }
.not-list li { padding-block: clamp(16px, 2.5vw, 22px); border-block-end: 1px solid var(--line); }
.not-list h3 { margin-block-end: 6px; }
.not-list p { color: var(--ink-soft); max-inline-size: 68ch; }

/* the four download routes: badge beside what the route is */
.routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.route {
  display: grid; gap: 14px; align-content: start;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface);
}
.route h3 { margin-block-end: 6px; }
.route p { color: var(--ink-soft); font-size: 0.95rem; margin-block-end: 10px; }
/* an unlinked badge: the route exists, the link does not yet */
span.store-badge img { opacity: 0.55; }
.route-warning { font-size: 0.9rem; }
.hero-actions .chip { margin: 0; }

/* the IPA guidance under the AI cards: a boxed note, because it is a limit
   the reader must not miss, not a footnote */
.ai-guidance {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface); color: var(--ink);
}
