/* Phone layouts, including Safari safe areas and enlarged text. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.header, .section, .hero-content, .footer {
  padding-left: max(6%, env(safe-area-inset-left));
  padding-right: max(6%, env(safe-area-inset-right));
}
.header { padding-top: env(safe-area-inset-top); height: auto; min-height: 94px; }
.footer { padding-bottom: max(35px, env(safe-area-inset-bottom)); }
.brand-mark, .faq summary::after { flex-shrink: 0; }
.section > *, .feature, .level-explorer, .helper-list article > div { min-width: 0; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.faq summary { align-items: center; min-height: 44px; }
.footer .brand { min-height: 44px; }
@media (hover: none) {
  .button:hover { transform: none; }
  a, button, summary { -webkit-tap-highlight-color: rgba(183, 239, 106, .2); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 20px; }
  .header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; padding-top: max(14px,env(safe-area-inset-top)); padding-bottom: 8px; }
  .header .brand { font-size: 1.5rem; gap: 9px; }
  .header .button { min-height: 44px; padding: 10px 14px; font-size: .875rem; }
  .header nav { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; font-size: .875rem; }
  .hero { min-height: 0; background-color: var(--bg); background-size: auto 340px; background-repeat: no-repeat; background-position: 83% top; }
  .hero-shade { background: linear-gradient(to bottom, transparent 100px, rgba(16,27,23,.25) 190px, #101b17 315px); }
  .hero-content { padding-top: 255px; padding-bottom: 24px; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); line-height: 1.07; letter-spacing: -.02em; }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .eyebrow, .behind-server .eyebrow { font-size: .75rem; letter-spacing: .1em; }
  .hero-copy { font-size: 1rem; line-height: 1.8; }
  .hero-copy br { display: none; }
  .hero-actions { flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
  .hero-actions .button { font-size: 1rem; }
  .hero-bottom { position: relative; left: auto; right: auto; bottom: auto; margin: 0 6%; padding: 8px 0 24px; font-size: .75rem; letter-spacing: .05em; flex-wrap: wrap; gap: 8px 20px; }
  .hero-bottom > span:nth-child(2) { display: none; }
  .hero-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .intro { grid-template-columns: 1fr; gap: 0; padding-top: 45px; padding-bottom: 32px; }
  .intro > p { margin-top: 22px; font-size: 1rem; }
  .feature p, .level-display p, .helper-list p, .faq details p, .behind-copy { font-size: 1rem; }
  .feature-number, .level-top, .join-label { font-size: .75rem; letter-spacing: .08em; }
  .feature { padding: 24px; }
  .feature h3 { font-size: 2rem; }
  .feature-symbol { right: 24px; }
  .level-tabs { gap: 5px; }
  .level-tabs button { min-height: 48px; font-size: .875rem; padding: 8px 2px; }
  .level-display { padding: 24px; min-height: 0; }
  .level-top { flex-wrap: wrap; }
  .level-display h3 { font-size: 1.875rem; }
  .level-display p { min-height: 0; }
  .level-note, .level-caption { font-size: .875rem; }
  .helper-list article { gap: 16px; }
  .commands { padding: 22px; }
  .command-list button { display: grid; grid-template-columns: minmax(0,1fr) 24px; gap: 3px 12px; min-height: 72px; padding: 14px 0; }
  .command-list code { font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
  .command-list button > span:nth-child(2) { grid-row: 2; font-size: .875rem; }
  .command-list button > span:last-child { grid-column: 2; grid-row: 1 / 3; justify-self: center; }
  .commands .copy-status { font-size: .875rem; overflow-wrap: anywhere; }
  .faq details { padding: 12px 0; }
  .faq details p { padding-right: 0; }
  .faq code { font-size: .875rem; overflow-wrap: anywhere; }
  .youtube-button { width: 100%; min-height: 50px; font-size: 1rem; }
  .join h2 { font-size: clamp(2.25rem,11vw,3.2rem); }
  .join-info { max-width: none; }
  .join-info h3 { font-size: 1.875rem; overflow-wrap: anywhere; }
  .join .join-info p { font-size: 1rem; }
  .footer { align-items: flex-start; gap: 16px; }
}
@media (max-width: 360px) {
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { justify-content: center; width: 100%; }
  .hero-bottom a { margin-left: 0; }
}

.header .brand { min-height: 44px; }
