/* Washi landing.
   Two layers, as on Apple's platforms now: a floating glass bar over the
   content, and the content itself, where the brand's colour lives.
   Material 3 Expressive gives the rest: tonal containers, bold shapes,
   a bigger key action and spring motion that answers the visitor.
   Colours come from the app icon: indigo, paper, the pencil, the eraser.
   Headings keep their Markdown marks. System fonts only: they cover every
   script the site uses (SF Rounded where the browser offers it). */

:root {
  --paper: #f6f6fc;
  --surface-1: #eceefb;
  --surface-2: #e2e4f6;
  --ink: #1d2036;
  --ink-2: #565a75;
  --line: #d6d9ee;
  --primary: #4b4fe6;
  --on-primary: #ffffff;
  --primary-c: #e0e0ff;
  --on-primary-c: #15168a;
  --pencil: #f6ae2d;
  --pencil-c: #ffe5b3;
  --on-pencil-c: #4a3000;
  --eraser-c: #ffdde1;
  --tonal: #dcdcfb;
  --on-tonal: #1e1f7a;
  --on-eraser-c: #6b1222;
  --hero: linear-gradient(165deg, #6068f8 0%, #4b4be0 42%, #3527ae 100%);
  --glass: rgb(255 255 255 / .58);
  --glass-edge: rgb(255 255 255 / .75);
  --spring: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 25.3%, .849 31.5%, .937 38.1%, .968 41.8%, .991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001);
  --bounce: linear(0, .009, .035 2.1%, .141 4.4%, .281 6.7%, .723 12.9%, .938 16.7%, 1.017 18.6%, 1.077 20.6%, 1.121 22.6%, 1.149 24.3%, 1.163 26.4%, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991 46.9%, .977 51%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", var(--sans);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111226;
    --surface-1: #1a1c36;
    --surface-2: #242748;
    --ink: #eceefe;
    --ink-2: #a6a9c8;
    --line: #2e3152;
    --primary: #a4a7ff;
    --on-primary: #15168a;
    --primary-c: #30329e;
    --on-primary-c: #e0e0ff;
    --pencil: #f8bd4f;
    --pencil-c: #4f3a08;
    --on-pencil-c: #ffe0a6;
    --eraser-c: #5e2130;
    --tonal: #2c2f5c;
    --on-tonal: #dcdcff;
    --on-eraser-c: #ffd9de;
    --hero: linear-gradient(165deg, #474fd8 0%, #3533b4 45%, #221a78 100%);
    --glass: rgb(28 30 58 / .55);
    --glass-edge: rgb(255 255 255 / .14);
  }
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--pencil) 55%, transparent); color: inherit; }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 3px; border-radius: 8px; }
:lang(ja), :lang(zh-Hans), :lang(zh-Hant), :lang(ko) { line-height: 1.75; }
:lang(th), :lang(hi) { line-height: 1.8; }

a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow > * { max-width: 780px; }

/* Headings */
h1, h2, h3, h4 { line-height: 1.1; margin: 0; text-wrap: balance; font-family: var(--round); font-weight: 750; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.025em; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.3; font-weight: 700; }
:lang(ja) :is(h1, h2), :lang(ko) :is(h1, h2), :lang(zh-Hans) :is(h1, h2), :lang(zh-Hant) :is(h1, h2),
:lang(ar) :is(h1, h2), :lang(he) :is(h1, h2), :lang(hi) :is(h1, h2), :lang(th) :is(h1, h2) { letter-spacing: 0; line-height: 1.25; }

