/* Mobile rhythm and cross-browser interaction states. Desktop composition stays intact. */
:root { accent-color: #8eb84c; }
a:where(:link, :visited) { color: inherit; }
a, button, summary, [role="tab"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-fill-color: currentColor;
  touch-action: manipulation;
}
button { -webkit-appearance: none; appearance: none; }
button, summary { -webkit-user-select: none; user-select: none; }
a:focus, button:focus, summary:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lime); outline-offset: 4px;
}
.experience-section :focus-visible, .download-section :focus-visible {
  outline-color: #405a2b;
}
.button-lime:link, .button-lime:visited { color: var(--black); }
.button-dark:link, .button-dark:visited { color: #d8f8af; }
.text-link:link, .text-link:visited { color: #d3dbc9; }
.release-summary .text-link:link, .release-summary .text-link:visited { color: var(--lime); }
.legacy-download a:link, .legacy-download a:visited { color: #344c20; }
dialog li a:link, dialog li a:visited { color: var(--lime); }
.scenario-tabs button { color: #526447; background-color: transparent; }
.scenario-tabs button[aria-selected="true"] { background-color: #24341b; color: #e8f6db; }
.scenario-tabs button:active { background-color: #bdcba8; color: #24341b; }
.scenario-tabs button[aria-selected="true"]:active { background-color: #344b27; color: #f0f9e5; }
summary:active { opacity: .75; }
.button:active { transform: translateY(1px); }
.copy-hash:active { background: #bddf8d; color: #24341b; }
@media (hover:none) {
  .button:hover { transform: none; }
  .button-lime:hover { background: var(--lime); }
  .button-dark:hover { background: #25351b; }
  .nav-download:hover { color: var(--ink); background: transparent; border-color: #65745b; }
  .text-link:hover { color: #d3dbc9; }
  .phone:hover { transform: translateX(-50%) rotate(5deg); }
  .button-lime:active { background: #d2ff8e; }
  .button-dark:active { background: #354c26; }
}
@media (max-width:760px) {
  .shell { width: calc(100% - 40px); max-width: 520px; }
  .header { height: 72px; padding-inline: 20px; }
  .brand { font-size: 15px; }
  .brand-sub { font-size: 8px; letter-spacing: .8px; }
  .nav-download { font-size: 12px; padding: 10px 13px; min-height: 42px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.3px; margin-bottom: 14px; }
  h2 { font-size: clamp(32px, 8.3vw, 42px); line-height: 1.28; letter-spacing: -1.2px; }
  .hero { padding-block: 32px 24px; gap: 0; }
  .release-pill { font-size: 11px; margin-bottom: 24px; }
  .hero .eyebrow { font-size: 9px; }
  .hero h1 { font-size: clamp(56px, 14vw, 78px); letter-spacing: -3px; }
  .hero-description { font-size: 14px; line-height: 1.9; margin-top: 24px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .hero-actions .button { width: 100%; font-size: 14px; min-height: 52px; }
  .hero-actions .text-link { justify-self: start; font-size: 13px; }
  .hero-meta { font-size: 10px; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
  .hero-stage {
    height: 470px; width: 100%; margin-top: 24px; margin-bottom: 0;
    transform: none; max-width: 420px; justify-self: center;
  }
  .stage-grid { inset: 0; }
  .phone, .phone:hover {
    top: 18px; transform: translateX(-50%) rotate(4deg) scale(.76);
    transform-origin: top center;
  }
  .floating-note { padding: 10px 12px; font-size: 10px; gap: 8px; }
  .floating-note small { font-size: 7px; letter-spacing: .2px; }
  .note-top { top: 68px; left: 0; max-width: 180px; }
  .note-bottom { bottom: 42px; right: 0; }
  .orbit-label { display: none; }
  .stage-caption { bottom: 2px; font-size: 8px; letter-spacing: 1px; }
  .ticker { padding-block: 15px; }
  .section { padding-block: 56px; }
  .section-heading {
    display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 28px;
  }
  .section-heading .section-lead {
    max-width: none; padding: 0; margin: 0; text-align: left;
    font-size: 14px; line-height: 1.85;
  }
  .section-lead { font-size: 14px; line-height: 1.85; }
  .capability-grid { gap: 20px; }
  .capability { padding: 24px; border-radius: 18px; }
  .feature-index { top: 16px; left: 20px; font-size: 10px; }
  .workspace-art, .screen-art, .floating-art { height: 192px; margin-top: 8px; }
  .terminal-art { height: 192px; margin-top: 8px; transform: none; }
  .terminal-art pre { font-size: 10px; padding: 15px; }
  .capability h3 { margin-top: 20px; font-size: 21px; line-height: 1.45; letter-spacing: -.5px; }
  .capability > p { font-size: 14px; line-height: 1.85; margin-top: 10px; }
  .feature-tag { font-size: 10px; line-height: 1.7; margin-top: 17px; letter-spacing: 0; }
  .folder-face { width: 205px; height: 130px; }
  .folder-tab { top: 14px; left: calc(50% - 102px); }
  .file-one { top: 13px; right: 5px; }
  .file-two { bottom: 4px; left: 5px; }
  .scan-frame { height: 168px; width: 126px; }
  .screen-chip { right: 0; bottom: 8px; font-size: 9px; }
  .mini-window { width: 245px; }
  .mini-window > p { font-size: 16px; padding: 16px 18px 12px; }
  .mini-title { padding: 10px; }
  .orbit-cross { top: 0; right: 0; font-size: 30px; }
  .experience-section { padding-block: 56px; }
  .experience-inner { gap: 26px; }
  .experience-section .section-lead { font-size: 14px; margin-top: 18px; }
  .scenario-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 24px; }
  .scenario-tabs button {
    min-height: 44px; width: 100%; padding: 10px 5px; font-size: 12px;
    white-space: nowrap; border-radius: 8px;
  }
  .scenario-tabs button span { margin-left: 3px; }
  .scenario-panel { padding: 24px; border-radius: 16px; }
  .scenario-number { font-size: 32px; margin-bottom: 14px; }
  .scenario-panel h3 { font-size: 22px; line-height: 1.5; }
  .scenario-panel > p { font-size: 14px; line-height: 1.85; }
  .scenario-panel ol { margin-block: 22px 16px; }
  .scenario-panel li { font-size: 12px; gap: 12px; padding-block: 12px; }
  .scenario-panel li span { font-size: 10px; padding-top: 3px; flex-shrink: 0; }
  .scenario-foot { font-size: 9px; line-height: 1.8; }
  .updates-section .section-heading { position: relative; padding-right: 88px; min-height: 118px; justify-content: center; }
  .version-outline { position: absolute; right: 0; top: 44px; margin: 0; font-size: 40px; letter-spacing: -3px; }
  .release-layout { gap: 28px; }
  .release-date { font-size: 10px; }
  .release-summary h3 { font-size: 28px; line-height: 1.45; margin-top: 14px; max-width: 100%; }
  .release-summary h3 br { display: initial; }
  .release-summary p { font-size: 14px; line-height: 1.85; margin-block: 16px; }
  .release-summary .text-link { font-size: 13px; }
  .release-notes article { gap: 14px; padding-block: 20px; }
  .release-notes article > span { font-size: 10px; flex: 0 0 20px; }
  .release-notes h4 { font-size: 16px; line-height: 1.55; }
  .release-notes article p { font-size: 14px; line-height: 1.85; margin-top: 8px; }
  .announcement summary { font-size: 14px; min-height: 52px; }
  .announcement > div {
    max-height: 420px; overflow-y: auto; overscroll-behavior-y: contain;
    padding: 16px; background: #191f17; border-radius: 12px;
    font-size: 13px; line-height: 1.95; overflow-wrap: anywhere;
    scrollbar-width: thin; scrollbar-color: #758d59 #191f17;
  }
  .announcement-source { font-size: 10px; padding-top: 10px; }
  .download-section { padding-block: 56px; }
  .download-inner { gap: 28px; }
  .download-section h2 { font-size: clamp(34px,9vw,44px); }
  .download-section p:not(.eyebrow) { font-size: 14px; line-height: 1.85; margin-top: 18px; }
  .download-box { padding: 22px; }
  .download-brand { gap: 10px; margin-bottom: 22px; }
  .download-brand img { width: 46px; height: 46px; }
  .download-brand strong { font-size: 14px; }
  .download-brand > div { min-width: 0; }
  .download-brand > div > span { font-size: 10px; }
  .download-android { display: none; }
  .download-specs { font-size: 10px; gap: 8px; flex-wrap: wrap; }
  .package-details { font-size: 12px; }
  .package-details summary { min-height: 48px; }
  .package-details dl { font-size: 11px; grid-template-columns: 60px minmax(0,1fr); }
  .checksum { font-size: 10px; }
  .copy-hash { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .legacy-download { display: flex; flex-direction: column; gap: 9px; font-size: 11px; line-height: 1.8; }
  .legacy-download a { align-self: flex-start; padding-block: 4px; }
  .community-section { gap: 28px; }
  .community-section .section-lead { font-size: 14px; margin-top: 18px; }
  .community-section .button { width: 100%; font-size: 14px; justify-content: space-between; margin-top: 24px; }
  .community-art { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding-top: 8px; }
  .community-stamp { font-size: 48px; line-height: .98; transform: none; letter-spacing: -3px; color: #546648; }
  .qr-details { max-width: none; width: 100%; margin: 0; }
  .qr-details summary { min-height: 48px; font-size: 13px; }
  .qr-details img { width: min(220px,100%); margin: 8px auto 0; }
  .faq-section { padding-bottom: 56px; }
  .faq-section summary { min-height: 58px; padding-block: 17px; font-size: 14px; }
  .faq-section details p { font-size: 13px; line-height: 1.9; padding-right: 0; }
  .footer { padding-block: 28px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-top > span { font-size: 9px; }
  .footer-bottom { margin-top: 24px; gap: 16px 22px; font-size: 12px; }
  .footer-bottom button { font-size: 12px; min-height: 36px; }
  .footer-bottom a { padding-block: 7px; }
}
@media (max-width:360px) {
  .shell { width: calc(100% - 32px); }
  .header { padding-inline: 16px; }
  .brand { font-size: 13px; }
  .brand-sub { font-size: 7px; }
  .nav-download { font-size: 11px; padding-inline: 10px; }
  .hero h1 { font-size: 56px; }
  .hero-stage { height: 442px; margin-top: 20px; margin-bottom: 0; transform: none; }
  .phone, .phone:hover { transform: translateX(-50%) rotate(4deg) scale(.71); }
  .note-top { top: 60px; }
  .note-bottom { bottom: 34px; }
  .capability { padding: 22px 18px; }
  .scenario-panel { padding: 21px; }
  .scenario-tabs button { font-size: 11px; }
  .scenario-tabs button span { display: none; }
  .section-heading .section-lead { font-size: 14px; max-width: none; padding-top: 0; }
  .download-box { padding: 19px; }
}

/* R3: tighten the entire mobile hero instead of retaining desktop-sized gaps. */
@media (max-width:760px) {
  .header { height: 62px; }
  .hero { padding-block: 20px 16px; }
  .release-pill { padding: 5px 11px; margin-bottom: 12px; }
  .hero .eyebrow { font-size: 9px; margin-bottom: 8px; letter-spacing: 1px; }
  .hero h1 { font-size: clamp(43px, 11.6vw, 60px); line-height: 1.12; letter-spacing: -2px; }
  .word-highlight:after { bottom: -3px; height: 2px; }
  .hero-description { margin-top: 16px; font-size: 14px; line-height: 1.7; }
  .hero-actions { margin-top: 16px; gap: 10px; }
  .hero-actions .button { min-height: 46px; padding: 10px 16px; }
  .hero-actions .text-link { font-size: 12px; min-height: 28px; }
  .hero-meta { margin-top: 10px; font-size: 10px; }
  .hero-stage { height: 430px; margin-top: 10px; margin-bottom: 0; }
  .phone, .phone:hover { top: 4px; transform: translateX(-50%) rotate(3deg) scale(.73); }
  .note-top { top: 46px; }
  .note-bottom { bottom: 30px; }
  .section, .experience-section, .download-section { padding-block: 44px; }
  .experience-section .section-lead { margin-top: 14px; }
  .scenario-tabs { margin-top: 16px; }
  .experience-inner { gap: 18px; }
  .scenario-panel { padding: 20px; }
  .scenario-number { font-size: 26px; margin-bottom: 10px; }
  .scenario-panel h3 { font-size: 20px; line-height: 1.45; }
  .scenario-panel > p { margin-top: 10px; }
  .scenario-panel ol { margin-block: 18px 12px; }
  .scenario-panel li { padding-block: 10px; }
  .scenario-foot { font-size: 9px; }
}
@media (max-width:360px) {
  .hero h1 { font-size: 43px; }
  .hero-stage { height: 410px; margin-top: 8px; }
  .phone, .phone:hover { transform: translateX(-50%) rotate(3deg) scale(.69); }
  .note-top { top: 40px; }
  .note-bottom { bottom: 28px; }
}
