/* The three homes (/, /en, /fr; scripts/site-home.py), on site.css's tokens, twelve columns and type scale (D-H115).
   The first screen is the sentence, the buttons and the product whole: the Mac picture eight columns wide with its line
   over it, the iPhone in the last four, both standing on one baseline. Under it the two dictations as message bubbles,
   three facts, the day on the Mac, and a download card in the hero gradient. Pictures only: no film, no sound. */
.home .hero { padding: 2rem 0 var(--band); }
.home .hero h1 { max-width: none; font-size: clamp(2.1rem, 1rem + 3vw, 3.3rem); }
.home .hero .sub { margin: 1.1rem 0 1.6rem; max-width: 44rem; }
.home .hero > .facts { margin-top: .9rem; }

.scene { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; margin-top: 2.5rem; }
.scene figure { margin: 0; min-width: 0; }
.scene figcaption { color: var(--soft); font-size: var(--t3); line-height: 1.35; text-wrap: balance; }
.scene .on-mac { grid-column: 1 / 9; }
.scene .on-mac img { width: 100%; border-radius: 18px; box-shadow: 0 30px 80px -40px var(--shadow); }
.scene .on-mac figcaption { color: var(--ink); font-size: var(--t2); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 1.5rem; }
.scene .on-phone { grid-column: 9 / -1; display: grid; justify-items: center; }
.scene .on-phone figcaption { margin-top: 1rem; text-align: center; font-size: var(--t4); max-width: 24ch; }
/* the iPhone: the simulator's screen as captured, in a plain dark rim with the island the capture leaves out */
.phone { position: relative; width: 100%; max-width: 290px; padding: 9px; border-radius: 52px; background: #0b0b0d; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 70px -30px var(--shadow); }
.phone img { width: 100%; border-radius: 43px; }
.phone::after { content: ""; position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: 31%; height: 26px; border-radius: 999px; background: #000; }

/* the other pages (scripts/site-pages.py): the keyboard's page shows the iPhone first, a Mac page the Mac alone */
.scene.phone-first .on-phone { grid-column: 1 / 5; grid-row: 1; }
.scene.phone-first .on-mac { grid-column: 5 / -1; grid-row: 1; }
.scene.mac-only .on-mac { grid-column: 2 / 12; }

/* a comparison: each point as two bubbles side by side, Habla's and the other's own words with where they were read */
.home .versus .pairs { grid-column: 1 / -1; display: grid; gap: 2rem; }
.home .versus .pair h3 { font-size: var(--t3); margin: 0 0 .75rem; }
.home .versus .bubbles figure { grid-template-rows: none; }
.bubbles figure.theirs p { color: var(--ink); border-bottom-left-radius: .35rem; }
.bubbles figure.theirs p + p { border-top-left-radius: .35rem; }
.bubbles q { quotes: "“" "”" "‘" "’"; }
.bubbles p > a { display: block; margin-top: .35rem; font-size: var(--t4); color: var(--soft); }
.home .versus > .after, .home .versus > .note { grid-column: 1 / -1; }
.home .versus > .note { color: var(--soft); font-size: var(--t4); }

/* the two dictations: the same sentence in two bubbles, Habla's and Apple's dictation set to Spanish, three times */
.home .tried .rows { display: grid; gap: 1.75rem; }
.bubbles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.bubbles figure { margin: 0; display: grid; gap: .5rem; align-content: start; grid-template-rows: auto 1fr; }
.bubbles figcaption { font-size: var(--t4); color: var(--soft); font-weight: 600; }
.bubbles figure:first-child figcaption { color: var(--coral); }
.bubbles p { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.35; padding: .85rem 1.1rem; border-radius: 1.25rem; background: var(--card); border: 1px solid var(--line); }
.bubbles figure:first-child p { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; border-color: transparent; font-weight: 600; border-bottom-right-radius: .35rem; }
.bubbles figure:last-child p { border-bottom-left-radius: .35rem; color: var(--soft); }
.bubbles mark { color: var(--bad); background: none; text-decoration: line-through; text-decoration-thickness: 1px; }

.home .three > p { grid-column: span 4; border-top: 2px solid var(--coral); padding-top: .9rem; font-size: var(--t3); font-weight: 600; line-height: 1.35; text-wrap: balance; }

/* the day on the Mac: the top of the real Dashboard, the whole width of the page so its numbers read */
.home .day > img { grid-column: 1 / -1; width: 100%; margin-top: .75rem; border-radius: 16px; border: 1px solid var(--line); }
.home .day > .head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.home .day > .head h2 { grid-column: 1 / 6; }
.home .day > .head .note { grid-column: 7 / -1; margin: 0; font-size: var(--t3); }

.home .get { border-top: 0; padding-top: 0; }
.get .offer { grid-column: 1 / -1; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; border-radius: 24px; padding: 3rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gap); row-gap: .6rem; align-items: center; }
.get .offer h2 { grid-column: 1; font-size: var(--t1); letter-spacing: -.03em; }
.get .offer .price { grid-column: 1; grid-row: auto; color: rgba(255, 255, 255, .92); font-weight: 500; font-size: var(--t3); max-width: 34rem; }
.get .offer .facts { grid-column: 1; margin: 0; color: rgba(255, 255, 255, .78); }
.get .offer .cta { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: stretch; }
.get .offer .button.solid { background: #fff; color: var(--hero-a); }
.get .offer .button.solid:hover { background: rgba(255, 255, 255, .9); }
.get .offer .button.quiet { color: #fff; border-color: rgba(255, 255, 255, .55); }
.get .offer :focus-visible { outline-color: #fff; }   /* the page's blue ring would not show on the gradient */

@media (max-width: 760px) {
  .home .hero { padding-top: 1rem; }
  /* on a phone the App Store comes first */
  .home .hero .cta #ios, .kit .cta #ios { order: -1; }
  /* one column on a phone: twelve columns' eleven gaps alone are wider than a 360 screen */
  .scene { margin-top: 2.25rem; row-gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
  .scene .on-mac, .scene .on-phone, .scene.phone-first .on-mac, .scene.phone-first .on-phone, .scene.mac-only .on-mac { grid-column: 1 / -1; grid-row: auto; }
  /* on a phone the iPhone comes first, as the App Store button does (D-H118) */
  .scene .on-phone { order: -1; }
  .scene .on-mac figcaption { margin-top: 1.25rem; }
  /* the Mac picture whole, inside the page's margins: nothing in it is cut on a phone */
  .scene .on-mac img { border-radius: 12px; }
  .phone { max-width: 270px; }
  .bubbles { grid-template-columns: 1fr; gap: .9rem; }
  .bubbles figure:last-child { padding-left: 1.5rem; }
  .bubbles figure:first-child { padding-right: 1.5rem; }
  .home .three > p { grid-column: 1 / -1; }
  .home .day > .head h2, .home .day > .head .note { grid-column: 1 / -1; }
  .home .day > .head { row-gap: .6rem; grid-template-columns: minmax(0, 1fr); }
  .get .offer { grid-template-columns: minmax(0, 1fr); padding: 1.75rem 1.5rem; border-radius: 18px; }
  .get .offer .cta, .get .offer h2, .get .offer .price, .get .offer .facts { grid-column: 1; grid-row: auto; }
  .get .offer .cta { margin: .5rem 0; }
}

/* nothing of the edge-to-edge Mac picture widens a phone page */
.home { overflow-x: clip; }

/* one line under the quotes that leads to a sister page */
.wrap.more { margin-top: 0; margin-bottom: 3rem; color: var(--soft); }
.wrap.more a { color: inherit; }