/* The Markdown marks of h1 and h2, hung in the margin. */
h1, h2 { position: relative; }
h1::before, h2::before {
  font-family: var(--mono); font-weight: 500; letter-spacing: 0;
  color: color-mix(in srgb, currentColor 38%, transparent);
  position: absolute; inset-inline-end: 100%; margin-inline-end: .32em;
  font-size: .6em; top: .3em; line-height: 1; unicode-bidi: isolate; direction: ltr;
}
h1::before { content: "#"; color: var(--pencil); }
h2::before { content: "##"; }
@media (max-width: 1240px) {
  h1::before, h2::before { position: static; display: inline; direction: inherit; vertical-align: .2em; font-size: .55em; }
}
/* Inside a container the marks stay on the heading's line. */
:is(.tablet-grid, .mac, .oss-card) h2::before { position: static; display: inline; direction: inherit; vertical-align: .2em; font-size: .55em; }

p { margin: 0; text-wrap: pretty; }
section { padding-block: clamp(56px, 8vw, 104px); }
.section-lead { color: var(--ink-2); font-size: 1.15rem; max-width: 40em; margin-top: 16px; }

/* The glass bar floats above everything. */
.top { position: fixed; inset-inline: 0; top: 12px; z-index: 10; pointer-events: none; }
.bar {
  pointer-events: auto; display: flex; align-items: center; gap: 24px;
  width: min(1120px, 100% - 24px); height: 56px; padding-inline: 12px 8px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 10px 40px -12px rgb(20 20 90 / .28), inset 0 1px 0 rgb(255 255 255 / .35);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 750 1.1rem var(--round); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.links { display: flex; gap: 4px; margin-inline-start: auto; font-size: .95rem; }
.links a { color: var(--ink); text-decoration: none; padding: 7px 14px; border-radius: 999px; transition: background .2s; }
.links a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.langs { position: relative; font-size: .92rem; }
.langs summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary, .langs summary:hover { background: color-mix(in srgb, var(--ink) 13%, transparent); }
.langs ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px);
  list-style: none; margin: 0; padding: 8px; width: min(440px, 92vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 24px 60px -20px rgb(20 20 90 / .4);
  max-height: 70vh; overflow: auto;
  transform-origin: top right;
}
[dir="rtl"] .langs ul { transform-origin: top left; }
.langs[open] ul { animation: pop .45s var(--spring); }
@keyframes pop { from { opacity: 0; scale: .85; } }
.langs li a, .foot-langs a { display: block; padding: 7px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.langs li a:hover { background: var(--surface-1); }
.langs a[aria-current], .foot-langs a[aria-current] { color: var(--on-primary-c); background: var(--primary-c); font-weight: 650; }

/* Hero: the brand's colour, as on the icon. */
.hero {
  margin: 8px 8px 0; border-radius: clamp(28px, 4vw, 52px);
  background: var(--hero); color: #fff; overflow: hidden;
  padding-block: clamp(112px, 12vw, 160px) clamp(48px, 6vw, 80px);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: rgb(255 255 255 / .84); margin-top: 26px; max-width: 32em; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; align-items: center; }
.free { margin-top: 24px; color: rgb(255 255 255 / .8); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.free a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: #fff; }
.free svg { width: 1.05em; height: 1.05em; }
.free > span { flex-basis: 100%; }

/* The hero offers one desktop download: the visitor's system (set on
   <html data-os> by a script in <head>), the Mac one otherwise. */
.desktop-pick [data-kind="windows"], .desktop-pick [data-kind="linux"],
[data-os="windows"] .desktop-pick [data-kind="mac"],
[data-os="linux"] .desktop-pick [data-kind="mac"] { display: none; }
[data-os="windows"] .desktop-pick [data-kind="windows"],
[data-os="linux"] .desktop-pick [data-kind="linux"] { display: inline-flex; }

/* Buttons: one anatomy for every variant (a pill, one height, the same
   icon and label sizes); only the colours change. Material's state layer
   lightens on hover, and the button gives under the finger. */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box;
  height: 58px; padding: 0 26px 0 20px; border-radius: 999px; border: 0;
  font: inherit; color: var(--btn-fg); background: var(--btn-bg);
  text-decoration: none; white-space: nowrap; position: relative; isolation: isolate;
  transition: scale .5s var(--bounce);
}
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: currentColor; opacity: 0; transition: opacity .2s;
}
.btn:hover { text-decoration: none; }
.btn:hover::after { opacity: .08; }
.btn:active { scale: .95; }
.btn svg { width: 24px; height: 24px; }
.btn span { display: flex; flex-direction: column; gap: 1px; text-align: start; }
.btn small { font-size: .74rem; line-height: 1.15; opacity: .86; font-weight: 500; }
.btn b { font-size: 1.06rem; line-height: 1.15; font-weight: 650; letter-spacing: -.005em; }
/* Not out yet: Material's disabled look, no border. */
.btn.soon { --btn-bg: color-mix(in srgb, var(--ink) 8%, transparent); --btn-fg: color-mix(in srgb, var(--ink) 50%, transparent); cursor: default; }
.btn.soon:hover::after { opacity: 0; }
.btn.soon:active { scale: 1; }
.btn.beta, .btn.tonal { --btn-bg: var(--tonal); --btn-fg: var(--on-tonal); }
.btn.primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); }

