/* =========================================================================
   Laytr — laytr.app
   The site in the look of the approved Direction B App Store frames
   (marketing/app-store/screenshots-v2, owner's pick 2026-09-24) and the
   "Bento" homepage direction the owner chose on 2026-09-28
   (design/website-revamp-2026-09/b).

   The rules this sheet keeps:

     - One light world, on purpose. The page is paper, and its surfaces are
       the App Store frames' own colours: tomato, sky, sage, oat, plum, ink
       and the lime mark. A dark variant would have to repaint every tile,
       and the frames it matches have none (DECISIONS 2026-09-28).
     - Ink does the structure. Objects are "plates": an ink border and a
       hard, unblurred ink offset. There are no soft shadows and no
       gradients used as decoration.
     - The lime mark is identity. It is never a text colour on paper; it is
       a fill, a plate shadow, or text on ink and plum.
     - White text sits only on ink, plum or tomato, and only large and bold
       on tomato. Everywhere else text is ink.
     - The mono catalog layer is garnish and never exceeds caption size.

   website/tools/test_contrast.py reads the first :root block below and
   measures every pairing the site renders.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* The frames' palette (marketing/app-store/screenshots-v2/compose.py). */
  --paper: #f6f5f1;
  --white: #ffffff;
  --ink: #141414;
  --soft: #3a3935;
  --muted: #6e6c65;
  --tomato: #f26b3a;
  --sky: #8fd0f0;
  --sage: #c1d6aa;
  --oat: #efd9b4;
  --plum: #2f4858;
  --mark: #c6d92e;
  --on-dark-soft: #d8d8d2;
  --on-plum-soft: #dde6ea;
  --pile: #ebe9e2;
  --pile-line: #c3c0b7;
  --pile-text: #55534d;

  /* The names the rest of the build and the contrast test speak. */
  --field: #f6f5f1;
  --plinth: #ffffff;
  --ink-muted: #6e6c65;
  --laytr-mark: #c6d92e;
  --on-mark: #141414;
  --signal: #c63e18;
  --on-signal: #ffffff;
  --rule: #dddbd2;

  /* Spacing — base 4. The page sources use these in inline styles. */
  --s-xs: 4px;
  --s-s: 8px;
  --s-m: 12px;
  --s-l: 16px;
  --s-xl: 24px;
  --s-xxl: 40px;

  /* Shape */
  --r: 28px;
  --r-card: 22px;
  --r-btn: 14px;
  --plate: 5px 6px 0 var(--ink);
  --plate-lg: 10px 12px 0 var(--ink);

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Layout */
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 36rem;
  --pad: clamp(22px, 2.4vw, 34px);
  --gap: clamp(14px, 1.6vw, 22px);
  --nav-h: 64px;
}

/* The increased-contrast setting only ever darkens the quiet greys. */
@media (prefers-contrast: more) {
  :root {
    --soft: #262522;
    --muted: #4f4d48;
    --ink-muted: #4f4d48;
    --pile-text: #3a3935;
    --rule: #b8b6ad;
  }
}

/* -------------------------------------------------------------------------
   2. Reset and base
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  /* without this, an img keeps its height attribute (1125px, 582px…) while
     max-width shrinks its width, and every sticker and device shot stretches */
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--mark);
}

a:hover {
  text-decoration-color: var(--ink);
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* The one focus treatment: an ink ring with a paper ring inside it, so the
   ring never touches a lime or coloured fill directly. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--paper);
}

