/* CHAGO English page — additions over the shared site.css (copied next to this file). Solid surfaces, no decorative gradients. */

/* Language switch in the sticky local nav (KO page has the same rule) */
.lang-link {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--fg-2); white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.lang-link:hover { color: #fff; border-color: var(--fg-2); }

/* Hero (r2): the detailer photo fills the sticky stage of a KO-style scroll scene. motion.mjs (photoHero) scales the photo,
   raises the black veil (.12 → .68) and reveals the headline, then hands the frame over to charcoal like the KO lens hero.
   Static, reduced-motion and no-JS show the readable end state: KO .hero-shade default .55 with the headline visible. */
.photo-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; transform-origin: 58% 50%; }
.photo-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.scene-photo-hero h1 span { display: inline; }
.scene-photo-hero .lead { max-width: 560px; }
.photo-hero-cue {
  position: absolute; left: 50%; bottom: 6svh; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px;
  background: rgba(20, 20, 21, .62); font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap;
}
.photo-hero-cue span { color: var(--cyan); font-size: 16px; }
html:not(.motion-on) .photo-hero-cue { display: none; }
.motion-on .scene-photo-hero { height: 220svh; }
.motion-on .scene-photo-hero .hero-shade { --shade: .12; }
.motion-on .scene-photo-hero .hero-copy { opacity: 0; } /* the photo first, until the first scroll frame */

/* Origin box without the KO beta chip (r3): text and button only */
.beta-plain { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 900px) { .beta-plain { grid-template-columns: minmax(0, 1fr); } }

/* How to start: the software card opens the download cards below it (r2); hardware card is a disabled button */
.en-start .apply-head h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.16; max-width: 900px; }
.start-heading { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; margin: 56px 0 24px; }
a.plan { color: inherit; }
.plan-go .plan-foot { color: var(--cyan); }
.plan-go:hover .plan-foot { color: #55e4f7; }
.plan-soon { cursor: not-allowed; color: var(--fg); }
.plan-soon:hover { transform: none; border-color: var(--line); }
.plan-soon .plan-art { background: var(--ink); }
.plan-soon .plan-art img { opacity: .5; filter: grayscale(1); }
.plan-soon .plan-name { color: var(--muted); }
.plan-soon .plan-status { color: var(--fg-2); }
.start-foot { display: flex; justify-content: flex-end; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Free plan (2026-11-04 r5): under the plan cards and always shown, the web app its cyan button; one lower surface like the
   download guide (--ink-2), no gradients or shadows. Phones: one column and a full-width button. */
.en-free {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center;
  margin-top: 14px; padding: 26px 28px; border-radius: 24px; background: var(--ink-2);
}
.en-free-title { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--fg); }
.en-free-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.en-free-list li { position: relative; padding-left: 20px; max-width: 780px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.en-free-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
@media (max-width: 900px) { .en-free { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@media (max-width: 700px) { .en-free { padding: 22px 18px; border-radius: 22px; } .en-free-app { width: 100%; } }
/* r6: Gemini's how-to-start line directly above the app button, the two in the right column (under the list ≤ 900px). */
.en-free-go { display: grid; gap: 14px; justify-items: start; max-width: 360px; }
.en-free-start { font-size: 15px; line-height: 1.6; color: var(--fg-2); }
@media (max-width: 900px) { .en-free-go { max-width: 780px; } }

/* Downloads (2026-10-21): the KO download cards (.downloads/.dl in site.css) under the plan cards, then the first-launch guide
   on one lower surface (--ink-2, below the --ink-3 cards). */
.dl-guide { margin-top: 14px; padding: 24px 26px 22px; border-radius: 24px; background: var(--ink-2); }
.dl-guide-title { font-size: 15px; font-weight: 600; color: var(--fg); }
.dl-guide-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.dl-guide-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.dl-guide-os { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink-3); color: var(--fg); }
.dl-guide-os .ico { width: 20px; height: 20px; }
.dl-guide-txt { display: grid; gap: 4px; }
.dl-guide-txt b { font-size: 15px; font-weight: 600; color: var(--fg); }
.dl-guide-txt span { font-size: 15px; line-height: 1.6; color: var(--muted); }
.dl-guide-note { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
/* r6: under the two cards, the line on other devices and the web app link after it (cyan text, underline on hover). */
.dl-other { margin-top: 14px; padding: 0 4px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.dl-other a { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.dl-other a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* r2: while the downloads are open the software card keeps the KO selected-plan look (.plan[aria-checked='true'] in site.css),
   and the block enters with the KO apply-panel entrance (panel-in, site.css; reduced motion cuts it there). */
.plan-go[aria-expanded='true'] { border-color: var(--cyan); background: var(--ink-3); }
.plan-go[aria-expanded='true'] .plan-art { background: var(--ink-4); }
.en-download.is-entering { animation: panel-in .6s var(--ease) both; }
@media (max-width: 900px) { .dl-guide-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .dl-guide { padding: 20px 18px; border-radius: 22px; } }


@media (max-width: 700px) {
  .local-nav .lang-link { min-height: 30px; padding: 0 10px; }
  .motion-on .scene-photo-hero { height: 180svh; }
  .en-start .apply-head h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .start-heading { margin-top: 40px; }
}

/* Phones held sideways: the whole hero copy fits one short screen */
@media (orientation: landscape) and (max-height: 520px) {
  .scene-photo-hero .stage { padding-top: calc(var(--header-h) + 3svh); padding-bottom: 6svh; }
  html:not(.motion-on) .scene-photo-hero .stage { min-height: 100svh; padding-top: calc(var(--header-h) + 24px); }
  .scene-photo-hero .intro-brand { display: none; }
  .scene-photo-hero h1 { font-size: clamp(28px, 4.6vw, 40px); margin-top: 12px; }
  .scene-photo-hero .lead { font-size: 15px; line-height: 1.55; margin-top: 10px; }
  .scene-photo-hero .hero-actions { margin-top: 14px; }
  .scene-photo-hero .hero-actions .pill { min-height: 40px; }
  .photo-hero-cue { bottom: 4svh; padding: 8px 14px; }
}