/* In the hero: glass buttons, and the visitor's own download in pencil yellow. */
.hero .btn {
  --btn-bg: rgb(255 255 255 / .16); --btn-fg: #fff; height: 62px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 0 0 1px rgb(255 255 255 / .1);
}
.hero .btn.soon { --btn-bg: rgb(255 255 255 / .07); --btn-fg: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.hero .btn:not(.soon, .beta) {
  --btn-bg: var(--pencil); --btn-fg: #2a1d00; padding-inline: 22px 30px;
  box-shadow: 0 12px 28px -12px rgb(20 5 0 / .6), inset 0 1px 0 rgb(255 255 255 / .45);
}
.hero .btn:not(.soon, .beta) svg { width: 26px; height: 26px; }
.hero .btn:not(.soon, .beta) b { font-size: 1.14rem; }

/* Screenshots stand upright in plain device frames. */
.shot { overflow: hidden; background: var(--paper); }
.shot.phone { border-radius: 34px; border: 6px solid #1d2036; }
.shot.tablet { border-radius: 24px; border: 8px solid #1d2036; }

.hero-art { position: relative; padding-inline-end: 14%; padding-bottom: 8%; }
.hero-art .shot { box-shadow: 0 40px 80px -30px rgb(10 5 60 / .65); }
.hero-art .phone { position: absolute; width: 34%; inset-inline-end: 0; bottom: 0; }
/* The page's one moment of its own: the devices settle in on arrival. */
.hero-art .tablet { animation: rise .9s var(--spring) .1s both; }
.hero-art .phone { animation: rise 1s var(--spring) .28s both; }
@keyframes rise { from { opacity: 0; translate: 0 60px; scale: .96; } }

/* The four promises: a ticked Markdown task list, as one connected group. */
.ribbon { padding-block: 24px 0; }
.tasks {
  list-style: none; padding: 0; margin-block: 0;
  display: flex; gap: 4px;
}
.tasks li { flex: 1 1 0; text-wrap: balance; }
.tasks li {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 20px;
  background: var(--surface-1); font-weight: 600; line-height: 1.3; border-radius: 10px;
}
.tasks li:first-child { border-start-start-radius: 32px; border-end-start-radius: 32px; }
.tasks li:last-child { border-start-end-radius: 32px; border-end-end-radius: 32px; }
.box {
  width: 24px; height: 24px; flex: none; background-color: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Ccircle cx='12' cy='12' r='12' fill='white'/%3E%3Cpath d='M7 12.4l3.3 3.3 6.7-7.2' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='24' height='24' mask='url(%23m)'/%3E%3C/svg%3E") center / 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Ccircle cx='12' cy='12' r='12' fill='white'/%3E%3Cpath d='M7 12.4l3.3 3.3 6.7-7.2' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='24' height='24' mask='url(%23m)'/%3E%3C/svg%3E") center / 100%;
}
@media (max-width: 1000px) {
  .tasks { display: grid; grid-template-columns: 1fr 1fr; }
  .tasks li { border-radius: 10px !important; }
  .tasks li:nth-child(1) { border-start-start-radius: 28px !important; }
  .tasks li:nth-child(2) { border-start-end-radius: 28px !important; }
  .tasks li:nth-child(3) { border-end-start-radius: 28px !important; }
  .tasks li:nth-child(4) { border-end-end-radius: 28px !important; }
}

/* Features: each phone rises out of a tonal container. */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 20px; margin-top: 56px; }
.stage {
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 36px;
  padding: 28px 28px 0; background: var(--primary-c); margin-bottom: 20px;
}
.feature:nth-child(4n + 2) .stage { background: var(--pencil-c); }
.feature:nth-child(4n + 3) .stage { background: var(--eraser-c); }
.feature:nth-child(4n + 4) .stage { background: var(--surface-2); }
.stage .shot { box-shadow: 0 20px 40px -20px rgb(20 20 60 / .45); }
.feature h3 { padding-inline: 6px; }
.feature p { color: var(--ink-2); margin-top: 6px; font-size: .97rem; padding-inline: 6px; }

/* Tablet: a pencil-yellow container. */
.tablet-band { padding-top: 0; }
.tablet-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center;
  background: var(--pencil-c); color: var(--on-pencil-c);
  border-radius: clamp(28px, 4vw, 52px); padding: clamp(28px, 5vw, 64px);
}
.tablet-grid .section-lead { color: inherit; opacity: .82; }
.tablet-grid .shot { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgb(60 30 0 / .5); }
.tablet-grid .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Mac: a dark container the window rises out of. */
.mac { padding-top: 0; }
.mac > .wrap {
  background: #1d2036; color: #fff; border-radius: clamp(28px, 4vw, 52px);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px) 0; overflow: hidden;
}
@media (prefers-color-scheme: dark) { .mac > .wrap { background: var(--surface-2); } }
.mac .section-lead { color: rgb(255 255 255 / .78); }
.mac-shot { display: block; margin: 44px auto -2px; max-width: 980px; }
.mac-shot img { width: 100%; filter: drop-shadow(0 30px 60px rgb(0 0 0 / .55)); }