::selection {
  background: var(--mark);
  color: var(--on-mark);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: var(--s-l);
  top: var(--s-l);
  z-index: 100;
  padding: var(--s-m) var(--s-l);
  background: var(--ink);
  color: var(--paper);
  font: 650 15px/1 var(--sans);
  border-radius: 10px;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
   3. Type
   ------------------------------------------------------------------------- */

.display {
  font-size: clamp(42px, 6.2vw, 88px);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.headline {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--soft);
}

.body {
  font-size: 17px;
  line-height: 1.55;
}

.footnote {
  font-size: 15px;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.catalog {
  font: 600 12px/1.35 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog--strong {
  color: var(--ink);
  font-weight: 700;
}

.catalog__sep {
  display: inline-block;
  margin: 0 0.6em;
  color: var(--muted);
}

/* A section number, worn the way the homepage's step tiles wear theirs. */
.serial {
  display: inline-block;
  align-self: flex-start;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--white);
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: var(--s-l);
}

.measure {
  max-width: var(--measure);
}

.center {
  text-align: center;
}

/* The brand asterisk, inlined from assets/brand/symbol.svg. */
.mark {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}

.mark svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(1.5px 1.5px 0 var(--ink));
}

.mark--lg {
  display: block;
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
}

.mark--lg svg {
  filter: drop-shadow(3px 3px 0 var(--ink));
}

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */

.shell,
.wrap {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

main.section {
  padding-top: clamp(40px, 6vw, 80px);
}

.section + .section {
  border-top: 2px solid var(--ink);
}

.section__label {
  margin-bottom: var(--s-xl);
}

.stack > * + * {
  margin-top: var(--s-l);
}

.stack--tight > * + * {
  margin-top: var(--s-s);
}

.grid {
  display: grid;
  gap: var(--s-xl);
}

@media (min-width: 46rem) {
  .grid--2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
}

.relative {
  position: relative;
}

.z1 {
  position: relative;
  z-index: 1;
}

.scroll-x {
  overflow-x: auto;
}

.rule {
  border: 0;
  border-top: 2px solid var(--ink);
  margin: 0;
}

/* -------------------------------------------------------------------------
   5. Plates, buttons, callouts
   ------------------------------------------------------------------------- */

/* A mount is the site's card: white, ink-bordered, on a hard ink offset. */
.mount {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--plate);
  padding: clamp(18px, 2vw, 26px);
}

.grid > .stack > .mount + .mount,
.stack > .mount + .mount {
  margin-top: var(--s-xl);
}

.note {
  background: var(--oat);
  border: 3px solid var(--ink);
  border-radius: var(--r-card);
  padding: clamp(18px, 2vw, 26px);
}

.note > * + * {
  margin-top: var(--s-s);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  border: 2px solid var(--ink);
  font: 650 17px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* The primary action: ink, riding on the lime mark. */
.btn--mark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 5px 6px 0 var(--mark);
}

.btn--mark:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 9px 0 var(--mark);
}

.btn--outline {
  background: var(--white);
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
}

.btn--outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--ink);
}

.btn[aria-disabled="true"] {
  cursor: default;
  transform: none;
  box-shadow: none;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-l) var(--s-xl);
  align-items: center;
}

.hero__actions {
  margin-top: var(--s-xl);
}

/* -------------------------------------------------------------------------
   6. Masthead and colophon
   ------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-l);
  height: var(--nav-h);
}

.wordmark {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.wordmark svg {
  height: 30px;
  width: auto;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
}

.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mark);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 3px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  padding: 9px 15px;
  border-radius: 12px;
  white-space: nowrap;
}

.nav__cta:hover {
  text-decoration: none;
  box-shadow: 3px 4px 0 var(--mark);
}

@media (max-width: 760px) {
  .nav .nav__item {
    display: none;
  }
}

.colophon {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 2px solid var(--ink);
  padding-block: clamp(40px, 5vw, 64px) 48px;
}

.colophon__grid {
  display: grid;
  gap: var(--s-xxl);
}

@media (min-width: 46rem) {
  .colophon__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.colophon .wordmark svg {
  height: 34px;
}

.colophon__links li + li {
  margin-top: var(--s-s);
}

.colophon__links a {
  font-weight: 600;
  text-decoration: none;
}

.colophon__links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--mark);
}

.colophon__fine {
  margin-top: var(--s-xxl);
  padding-top: var(--s-xl);
  border-top: 2px solid var(--rule);
}

.colophon__fine p + p {
  margin-top: var(--s-s);
}

/* -------------------------------------------------------------------------
   7. Prose (support, privacy, terms, welcome)
   ------------------------------------------------------------------------- */

.prose {
  max-width: 44rem;
  font-size: 17px;
  line-height: 1.6;
}

.prose > * + * {
  margin-top: var(--s-l);
}

.prose h2 {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--s-xxl);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.prose ul > li,
.prose ol > li {
  position: relative;
  padding-left: 26px;
}

.prose ul > li + li,
.prose ol > li + li {
  margin-top: var(--s-s);
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mark);
  border: 2px solid var(--ink);
}

.prose ol {
  counter-reset: step;
}

.prose ol > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  font: 700 12px/1.8 var(--mono);
  width: 20px;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.prose dl > dt {
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.01em;
  padding-top: var(--s-l);
  border-top: 2px solid var(--ink);
}

.prose dl > dt:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose dl > dd {
  margin: var(--s-s) 0 var(--s-xl);
  color: var(--soft);
}

.prose a {
  font-weight: 600;
}

.prose strong {
  font-weight: 700;
}

.prose blockquote {
  border-left: 6px solid var(--mark);
  padding-left: var(--s-l);
  font-weight: 600;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-top: 2px solid var(--rule);
}

/* -------------------------------------------------------------------------
   8. Press exhibits
   ------------------------------------------------------------------------- */

.exhibits {
  display: grid;
  gap: var(--s-xxl) var(--s-xl);
}

