/* App page additions to the cinematic system (css/stc.css). Written by Scripts/stc_app.py; the same file serves
   Habla and Sori. Colours and type come from the system's tokens. Contents: anchors, hero Buy row, the walk,
   capture rows, price, questions, and the license and support pages. */

[id] { scroll-margin-top: calc(var(--bar-h) + 12px); }
span[lang="ko"] { white-space: nowrap; }   /* a Korean name inside English never splits between syllables */

/* ---------- Hero: the app's name above the headline, Buy and Download where the home page has its cities ---------- */
.hero-app { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hero-app img { width: 44px; height: 44px; margin: -4px 0 -4px -5px; }
.hero-app b { font-weight: 800; }
.hero-get { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 0; height: var(--strip-h); display: flex; align-items: center; gap: 12px; border-top: 2px solid rgba(255,255,255,.3); }
.hero-get .btn { min-height: 50px; }
.hero-get .btn-buy:hover, .hero-get .btn-dl:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero-get .handheld-note { display: none; }
.hero-fine { margin-left: auto; padding-left: 16px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.84); max-width: 50ch; text-align: right; }

/* Over the opening photograph the hero's own Buy row is enough; the header's pair arrives with the solid header. */
.js .bar:not(.solid) .bar-cta { opacity: 0; visibility: hidden; }
.bar-cta { transition: opacity .3s ease, visibility .3s; }

/* ---------- White bands: a heading and what follows ---------- */
.band { background: var(--white); padding: clamp(88px, 11vw, 160px) var(--pad) clamp(56px, 7vw, 96px); }
.band > h2, .price-h { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.04em; word-spacing: .08em; line-height: 1; text-wrap: balance; }
.walk-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.walk-head > p { font-size: var(--t-lead); color: var(--mute); max-width: 46ch; padding-bottom: 6px; }