/* Everything inside: tonal groups, each with an icon in a Material shape. */
.everything { padding-top: 0; }
.all-grid { margin-top: 48px; columns: 3 300px; column-gap: 16px; }
.all-card {
  break-inside: avoid; margin-bottom: 16px; padding: 26px 26px 28px;
  background: var(--surface-1); border-radius: 32px;
}
.shape { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; color: var(--on-primary-c); }
.shape::before {
  content: ""; position: absolute; inset: 0; background: var(--primary-c);
  -webkit-mask: url("img/shapes/cookie.svg") center / contain no-repeat;
  mask: url("img/shapes/cookie.svg") center / contain no-repeat;
  transition: rotate .9s var(--spring);
}
.shape svg { position: relative; width: 26px; height: 26px; }
.all-card:nth-child(4n + 2) .shape { color: var(--on-pencil-c); }
.all-card:nth-child(4n + 2) .shape::before { background: var(--pencil-c); -webkit-mask-image: url("img/shapes/clover.svg"); mask-image: url("img/shapes/clover.svg"); }
.all-card:nth-child(4n + 3) .shape { color: var(--on-eraser-c); }
.all-card:nth-child(4n + 3) .shape::before { background: var(--eraser-c); -webkit-mask-image: url("img/shapes/flower.svg"); mask-image: url("img/shapes/flower.svg"); }
.all-card:nth-child(4n + 4) .shape { color: var(--ink); }
.all-card:nth-child(4n + 4) .shape::before { background: var(--surface-2); -webkit-mask-image: url("img/shapes/sunny.svg"); mask-image: url("img/shapes/sunny.svg"); }
.all-card:hover .shape::before { rotate: 45deg; }
.all-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.all-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.all-card li { position: relative; padding-inline-start: 1.3em; color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
.all-card li::before {
  content: "-"; position: absolute; inset-inline-start: 0; top: 0;
  font-family: var(--mono); color: color-mix(in srgb, var(--primary) 60%, transparent);
}
.all-card code {
  font: .86em var(--mono); padding: 1px 6px; border-radius: 6px;
  background: var(--paper); color: var(--ink); white-space: nowrap;
}
.tag {
  display: inline-block; vertical-align: 1px; margin-inline-start: 4px; padding: 1px 8px; border-radius: 8px;
  font: 650 .72rem/1.5 var(--sans); white-space: nowrap;
}
.tag.desktop { background: var(--primary-c); color: var(--on-primary-c); }
.tag.mobile { background: var(--eraser-c); color: var(--on-eraser-c); }
.all-card h3 .tag { vertical-align: 3px; }

/* Download: rows in one container; the visitor's own system is lit.
   Every action has the same width, so the buttons form a column. */
.download { padding-top: 0; }
.platforms { margin-top: 44px; padding: 6px; border-radius: 40px; background: var(--surface-1); display: grid; gap: 2px; }
.platform {
  display: grid; grid-template-columns: 56px 1fr 236px; column-gap: 20px; align-items: center;
  grid-template-areas: "icon text act" ". more more";
  padding: 18px 18px 18px 16px; border-radius: 34px;
}
.platform-icon {
  grid-area: icon; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); color: var(--ink);
}
.platform-icon svg { width: 26px; height: 26px; }
.p-text { grid-area: text; min-width: 0; }
.p-text h3 { font-size: 1.25rem; }
.p-text h3 a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.p-text p { color: var(--ink-2); font-size: .94rem; margin-top: 2px; }
.p-act { grid-area: act; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.p-act .btn { width: 100%; }
.p-act .btn:not(.soon) { --btn-bg: var(--tonal); --btn-fg: var(--on-tonal); }
.p-more { grid-area: more; }
.p-more:empty { display: none; }
:root:not([data-os="windows"], [data-os="linux"]) .platform[data-row="mac"],
[data-os="windows"] .platform[data-row="windows"],
[data-os="linux"] .platform[data-row="linux"] { background: var(--primary-c); color: var(--on-primary-c); }
:root:not([data-os="windows"], [data-os="linux"]) .platform[data-row="mac"] :is(.p-text p, .brew-hint),
[data-os="windows"] .platform[data-row="windows"] .p-text p,
[data-os="linux"] .platform[data-row="linux"] .p-text p { color: inherit; opacity: .78; }
:root:not([data-os="windows"], [data-os="linux"]) .platform[data-row="mac"] .p-act .btn,
[data-os="windows"] .platform[data-row="windows"] .p-act .btn,
[data-os="linux"] .platform[data-row="linux"] .p-act .btn { --btn-bg: var(--primary); --btn-fg: var(--on-primary); }
.alt-link { font-size: .88rem; font-weight: 600; text-align: center; }
.brew-hint { margin-top: 12px; color: var(--ink-2); font-size: .88rem; }
.brew {
  position: relative; margin-top: 6px; max-width: 100%; text-align: start; cursor: pointer;
  font: .82rem/1.4 var(--mono); color: var(--ink); background: var(--paper);
  border: 0; border-radius: 14px; padding: 10px 38px 10px 14px; overflow-wrap: anywhere;
  transition: scale .5s var(--bounce);
}
.brew:active { scale: .97; }
.brew.copied::after { content: "✓"; position: absolute; inset-inline-end: 14px; color: var(--primary); font-weight: 700; }

/* Google Play's closed test, under the Android row. */
.play-test {
  margin-top: 14px; padding: 20px 24px; max-width: 46em;
  background: var(--pencil-c); color: var(--on-pencil-c); border-radius: 24px; font-size: .95rem;
}
.play-test h4 { margin: 0 0 6px; font-size: 1.08rem; }
.play-test p { margin: 0 0 10px; opacity: .85; }
.play-test ol { margin: 0 0 10px; padding-inline-start: 1.3em; }
.play-test li { margin-bottom: 4px; }
.play-test a { color: inherit; font-weight: 700; }
.play-test code { display: inline-block; font: .84rem var(--mono); overflow-wrap: anywhere; }
.play-test .beta-note { margin: 0; font-size: .87rem; }

/* Open source: an indigo container. */
.oss { padding-top: 0; }
.oss-card {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  background: var(--primary-c); color: var(--on-primary-c);
  border-radius: clamp(28px, 4vw, 52px); padding: clamp(28px, 5vw, 64px);
}
.oss-card p { opacity: .85; margin-top: 14px; max-width: 42em; }
.oss-card h2 + p { margin-top: 20px; }
.oss-card .btn { flex: none; }

/* FAQ: each answer opens with a spring and its container changes shape. */
.faq { padding-top: 0; }
.faq h2 { margin-bottom: 28px; }
.faq details {
  background: var(--surface-1); border-radius: 32px; margin-bottom: 8px; padding: 0 28px;
  transition: border-radius .5s var(--spring), background-color .3s;
}
.faq details[open] { border-radius: 20px; background: var(--primary-c); color: var(--on-primary-c); }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; padding-block: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); color: var(--ink); font: 500 1.4rem/1 var(--sans);
  transition: rotate .6s var(--bounce);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .55s var(--spring), content-visibility .55s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding-bottom: 24px; max-width: 40em; opacity: .88; }