@media (min-width: 40rem) {
  .exhibits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .exhibits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.exhibit {
  display: grid;
  gap: var(--s-l);
  align-content: start;
}

.exhibit__mount {
  max-width: 300px;
  border: 8px solid var(--ink);
  border-radius: 38px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: var(--plate);
}

.exhibit__mount img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.exhibit__title {
  max-width: 22ch;
}

/* =========================================================================
   9. The homepage (Bento)
   ========================================================================= */

.home-eyebrow {
  font: 600 12px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.home h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.sec {
  padding-top: clamp(88px, 11vw, 150px);
}

.head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.head .home-eyebrow {
  color: var(--muted);
}

.head .lede {
  margin: 20px auto 0;
  max-width: 40ch;
}

/* The App Store action, as plain text. Apple's guidelines forbid recreating
   the badge, so the button says what it does in words. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 18px;
  border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 var(--mark);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 9px 0 var(--mark);
}

.store svg {
  width: 20px;
  height: 20px;
  color: var(--mark);
}

.onlime .store {
  box-shadow: 5px 6px 0 var(--paper);
}

.onlime .store:hover {
  box-shadow: 8px 9px 0 var(--paper);
}

.cta-note {
  font-size: 16px;
  margin-top: 16px;
  color: var(--muted);
}

/* ---- hero ---- */

.hero {
  text-align: center;
  padding-top: clamp(48px, 7vw, 96px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 15px 7px 10px;
  background: var(--white);
  font: 650 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill svg,
.icon {
  width: 15px;
  height: 15px;
  color: var(--mark);
  filter: drop-shadow(1px 1px 0 var(--ink));
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 90px);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.048em;
  margin: 26px auto 0;
}

.hero h1 span {
  display: block;
}

.hero .lede {
  margin: 26px auto 0;
  max-width: 38ch;
}

.hero .cta {
  margin-top: 34px;
}

/* three phones fanned, the lock screen raised in the middle */
.stage {
  --bw: clamp(5px, 1.05vw, 11px);
  --br: clamp(22px, 4.9vw, 50px);
  --sh: clamp(6px, 1.3vw, 14px);
  position: relative;
  max-width: 980px;
  margin: clamp(48px, 6vw, 84px) auto 0;
  aspect-ratio: 980 / 610;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}

.ph {
  position: absolute;
  top: 0;
  left: 50%;
  aspect-ratio: 1320 / 2868;
  border: var(--bw) solid var(--ink);
  border-radius: var(--br);
  background: var(--ink);
  overflow: hidden;
  box-shadow: var(--sh) calc(var(--sh) * 1.15) 0 var(--ink);
  transform-origin: 50% 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--br) - var(--bw));
}

.ph.l {
  width: 28%;
  left: 23%;
  top: 14%;
  transform: translateX(-50%) rotate(-7deg);
  z-index: 1;
}

.ph.r {
  width: 28%;
  left: 77%;
  top: 14%;
  transform: translateX(-50%) rotate(7deg);
  z-index: 1;
}

.ph.c {
  width: 32%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 2;
}

@media (hover: hover) and (min-width: 720px) {
  .stage:hover .ph.l {
    transform: translateX(-58%) rotate(-10deg);
  }
  .stage:hover .ph.r {
    transform: translateX(-42%) rotate(10deg);
  }
  .stage:hover .ph.c {
    transform: translateX(-50%) translateY(-10px);
  }
}

.lock .scr {
  position: relative;
  height: 100%;
  background: var(--plum);
  border-radius: calc(var(--br) - var(--bw));
  container-type: inline-size;
  color: #f2f2f5;
  text-align: center;
}

.lock .date {
  padding-top: 19cqw;
  font-weight: 600;
  font-size: 5.6cqw;
}

.lock .time {
  font-weight: 750;
  font-size: 28cqw;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.5cqw;
}

.notif {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  top: 74cqw;
  background: rgba(246, 245, 241, 0.96);
  border-radius: 7cqw;
  padding: 4.3cqw 4.6cqw;
  display: grid;
  grid-template-columns: 12cqw 1fr;
  gap: 3.4cqw;
  color: var(--ink);
  text-align: left;
  animation: drop 1s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.6s both;
}

.notif .ic {
  width: 12cqw;
  height: 12cqw;
  border-radius: 3cqw;
  background: var(--ink);
  display: grid;
  place-items: center;
}

.notif .ic svg {
  width: 7.4cqw;
  height: 7.4cqw;
  color: var(--mark);
}

.notif .top {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 3.7cqw;
  letter-spacing: 0.04em;
  color: #5a5a5a;
}

.notif b {
  display: block;
  font-size: 4.9cqw;
  margin: 1cqw 0 0.6cqw;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.notif span {
  font-size: 4.5cqw;
  line-height: 1.3;
  display: block;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8cqw) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 719px) {
  .stage {
    aspect-ratio: 343 / 300;
  }
  .ph.c {
    width: 46%;
  }
  .ph.l {
    width: 38%;
    left: 21%;
    top: 16%;
  }
  .ph.r {
    width: 38%;
    left: 79%;
    top: 16%;
  }
}

/* press: one slim line */
.press-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 16px;
  text-align: center;
  padding: 26px var(--gutter) 0;
}

