/* Navigation and touch refinements shared across viewport sizes. */
:root { --header-height: 66px; }
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 14px 20px; color: #fff; background: #1d1d1f; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.mobile-menu, .creator-nav { display: none; }
.site-header nav > a, .link-button, .text-button, .location-card > a, footer > a { min-height: 44px; display: inline-flex; align-items: center; }
.button.small, .close-button { min-width: 44px; min-height: 44px; }
.close-button { flex-shrink: 0; }
.range-control input { min-height: 44px; margin: 0; }
.range-control { margin-top: 8px; }
.field, .fulfilment-options label > span, .form-title h3 { min-width: 0; }
.field-help, .preview-label > span:last-child, .contact-status { overflow-wrap: anywhere; }
main:focus, section[tabindex="-1"]:focus, .form-step:focus, .order-summary:focus { outline: none; }
.toast { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
dialog { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }

@media (max-width: 800px) {
  :root { scroll-padding-top: calc(var(--header-height) + 78px); }
  .site-header.wrap { gap: 16px; height: var(--header-height); }
  .site-header > nav { display: none; }
  .site-header > .button { margin-left: auto; }
  .mobile-menu { display: block; flex-shrink: 0; }
  .mobile-menu summary { width: 44px; height: 44px; display: grid; place-items: center; list-style: none; cursor: pointer; border-radius: 50%; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { background: #ededf1; }
  .site-header .mobile-menu nav { position: absolute; top: calc(100% - 1px); right: 20px; display: grid; gap: 0; width: min(340px, calc(100% - 40px)); max-height: calc(100dvh - 100px); overflow-y: auto; margin: 0; padding: 10px 20px; border: 1px solid #e5e5ea; border-radius: 16px; background: #fff; box-shadow: 0 14px 40px #00000014; }
  .mobile-menu:not([open]) nav { display: none; }
  .site-header .mobile-menu nav a { justify-content: space-between; min-height: 51px; gap: 20px; padding: 10px 1px; font-size: 15px; color: #1d1d1f; border-bottom: 1px solid #ededf0; }
  .site-header .mobile-menu nav a:last-child { border: 0; }
  .mobile-menu nav a span { color: #86868b; font-size: 23px; }
  .creator-heading { margin-bottom: 24px; }
  .creator-nav { position: sticky; top: var(--header-height); z-index: 8; display: flex; gap: 4px; margin: 0 -4px 28px; padding: 7px 0; background: #f5f5f7ed; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid #ddddE3; }
  .creator-nav a { min-width: 0; min-height: 44px; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 10px; color: #515154; font-size: 12px; white-space: nowrap; }
  .creator-nav a:hover, .creator-nav a:focus-visible { background: #e9e9ef; color: #0066cc; }
  .creator-nav a span { color: #86868b; font-size: 11px; }
  .creator-nav a:last-child { color: #0066cc; }
  .creator-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .designer { position: relative; top: auto; width: 100%; margin-top: 22px; padding: 22px; border: 1px solid #e5e5ea; border-radius: 19px; }
  .preview-label { flex-direction: row; align-items: center; gap: 16px; }
  .preview-label > span:last-child { text-align: right; }
  .case-stage { min-height: 362px; padding: 26px 0; }
  .preview-phone { width: 156px; height: 310px; }
  .preview-placeholder > span { top: 130px; left: 17px; font-size: 24px; }
  .preview-placeholder small { left: 18px; bottom: 24px; }
  .preview-phone .camera { transform: scale(.71); }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 55px; }
  .field label { font-size: 13px; }
  .field-help, .preview-disclaimer, .order-summary > p { font-size: 12px; }
  .fulfilment-options label { min-height: 87px; }
  .fulfilment-options small { font-size: 11px; }
  .photo-actions { flex-wrap: wrap; margin-block: 6px; }
  .photo-actions .text-button { min-height: 44px; }
  .form-title .optional { font-size: 10px; }
  .upload-zone { padding: 24px 16px; }
  .upload-zone > span:last-of-type { font-size: 12px; }
  .range-control { grid-template-columns: 112px minmax(0, 1fr); font-size: 12px; }
  .order-summary .summary-note { font-size: 11px; }
  .summary-heading, .preview-label { flex-wrap: wrap; }
  .order-summary dl > div { font-size: 12px; }
  .order-summary dd { min-width: 0; }
  .dialog-header .eyebrow { max-width: calc(100% - 60px); }
  pre { font-size: 13px; }
  .contact-status { font-size: 12px; }
  .closing, footer.wrap { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 600px) {
  :root { --header-height: 64px; }
  .site-header.wrap { gap: 9px; padding-inline: 20px; }
  .hero h1 { font-size: clamp(50px, 16vw, 67px); letter-spacing: -.06em; }
  .hero-actions { gap: 18px; flex-wrap: wrap; }
  .hero-actions .button, .hero-actions .link-button { min-height: 44px; }
  .benefit-strip .wrap { gap: 10px; font-size: 11px; }
  .benefit-strip span + span { padding-left: 10px; }
  .creator-nav { margin-bottom: 26px; }
  .form-title { flex-wrap: wrap; }
  .form-title h3 { font-size: 19px; }
  .designer { padding: 20px 18px; }
  .preview-label { font-size: 10px; }
  .preview-label > span:last-child { font-size: 12px; }
  .fulfilment-options { gap: 10px; }
  .fulfilment-options strong { font-size: 14px; }
  .fulfilment-options label { padding: 15px 10px; }
  .closing h2 { font-size: clamp(42px, 12vw, 53px); }
  .close-button { width: 44px; height: 44px; }
  .toast { width: max-content; max-width: calc(100% - 32px); }
}

@media (max-width: 380px) {
  .site-header.wrap { padding-inline: 16px; gap: 6px; }
  .site-header .brand { gap: 7px; font-size: 11px; }
  .site-header .brand-mark { font-size: 29px; }
  .button.small { padding-inline: 13px; }
  .creator-nav a { font-size: 11px; gap: 4px; }
  .form-title .optional { display: none; }
  .fulfilment-options { grid-template-columns: minmax(0, 1fr); }
  .fulfilment-options label { min-height: 74px; padding: 15px; gap: 12px; }
}
