/* Desktop fixes from the Nov 24 design audit. Every rule in this file sits inside @media (min-width: 1061px). */

@media (min-width: 1061px) {
  /* 16. a paragraph sat too close under a two line headline */
  .lede { margin-top: 20px; }

  /* 11. the navy button's shadow was heavy on cream. :where keeps this as weak as the plain .btn rule, so the
     white buttons (hero, top bar, closing panel) and the outline button keep having no navy shadow. */
  .btn:where(:not(.btn--light, .btn--ghost)) { box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 35%, transparent); }

  /* 12. top bar: the links are centred on the page, not between the logo and the button */
  .nav__in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__logo { grid-column: 1; justify-self: start; }
  .nav__links { grid-column: 2; margin-inline: 0; }
  .nav__in > .btn { grid-column: 3; justify-self: end; margin-left: 0; }
  .nav__logo img { height: 44px; }

  /* 9. opening screen */
  .hero .btn--ghost { border-color: color-mix(in srgb, var(--white) 32%, transparent); }
  .hero__visual { margin-bottom: 44px; }
  .hero__visual .panel { padding-bottom: 44px; }
  .hero .float { bottom: -44px; }
  .hero .chip { font-size: 12.5px; }
  .hero .hq__note { font-size: 14.5px; }
  .hero .ticks li { font-size: 14.5px; }

  /* 17. focus rings you can see: navy on the cream question card, light blue round the floating pill */
  .hero .panel :focus-visible { outline-color: var(--accent); }
  .cue:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
  .cue.is-off { visibility: hidden; }
  @media (prefers-reduced-motion: no-preference) {
    .cue { transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s; }
    .cue.is-off { transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  }

  /* 10. the video caption is a line you read, not a footnote */
  .frame__bar { padding: 18px 20px 14px; font-family: var(--serif); font-size: 17px; font-weight: 400; line-height: 1.5; color: var(--white); }

  /* 1. who we're looking for: the paragraph is centred under the centred headline */
  .head--c .lede { max-width: none; margin-inline: auto; text-wrap: balance; }

  /* 2. the two lists share their rows, so every divider on the left meets one on the right */
  .fit { grid-template-rows: repeat(7, auto); }
  .fit__col { display: grid; grid-row: span 7; grid-template-rows: subgrid; }
  .fit__col ul { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
  .fit__col li { align-items: center; }

  /* 8. the two dark cards are one component: same padding, label, rows and line height */
  .wont, .wants { padding: 32px; }
  .wont p, .wants p { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--sky); }
  .wont ul, .wants ul { margin-top: 12px; }
  .wont li, .wants li { padding: 16px 0; font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
  .wont li:last-child, .wants li:last-child { padding-bottom: 0; }
  .wont svg { color: var(--sky); }

  /* 3. Dr. Cheshire's background card: values you can read, and room for them */
  .tint { padding: 32px; }
  .facts li { grid-template-columns: 0.7fr 1.6fr; }
  .facts span { font-size: 16px; line-height: 1.45; color: var(--strong); text-wrap: balance; }

  /* 7. how it works */
  #how .head { max-width: none; }
  #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); }

  /* 6. the app: the panel's text starts on the same line as the closing panel's (72px in, less its own border) */
  .shell { padding: 64px 71px; }
  .shell.feature { gap: 48px; }
  .feat { gap: 24px 32px; }
  .feat span { font-size: 15px; color: var(--strong); }

  /* 5. the app's labels. Wider, with more padding, and clear of the phone. Geometry, all in cqw (1% of the
     figure's width): the phone is 42 wide from 29 to 71, with a 1.7 black bezel; the labels are 26.5 wide and stop
     2.5 short of it. Each line runs from its label to a white dot in the middle of the bezel (0.85 in from the
     phone's edge) and turns white where it crosses the phone, so it can be seen on the black. The tops are the
     picture's own measurements: picture top 7.005, picture height 75.01, so a thing at p% of the picture sits at
     7.005 + p * 0.7501 (Dr. Cheshire button 4.3, done bar 29, waiting rows 45.9, check-in 65.8, workout 81.3). */
  .app__phones--one { width: calc(100% + 40px); margin-inline: -20px; aspect-ratio: 100 / 89; }
  .iphone--solo { left: 29%; width: 42%; }
  /* the volume buttons sit either side of the "Today at a glance" line instead of under it */
  .iphone--solo::before { top: 24.3%; }
  .callout { width: 26.5cqw; padding: 2.2cqw 2.6cqw; line-height: 1.3; }
  .callout b { text-wrap: balance; }
  .callout span { margin-top: 3px; text-wrap: balance; }
  .callout::before { width: 3.35cqw; }
  .callout::after { width: 1.4cqw; height: 1.4cqw; margin-top: -0.7cqw; box-shadow: none; }
  .callout--r { left: 73.5%; right: auto; }
  .callout--r::before { background: linear-gradient(to right, var(--white) 0 1.6cqw, var(--accent) 1.6cqw); }
  .callout--r::after { left: -4.05cqw; right: auto; }
  .callout--l { right: 73.5%; left: auto; }
  .callout--l::before { background: linear-gradient(to left, var(--white) 0 1.6cqw, var(--accent) 1.6cqw); }
  .callout--l::after { right: -4.05cqw; left: auto; }
  .callout--1 { top: 10.23cqw; }
  .callout--2 { top: 28.76cqw; }
  .callout--3 { top: 41.43cqw; }
  .callout--4 { top: 56.36cqw; }
  .callout--5 { top: 67.99cqw; }

  /* 13. questions: the heading stays beside the list while it scrolls, under the 70px top bar */
  .faq__head { position: sticky; top: 102px; }
  .faq details p { max-width: 64ch; }

  /* 4. the closing panel sits on the same cream as Questions above it; the footer keeps the deeper cream */
  .close { background: var(--bg); }

  /* 14. the closing headline breaks after "you," */
  .close__panel h2 { max-width: 7.2em; text-wrap: wrap; }

  /* 15. footer */
  .foot__base p { font-size: 13.5px; color: var(--strong); }
  .foot__links a { text-decoration-color: var(--body); }
  .foot__links .foot__ig { width: 36px; height: 36px; }
  .foot__ig svg { width: 19px; height: 19px; }
}