/* Footer */
.foot { padding-block: 24px 48px; font-size: .9rem; }
.foot > .wrap { border-top: 1px solid var(--line); padding-top: 40px; }
.foot-langs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 8px;
}
.foot-langs a { color: var(--ink-2); }
.foot-langs a:hover { color: var(--ink); background: var(--surface-1); }
.fine { list-style: none; margin: 32px 0 0; padding: 0; color: var(--ink-2); display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.fine-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 700 1rem var(--round); }
.fine a { color: var(--ink-2); }

/* Inner pages (the privacy policy): one document on a tonal sheet,
   set like a Markdown note, below the floating bar. */
.doc-page { padding: 96px 8px 0; }
.doc {
  max-width: 820px; padding: clamp(28px, 6vw, 72px);
  background: var(--surface-1); border-radius: clamp(28px, 4vw, 48px);
}
.doc h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.doc :is(h1, h2)::before { position: static; display: inline; direction: inherit; vertical-align: .2em; font-size: .55em; margin-inline-end: .3em; }
.doc h1::before { color: var(--primary); }
.doc-meta { color: var(--ink-2); margin: 14px 0 32px; font-size: .95rem; }
.doc h2 { font-size: 1.45rem; margin: 44px 0 12px; }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.doc li { position: relative; padding-inline-start: 1.4em; }
.doc li::before { content: "-"; position: absolute; inset-inline-start: 0; font-family: var(--mono); color: color-mix(in srgb, var(--primary) 60%, transparent); }
.doc strong { font-weight: 700; }

