/* Mobile: loaded last on every page, so a phone gets a layout designed for it, not a squeezed desktop. Everything here is
   inside width queries; desktop is untouched. */

/* ---------------------------------------------------------------- the phone menu (nav.js adds the button and the sheet) */
nav.nav .mnav { display: none; }
.msheet { display: none; }
@media (max-width: 900px) {
  nav.nav { height: 64px; padding: 0 18px; }
  nav.nav .brand { gap: 10px; } nav.nav .brand img { width: 24px; height: 19px; } nav.nav .brand span { font-size: 12.5px; letter-spacing: .36em; }
  nav.nav .links { gap: 8px; }
  nav.nav .links > a:not(.get), nav.nav .menu { display: none; }
  nav.nav .get { padding: 8px 14px; font-size: 13px; }
  nav.nav .mnav { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -6px; border: 0; background: none; color: var(--fg, #edede8); cursor: pointer; }
  nav.nav .mnav i { position: relative; width: 20px; height: 1.5px; background: currentColor; transition: background .2s; }
  nav.nav .mnav i::before, nav.nav .mnav i::after { content: ''; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; transition: transform .35s cubic-bezier(.16,1,.3,1), top .35s cubic-bezier(.16,1,.3,1); }
  nav.nav .mnav i::before { top: -6px; } nav.nav .mnav i::after { top: 6px; }
  body.menu-open nav.nav .mnav i { background: transparent; }
  body.menu-open nav.nav .mnav i::before { top: 0; transform: rotate(45deg); } body.menu-open nav.nav .mnav i::after { top: 0; transform: rotate(-45deg); }
  nav.nav::before { background: rgba(6,6,6,.92); border-bottom: 1px solid rgba(255,255,255,.06); }   /* phones: text scrolls under the bar, so it gets a solid backdrop (a blur costs too much while scrolling) */
  body.menu-open nav.nav { z-index: 96; }
  body.menu-open nav.nav::before { opacity: 0 !important; }

  .msheet { display: flex; position: fixed; inset: 0; z-index: 94; flex-direction: column; padding: 88px 24px 32px; background: #050505; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1), visibility 0s linear .35s;
    font-family: "Geist", system-ui, sans-serif; color: #edede8; }
  body.menu-open .msheet { opacity: 1; visibility: visible; transform: none; transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1), visibility 0s; }
  .msheet a { color: #edede8; text-decoration: none; }
  .msheet .mbig { display: block; padding: 14px 0; font-family: "Jost", system-ui, sans-serif; font-weight: 300; font-size: 32px; letter-spacing: .005em; border-bottom: 1px solid rgba(237,237,232,.1); }
  .msheet .mfeat { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 10px 0 16px; border-bottom: 1px solid rgba(237,237,232,.1); }
  .msheet .mfeat a { padding: 9px 0; font-size: 15px; color: rgba(237,237,232,.7); }
  .msheet .mfeat a i { font-style: normal; font-size: 11px; color: rgba(237,237,232,.4); margin-left: 6px; }
  .msheet .mlab { margin-top: 18px; font-family: "Jost", system-ui, sans-serif; font-size: 11px; letter-spacing: .3em; color: rgba(237,237,232,.4); }
  .msheet .mbook { margin-top: auto; padding-top: 28px; }
  .msheet .mbook a { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 999px; background: #edede8; color: #070708; font-size: 16px; font-weight: 500; }
}

/* ---------------------------------------------------------------- hero */
@media (max-width: 760px) {
  /* each line stays whole (letters are separate spans, so wrapping would split words); the size follows the screen width */
  #headline, #after { font-size: min(21px, 5.1vw); letter-spacing: .1em; white-space: nowrap; padding-left: 0; padding-right: 0; line-height: 1.55; }
  #headline { top: 16vh; } #after { top: 16vh; }
  #headline .row.a, #headline .row.b { display: block; }
  #headline .row.a::after, #headline .row.b::after { content: none; }
  #rule { top: calc(16vh + min(130px, 31.6vw) + 20px); }   /* four H1 rows (4 × 1.55 × font size) plus a clear gap */
  #lede { left: 20px; right: 20px; bottom: calc(22px + env(safe-area-inset-bottom)); gap: 18px; }
  #lede .sub { font-size: 14.5px; max-width: none; }
  #lede .ctas { flex-direction: row; width: 100%; gap: 10px; }
  #lede .btn { flex: 1; justify-content: center; height: 48px; padding: 0 12px; font-size: 14.5px; }
}

/* ---------------------------------------------------------------- section two: the app window */
@media (max-width: 760px) {
  .s-does { padding: 104px 0 72px; }
  .s2wrap { width: calc(100vw - 32px); }
  .s2head h2 span, .s2head h2 em { font-size: 31px; line-height: 1.16; }
  .s2head p { font-size: 15.5px; }
  .aw-stage { width: calc(100vw - 16px); margin-top: 36px; padding: 18px 8px 10px; border-radius: 24px; }
  .appwin { border-radius: 12px; }
  .aw-title { height: 40px; padding-left: 14px; } .aw-ctl i { width: 36px; }
  .aw-tabs { height: auto; flex-wrap: wrap; padding: 0 6px; }
  .aw-tablist { width: 100%; overflow-x: auto; scrollbar-width: none; } .aw-tablist::-webkit-scrollbar { display: none; }
  .aw-tablist button { padding: 14px 12px; white-space: nowrap; }
  .aw-mode { width: 100%; margin: 0; padding: 10px 6px 12px; border-top: 1px solid rgba(255,255,255,.05); }
  .aw-mode em { display: none; }
  .aw-pill { width: 100%; } .aw-pill button { flex: 1; text-align: center; padding: 9px 8px; }
  .aw-body { height: 400px; }
  .aw-day { padding: 16px 16px 6px; }
  .aw-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 12px; padding: 13px 16px; align-items: start; }
  .aw-row .t { width: auto; padding-top: 3px; } .aw-row .msg { font-size: 14.5px; line-height: 20px; }
  .aw-row .prog { display: none; }
  .aw-row .v { grid-column: 2; font-size: 12px; }
  .aw-row.static { display: flex; }
  .aw-det, .aw-never, .aw-confirm { margin: 2px 14px 12px 74px; }
  .aw-never { margin-left: 14px; padding: 16px; }
  .aw-never .hd span { display: none; }
  .aw-foot { padding: 0 16px; } .aw-try { display: none; }
  .s2note { font-size: 10px; text-align: center; padding: 0 16px; }
}

/* ---------------------------------------------------------------- results */
@media (max-width: 760px) {
  .s-proof { padding: 110px 0 80px; }
  .s3wrap { width: calc(100vw - 32px); }
  .s3stats { margin-top: 40px; } .s3stats > div { padding: 22px 10px 20px; } .s3stats b { font-size: 36px; } .s3stats span { font-size: 12.5px; }
  .s3ask { margin-top: 48px; }
  .s3q { font-size: 25px; line-height: 1.55; }
  .s3pick > button { gap: 7px; } .s3pick > button i { width: 7px; height: 7px; transform: translateY(-3px) rotate(45deg); }
  /* the choices open as a bottom sheet with big, easy targets */
  .s3pick ul { position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); transform: none; min-width: 0; z-index: 97;
    padding: 10px; border-radius: 20px; box-shadow: 0 -20px 80px rgba(0,0,0,.9); max-height: 70vh; overflow: auto; }
  .s3pick ul button { padding: 15px 14px; font-size: 16px; }
  .s3pick.open::before { content: ''; position: fixed; inset: 0; z-index: 96; background: rgba(0,0,0,.6); }
  .s3ans { margin-top: 32px; padding: 24px 20px; border-radius: 18px; gap: 18px; }
  .s3n b { font-size: 60px; }
  .s3lines p { font-size: 15.5px; }
  .s3eg a { font-size: 13.5px; padding: 10px 0; }
  .s3every .s3runs { margin-top: 32px; }
  .s3bar h3 { font-size: 20px; }
  .s3filter { width: 100%; } .s3filter button { flex: 1; padding: 9px 6px; }
  .s3kinds { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; padding-bottom: 2px; } .s3kinds::-webkit-scrollbar { display: none; }
  .s3kinds button { white-space: nowrap; }
  .s3list a { min-height: 0; }
  .s3pager { padding: 16px 0 0; flex-direction: row; align-items: center; }
  .s3foot { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------------------------------------------------------------- why on your PC */
@media (max-width: 760px) {
  .s-why { padding: 104px 0 80px; }
  .s4wrap { width: calc(100vw - 32px); }
  .s4cmp { margin-top: 36px; }
  .s4row { gap: 0 14px; padding: 16px 0; min-height: 0; }
  .s4row > span { font-size: 14.5px; line-height: 1.45; }
  .s4row > span:first-child { font-size: 12px; letter-spacing: .04em; color: rgba(237,237,232,.45); padding-bottom: 8px; }
  .s4head { padding: 8px 0 12px; } .s4head > span { font-size: 15px !important; }
  .s4row:not(.s4head) > span.me::before { transform: translateY(-1px); }
  .s4note { font-size: 13px; }
}

/* ---------------------------------------------------------------- what's inside: words on top, the stage under them */
@media (max-width: 900px) {
  .s-feat { padding-top: 104px; }
  .f-scroll { height: 440vh; }
  .f-pin { height: 100vh; height: 100svh; width: calc(100vw - 24px); padding-top: 72px; padding-bottom: 16px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 18px; align-content: stretch; }
  .f-side { gap: 12px; padding: 0 6px; }
  .f-copy h3 { font-size: 28px; gap: 10px; } .f-tag { font-size: 11px; padding: 3px 9px; }
  .f-copy p { margin-top: 10px; font-size: 14.5px; line-height: 1.55; }
  .f-steps i { width: 22px; }
  .f-pin { align-items: stretch; }
  .f-side { align-self: end; }
  .f-stage { height: auto; min-height: 0; align-self: stretch; border-radius: 22px; }
  .f-scene { padding: 0; }
  .f-scene > * { transform: scale(.96); transform-origin: 50% 50%; }
  .f-scene .f-win, .f-scene .f-browser { width: 94%; }
  .f-sbx { grid-template-columns: 1fr; gap: 26px; width: 104%; }
  .f-field { padding: 26px; }
  .f-poke, .f-hit { display: none; }
  .f-reach { gap: 10px; }
  .f-browser, .f-win { width: 104%; }
  .f-view { height: 220px; }
}

/* ---------------------------------------------------------------- research and try */
@media (max-width: 760px) {
  .s-research { padding: 104px 0 80px; }
  .s6wrap, .s7wrap { width: calc(100vw - 32px); }
  .s6head h2 { font-size: 42px; } .s6head h2 em { font-size: 19px; }
  .s6list { margin-top: 40px; }
  .s6list a { padding: 24px 0; gap: 8px; }
  .s6t b { font-size: 21px; } .s6t i { font-size: 14.5px; }
  .s-try { padding: 40px 0 90px; }
  .s7wrap { padding-top: 64px; gap: 32px; }
  .s7txt h2 { font-size: 34px; }
  .s7btn { width: 100%; justify-content: center; }
  .s7drop { min-height: 200px; }
  .s7out { padding: 24px 20px; }
}

/* ---------------------------------------------------------------- footer */
@media (max-width: 760px) {
  .site-foot { grid-template-columns: 1fr; gap: 22px; padding: 44px 0 calc(30px + env(safe-area-inset-bottom)); width: calc(100vw - 40px); }
  .site-foot .fl { justify-content: flex-start; gap: 14px 22px; font-size: 14px; }
}

/* ---------------------------------------------------------------- inner pages */
@media (max-width: 760px) {
  .pg { width: calc(100vw - 32px); padding: 112px 0 80px; }
  .pg h1 { font-size: 40px; } .pg-lead { font-size: 16px; }
  .pg-sec { margin-top: 72px; }
  .pp-row { padding-top: 72px; gap: 22px; }
  .pp-stage { height: 360px; }
  .pp-stage .f-scene > * { transform: scale(.84); }
  .rp-feature { padding: 20px; } .rp-feature .pg-btn { width: 100%; justify-content: center; }
  .rp-list { margin-top: 44px; }
  .tm-actions .pg-btn { flex: 1; justify-content: center; }
  .tm-console { margin-top: 48px; } .tm-grid { padding: 14px; gap: 8px; } .tm-grid div { padding: 12px; }
  .tm-three { margin-top: 44px; gap: 28px; }
  .pg-form .row .pg-btn { width: 100%; justify-content: center; }
  .rs { width: calc(100vw - 32px); padding-top: 112px; }
  .rs h1 { font-size: 34px; } .rs-dek { font-size: 17px; }
  .rs-ioc td:first-child { width: 110px; }
}

/* ---------------------------------------------------------------- rows that scroll sideways on a phone: no scrollbar, a soft fade at the edge */
@media (max-width: 900px) {
  .s3kinds, .tm-tabs { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .s3kinds::-webkit-scrollbar, .tm-tabs::-webkit-scrollbar { display: none; }
}

/* ---------------------------------------------------------------- form fields at 16px on phones, so iPhones don't zoom in when one is tapped */
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ---------------------------------------------------------------- nothing gets cut on a phone */
@media (max-width: 900px) {
  /* the app window grows to fit what it shows, instead of a small box that scrolls inside the page */
  .aw-body { height: auto; min-height: 360px; overflow: visible; }
  /* the kinds of malware wrap onto a second line instead of running off the edge */
  .s3kinds { flex-wrap: wrap; overflow: visible; width: auto; }
  /* a run's family and file name wrap instead of being shortened with "..." */
  .s3list .w i { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  /* the teams console: the tabs that fit, whole */
  .tm-tabs { overflow: hidden; padding: 0 8px; }
  .tm-tabs span { padding: 14px 9px; font-size: 12.5px; }
  .tm-tabs span:nth-child(n+6) { display: none; }
}
@media (max-width: 360px) {
  .aw-tablist button { padding: 14px 8px; font-size: 13.5px; }
}
/* short phones: the feature pictures shrink to fit the space under the words */
@media (max-width: 900px) and (max-height: 740px) { .f-scene > * { transform: scale(.86); } }
@media (max-width: 900px) and (max-height: 620px) { .f-scene > * { transform: scale(.74); } }
/* the booking form fits the visible screen, address bar included */
@media (max-width: 900px) {
  .book { padding: 12px; }
  .book-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 28px 20px 22px; border-radius: 18px; }
  .book h2 { font-size: 28px; }
}