.press-line blockquote {
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 700;
  letter-spacing: -0.012em;
}

.press-line figcaption {
  font: 600 12px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.press-line figcaption a {
  color: var(--ink);
  font-weight: 750;
}

/* ---- the problem: the piles, then one place ---- */

.ba {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 250px) 1fr;
  border: 3px solid var(--ink);
  border-radius: 36px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--plate-lg);
  min-height: 500px;
}

.ba .tag {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 8;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.before {
  --q: 0;
  position: relative;
  background: var(--paper);
  border-right: 2px dashed var(--pile-line);
  min-height: 460px;
  container-type: inline-size;
}

.piles {
  position: absolute;
  inset: 0;
}

/* Each pile sits at its scattered spot (--x, --y, --r, in percent of the
   panel). As the card scrolls through the viewport, --q runs 0 to 1 and
   every pile slides into one tidy stack at (--tx, --ty), turning its own
   colour on the way. --hpc is one percent of the panel's height in pixels,
   measured by home.js (a container height unit reads zero here). */
.pile {
  --tx: 50;
  --ty: 52;
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: min(58cqw, 250px);
  transform: translate(-50%, -50%)
    translate(
      calc((var(--tx) - var(--x)) * var(--q) * 1cqw),
      calc((var(--ty) - var(--y)) * var(--q) * var(--hpc, 4.6px) + var(--k) * var(--q) * -9px)
    )
    rotate(calc(var(--r) * (1 - var(--q)) * 1deg + var(--sr) * var(--q) * 1deg));
  z-index: calc(var(--k) + 1);
  will-change: transform;
}

.pile .in {
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: var(--pile);
  border: 2px solid var(--pile-line);
  color: var(--pile-text);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.before.gathered .pile .in {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 5px 6px 0 var(--c);
}

.pile:nth-child(4n + 1) {
  --c: var(--sky);
}
.pile:nth-child(4n + 2) {
  --c: var(--tomato);
}
.pile:nth-child(4n + 3) {
  --c: var(--oat);
}
.pile:nth-child(4n + 4) {
  --c: var(--sage);
}

.pile .w {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pile b {
  display: block;
  font-size: 19px;
  margin: 8px 0 5px;
  letter-spacing: -0.015em;
  color: var(--soft);
}

.pile .l {
  font-size: 16px;
  font-style: italic;
  line-height: 1.35;
  display: block;
}

.bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 22px;
  text-align: center;
}

.bridge .arrow {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--mark);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 4px 5px 0 var(--ink);
}

.bridge .arrow svg {
  width: 26px;
  height: 26px;
}

.bridge p {
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.after {
  position: relative;
  background: var(--sage);
  border-left: 3px solid var(--ink);
  overflow: hidden;
  min-height: 460px;
}

.after .tph {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: min(74%, 270px);
}

@media (max-width: 860px) {
  .ba {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .before {
    min-height: 420px;
    border-right: 0;
    border-bottom: 2px dashed var(--pile-line);
  }
  .pile {
    width: min(64cqw, 250px);
  }
  .bridge .arrow {
    transform: rotate(90deg);
  }
  .after {
    border-left: 0;
    border-top: 3px solid var(--ink);
    min-height: 420px;
  }
}

/* ---- the bento ---- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}

.tile {
  --s: 2;
  grid-column: span var(--s);
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--plate);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 9px 11px 0 var(--ink);
}

.tile h3 {
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.038em;
  max-width: 16ch;
}

.tile p {
  font-size: 17px;
  line-height: 1.45;
  margin-top: 12px;
  max-width: 40ch;
}

.tile .home-eyebrow {
  font-size: 12px;
  line-height: 1.3;
  margin: 0 0 14px;
  max-width: none;
  color: var(--soft);
}

.s2 {
  --s: 2;
}
.s3 {
  --s: 3;
}
.s4 {
  --s: 4;
}
.s6 {
  --s: 6;
}

.t-mark {
  background: var(--mark);
}
.t-oat {
  background: var(--oat);
}
.t-sage {
  background: var(--sage);
}
.t-sky {
  background: var(--sky);
}
.t-tomato {
  background: var(--tomato);
}
.t-paper {
  background: var(--paper);
}
.t-ink {
  background: var(--ink);
  color: var(--white);
}
.t-plum {
  background: var(--plum);
  color: var(--white);
}
.t-ink .home-eyebrow,
.t-plum .home-eyebrow {
  color: var(--mark);
}

/* phones that bleed off a tile's bottom edge */
.bleed {
  flex: 1 0 var(--bh, 300px);
  min-height: var(--bh, 300px);
  margin: 28px calc(-1 * var(--pad)) calc(-1 * var(--pad));
  position: relative;
}

.bleed > .tph {
  position: absolute;
  top: var(--pt, 0px);
  left: var(--px, 50%);
  transform: translateX(-50%);
}

.tph {
  width: var(--pw, 230px);
  max-width: 100%;
  aspect-ratio: 1320 / 2868;
  border: 9px solid var(--ink);
  border-radius: 40px;
  background: var(--ink);
  overflow: hidden;
  flex: none;
  position: relative;
  z-index: 1;
}

.tph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 31px;
}

.sticker {
  position: absolute;
  z-index: 2;
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 6px 7px 0 var(--ink);
  background: var(--white);
}

/* steps */
.step .n {
  align-self: flex-start;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--white);
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.step h3 {
  font-size: clamp(26px, 2.3vw, 34px);
}

.step .bleed {
  --bh: 270px;
}

.step .tph {
  --pw: min(236px, 80%);
}

/* when: the return ledger, resolved in the visitor's own clock by ledger.js */
.when p {
  color: var(--on-dark-soft);
}

.rows {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.rows button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 17px;
  font-weight: 650;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.rows button > span:last-child {
  font-size: 15px;
  font-weight: 550;
  color: #4f4e49;
  white-space: nowrap;
}

.rows button i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfcdc6;
  margin-right: 12px;
  transition: background-color 0.2s;
}

.rows button:hover {
  transform: translateX(4px);
}

.rows button[aria-pressed="true"] {
  background: var(--mark);
  box-shadow: 6px 7px 0 var(--mark), 6px 7px 0 2px var(--white);
  transform: translateX(10px) rotate(-1deg);
}

.rows button[aria-pressed="true"] i {
  background: var(--ink);
}

.rows button[aria-pressed="true"] > span:last-child {
  color: var(--ink);
}

.rows button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  box-shadow: none;
}

.when .stamp {
  margin-top: 18px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

/* oneplace */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--white);
}