/* Pages beyond the landing (Washi for Windows, an alternative to …): the
   same hero, one column, the screenshot below the buttons. */
.sub-hero { padding-bottom: 0; }
.sub-hero h1 { max-width: 14em; }
.crumbs { font-size: .92rem; color: rgb(255 255 255 / .75); margin-bottom: 22px; }
.crumbs a { color: #fff; font-weight: 650; }
.sub-art { display: block; margin: clamp(44px, 6vw, 72px) auto -2px; max-width: 980px; }
.sub-art.shot.tablet {
  max-width: 860px; aspect-ratio: 16 / 9; border-bottom: 0;
  border-end-start-radius: 0; border-end-end-radius: 0; box-shadow: 0 40px 80px -30px rgb(10 5 60 / .65);
}
.sub-art.shot.tablet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sub-art img { width: 100%; }
picture.sub-art img { filter: drop-shadow(0 30px 60px rgb(0 0 0 / .45)); }
.points .all-card p { color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.points .all-card h3 { margin-bottom: 8px; }

/* Install steps: a numbered list, because it is one. */
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 22px 18px 64px;
  background: var(--surface-1); border-radius: 24px; line-height: 1.55;
}
[dir="rtl"] .steps li { padding: 18px 64px 18px 22px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 18px; top: 16px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-c); color: var(--on-primary-c); font: 700 .95rem var(--round);
}
.steps code, .faq code, .points code {
  font: .86em var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--paper);
  color: var(--ink); white-space: nowrap;
}
.req { margin-top: 20px; color: var(--ink-2); }
.req b { color: var(--ink); font-weight: 650; }

