/* Shared header and responsive refinements. Loaded after the feature styles. */
html { scroll-padding-top: 128px; }
header.wrap { position: sticky; top: 0; z-index: 30; background: #f2f1e9; box-shadow: 0 3px 14px #102b2708; }
.header-menu { display: none; }
.screenshot-open { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; color: var(--ink); cursor: zoom-in; font: inherit; line-height: 0; }
.screenshot-open:focus-visible { outline: 3px solid #2584da; outline-offset: 4px; }
.screenshot-hint { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #f2f1e9ee; box-shadow: 0 2px 8px #102b2726; font-size: 22px; line-height: 1; }
.screenshot-open:hover .screenshot-hint { background: var(--lime); }
.web-preview > .screenshot-open { height: 100%; }
body.screenshot-visible { overflow: hidden; }
.screenshot-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 72px 24px 24px; border: 0; background: transparent; color: white; }
.screenshot-dialog::backdrop { background: #071610ed; }
.screenshot-dialog figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: fit-content; max-width: 100%; height: 100%; margin: auto; pointer-events: none; }
.screenshot-dialog img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 8px; pointer-events: auto; }
.screenshot-dialog figcaption { max-width: 760px; font-size: 14px; line-height: 1.5; text-align: center; }
.screenshot-close { position: absolute; top: 16px; right: 20px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff70; border-radius: 50%; background: #102b27; color: white; cursor: pointer; font: 32px/1 Arial,sans-serif; }
.screenshot-close:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
header .nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
header .nav-login:hover { background: #245d4b; }
header .nav-login:active { background: #173f33; }
header .main-nav a, header .languages a { display: inline-flex; align-items: center; min-height: 44px; }
.hero > *, .web-overview > *, .usb-section > *, .chapter > *, .pricing-page > * { min-width: 0; }
.hero-art .web-window { max-width: 100%; }
footer { flex-wrap: wrap; }

@media (max-width: 1100px) {
  header { gap: 16px; }
  header .main-nav { gap: 18px; }
  header .languages { gap: 10px !important; }
}

@media (min-width: 651px) and (max-width: 950px) {
  header.wrap { display: grid; grid-template-columns: 1fr auto; padding-block: 16px; }
  header .brand { grid-column: 1; grid-row: 1; }
  header .nav-login { grid-column: 2; grid-row: 1; }
  header .main-nav { grid-column: 1; grid-row: 2; margin-left: 0; }
  header .languages { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { max-width: 640px; }
  .hero-art { width: 100%; max-width: 520px; margin-inline: auto; min-height: 440px; }
  .hero-art .web-window { left: 0; width: 400px; top: 85px; }
  .hero-art .hero-phone { left: auto; right: 15px; top: 20px; position: absolute; }
}

@media (max-width: 800px) {
  .web-overview, .usb-section { grid-template-columns: 1fr; gap: 24px; }
  .web-gallery { grid-template-columns: 1fr; gap: 24px; }
  .web-overview h2, .usb-section h2 { max-width: 650px; }
}

@media (max-width: 650px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  header.wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; min-height: 0; padding-top: 12px; padding-bottom: 8px; }
  header .brand { grid-column: 1; grid-row: 1; font-size: 22px; gap: 7px; }
  header .brand img { width: 34px; height: 34px; }
  header .nav-login { grid-column: 2; grid-row: 1; min-height: 44px; padding: 10px 16px; font-size: 14px; gap: 8px; }
  header .main-nav { grid-column: 1 / -1; grid-row: 2; margin: 0; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
  header .main-nav a { min-height: 44px; }
  header .languages { grid-column: 1 / -1; grid-row: 3; width: auto; justify-content: flex-start; gap: 8px !important; border-top: 1px solid #132c2715; font-size: 12px !important; }
  header .languages a { justify-content: center; min-width: 44px; min-height: 36px; }
  .hero { padding-top: 24px; padding-bottom: 24px; gap: 16px; }
  .hero .eyebrow { font-size: 12px; line-height: 1.5; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(29px, 8.9vw, 42px); line-height: 1.1; letter-spacing: -1.2px; margin-bottom: 18px; }
  .hero h1 em { font-size: .86em; }
  h1, h2, h3 { overflow-wrap: break-word; }
  .lead { font-size: 16px; line-height: 1.65; }
  .button { min-height: 48px; align-items: center; padding: 13px 18px; font-size: 14px; margin-top: 12px; }
  .platform-links { gap: 24px; margin-top: 12px; flex-wrap: wrap; }
  .platform-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-art { min-height: clamp(350px, 100vw, 400px); margin: 0; width: 100%; }
  .hero-art .hero-phone { position: absolute; left: auto; right: 12px; top: 8px; width: clamp(145px, 44vw, 175px); transform: rotate(4deg); }
  .hero-art .web-window { width: 90%; max-width: 360px; top: 65px; left: 3px; transform: rotate(-4deg); }
  .hero-art .window-bar { padding: 8px 10px; gap: 10px; }
  .hero-art .ticket, .hero-art .coordinate { display: none; }
  .hero-art .orbit { width: 240px; height: 240px; border-width: 26px; }
  .route-band { padding: 12px 0; }
  .route-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .route-band span { font-size: 12px; }
  section h2, .chapter h2, .final h2 { font-size: clamp(27px, 7.4vw, 34px); line-height: 1.14; letter-spacing: -1px; }
  .web-overview { padding-top: 30px; padding-bottom: 24px; }
  .web-features { gap: 16px 20px; }
  .web-features h3 { font-size: 17px; margin: 10px 0; }
  .web-features p { line-height: 1.6; margin-bottom: 0; }
  .web-gallery { padding-bottom: 20px; }
  .web-gallery figcaption { margin-top: 10px; line-height: 1.5; }
  .mobile-intro { padding-top: 28px; }
  .intro-bottom { gap: 16px; margin-top: 16px; }
  .usb-section { padding-top: 24px; }
  .usb-steps { padding-left: 20px; font-size: 15px; }
  .usb-steps li { padding: 6px 0 6px 4px; }
  .chapter { gap: 12px; padding-block: 24px; }
  .chapter figure { padding-block: 8px; }
  .chapter p:not(.eyebrow) { margin-bottom: 0; }
  .pricing-page { gap: 28px; padding-top: 28px; padding-bottom: 30px; }
  .pricing-page h1 { font-size: clamp(32px, 9vw, 42px); letter-spacing: -1.2px; }
  .contact-section input, .contact-section textarea { min-width: 0; font-size: 16px; }
  .contact-section .button { width: 100%; justify-content: center; }
  .final { padding-block: 28px; }
  footer { gap: 10px; padding-top: 20px !important; padding-bottom: 24px !important; }
  footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; }
  .calculation-notice { line-height: 1.6; }
}

@media (max-width: 360px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  header .brand { font-size: 20px; gap: 5px; }
  header .nav-login { padding-inline: 12px; }
  .web-features { grid-template-columns: 1fr; }
}

/* Compact sticky navigation keeps the reading area available on phones. */
@media (max-width: 650px) {
  html { scroll-padding-top: 88px; }
  header.wrap { grid-template-columns: minmax(0, 1fr) 40px auto; column-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  header .brand { font-size: 19px; gap: 5px; }
  header .brand img { width: 30px; height: 30px; }
  header > .main-nav, header > .languages { display: none; }
  header .nav-login { grid-column: 3; min-height: 44px; padding-inline: 13px; }
  .header-menu { display: block; grid-column: 2; grid-row: 1; margin: 0; }
  .header-menu > summary { display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; margin: 0; border: 1px solid #b8c9ad; border-radius: 8px; cursor: pointer; list-style: none; font-size: 22px; color: var(--ink); }
  .header-menu > summary::-webkit-details-marker { display: none; }
  .header-menu > summary:focus-visible { outline: 3px solid #2584da; outline-offset: 3px; }
  .header-menu[open] > summary { background: #dce8ce; }
  .header-panel { position: absolute; top: 100%; left: 0; right: 0; padding: 8px 20px 16px; background: #f2f1e9; box-shadow: 0 15px 20px #102b271a; border-bottom: 1px solid #b8c9ad; max-height: calc(100dvh - 74px); overflow-y: auto; }
  .header-panel .mobile-nav { display: flex; flex-direction: column; margin: 0; gap: 0; font-size: 16px; }
  .header-panel .mobile-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid #132c2715; }
  .header-panel .mobile-languages { display: flex; flex-wrap: wrap; margin: 8px 0 0; gap: 8px; font-size: 13px; }
  .header-panel .mobile-languages a { display: flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; }
  .header-panel [aria-current] { font-weight: 700; text-decoration: underline; }
}

@media (max-width: 360px) {
  header .brand { font-size: 17px; }
  header .brand img { width: 28px; height: 28px; }
  header .nav-login { font-size: 13px; gap: 6px; padding-inline: 10px; }
}

/* One reading direction and a shared image scale below the expressive hero. */
.web-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 32px; }
.web-overview > div:first-child { max-width: 520px; }
.web-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.web-features h3 { min-height: 2.4em; margin: 12px 0 8px; }
.web-features p { margin: 0; }
.web-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 32px; }
.web-gallery figure { display: flex; flex-direction: column; min-width: 0; }
.web-preview { position: relative; aspect-ratio: 16 / 9; padding: 16px; background: #e7ede3; border: 1px solid #ccd7cf; border-radius: 16px; }
.web-preview > .screenshot-open { position: absolute; inset: 16px; width: auto; height: auto; }
.web-gallery .web-preview img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 6px; box-shadow: 0 4px 14px #102b2710; }
.web-gallery figcaption { margin-top: 12px; line-height: 1.5; }
.mobile-intro { padding-top: 32px; padding-bottom: 24px; }
.mobile-intro h2 { max-width: 760px; }
.intro-bottom { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 16px; }
.feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid #132c2720; align-items: center; }
.feature-row .feature-copy { order: 0; max-width: 520px; padding: 0; }
.feature-row h2 { max-width: 520px; font-size: clamp(28px, 3vw, 38px); line-height: 1.16; letter-spacing: -1.2px; }
.feature-row p:not(.eyebrow) { max-width: 520px; font-size: 16px; line-height: 1.65; }
.feature-row figure { order: 1; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 24px; background: #e7ede3; border: 1px solid #d3ddcc; border-radius: 20px; }
.feature-row figure::before { content: none; }
.feature-row .phone { width: 210px; max-width: 100%; transform: none; border-width: 8px; border-radius: 32px; box-shadow: 0 12px 28px #102b2718; }
.feature-row figcaption { width: 100%; max-width: 340px; min-height: 36px; margin: 16px auto 0; font-size: 11px; line-height: 1.5; text-align: center; color: var(--muted); }
.feature-row .eyebrow { margin-bottom: 12px; }
.comparison-section { grid-template-columns: 1fr; gap: 24px; }
.comparison-section .feature-copy { max-width: 760px; }
.comparison-section h2 { max-width: 760px; }
.platform-comparison { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; min-width: 0; }
.platform-comparison > figure { min-width: 0; padding: 20px; gap: 20px; }
.platform-comparison figcaption { display: flex; flex-direction: column; gap: 4px; max-width: none; min-height: 46px; margin: 0; font-size: 13px; text-align: left; }
.platform-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.comparison-web .browser-preview { width: 100%; margin-block: auto; border: 1px solid #bdcbbc; border-radius: 10px; overflow: hidden; background: white; box-shadow: 0 8px 24px #102b2710; }
.browser-preview .window-bar { gap: 12px; padding: 9px 12px; }
.browser-preview img { display: block; width: 100%; height: auto; }
.comparison-section .comparison-mobile .phone { width: 210px; }
.final { padding-top: 40px; padding-bottom: 40px; }
.final h2 { max-width: 850px; margin-inline: auto; font-size: clamp(30px, 3.4vw, 44px); }
.final > p:not(.eyebrow) { max-width: 650px; margin-inline: auto; }

@media (max-width: 800px) {
  .web-overview, .web-gallery, .intro-bottom, .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .web-overview > div:first-child, .feature-row .feature-copy, .feature-row h2 { max-width: none; }
  .feature-row figure { width: 100%; max-width: 520px; justify-self: center; }
  .feature-row .feature-copy, .feature-row figure { order: initial; }
  .intro-bottom .screen-note { max-width: 520px; }
  .platform-comparison { grid-template-columns: 1fr; }
  .comparison-section .platform-comparison > figure { max-width: none; }
  .comparison-web .browser-preview { margin-block: 0; }
}

@media (max-width: 650px) {
  .web-overview { padding-top: 28px; padding-bottom: 24px; }
  .web-preview { padding: 10px; }
  .web-preview > .screenshot-open { inset: 10px; }
  .mobile-intro { padding-top: 24px; padding-bottom: 24px; }
  .feature-row { padding-top: 24px; padding-bottom: 24px; gap: 20px; }
  .feature-row h2 { font-size: clamp(27px, 7.4vw, 34px); letter-spacing: -1px; }
  .feature-row figure { padding: 20px; }
  .feature-row .phone { width: 200px; }
  .feature-row figcaption { margin-top: 14px; }
  .final { padding-top: 28px; padding-bottom: 28px; }
}