/* ---------- The walk: a tall photograph stays while three units pass beside it ---------- */
.leg { position: relative; display: grid; grid-template-columns: 46fr 54fr; background: var(--paper); }
.leg.flip { grid-template-columns: 54fr 46fr; }
.leg.flip .leg-photo { order: 2; }
.leg-photo { position: sticky; top: 0; height: var(--screen); min-height: 520px; align-self: start; }
.leg-text { padding: 120px clamp(28px, 6.6vw, 104px) 132px; min-width: 0; }
.stops { list-style: none; margin-left: 6px; border-left: 2px solid var(--ink); }
.stop { position: relative; padding: 0 0 84px 36px; }
.stop:last-child { padding-bottom: 6px; }
.stop::before { content: ""; position: absolute; left: -9px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.stop-n { font-size: var(--t-small); font-weight: 600; color: var(--mute); }
.stop h3 { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.035em; word-spacing: .06em; line-height: 1.05; margin-top: 6px; }
.stop-d { font-size: 17px; line-height: 1.5; color: var(--mute); max-width: 42ch; margin-top: 12px; }
.stop .line { margin-top: 26px; }
.stop .line--s .say { font-size: clamp(28px, 3.1vw, 48px); }
.stop .line--s .say:lang(ko) { font-size: clamp(26px, 2.8vw, 42px); }

/* ---------- Real captures, shown large ---------- */
.app--rows { padding-top: clamp(40px, 5vw, 72px); }
.app-row + .app-row { margin-top: clamp(80px, 10vw, 152px); }
.app-row.wide { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: clamp(32px, 4.5vw, 64px); }
.app-row.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.app-row.flip .shot { order: 2; }
.app-row.flip.wide { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
.app-row.stack { grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.app-row.stack .app-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px clamp(32px, 6vw, 96px); align-items: start; }
.app-row.stack .app-text > h2 { grid-row: span 2; }
.app-row.stack .app-text > p:first-of-type { margin-top: 0; }
.app-row.stack .app-text > :not(h2) { grid-column: 2; }
.points, .ticks { list-style: none; margin-top: 30px; max-width: 48ch; }
.points li { font-size: 17px; line-height: 1.5; color: var(--mute); padding: 16px 0; border-top: 1px solid var(--rule); }
.points b { display: block; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.ticks li { font-size: 17px; line-height: 1.45; padding: 12px 0; border-top: 1px solid var(--rule); }
.ticks li:last-child, .points li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- Price ---------- */
.price { background: var(--paper); padding: clamp(88px, 11vw, 160px) var(--pad); }
.price-h { font-size: clamp(38px, 6.1vw, 100px); line-height: .98; }
.price-h span { display: block; }
.price-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
.price-main > p { font-size: var(--t-lead); max-width: 40ch; }
.price-main > .fine { font-size: 14px; color: var(--mute); margin-top: 20px; max-width: 52ch; }
.facts { list-style: none; border-top: 1px solid var(--rule); }
.facts li { font-size: 17px; line-height: 1.5; color: var(--mute); padding: 17px 0; border-bottom: 1px solid var(--rule); }
.facts b { color: var(--ink); font-weight: 700; }

/* ---------- Questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(88px, 11vw, 160px); }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: var(--t-lead); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--ink); transition: transform .2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { font-size: 17px; line-height: 1.55; color: var(--mute); max-width: 60ch; padding: 0 0 26px; }
.faq-more { font-size: 17px; color: var(--mute); margin-top: 26px; }
.close .deal .more { margin-right: 22px; }

/* ---------- License and support pages (thanks.html, support.html) on the system's plain .doc page ---------- */
.doc .lede { font-size: var(--t-lead); color: var(--mute); max-width: 62ch; margin-top: 22px; }
.doc-body { max-width: 720px; }
.doc-body h2 { line-height: 1.2; }
.handheld .doc-body p a[data-download] { display: inline; }   /* a link inside a sentence stays a link */
.doc-body p, .doc-body li { font-size: var(--t-body); line-height: 1.55; }
.doc-body p { margin-top: 16px; }
.doc-body h2 + p, .doc-body h2 + ul, .doc-body h2 + ol { margin-top: 12px; }
.doc-body ul, .doc-body ol { margin-top: 12px; padding-left: 1.15em; }
.doc-body li + li { margin-top: 10px; }
.doc-body .cta { margin-top: 20px; }
.doc-body button.btn { border: 0; }
.callout { margin-top: 34px; padding: clamp(22px, 3vw, 34px); background: var(--paper); border-radius: 6px; }
.doc .callout h2 { margin-top: 0; }
.keybox { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 19px; line-height: 1.4; word-break: break-all; -webkit-user-select: all; user-select: all; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; }

/* ---------- Tablet and down ---------- */
@media (max-width: 1099px) {
  .hero-app { margin-bottom: 14px; }
  .leg-text { padding: 96px clamp(24px, 5vw, 56px) 108px; }
  .stop { padding-bottom: 68px; }
}
@media (max-width: 1099px) {   /* captures go full width, so their text stays readable */
  .app--rows .app-row, .app-row.wide, .app-row.flip, .app-row.flip.wide { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .app-row.flip .shot { order: 0; }
  .app--rows .app-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px clamp(28px, 5vw, 64px); align-items: start; }
  .app--rows .app-text > h2 { grid-row: span 9; }
  .app--rows .app-text > :not(h2) { grid-column: 2; }
  .app--rows .app-text > p:first-of-type, .app--rows .app-text > .points:first-child { margin-top: 0; }
}
@media (max-width: 899px) {
  .app--rows .app-text { display: block; }
  .app--rows .app-text > p:first-of-type { margin-top: 22px; }
  .price-body, .faq, .walk-head { grid-template-columns: minmax(0, 1fr); }
  .walk-head { gap: 24px; }
  .hero-fine { max-width: 34ch; }
}
@media (max-width: 699px) {
  .hero-app { font-size: 15px; margin-bottom: 10px; }
  .hero-app img { width: 36px; height: 36px; }
  .hero-get .btn-dl { display: none; }
  .hero-get .btn { min-height: 46px; padding: 0 18px; font-size: 16px; }
  .hero-fine { font-size: 14px; line-height: 1.35; padding-left: 4px; text-align: left; margin-left: 0; max-width: 16ch; }
  .hf-more { display: none; }
  .leg, .leg.flip { grid-template-columns: minmax(0, 1fr); }
  .leg.flip .leg-photo { order: 0; }
  .leg-photo { position: relative; height: 112vw; max-height: 620px; min-height: 0; }
  .leg-text { padding: 44px var(--pad) 72px; }
  .stop { padding: 0 0 52px 26px; }
  .stop-d { font-size: 16px; }
  .stop .line { margin-top: 20px; }
  .stop .line--s .say { font-size: 27px; }
  .stop .line--s .say:lang(ko) { font-size: 24px; }
  .faq summary { font-size: 18px; padding: 18px 40px 18px 0; }
  .close-body { padding-top: min(68vw, 320px); }   /* let the night scene show above the last line */
  .keybox { font-size: 16px; }
  .bar-links .bar-dl { display: inline; }
  .bar-links { gap: 16px; }
}