/* Comparison: a plain table on a tonal sheet; Washi's column is lit. */
.table-wrap { margin-top: 36px; overflow-x: auto; border-radius: 32px; background: var(--surface-1); padding: 8px; }
.compare table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.compare :is(th, td) { padding: 14px 18px; text-align: start; vertical-align: top; line-height: 1.45; }
.compare thead th { font: 750 1.1rem var(--round); }
.compare tbody th { font-weight: 600; color: var(--ink-2); width: 26%; }
.compare tbody tr + tr :is(th, td) { border-top: 1px solid var(--line); }
.compare :is(td, th):nth-child(2) { background: var(--primary-c); color: var(--on-primary-c); }
.compare thead th:nth-child(2) { border-start-start-radius: 22px; border-start-end-radius: 22px; }
.compare tbody tr:last-child td:nth-child(2) { border-end-start-radius: 22px; border-end-end-radius: 22px; }
.better { margin-top: 16px; padding: 26px 28px; border-radius: 32px; background: var(--pencil-c); color: var(--on-pencil-c); max-width: 780px; }
.better h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* More pages: tonal pills. */
.more { padding-top: 0; }
.more-links { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more-links a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--tonal); color: var(--on-tonal); font-weight: 650; text-decoration: none;
  transition: scale .5s var(--bounce);
}
.more-links a:active { scale: .95; }
.foot-pages { margin-top: 14px; }

/* Narrow screens */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .tablet-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 560px; width: 100%; }
  .oss-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { margin: 6px 6px 0; }
  .doc-page { padding-inline: 6px; padding-top: 80px; }
  .doc { width: 100%; }
  .bar { width: calc(100% - 16px); }
  .top { top: 8px; }
  .links { display: none; }
  .langs { margin-inline-start: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 36px 12px; }
  .stage { border-radius: 26px; padding: 16px 16px 0; }
  .shot.phone { border-width: 4px; border-radius: 22px; }
  .buttons .btn { flex: 1 1 100%; }
  .platforms { border-radius: 30px; padding: 6px; }
  .platform { grid-template-columns: 44px 1fr; grid-template-areas: "icon text" "act act" "more more"; row-gap: 14px; padding: 16px; border-radius: 28px; }
  .platform-icon { width: 44px; height: 44px; }
  .tasks { display: grid; grid-template-columns: 1fr; }
  .tasks li { border-radius: 10px !important; min-height: 56px; }
  .tasks li:first-child { border-start-start-radius: 26px !important; border-start-end-radius: 26px !important; }
  .tasks li:last-child { border-end-start-radius: 26px !important; border-end-end-radius: 26px !important; }
  .faq details { padding-inline: 20px; }
  .steps li { padding: 16px 18px 16px 58px; }
  [dir="rtl"] .steps li { padding: 16px 58px 16px 18px; }
  .table-wrap { border-radius: 26px; padding: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Japanese breaks between phrases, not inside words. */
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