.oneplace .bleed {
  --px: 64%;
  --bh: 320px;
}

.oneplace .tph {
  --pw: 250px;
}

.oneplace .sticker {
  width: clamp(96px, 9vw, 122px);
  left: 12%;
  top: 28px;
  transform: rotate(-7deg);
}

/* row tiles: text left, art right, the art bleeds */
.tile.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  padding-bottom: 0;
}

.tile.row .txt {
  padding-bottom: var(--pad);
  align-self: start;
}

.tile.row .bleed {
  margin: 0;
  min-height: 360px;
}

.cases .tph {
  --pw: 280px;
}

.cases .bleed {
  --pt: 18px;
}

.cases .sticker {
  width: clamp(120px, 11vw, 160px);
  left: -2%;
  top: 46%;
  transform: rotate(-8deg);
}

/* search */
.search .bleed {
  --bh: 320px;
  --pt: 34px;
}

.search-pill {
  position: absolute;
  z-index: 3;
  left: 8%;
  top: 0;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px 11px 14px;
  font-weight: 750;
  font-size: 19px;
  box-shadow: 6px 7px 0 var(--ink);
  transform: rotate(-4deg);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.search-pill svg {
  width: 18px;
  height: 18px;
}

/* everywhere */
.everywhere.row {
  grid-template-columns: 5fr 7fr;
}

.everywhere h3 {
  font-size: clamp(30px, 3.2vw, 48px);
}

.everywhere p {
  color: var(--on-plum-soft);
}

.devchips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.devchips li {
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 650;
  font-size: 16px;
}

.devices {
  position: relative;
  min-height: 440px;
}

.mac {
  position: absolute;
  left: 0;
  top: 34px;
  width: 86%;
  border: 3px solid #0b0b0b;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 10px 12px 0 #0b0b0b;
}

.mac .bar {
  height: 24px;
  background: #ececec;
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 10px;
  border-bottom: 1px solid #d6d6d6;
}

/* the capture's sidebar (the left 326 of 1800 px) is empty: crop it off */
.mac img {
  width: 100%;
  aspect-ratio: 1474 / 1125;
  object-fit: cover;
  object-position: right top;
}

.mac .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.mac .bar i + i {
  background: #febc2e;
}

.mac .bar i + i + i {
  background: #28c840;
}

.ipad {
  position: absolute;
  right: -3%;
  top: 196px;
  width: 34%;
  aspect-ratio: 2064 / 2752;
  border: 8px solid #0b0b0b;
  border-radius: 24px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 10px 12px 0 #0b0b0b;
}

.ipad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.devices .tph {
  position: absolute;
  left: 44%;
  top: 232px;
  width: 19%;
  min-width: 92px;
  border-width: 7px;
  border-radius: 28px;
  box-shadow: 8px 10px 0 #0b0b0b;
}

.devices .tph img {
  border-radius: 21px;
}

/* private */
.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.point {
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}

.point .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mark);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.point .dot svg {
  width: 17px;
  height: 17px;
  color: var(--ink);
}

.point b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.tile .point p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--soft);
}

.textlink {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  font-size: 17px;
  text-decoration-color: var(--ink);
}

