/* Page-specific layout. Colors and type come from the original site stylesheet. */
.language { color: var(--blue); font-weight: 750; }
.nav-inner .nav-links { margin-left: auto; }
.hero { min-height: 0; }
.hero-grid { grid-template-columns: 1fr 1fr; gap: 4%; }
.lunch-scene { width: 100%; height: auto; align-self: center; }
.heading p, .example p, .screens p, .download p { color: var(--muted); }
.switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.switch button { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.switch button[aria-pressed=true] { background: var(--blue); color: white; }
.example { display: grid; grid-template-columns: minmax(160px, 33%) 1fr; gap: 7%; align-items: center; background: var(--paper); border-radius: 24px; overflow: hidden; padding-right: 5%; }
.example[hidden] { display: none; }
.example img { width: 100%; height: auto; }
.label { color: var(--blue); font-weight: 700; }
.example h3 { font-size: clamp(24px, 3vw, 42px); }
.equation { margin: 20px 0 4px; color: var(--muted); }
.example strong { font-size: clamp(30px, 4vw, 54px); color: var(--blue); }
.product { background: var(--paper); }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.screens figure { margin: 0; }
.screens img { width: min(100%, 265px); border: 5px solid var(--bg); border-radius: 24px; }
.download-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.download-badges a { display: inline-flex; align-items: center; }
.download-badges img { display: block; width: auto; }
.apple-badge { height: 44px; }
.play-badge { height: 66px; }
:lang(vi) .play-badge { height: 58px; }
.download .download-badges { margin-top: 16px; }
.hero-actions .download-badges { flex-basis: 100%; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 850px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .lunch-scene { max-width: 560px; margin: auto; }
}
@media (max-width: 700px) {
  .hero { padding: 36px 0; }
  .screens { grid-template-columns: 1fr; gap: 32px; }
  .screens figure { display: grid; grid-template-columns: 1fr 42%; gap: 15px; align-items: center; }
  .example { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .example img { width: 100%; height: 240px; object-fit: contain; background: var(--bg-soft); }
  .example > div { padding: 20px; }
  .switch button { padding: 8px 10px; }
  .footer-inner { align-items: flex-start; }
}

.story-section { background: var(--paper); padding: clamp(40px, 6vw, 88px) 0; }
.story-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.story-art { width: 100%; height: auto; }
.story-layout p, .feature-notes dd { color: var(--muted); }
.story-layout p:last-child { margin-bottom: 0; }
.feature-notes { margin: 40px 0 0; }
.feature-notes div { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 5%; padding: 21px 0; }
.feature-notes dt { font-weight: 750; }
.feature-notes dd { margin: 0; max-width: 66ch; }
@media (min-width: 701px) {
  .screens { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5%; }
  .screens figure { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
}
@media (max-width: 700px) {
  .story-layout, .feature-notes div { grid-template-columns: 1fr; }
  .story-section .story-art { order: 1; }
  .feature-notes div { gap: 6px; }
}
