/* iPad and other tablets, 761px to 1060px wide (Nov 24 design audit). Every rule in this file sits inside @media (min-width: 761px) and (max-width: 1060px). */

/* TABLET = THE DESKTOP ARRANGEMENT. Until now the 1060px rule in styles.css stacked every section into one column
   and hid the top bar's links between 761 and 1060px: the stacked page Cullen rejected. These rules put the
   computer's arrangement back (words | card in every section, three steps across, the two lists side by side, the
   links in the top bar) with type and spacing sized between the phone and the computer. Nothing is restyled.
   Sizes are fluid (clamp with vw) so 768, 810, 820, 834 and 1024 each get their own fit; the nested queries
   handle the few things that have to switch (features in one or two columns, the phone's label geometry, the
   background card's columns). Checked with qa/tablet-shots.mjs (Safari's engine, iPad profiles: an emulator). */
@media (min-width: 761px) and (max-width: 1060px) {
  :root { --gutter: clamp(26px, 3.5vw, 36px); --sec: clamp(68px, 8.6vw, 88px); --tab-gap: clamp(28px, 4.4vw, 52px); }
  html { scroll-padding-top: 69px; } /* the bar is 69px; more left a strip of the section above showing under it */

  /* type: between the phone and the computer */
  h1 { font-size: clamp(38px, 1.6vw + 26px, 43px); line-height: 1.07; }
  h2 { font-size: clamp(32px, 1.25vw + 22.5px, 36px); line-height: 1.1; }
  h3 { font-size: clamp(20px, 0.8vw + 14px, 22.5px); }
  .lede { margin-top: 14px; font-size: clamp(17px, 0.85vw + 10.5px, 19.5px); line-height: 1.55; }
  .hero__sub { margin-top: 20px; font-size: clamp(18px, 1vw + 10.4px, 21px); line-height: 1.5; }
  .eyebrow { margin-bottom: 12px; }
  .head { margin-bottom: clamp(36px, 5vw, 52px); }
  .head--c .lede { margin-inline: auto; text-wrap: balance; }
  .center { margin-top: clamp(36px, 5vw, 52px); }

  /* touch: nothing you tap is under 44px tall */
  .btn { min-height: 44px; }
  .btn--lg { min-height: 50px; }

  /* top bar: logo, the four links, the button, one row */
  .nav__in { justify-content: flex-start; gap: clamp(12px, 2vw, 32px); height: 68px; }
  .nav__logo { flex: none; display: flex; align-items: center; min-height: 44px; }
  .nav__logo img { height: clamp(32px, 4.2vw, 38px); }
  .nav__links { display: flex; gap: clamp(14px, 2.5vw, 30px); margin-inline: auto; }
  .nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(14px, 1.8vw, 15px); white-space: nowrap; }
  .nav__in > .btn { flex: none; padding: 9px clamp(14px, 1.9vw, 18px); font-size: clamp(14.5px, 1.9vw, 15.5px); white-space: nowrap; }

  /* opening screen: words left, the question card right, the quote card over its bottom-left corner */
  .hero { padding: clamp(52px, 7.4vw, 80px) 0 clamp(64px, 8vw, 76px); }
  .hero__in { grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr); gap: clamp(26px, 4vw, 48px); align-items: center; }
  .hero__cta { flex-wrap: nowrap; gap: 10px; margin-top: 26px; }
  .hero__cta .btn { flex: none; padding: 12px clamp(14px, 2.1vw, 22px); gap: 8px; font-size: clamp(14.5px, 1.95vw, 16.5px); white-space: nowrap; }
  .hero .ticks { gap: 8px clamp(10px, 1.7vw, 20px); margin-top: 18px; }
  .hero .ticks li { gap: 6px; font-size: clamp(12.5px, 1.62vw, 13.5px); white-space: nowrap; }
  .hero .ticks svg { width: 14px; height: 14px; }
  .hero__visual { margin-bottom: 26px; }
  .hero__visual .panel { padding: clamp(18px, 2.4vw, 24px) clamp(16px, 2.2vw, 22px) 58px; }
  .panel__head { gap: 8px; margin-bottom: 16px; }
  .panel__head b { font-size: clamp(13.5px, 1.75vw, 15px); white-space: nowrap; }
  .panel__head .chip { padding: 4px 8px; gap: 5px; font-size: clamp(10.5px, 1.4vw, 11.5px); }
  .hq__q { margin-bottom: 14px; font-size: clamp(23px, 2.9vw, 27px); }
  .hq__opts { gap: 8px; }
  .hq__opt { min-height: 50px; padding: 10px clamp(10px, 1.5vw, 15px); font-size: clamp(15px, 1.9vw, 16.5px); }
  .hq__note { margin-top: 12px; font-size: 13px; }
  .float { left: clamp(-26px, -2.4vw, -16px); bottom: -26px; max-width: calc(100% + 8px); padding: 12px 15px; }
  .float b { font-size: clamp(12.5px, 1.6vw, 13.5px); }
  .float span { font-size: clamp(11.5px, 1.45vw, 12px); }

  /* video: the centred frame */
  .demo { padding-bottom: clamp(72px, 9vw, 92px); }
  .frame__bar { padding: 13px 14px 9px; }

  /* who we're looking for: the two lists side by side, each row level with the one across from it */
  .fit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(7, auto); }
  .fit__col { display: grid; grid-row: 1 / span 7; grid-template-rows: subgrid; }
  .fit__col ul { display: grid; grid-row: 2 / span 6; grid-template-rows: subgrid; }
  .fit__col h3 { padding: 17px clamp(18px, 2.6vw, 26px); }
  .fit__col li { gap: 11px; padding: 17px clamp(18px, 2.6vw, 26px); font-size: clamp(15.5px, 0.4vw + 12.4px, 16px); }

  /* why nobody caught it: words | "What you won't get here" */
  #why { padding: var(--sec) 0; }
  .dark__in { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: var(--tab-gap); align-items: center; }
  .wont { padding: clamp(22px, 3vw, 30px); }
  .wont li { gap: 12px; padding: 15px 0; font-size: clamp(16.5px, 1vw + 8.8px, 19px); line-height: 1.3; }

  /* Dr. Cheshire: words, quote, button | background card */
  .feature { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: var(--tab-gap); align-items: center; }
  .feature__copy .btn { margin-top: 28px; }
  .say { margin-top: 24px; padding-left: 18px; }
  .say blockquote { font-size: clamp(23px, 1.2vw + 14px, 27px); }
  .tint { padding: clamp(14px, 2.6vw, 30px); }
  .facts { padding: 6px clamp(18px, 2.3vw, 22px); }
  .facts li { grid-template-columns: 1fr; gap: 3px; padding: 14px 0; }
  .facts span { font-size: 14px; }

  /* how it works: three steps across */
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.2vw, 32px); }
  .steps__n { margin-bottom: 18px; }
  .steps li > p { font-size: clamp(15.5px, 0.75vw + 9.8px, 17.5px); line-height: 1.55; }

  /* the app: words and the eight features | the iPhone with its five labels */
  .shell { padding: clamp(30px, 4.6vw, 52px) clamp(24px, 3.8vw, 44px); }
  #app .shell.feature { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: clamp(20px, 3.2vw, 40px); align-items: center; }
  .feat { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .feat b { font-size: 15.5px; }
  .feat span { font-size: 14px; }
  .app__phones--one { width: 100%; margin-inline: auto; }

  /* questions: heading and button left, the list right */
  .faq { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); gap: var(--tab-gap); align-items: start; }
  .faq__head .btn { margin-top: 24px; }
  .faq summary { gap: 14px; padding: 17px 18px; font-size: clamp(16px, 0.4vw + 12.9px, 17px); line-height: 1.35; }
  .faq details p { padding: 0 18px 18px; font-size: clamp(15.5px, 0.75vw + 9.8px, 17.5px); }

  /* closing panel: the ask and button left, "What you want back" right */
  .close__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--tab-gap); align-items: center; padding: clamp(44px, 6.4vw, 68px) clamp(30px, 4.6vw, 52px); }
  .close__panel .btn { margin-top: 28px; }
  .wants { padding: clamp(20px, 2.8vw, 26px); }
  .wants li { padding: 13px 0; font-size: clamp(16.5px, 0.8vw + 10.4px, 18.5px); }

  /* testimonials (hidden until the videos exist): three across */
  .tests { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 22px); }

  /* footer: logo left, links right */
  .foot__in { flex-wrap: nowrap; justify-content: space-between; }
  .foot__links { flex-wrap: nowrap; gap: 8px 24px; }
  .foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot__links .foot__ig { width: 44px; height: 44px; }

  /* Second audit, Nov 24 (docs/audit/desktop-tablet.md). Fixes the computer layout already had that the tablet
     layout was missing, plus four of its own. */
  /* the closing panel sits on the same cream as Questions above it (desktop fix 4) */
  .close { background: var(--bg); }
  /* the headline ended on the lone word "empty." */
  .hero h1 span { display: block; text-wrap: balance; }
  /* the three step paragraphs start on one line whatever their headings wrap to */
  .steps { grid-template-rows: auto auto 1fr; row-gap: 0; }
  .steps li { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  /* desktop fix 7: the step numbers */
  #how .steps__n span { width: 44px; height: 44px; font-size: 17px; border-color: var(--sky); }
  #how .steps__n::after { left: 60px; background: color-mix(in srgb, var(--white) 20%, transparent); }
  /* desktop fix 11: the navy button's lighter shadow on cream */
  .btn:where(:not(.btn--light, .btn--ghost)) { box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 35%, transparent); }
  /* desktop fix 3: background card values you can read */
  .facts span { color: var(--strong); }
  /* desktop fix 2: a short row sits in the middle of the taller row it shares */
  .fit__col li { align-items: center; }
  /* desktop fix 15: footer */
  .foot__base p { font-size: 13.5px; color: var(--strong); }
  .foot__links a { text-decoration-color: var(--body); }
  /* desktop fix 10: the video caption is a line you read (shows once the video exists) */
  .frame__bar { font-family: var(--serif); font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--white); }

  /* the quiz, full screen: the same centred column as on a computer */
  .quiz__close { width: 46px; height: 46px; }
  .quiz__back { min-height: 44px; }

  /* the floating "Dr. Cheshire's video" button clears the home indicator and never covers a button */
  .cue { min-height: 46px; bottom: calc(22px + env(safe-area-inset-bottom)); }

  /* PORTRAIT iPADS AND NARROW WINDOWS (up to 999px; the switch was at 900, where two columns did not fit yet). The app column is too narrow for the computer's label geometry at 11px, so the
     phone is a little narrower and the labels a little wider. Tops are worked out from the picture: the Dr.
     Cheshire button at 4.3% of the picture's height, the "5 of 9 done" bar 29%, the waiting rows 45.9%, the
     check-in card 65.8%, the workout card 81.3%. If the capture changes they have to be measured again. */
  @media (max-width: 999px) {
    .app__phones--one { aspect-ratio: 100 / 87; }
    .iphone--solo { left: 29.5%; width: 41%; }
    .callout { width: 26.5cqw; padding: 1.7cqw 1.9cqw; font-size: 11px; line-height: 1.22; }
    .callout span { margin-top: 2px; font-size: 10.5px; line-height: 1.25; }
    .callout::before { width: 4.7cqw; }
    .callout--r { left: 73.5%; right: auto; }
    .callout--r::after { left: -5.7cqw; right: auto; }
    .callout--l { right: 73.5%; left: auto; }
    .callout--l::after { right: -5.7cqw; left: auto; }
    .callout--1 { top: 11.5%; }
    .callout--2 { top: 32.3%; }
    .callout--3 { top: 46.5%; }
    .callout--4 { top: 63.2%; }
    .callout--5 { top: 76.2%; }
  }

  /* LANDSCAPE AND LARGE iPADS (1000px and up): room for the computer's two feature columns and the background
     card's label | value columns. */
  @media (min-width: 1000px) {
    .feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
    .facts li { grid-template-columns: 8em minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 15px 0; }
    #app .shell.feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .callout span { font-size: max(10.5px, 0.86em); }
  }
}