/* pocket */
.pocket h3 {
  max-width: 12ch;
}

.plinks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.plinks a {
  font-weight: 700;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 16px;
  transition: transform 0.2s;
}

.plinks a:hover {
  transform: translateX(4px);
}

/* since */
.since.row {
  grid-template-columns: 4fr 7fr;
  padding-bottom: var(--pad);
  align-items: start;
}

.since h3 {
  max-width: 14ch;
}

.since-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.since-list li {
  border-top: 3px solid var(--mark);
  padding-top: 14px;
}

.since-list b {
  display: block;
  color: var(--mark);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.since-list span {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--on-dark-soft);
}

@media (max-width: 1023px) {
  .cases {
    --s: 3;
  }
  .search {
    --s: 3;
  }
  .tile.row.cases {
    display: flex;
    padding-bottom: var(--pad);
  }
  .tile.row.cases .txt {
    padding-bottom: 0;
  }
  .tile.row.cases .bleed {
    margin: 28px calc(-1 * var(--pad)) calc(-1 * var(--pad));
    min-height: 300px;
  }
  .cases .sticker {
    left: 6%;
    top: 30px;
  }
  .private {
    --s: 6;
  }
  .pocket {
    --s: 2;
  }
  .since {
    --s: 4;
  }
  .since.row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .since-list {
    grid-template-columns: 1fr 1fr;
  }
  .everywhere.row {
    grid-template-columns: 1fr;
  }
  .everywhere .devices {
    min-height: 380px;
  }
}

@media (max-width: 719px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile,
  .tile[class] {
    grid-column: auto;
  }
  .tile.row {
    display: flex;
    padding-bottom: var(--pad);
  }
  .tile.row .txt {
    padding-bottom: 0;
  }
  .tile.row .bleed {
    margin: 28px calc(-1 * var(--pad)) calc(-1 * var(--pad));
    min-height: 300px;
  }
  .tile.row.since .since-list {
    margin-top: 22px;
  }
  .points {
    grid-template-columns: 1fr;
  }
  .everywhere .devices {
    min-height: 300px;
    margin: 26px calc(-1 * var(--pad)) calc(-1 * var(--pad));
  }
  .mac {
    left: var(--pad);
    top: 10px;
    width: 88%;
  }
  .ipad {
    top: 110px;
    width: 40%;
    right: -4%;
  }
  .devices .tph {
    left: 44%;
    top: 150px;
    width: 24%;
  }
  .oneplace .bleed {
    --px: 60%;
  }
  .oneplace .sticker {
    left: 4%;
  }
  .cases .sticker {
    left: 4%;
  }
  .search .search-pill {
    position: relative;
    left: auto;
    align-self: flex-start;
    margin: 0 0 18px var(--pad);
  }
  .search .bleed {
    --pt: 0px;
    --bh: 340px;
    display: flex;
    flex-direction: column;
  }
  .search .bleed > .tph {
    top: 74px;
  }
  .rows button[aria-pressed="true"] {
    transform: none;
  }
  .rows button {
    font-size: 16px;
    padding: 12px 14px;
  }
  .rows button > span:last-child {
    font-size: 14px;
  }
}

/* ---- pricing ---- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 28px 24px 24px;
  position: relative;
  transition: transform 0.25s ease;
}

.plan:hover {
  transform: translateY(-3px);
}

.plan.hot {
  background: var(--mark);
  box-shadow: 8px 9px 0 var(--ink);
}

.plan .nm {
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan .pr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  font-size: 46px;
  font-weight: 820;
  letter-spacing: -0.04em;
  margin-top: 16px;
  line-height: 1;
}

.plan .pr s {
  font-size: 19px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: -0.01em;
}

.plan .per {
  color: var(--soft);
  font-size: 16px;
  margin-top: 6px;
}

.plan .nt {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.4;
  padding-top: 14px;
  border-top: 2px solid rgba(20, 20, 20, 0.14);
}

.plan .bd {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--ink);
  color: var(--white);
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 8px;
}

.promises {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.promise {
  border-radius: 999px;
  padding: 20px 34px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 16px;
  align-items: center;
}

.promise > svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--mark);
}

.promise b {
  font-size: 18px;
  letter-spacing: -0.01em;
  display: block;
}

.promise p {
  margin-top: 3px;
  color: #cfcfca;
  font-size: 16px;
  line-height: 1.4;
}

.fine {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    row-gap: 26px;
  }
  .promises {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .promise {
    border-radius: 26px;
    padding: 20px 22px;
  }
}

/* ---- faq ---- */

.faqcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
  align-items: start;
}

.faqcols details {
  border-top: 2px solid var(--ink);
  padding: 18px 0;
}

.faqcols > div > details:last-child {
  border-bottom: 2px solid var(--ink);
}

.faqcols summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faqcols summary::-webkit-details-marker {
  display: none;
}

