/* Plastic Software — product pages. Loaded after site.css and showcase.css. */

.nav a[aria-current="page"]::after { transform: scaleX(1); }

.product-ink { --paper: #e9eae3; --paper-ink: #17141a; }

/* ---------- Hero: what it is, proof, and the way in — all before the fold ---------- */

.bl-hero {
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}
.bl-hero__app {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bl-hero__app img { width: 2.5rem; height: 2.5rem; filter: drop-shadow(0 0.4rem 0.7rem rgb(250 105 0 / 0.35)); }
.bl-hero__title {
  font-size: clamp(2.125rem, 4.9vw, 4.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.005em;
  font-feature-settings: "palt";
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.bl-hero__lead {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 32em;
  color: var(--muted);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.1875rem);
  font-weight: 500;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.bl-hero__cta {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}
.bl-hero__cta .app__store img { height: 3.25rem; }
.bl-hero__cta .app__store { box-shadow: var(--badge-ring); }

.rating {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  font-family: var(--font-display);
  line-height: 1.2;
}
/* five stars, filled to the score: the grey row underneath, the orange row clipped on top */
.rating__stars {
  position: relative;
  display: inline-block;
  align-self: center;
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.rating__stars::before { content: "★★★★★"; color: color-mix(in srgb, var(--ink) 18%, transparent); }
.rating__stars::after {
  content: "★★★★★";
  position: absolute;
  left: 0; top: 0;
  width: calc(var(--rating, 5) / 5 * 100%);
  overflow: hidden;
  color: #fa6900;
}
.rating__value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.rating { flex-wrap: wrap; }
.rating__stars, .rating__value { flex: none; }
.rating__count { margin-left: 0.25rem; color: var(--muted); font-size: 0.875rem; font-weight: 500; }

/* Device renders are transparent cut-outs; the page supplies the stage and the shadow */
.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 1200 / 1060;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f0ede8;
}
.shot--device img {
  position: absolute;
  left: 50%; top: 9%;
  width: auto;
  height: 116%;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 1.5rem 2rem rgb(23 20 26 / 0.22));
}
.credit, .note {
  margin-top: 0.75rem !important;
  color: var(--muted);
  font-size: 0.6875rem !important;
  line-height: 1.5 !important;
  opacity: 0.85;
}

/* landscape iPads sit whole and centred on the stage */
.shot.shot--pad img, .tile .shot.shot--pad img, .strip .shot.shot--pad img {
  top: 50%;
  width: 86%;
  height: auto;
  transform: translate(-50%, -50%);
}
.story .shot.shot--pad img { width: 82%; }

/* Three devices: the tablet behind, the fold opened on a spread in front, the phone beside it.
   Shadows are neutral; the page supplies the colour. */
.duo { position: relative; aspect-ratio: 1 / 0.9; }
.duo img { position: absolute; max-width: none; }
.duo .duo__pad {
  right: 4%; top: 0;
  width: auto; height: 86%;
  filter: drop-shadow(0 1.75rem 2.75rem rgb(15 12 20 / 0.26));
}
.duo .duo__fold {
  left: 0; bottom: 0;
  width: 60%; height: auto;
  filter: drop-shadow(0 1.5rem 2.25rem rgb(15 12 20 / 0.34));
}
.duo .duo__phone {
  right: 0; bottom: 3%;
  width: auto; height: 50%;
  filter: drop-shadow(0 1.25rem 2rem rgb(15 12 20 / 0.36));
}

@media (prefers-reduced-motion: no-preference) {
  .bl-hero__text > * { animation: fade 1s var(--ease) both; }
  .bl-hero__text > :nth-child(2) { animation-delay: 0.06s; }
  .bl-hero__text > :nth-child(3) { animation-delay: 0.14s; }
  .bl-hero__text > :nth-child(4) { animation-delay: 0.22s; }
  .bl-hero__shot { animation: fade 1.2s 0.2s var(--ease) both; }
}

@media (max-width: 55.99rem) {
  .bl-hero { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Who reads with it: the app's own onboarding illustrations ---------- */

.who { padding: clamp(4rem, 10vw, 9rem) var(--gutter) 0; }
.who__title {
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  word-break: keep-all;
}
.who__list {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 3vw, 2.5rem) clamp(1rem, 2.4vw, 2rem);
}
/* the drawings use dark outlines, so they always sit on a light stage */
.who__stage {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: #f0ede8;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.who__stage img { width: 96%; height: auto; transition: transform 0.8s var(--ease); }
.who__item:hover .who__stage img { transform: scale(1.04); }
.who__item h3 {
  margin-top: 1.125rem;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.who__item p { margin-top: 0.4rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
@media (max-width: 55.99rem) { .who__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Stories: one promise, one screen ---------- */

.stories {
  scroll-margin-top: calc(var(--header-h) - 2rem);
  padding: clamp(4rem, 10vw, 9rem) var(--gutter) 0;
  display: grid;
  gap: clamp(4rem, 10vw, 9rem);
}
.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}
.story:nth-child(odd) .story__text { order: 2; }
.story h3 {
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  word-break: keep-all;
}
.story p {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 26em;
  color: var(--muted);
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.125rem);
  line-height: 1.9;
}
.story__points {
  margin-top: clamp(1.25rem, 2.4vw, 1.75rem);
  max-width: 26em;
  border-top: 1px solid var(--line);
}
.story__points li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.65;
}
.story__points li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 1.15rem;
  width: 0.8rem; height: 0.45rem;
  border: solid #fa6900;
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg);
}
@media (max-width: 47.99rem) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story:nth-child(odd) .story__text { order: 0; }
}

.tile .shot { aspect-ratio: 4 / 3; }
.tile .shot--device img { height: 108%; top: 10%; }
.tile h3 {
  margin-top: 1.25rem;
  font-size: clamp(1.375rem, 1.2vw + 1rem, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  word-break: keep-all;
}
.tile p { margin-top: 0.5rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }


/* ---------- Chapters: one idea per screen ---------- */

.ch { padding: clamp(5rem, 13vw, 11rem) var(--gutter); }
.ch + .ch:not(.ch--dark) { padding-top: 0; }
.ch.ch--dark + .ch:not(.ch--dark) { padding-top: clamp(5rem, 13vw, 11rem); }
/* the last chapter hands over to the reference sections, which bring their own top space */
.ch:has(.bento) { padding-bottom: 0; }
.ch__title {
  font-size: clamp(2.125rem, 5.6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  word-break: keep-all;
}
/* the close-up takes the wider column */
.story:has(.closeup) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.story:has(.closeup) .story__text { order: 2; }
.story:has(.closeup) .closeup { order: 1; }
@media (max-width: 47.99rem) {
  .story:has(.closeup) { grid-template-columns: minmax(0, 1fr); }
  .story:has(.closeup) .story__text { order: 0; }
}
.story .ch__title { font-size: clamp(1.875rem, 4vw, 3.5rem); line-height: 1.25; }
.ch__lead {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 32em;
  color: var(--muted);
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.25rem);
  line-height: 1.9;
}
.ch--center { text-align: center; }
.ch--center .ch__lead { margin-inline: auto; }
.ch__stage { margin: clamp(2.5rem, 6vw, 5rem) auto 0; max-width: 62rem; text-align: left; }
.ch__stage img { display: block; margin-inline: auto; }
.ch__more { margin-top: clamp(1.75rem, 3vw, 2.5rem); color: var(--muted); font-size: 0.9375rem; line-height: 1.9; }
.ch__more a { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.75em; color: var(--ink); font-weight: 700; white-space: nowrap; }
.ch__more a svg { transition: transform 0.5s var(--ease); }
.ch__more a:hover svg { transform: translateX(3px); }
/* the tablet runs off the bottom edge of its stage */
.ch__stage--bleed {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding-top: 1rem;
  border-bottom: 1px solid var(--line);
}
.ch__stage--bleed img { width: min(70%, 40rem); height: auto; filter: drop-shadow(0 1.5rem 2.5rem rgb(23 20 26 / 0.22)); }
.ch__stage--wide { max-width: 72rem; }
.ch__stage.closeup { margin: clamp(2.5rem, 6vw, 5rem) auto 0; }
/* on a phone the wide close-up is cut to the highlighted page, so it stays legible */
@media (max-width: 47.99rem) {
  .ch__stage--wide img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 100% 0; }
}
.ch__stage--wide img { width: 100%; height: auto; }

/* A piece of the screen, shown close: no device around it */
.closeup { margin: 0; }
.closeup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(0.75rem, 1.6vw, 1.5rem);
  box-shadow: 0 0 0 1px var(--line), 0 2rem 3.5rem -1rem rgb(23 20 26 / 0.28);
}

/* A dark band: the reading chapter */
.ch--dark {
  --ink: #f5f2f6;
  --muted: rgb(245 242 246 / 0.62);
  --line: rgb(255 255 255 / 0.14);
  background: #0e0c10;
  color: var(--ink);
}

/* on the dark theme the page is already dark, so the band lifts instead */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ch--dark { background: #1c1920; } }
:root[data-theme="dark"] .ch--dark { background: #1c1920; }

/* Pinned scene: the picture stays, the words scroll. Without JS (or on narrow
   screens) every step simply carries its own picture. */
.pin__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(4rem, 12vw, 7rem); }
.pin__fig { margin: 0 0 1.75rem; display: grid; place-items: center; }
.pin__fig img { width: 100%; height: auto; border-radius: clamp(0.75rem, 1.6vw, 1.5rem); }
.pin__step h3 {
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  word-break: keep-all;
}
.pin__step > p { margin-top: clamp(1rem, 2vw, 1.5rem); max-width: 26em; color: var(--muted); font-size: clamp(1rem, 0.4vw + 0.92rem, 1.125rem); line-height: 1.9; }
.pin__fig, .pin__shot { position: relative; }
.pin__shot img { display: block; width: 100%; height: auto; border-radius: clamp(0.75rem, 1.6vw, 1.5rem); }
/* the same spread, read the other way: the second picture fades in over the first */
.pin__alt { position: absolute; inset: 0; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pin__alt { animation: flip 6s var(--ease) infinite; }
}
@keyframes flip { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.pin__stage { display: none; }
@media (min-width: 56rem) {
  .ch--dark:has(.pin--on) { padding-block: 0; }
  .pin--on { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 5rem); }
  .pin--on .pin__steps { gap: 0; }
  .pin--on .pin__step {
    min-height: 90svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.28;
    transition: opacity 0.5s var(--ease);
  }
  .pin--on .pin__step.is-active { opacity: 1; }
  .pin--on .pin__fig { display: none; }
  .pin--on .pin__stage {
    display: block;
    position: sticky;
    top: var(--local-h);
    height: calc(100svh - var(--local-h));
  }
  .pin--on .pin__shot {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(100%, calc((100svh - var(--local-h)) * 0.84 * 4 / 3));
    aspect-ratio: 4 / 3;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  }
  .pin--on .pin__shot.is-active { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pin--on .pin__step, .pin--on .pin__shot { transition: none; }
}

/* The rest, in one block of unequal cells */
.bento { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1rem, 2vw, 1.5rem); }
.bento__cell {
  position: relative;
  overflow: hidden;
  height: clamp(30rem, 46vw, 38rem);
  padding: clamp(1.75rem, 3.4vw, 3rem);
  border-radius: var(--radius);
  background: var(--panel);
}
.bento__cell h3 {
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  word-break: keep-all;
}
.bento__cell > p { margin-top: 0.625rem; max-width: 26em; color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
/* close-ups run off the cell's edges */
.bento__cell figure { position: absolute; margin: 0; left: clamp(1.75rem, 3.4vw, 3rem); right: 0; top: 40%; }
.bento__cell figure img {
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  border-radius: clamp(0.75rem, 1.4vw, 1.25rem) 0 0 0;
  box-shadow: 0 0 0 1px var(--line), 0 1.5rem 3rem -1rem rgb(23 20 26 / 0.3);
}
.bento__cell:not(.bento__cell--wide) figure { top: 46%; }
.bento__cell:not(.bento__cell--wide) figure img { width: 112%; }
@media (max-width: 47.99rem) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__cell { height: 30rem; }
}

/* Pictures settle into place as they scroll in, where the browser can tie
   an animation to scroll position. Elsewhere they are simply there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ch__stage--bleed img, .ch__stage--wide img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}
@keyframes settle { from { transform: scale(0.92); opacity: 0.4; } to { transform: none; opacity: 1; } }

.stories__all { margin-top: clamp(3rem, 7vw, 5rem); }
.stories__all { display: flex; justify-content: center; }
.stories__all a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stories__all svg { transition: transform 0.5s var(--ease); }
.stories__all a:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stories__all a:hover svg { transform: translateX(4px); }

/* iCloud Drive → library: the same five files, first as a folder, then as covers.
   Sized in container units so the drawing scales with its stage. */
.shot--cloud { container-type: inline-size; color: #17141a; }
.drop {
  position: absolute;
  inset: 0;
  padding: 4cqw 6cqw 9cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.drop__win {
  width: 100%;
  border-radius: 3cqw;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(23 20 26 / 0.06), 0 4cqw 7cqw -3.5cqw rgb(23 20 26 / 0.3);
}
.drop__bar {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  padding: 2.1cqw 3cqw;
  border-bottom: 1px solid rgb(23 20 26 / 0.08);
  color: #8a8590;
  font: 600 2.2cqw/1.4 var(--font-display);
}
.drop__bar svg { width: 3.6cqw; height: 3.6cqw; color: #1d8cf0; }
.drop__bar i { font-style: normal; opacity: 0.6; }
.drop__bar b { color: #17141a; font-weight: 700; }
.drop__files {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2cqw;
  padding: 2.8cqw 3cqw 2.6cqw;
}
.drop__files li { display: grid; justify-items: center; min-width: 0; }
/* a PDF shows its first page, as it does in Files; an archive shows the archive icon */
.drop__pdf {
  width: 62%;
  height: auto;
  border: 0.35cqw solid #fff;
  border-radius: 0.5cqw;
  box-shadow: 0 0 0 1px rgb(23 20 26 / 0.12), 0 0.8cqw 1.4cqw -0.6cqw rgb(23 20 26 / 0.4);
}
.drop__zip { width: 60%; height: auto; filter: drop-shadow(0 0.6cqw 0.8cqw rgb(23 20 26 / 0.14)); }
.drop__files li { align-content: end; }
.drop__files span {
  max-width: 100%;
  margin-top: 1.3cqw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 1.6cqw/1.4 var(--font-display);
}
.drop__arrow { flex: none; width: 3.2cqw; height: 5.4cqw; margin: 3cqw 0 2.6cqw; color: #fa6900; }
/* The result is the app's library as it really looks: a flat grid of covers.
   Each book carries the app's own shadow, which deepens with the page count
   (exported from the Library Design System: frame offsets are relative to a 108 x 161.45 cover). */
.drop__grid {
  flex: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 3cqw;
  padding: 0 1.5cqw;
}
.book { position: relative; }
.book__cover { position: relative; display: block; width: 100%; height: auto; }
.book__shadow { position: absolute; max-width: none; pointer-events: none; left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh); }
/* Favourite mark, as the library shows it: above the cover's top-left corner.
   Glyph, colour and shadow are the design system's "Accessory/Heart" (10.64 wide on a 108 cover). */
/* iCloud corner label: blue = in iCloud, green = downloaded */
.book__cloud { position: absolute; top: 0; right: 0; width: 26.3%; height: auto; }
.book__heart {
  position: absolute;
  left: 3%;
  bottom: 100%;
  width: 9.85%;
  height: auto;
  margin-bottom: 4.7%;
  filter: drop-shadow(0 0.4cqw 0.4cqw rgb(0 0 0 / 0.165));
}
.book--t1 { --sx: -3.70%;  --sy: -0.62%; --sw: 107.41%; --sh: 108.05%; }
.book--t2 { --sx: -5.56%;  --sy: -1.24%; --sw: 111.11%; --sh: 113.01%; }
.book--t3 { --sx: -9.26%;  --sy: -1.86%; --sw: 118.52%; --sh: 121.06%; }
.book--t4 { --sx: -14.81%; --sy: -3.10%; --sw: 129.63%; --sh: 135.31%; }
.book--t5 { --sx: -40.74%; --sy: -5.57%; --sw: 181.48%; --sh: 179.28%; }
@media (prefers-reduced-motion: no-preference) {
  .drop__arrow { animation: drop 2.4s var(--ease) infinite; }
  /* the covers appear one after another as the section comes into view */
  .drop__grid li { transition: transform 0.8s var(--ease), opacity 0.6s ease; }
  .drop__grid li:nth-child(2) { transition-delay: 0.08s; }
  .drop__grid li:nth-child(3) { transition-delay: 0.16s; }
  .drop__grid li:nth-child(4) { transition-delay: 0.24s; }
  .drop__grid li:nth-child(5) { transition-delay: 0.32s; }
  .js [data-reveal]:not(.is-in) .drop__grid li { opacity: 0; transform: scale(0.9); }
}
@keyframes drop {
  0% { transform: translateY(-18%); opacity: 0; }
  35%, 70% { transform: none; opacity: 1; }
  100% { transform: translateY(18%); opacity: 0; }
}

/* ---------- Fit: say plainly who this is for ---------- */

.fit { padding: clamp(5rem, 12vw, 10rem) var(--gutter) 0; }
.fit__title {
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
}
.fit__lead {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.125rem);
  line-height: 1.9;
}
.fit__col li span { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.fit__cols {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.fit__col {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--panel);
}
.fit__col--yes { background: color-mix(in oklab, #fa6900 10%, var(--panel)); }
.fit__col h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: 0.04em; }
.fit__col h3 { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.fit__tag {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in oklab, #fa6900 14%, var(--panel));
  color: color-mix(in oklab, #fa6900 70%, var(--ink));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.fit__col--no h3, .fit__col--no li, .fit__col--yet h3, .fit__col--yet li { color: var(--muted); }
.fit__col ul { margin-top: 1rem; }
.fit__col li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.75rem;
  border-top: 1px solid var(--line);
  font-weight: 500;
  line-height: 1.65;
}
.fit__col li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 1.2rem;
  width: 0.8rem; height: 0.45rem;
  border: solid #fa6900;
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg);
}
.fit__col--no li::before {
  top: 1.45rem;
  height: 0;
  border-width: 0 0 2.5px 0;
  border-color: var(--muted);
  transform: none;
}
/* "not yet": an open ring, waiting to be filled */
.fit__col--yet li::before {
  left: 0.2rem; top: 1.05rem;
  width: 0.7rem; height: 0.7rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: none;
}

/* ---------- All features: complete, but out of the way ---------- */

.allf { padding: clamp(5rem, 12vw, 10rem) var(--gutter) clamp(4rem, 10vw, 8rem); }
.allf__title {
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
}
.allf__list { margin-top: clamp(1.5rem, 3.5vw, 2.5rem); border-top: 2px solid var(--ink); }
.acc { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.acc summary {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: clamp(1.125rem, 2.2vw, 1.625rem) 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.125rem, 1vw + 0.9rem, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
}
.acc summary::-webkit-details-marker { display: none; }
.acc__count {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.acc__mark { margin-left: auto; flex: none; color: var(--muted); transition: transform 0.45s var(--ease), color 0.3s; }
.acc summary:hover .acc__mark { color: var(--ink); }
.acc[open] .acc__mark { transform: rotate(45deg); color: var(--ink); }
.fgroup-list {
  columns: 2 20rem;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.fgroup-list li {
  break-inside: avoid;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.65;
}
.fgroup-list strong { display: block; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; }
.fgroup-list li span { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.875rem; }

/* ---------- Kept current: eleven years of following the platform ---------- */

.since { padding: clamp(5rem, 12vw, 10rem) var(--gutter) 0; }
.since__title {
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  word-break: keep-all;
}
.since__lead {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.125rem);
  line-height: 1.9;
}
.since__line {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  row-gap: 2rem;
}
.since__line li { position: relative; border-top: 2px solid var(--ink); }
.since__line li::before {
  content: "";
  position: absolute;
  left: 0; top: -8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
  transition: background-color 0.3s, border-color 0.3s;
}
.since__line li:last-child::before { background: #fa6900; border-color: #fa6900; }
.since__line a {
  display: block;
  height: 100%;
  padding: 1.5rem 1rem 0.5rem 0;
}
.since__line time {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.since__line span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.2s;
}
.since__line li:hover::before { background: var(--ink); }
.since__line li:last-child:hover::before { background: #fa6900; }
.since__line a:hover span { color: var(--ink); }

.since__now {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-variant-numeric: tabular-nums;
}
.since__now > span { color: var(--muted); font-size: 0.9375rem; }
.since__now strong { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.since__now a { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 700; }
.since__now svg { transition: transform 0.5s var(--ease); }
.since__now a:hover svg { transform: translateX(4px); }

@media (max-width: 84.99rem) {
  .since__line { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 51.99rem) {
  /* the line turns to run down the page */
  .since__line { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-left: 2px solid var(--ink); }
  .since__line li { border-top: 0; }
  .since__line li::before { left: -7px; top: 0.55rem; }
  .since__line a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: baseline; padding: 0 0 1.5rem 1.5rem; }
  .since__line li:last-child a { padding-bottom: 0; }
  .since__line time { font-size: 1.5rem; }
  .since__line span { margin-top: 0; font-size: 0.9375rem; }
}

/* ---------- Voices: short lines from App Store reviews ---------- */

.voices { padding: clamp(5rem, 12vw, 10rem) var(--gutter) 0; }
.voices[hidden] { display: none; }
.voices__title {
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
}
.voices__list {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.voice {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--panel);
}
.voice__stars { color: #fa6900; font-size: 1rem; letter-spacing: 0.1em; line-height: 1; }
.voice blockquote { margin: 1rem 0 1.5rem; font-feature-settings: "palt"; }
.voice blockquote strong {
  display: block;
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.3125rem);
  font-weight: 700;
  line-height: 1.6;
}
.voice blockquote p { margin-top: 0.625rem; font-size: 0.9375rem; line-height: 1.85; }
.voice cite {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: normal;
}

/* ---------- Ways onward: the questions people ask before buying, then updates and feedback ---------- */

.ask { padding: clamp(5rem, 12vw, 10rem) var(--gutter) 0; }
.ask__title {
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
}
.ask__list {
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
}
.ask__list a {
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.375rem) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.125rem);
  font-weight: 700;
  line-height: 1.6;
  transition: border-color 0.3s;
}
.ask__list svg, .ask__all svg, .route__arrow svg { flex: none; transition: transform 0.5s var(--ease), color 0.3s; }
.ask__list svg { margin-top: 0.3em; color: var(--muted); }
.ask__list a:hover { border-bottom-color: var(--ink); }
.ask__list a:hover svg { color: var(--ink); transform: translateX(4px); }
.ask__all { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.ask__all a { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 700; }
.ask__all a span { text-decoration: none; }
.ask__all a:hover svg { transform: translateX(4px); }

.routes {
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(5rem, 12vw, 10rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.route {
  position: relative;
  min-height: clamp(8rem, 12vw, 10rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
@media (hover: hover) {
  .route:hover { transform: translateY(-4px); box-shadow: 0 1.75rem 3rem -1.75rem rgb(23 20 26 / 0.35); }
}
.route__label { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.04em; }
.route__big {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.route__note { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.route__sep { margin-inline: 0.15em; }
.route__text {
  margin-top: auto;
  max-width: 18em;
  font-size: clamp(1.125rem, 1vw + 0.9rem, 1.5rem);
  font-weight: 700;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.route--art { padding-right: clamp(9rem, 24vw, 19rem); min-height: clamp(10rem, 18vw, 15rem); overflow: hidden; }
.route__art {
  position: absolute;
  right: clamp(3.5rem, 8vw, 7rem);
  top: 50%;
  width: clamp(7.5rem, 15vw, 12.5rem);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #f0ede8;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.route__art img { width: 104%; max-width: none; height: auto; }
@media (max-width: 35rem) {
  .route--art { padding-right: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 9.5rem; }
  .route__art { top: auto; bottom: 1.25rem; right: 1.25rem; width: 7.5rem; transform: none; }
}
.route__arrow {
  position: absolute;
  top: clamp(1.25rem, 2.6vw, 2rem);
  right: clamp(1.25rem, 2.6vw, 2rem);
  width: 2.75rem; height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.route:hover .route__arrow { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.route:hover .route__arrow svg { transform: translateX(2px); }

/* ---------- Closing call ---------- */

.get {
  background: var(--s-bg);
  color: var(--s-ink);
  padding: clamp(4.5rem, 11vw, 9rem) var(--gutter);
  display: grid;
  justify-items: center;
  text-align: center;
}
.get__icon { width: clamp(4.5rem, 7vw, 6rem); height: auto; filter: drop-shadow(0 0.75rem 1.25rem rgb(250 105 0 / 0.35)); }
.get__name {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}
.get__platform {
  margin: 0.75rem 0 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in oklab, #fa6900 60%, var(--s-ink));
}
.get__row { display: flex; align-items: center; gap: 1.5rem; }
.get__row .app__store img { height: 3.25rem; }
.get__qr {
  width: 5.5rem; height: 5.5rem;
  padding: 0.4rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(23 20 26 / 0.1);
  image-rendering: pixelated;
}
/* a QR code is for the screen you are not holding */
@media (hover: none), (max-width: 43.99rem) { .get__qr { display: none; } }

/* ---------- Related pages ---------- */

.more { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem); }
.more__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  column-gap: clamp(1rem, 2vw, 1.5rem);
}
.more__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  transition: border-color 0.3s;
}
.more__links svg { flex: none; color: var(--muted); transition: transform 0.6s var(--ease), color 0.3s; }
.more__links a:hover { border-bottom-color: var(--ink); }
.more__links a:hover svg { color: var(--ink); transform: translate(2px, -2px); }

/* ---------- Typesetting: break headings by phrase and balance their lines ---------- */
.bl-hero h1, .ch__title, .pin__step h3, .bento__cell h3, .who__title, .fit__title, .since__title,
.voices__title, .ask__title, .voice blockquote strong { text-wrap: balance; word-break: auto-phrase; }
.ch__lead, .story p, .pin__step > p, .bento__cell > p, .voice blockquote p, .ch__more { text-wrap: pretty; word-break: auto-phrase; }

/* deep links from the top page land below the sticky local nav */
.ch__title { scroll-margin-top: calc(var(--local-h) + 2.5rem); }

/* English headings run longer than the Japanese ones */
:lang(en) .bl-hero__title { font-size: clamp(2.25rem, 4.6vw, 4.25rem); letter-spacing: -0.02em; }
:lang(en) :is(.ch__title, .pin__step h3, .who__title, .fit__title, .since__title, .voices__title, .ask__title, .bento__cell h3) { letter-spacing: -0.02em; }
@media (max-width: 35rem) { :lang(en) .bl-hero__title { font-size: min(7.6vw, 2.25rem); } }

/* ---------- Honest edges: requirements, limits, and the smaller features ---------- */
.get__os { display: block; margin-top: 0.35rem; color: var(--s-ink, var(--ink)); opacity: 0.6; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; }
.fit__limits { margin-top: clamp(1.25rem, 2.4vw, 1.75rem); max-width: 44em; color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
.fit__limits a { display: inline-block; margin: 0.35rem 1.25em 0 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.25em; white-space: nowrap; }
.fit__limits a:hover { text-decoration-color: currentColor; }
.extras {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  padding: 0;
}
.extras li { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; font-weight: 600; line-height: 1.6; }
@media (max-width: 47.99rem) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .extras { grid-template-columns: minmax(0, 1fr); } }

/* The library chapter: the screen runs on past the bottom edge, as the list itself does */
.ch__stage--wall { max-width: 78rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(0.75rem, 1.6vw, 1.5rem) clamp(0.75rem, 1.6vw, 1.5rem) 0 0;
  box-shadow: 0 0 0 1px var(--line), 0 2rem 3.5rem -1rem rgb(23 20 26 / 0.28);
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.ch__stage--wall img { width: 100%; height: auto; border-radius: 0; box-shadow: none; }
@media (max-width: 47.99rem) { .ch__stage--wall { aspect-ratio: 4 / 3; } .ch__stage--wall img { width: 160%; max-width: none; } }

/* Narrow screens: the bento cells grow with their text and the picture follows it,
   so a longer caption (or a longer language) never runs under the screenshot */
@media (max-width: 47.99rem) {
  .bento__cell, .bento__cell:not(.bento__cell--wide) { height: auto; padding-bottom: 0; }
  .bento__cell figure, .bento__cell:not(.bento__cell--wide) figure { position: static; margin: 1.5rem calc(clamp(1.75rem, 3.4vw, 3rem) * -1) 0 0; height: 15rem; overflow: hidden; }
}

/* hero: the three devices reach a little past the right gutter so they read large */
@media (min-width: 56rem) { .bl-hero__shot { margin-right: calc(var(--gutter) * -0.7); } }