.faqcols summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform 0.25s, background-color 0.25s;
}

.faqcols details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--mark);
}

.faqcols details p {
  margin-top: 10px;
  color: var(--soft);
  line-height: 1.5;
  font-size: 17px;
  max-width: 52ch;
}

@media (max-width: 760px) {
  .faqcols {
    grid-template-columns: 1fr;
  }
  .faqcols > div:first-child > details:last-child {
    border-bottom: 0;
  }
}

/* ---- final: the inset lime panel ---- */

.finalpanel {
  background: var(--mark);
  border: 3px solid var(--ink);
  border-radius: 44px;
  box-shadow: var(--plate-lg);
  text-align: center;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 4vw, 48px);
}

.finalpanel .bigmark {
  width: clamp(64px, 7vw, 92px);
  height: clamp(64px, 7vw, 92px);
  margin: 0 auto 28px;
  color: var(--ink);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.finalpanel:hover .bigmark {
  transform: rotate(180deg);
}

.home .finalpanel h2 {
  font-size: clamp(46px, 8vw, 112px);
  line-height: 0.93;
  letter-spacing: -0.05em;
  max-width: 9ch;
  margin: 0 auto;
}

.finalpanel p {
  margin-top: 22px;
  font-size: 19px;
}

.finalpanel .store {
  margin-top: 34px;
}

/* ---- reveal, with a safety net in the page script ---- */

.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

.js .tile.rv.in {
  transition: opacity 0.7s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .tile.rv.in:hover {
  transform: translateY(-3px);
}

/* =========================================================================
   9b. Languages (iOS 1.0.13): the homepage cards, the footer switcher and
       the localized landing pages (/de/, /fr/, /es/, /ar/, /it/, /pt-br/).
       Every surface here reuses the bento's plates and palette; nothing
       new is introduced but the arrangement.
   ========================================================================= */

/* Arabic. The system face first (SF Arabic on Apple devices, reached through
   -apple-system), then the Arabic faces Windows, Android and Linux ship. No
   web font: the CSP allows none, and every platform has one of these.
   Tracking is forced to zero because any letter-spacing breaks the joins
   between Arabic letters, and there is no case to transform. The mono
   catalog layer has no Arabic glyphs, so it falls back to the same stack. */
:root {
  --arabic: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro",
    "Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
}

:lang(ar),
:lang(ar) * {
  font-family: var(--arabic) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3 {
  line-height: 1.35 !important;
}

/* ---- homepage: one card per language ---- */

.langs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.lang__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  min-height: 248px;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--plate);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

a.lang__card:hover {
  transform: translateY(-3px);
  box-shadow: 9px 11px 0 var(--ink);
}

.lang__code {
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  padding: 6px 9px;
  border-radius: 7px;
}

.lang__name {
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lang__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--ink);
  /* not 999px: a long return label ("Dieses Wochenende") can wrap in a
     narrow card, and a pill radius then pinches it into a lozenge */
  border-radius: 16px;
  padding: 6px 13px 6px 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.lang__pill i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--mark);
}

/* the app's tab bar, the first tab selected, as it is on launch */
.lang__tabs {
  margin-top: auto;
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 2px solid currentColor;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.lang__tabs > * {
  padding: 5px 8px;
  border-radius: 8px;
}

.lang__tabs b {
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.lang--de .lang__card {
  background: var(--oat);
}
.lang--fr .lang__card {
  background: var(--sky);
}
.lang--es .lang__card {
  background: var(--sage);
}
.lang--it .lang__card {
  background: var(--tomato);
}
.lang--pt-BR .lang__card {
  background: var(--mark);
}
.lang--ar .lang__card {
  background: var(--plum);
  color: var(--white);
}
.lang--ar .lang__code,
.lang--ar .lang__tabs b,
.lang--how .lang__code {
  background: var(--mark);
  color: var(--ink);
}
.lang--ar .lang__tabs span {
  color: var(--on-plum-soft);
}

/* the eighth cell: how to pick one */
.lang--how .lang__card {
  background: var(--ink);
  color: var(--white);
}

.lang__text {
  font-size: 16px;
  line-height: 1.45;
  color: var(--on-dark-soft);
}

.crumbs {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 5px;
  color: var(--mark);
  font-weight: 800;
}

.crumbs span {
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.06em;
  padding: 7px 9px;
  border: 2px solid var(--mark);
  border-radius: 8px;
  color: var(--white);
}

.crumbs span:last-child {
  background: var(--mark);
  color: var(--ink);
}

@media (max-width: 1023px) {
  .langs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .langs {
    gap: 12px;
  }
  .lang__card {
    min-height: 0;
    padding: 16px;
    gap: 12px;
  }
  .lang__name {
    font-size: 22px;
  }
  .lang__pill {
    font-size: 13px;
  }
  .lang__tabs {
    font-size: 12px;
    gap: 4px;
  }
}

/* ---- footer: the language switcher ---- */

.langbar {
  margin-bottom: var(--s-xl);
}

.langbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.langbar__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

a.langbar__item:hover {
  background: var(--mark);
}

.langbar__item[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

/* ---- the localized landing pages ---- */

.loc-hero {
  padding-top: clamp(40px, 6vw, 88px);
}

.loc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.loc-hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 13ch;
}

.loc-hero .lede {
  margin-top: 24px;
  max-width: 38ch;
}

.loc-hero .cta {
  margin-top: 32px;
}

.loc-hero .cta-note {
  max-width: 38ch;
}

/* the app's return sheet and tab bar, drawn in the page's language */
.loc-screen {
  justify-self: center;
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px 14px;
  border: 3px solid var(--ink);
  border-radius: 44px;
  background: var(--paper);
  box-shadow: var(--plate-lg);
  transform: rotate(2deg);
}

[dir="rtl"] .loc-screen {
  transform: rotate(-2deg);
}

.loc-screen__sheet {
  background: var(--ink);
  color: var(--white);
  border-radius: 30px;
  padding: 24px 16px 18px;
}

.loc-screen__q {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 4px 16px;
}

.loc-screen__rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 2px solid var(--on-dark-soft);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
}

.loc-screen__rows li + li {
  margin-top: 8px;
}

.loc-screen__rows i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pile-line);
}

.loc-screen__rows li.on {
  background: var(--mark);
  border-color: var(--mark);
}

.loc-screen__rows li.on i {
  background: var(--ink);
}

.loc-screen__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 0 2px;
}

.loc-screen__tabs li {
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  padding: 9px 3px;
  border-radius: 12px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.loc-screen__tabs li.on {
  background: var(--mark);
  font-weight: 750;
}

/* the listing's sections, in its order, as a bento */
.loc-sec {
  padding-top: clamp(64px, 8vw, 120px);
}

.loc-tile {
  gap: 0;
}

.loc-tile .n {
  align-self: flex-start;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--white);
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.loc-tile h2 {
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 24ch;
}

.loc-tile p {
  font-size: 17px;
  margin-top: 14px;
  max-width: 52ch;
}

.k-private {
  --s: 3;
  background: var(--paper);
}
.k-anywhere {
  --s: 3;
  background: var(--oat);
}
.k-when {
  --s: 6;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  grid-template-areas: "n p" "h p";
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 56px);
}
.k-when .n {
  grid-area: n;
  justify-self: start;
}
.k-when h2 {
  grid-area: h;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--mark);
}
.k-when p {
  grid-area: p;
  margin-top: 0;
  font-size: 19px;
  color: var(--on-dark-soft);
}
.k-read {
  --s: 2;
  background: var(--sage);
}
.k-search {
  --s: 2;
  background: var(--sky);
}
.k-library {
  --s: 2;
  background: var(--plum);
  color: var(--white);
}
.k-library p {
  color: var(--on-plum-soft);
}
.k-export {
  --s: 3;
  background: var(--white);
}
.k-free {
  --s: 3;
  background: var(--mark);
}
.k-when .n,
.k-library .n {
  background: var(--mark);
  color: var(--ink);
}

.loc .finalpanel .loc-tagline {
  margin: 0 auto;
  max-width: 9ch;
  font-size: clamp(46px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.colophon__grid--loc {
  align-items: start;
}

@media (min-width: 46rem) {
  .colophon__grid--loc {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (max-width: 1023px) {
  .loc-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .loc-screen {
    transform: none;
  }
  [dir="rtl"] .loc-screen {
    transform: none;
  }
  .k-read,
  .k-search {
    --s: 3;
  }
  .k-library {
    --s: 6;
  }
}

@media (max-width: 719px) {
  .k-when {
    display: flex;
  }
  .k-when p {
    margin-top: 14px;
    font-size: 17px;
  }
  .loc-hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }
}

/* -------------------------------------------------------------------------
   10. Motion off
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .rv {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .notif {
    animation: none;
  }
  .ph,
  .tile,
  .plan,
  .store,
  .btn,
  .rows button,
  .bigmark,
  .plinks a,
  .pile .in,
  .lang__card {
    transition: none !important;
  }
  a.lang__card:hover,
  .tile:hover,
  .js .tile.rv.in:hover,
  .plan:hover,
  .btn:hover,
  .store:hover {
    transform: none;
  }
  .stage:hover .ph.l {
    transform: translateX(-50%) rotate(-7deg);
  }
  .stage:hover .ph.r {
    transform: translateX(-50%) rotate(7deg);
  }
  .stage:hover .ph.c {
    transform: translateX(-50%);
  }
  .finalpanel:hover .bigmark {
    transform: none;
  }
}

@media print {
  .masthead,
  .skip,
  .stage {
    display: none;
  }
  .tile,
  .mount,
  .plan {
    box-shadow: none;
  }
}
