/* bloom.beeddy.com: every style of every page.
   Design: the canvas page "Website", boards W01 (home, 1440 wide), W02 (390 wide) and W03 (dark);
   see docs/design/README.md, "W. 官网". Light and dark follow prefers-color-scheme; animations
   stop under prefers-reduced-motion. The server's CSP allows no inline styles, so everything is here. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  /* Headings: Newsreader, close to the New York the app uses for transcripts. */
  --serif: "Newsreader", "New York", "Iowan Old Style", Georgia, serif;
  --paper: #FFFFFF;
  --tint: #F6F5FA;
  --stage: #F1EFF8;
  --card: #FFFFFF;
  --ink: #1C1A24;
  --ink2: #5D596B;
  --line: rgba(28, 26, 36, .1);
  --iris: #6B46D9;
  --iris-text: #5A35C8;
  --now: rgba(107, 70, 217, .13);
  --mark: rgba(255, 198, 0, .45);
  --mark-now: #FFCC00;
  --red: #FF3B30;
  --glow: rgba(123, 92, 255, .22);
  --shadow: 0 1px 2px rgba(28, 26, 36, .06), 0 14px 36px rgba(40, 24, 90, .10);
  --gut: clamp(16px, 5vw, 56px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111015;
    --tint: #18171E;
    --stage: #22202B;
    --card: #1C1B22;
    --ink: #F3F1F8;
    --ink2: #ADA8BB;
    --line: rgba(255, 255, 255, .1);
    --iris: #7A57EC;
    --iris-text: #B9A3FF;
    --now: rgba(146, 118, 255, .24);
    --mark: rgba(255, 204, 0, .33);
    --mark-now: #FFD60A;
    --red: #FF453A;
    --glow: rgba(146, 118, 255, .18);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 44px rgba(0, 0, 0, .5);
  }
}
/* Chinese headings: Newsreader for Latin letters and digits, Songti for the characters. */
html:lang(zh) { --serif: "Newsreader", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 17px/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--iris-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(1200px + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut); }
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 50;
  padding: 10px 14px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 64px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 600 19px/1 var(--sans); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
/* The icon PNGs are drawn on the macOS icon grid, with a margin around the body. */
.brand img { width: 32px; height: 32px; margin: -2px; }
.menu { display: flex; gap: 28px; font: 500 15px/1 var(--sans); }
.menu a { color: var(--ink2); }
.menu a:hover { color: var(--ink); text-decoration: none; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-soon {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--tint); border: 1px solid var(--line); color: var(--ink2); font: 600 14px/1 var(--sans);
}
.nav-menu { display: none; position: relative; }
.nav-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu .x, .nav-menu[open] .bars { display: none; }
.nav-menu[open] .x { display: block; }
.sheet {
  position: absolute; right: 0; top: 52px; width: 240px; padding: 8px; border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.sheet a { padding: 14px 12px; border-radius: 10px; color: var(--ink); font: 500 16px/1 var(--sans); }
.sheet a:hover { background: var(--tint); text-decoration: none; }

/* ---------- hero: the headline reads like a line of a Bloom transcript ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); }
.hero-in {
  max-width: calc(1160px + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); color: var(--iris-text); }
.display {
  margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: .14em;
  font: 400 clamp(46px, 7.4vw, 104px)/1.06 var(--serif); letter-spacing: -.024em;
}
.display .line { position: relative; }
/* The current search hit (find yellow) and the sentence playing (iris), as in the app. */
.hit { color: #1C1A24; background: var(--mark-now); border-radius: .1em; padding: 0 .07em; }
.playing { background: var(--now); border-radius: .12em; padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ts {
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: .42em;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 600 clamp(16px, 1.5vw, 21px)/1 var(--sans); letter-spacing: 0; color: var(--iris-text); font-variant-numeric: tabular-nums;
}
.lede { margin-top: 30px; max-width: 640px; font: 400 clamp(18px, 1.5vw, 21px)/1.55 var(--sans); color: var(--ink2); text-wrap: pretty; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
/* store-cta: until Bloom is on the Mac App Store, a pill instead of Apple's badge. */
.store-soon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 14px 24px; border-radius: 999px;
  background: var(--tint); border: 1px solid var(--line); color: var(--ink); font: 600 16px/1.25 var(--sans); text-align: left;
}
.store-soon svg { flex: none; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 16px/1 var(--sans); }
.micro { margin-top: 16px; font: 400 15px/1.5 var(--sans); color: var(--ink2); }
.shot { position: relative; width: 100%; margin-top: clamp(48px, 6vw, 80px); }
.shot::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: -14%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(24px);
}
.shot img { position: relative; width: 100%; filter: drop-shadow(0 1px 1px rgba(28, 26, 36, .16)) drop-shadow(0 30px 60px rgba(40, 24, 90, .20)); }
@media (prefers-color-scheme: dark) {
  .shot img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .25)) drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.tint { background: var(--tint); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; }
.sec-head > div { flex: 1 1 520px; min-width: 0; }
.sec-head > p { flex: 0 1 400px; }
.kicker { font: 600 15px/1 var(--sans); color: var(--iris-text); }
.h2 { margin-top: 16px; font: 400 clamp(36px, 4.6vw, 62px)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.body-l { font: 400 18px/1.55 var(--sans); color: var(--ink2); text-wrap: pretty; }
html:lang(zh) .display, html:lang(zh) .h2 { letter-spacing: 0; line-height: 1.2; }
/* Chinese headings break at punctuation and spaces, not inside a phrase. */
html:lang(zh) .display, html:lang(zh) .h2, html:lang(zh) .pc-big { word-break: keep-all; overflow-wrap: anywhere; }

/* How it works */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.stage { height: 240px; margin: 10px 10px 0; border-radius: 18px; background: var(--stage); display: flex; flex-direction: column; justify-content: center; }
.step-text { padding: 26px 30px 32px; display: flex; flex-direction: column; gap: 10px; }
.step-ts { display: flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); color: var(--ink2); font-variant-numeric: tabular-nums; }
.step-ts.now { color: var(--iris-text); }
.step h3 { font: 600 21px/1.3 var(--sans); letter-spacing: -.01em; }
.step-text p:last-child { font: 400 16px/1.55 var(--sans); color: var(--ink2); }

.stage-record { align-items: center; gap: 22px; }
.keys { display: flex; gap: 8px; }
.keys kbd {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--line), 0 6px 14px rgba(28, 26, 36, .08);
  font: 500 20px/1 var(--sans); color: var(--ink);
}
.keys kbd.k-r { font: 600 18px/1 var(--sans); }
.ctrl {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(40, 24, 90, .14);
}
.ctrl .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.ctrl .time { font: 600 17px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.lvl { display: flex; align-items: center; gap: 3px; height: 24px; color: var(--ink2); }
.lvl i { display: block; width: 3px; border-radius: 2px; background: currentColor; animation: lvl 1.3s ease-in-out infinite alternate; }
.lvl i:nth-child(1) { height: 9px; }  .lvl i:nth-child(2) { height: 16px; } .lvl i:nth-child(3) { height: 22px; }
.lvl i:nth-child(4) { height: 12px; } .lvl i:nth-child(5) { height: 18px; } .lvl i:nth-child(6) { height: 14px; }
.lvl i:nth-child(7) { height: 8px; }  .lvl i:nth-child(8) { height: 19px; } .lvl i:nth-child(9) { height: 13px; }
.lvl i:nth-child(10) { height: 21px; } .lvl i:nth-child(11) { height: 10px; }
.lvl i:nth-child(3n) { animation-delay: -.45s; }
.lvl i:nth-child(3n+1) { animation-delay: -.9s; }
.ctrl .btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--ink); }
.ctrl .btn.stop { background: var(--red); color: #FFFFFF; }

.stage-live { gap: 16px; padding: 0 26px; }
.live-label { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); color: var(--ink2); }
.live-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.live { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px 10px; font: 400 18px/1.45 var(--serif); color: var(--ink); }
.live .t { font: 400 13px/1.9 var(--sans); color: var(--ink2); text-align: right; font-variant-numeric: tabular-nums; }
.live .pending { color: var(--ink2); opacity: .75; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--iris); animation: blink 1.1s steps(1) infinite; }

.stage-find { gap: 12px; padding: 0 22px; }
.field {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 400 16px/1 var(--sans); color: var(--ink);
}
.field svg { color: var(--ink2); }
.field .caret { height: 18px; }
.res { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; font: 400 15px/1.4 var(--sans); color: var(--ink); }
.res .t { color: var(--ink2); text-align: right; font-variant-numeric: tabular-nums; }
.res.sel { margin-top: -8px; border-radius: 12px; background: var(--now); }
.res.sel .t { font-weight: 600; color: var(--iris-text); }
mark { color: inherit; background: var(--mark); border-radius: 4px; padding: 0 2px; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes lvl { from { transform: scaleY(.5); } to { transform: scaleY(1); } }

/* Privacy: the app icon's colours */
.privacy { background: linear-gradient(180deg, #2B1F4E 0%, #150F29 100%); color: #FFFFFF; overflow: hidden; }
.privacy-in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.privacy-text { flex: 999 1 520px; min-width: 0; }
.privacy .kicker, .privacy a { color: #C9B8FF; }
.privacy .body-l { margin-top: 22px; max-width: 560px; color: rgba(255, 255, 255, .76); }
.facts { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px 36px; }
.facts li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); }
.facts h3 { font: 600 17px/1.3 var(--sans); }
.facts p { font: 400 15px/1.55 var(--sans); color: rgba(255, 255, 255, .72); }
.privacy .more { margin-top: 36px; }
.glyph-box { flex: 1 1 260px; display: flex; justify-content: center; }
.glyph { position: relative; width: clamp(200px, 26vw, 340px); aspect-ratio: 1; }
.glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.glyph .blur { filter: blur(16px); opacity: .8; }

/* Details */
.details-head { max-width: 760px; }
.details-list { margin-top: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 48px; }
.details-list > div { padding: 26px 0; border-top: 1px solid var(--line); }
.details-list dt { font: 600 18px/1.35 var(--sans); }
.details-list dd { margin-top: 8px; font: 400 16px/1.55 var(--sans); color: var(--ink2); }
.swatches { display: flex; gap: 8px; }
.details-list dd.swatches { margin-top: 14px; }
.swatches span { width: 18px; height: 18px; border-radius: 50%; }
.swatches .sw-iris { background: #6B46D9; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px #6B46D9; }
.swatches .sw-ocean { background: #1F5FD1; }
.swatches .sw-lagoon { background: #0B7472; }
.swatches .sw-moss { background: #3A7130; }
.swatches .sw-amber { background: #965400; }
.swatches .sw-rose { background: #B8245A; }
.swatches .sw-graphite { background: #4A4A51; }

/* Pricing */
.pricing-in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.pricing-text { flex: 1 1 420px; min-width: 0; }
.pricing-text .body-l { margin-top: 22px; max-width: 520px; }
.pricing-text .body-l + .body-l { margin-top: 18px; }
.price-card { flex: 0 1 440px; min-width: 0; padding: clamp(24px, 3vw, 36px); border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-head img { width: 64px; height: 64px; margin: -4px; }
.pc-name { font: 600 18px/1.25 var(--sans); }
.pc-sub { font: 400 15px/1.35 var(--sans); color: var(--ink2); }
/* price: when the price is set, it goes here in place of .pc-big, e.g. "US$… once". */
.pc-big { margin-top: 26px; font: 400 clamp(36px, 3.3vw, 46px)/1.05 var(--serif); letter-spacing: -.02em; }
html:lang(zh) .pc-big { letter-spacing: 0; }
.pc-then { margin-top: 8px; font: 400 16px/1.5 var(--sans); color: var(--ink2); }
.checks { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; font: 400 16px/1.4 var(--sans); }
.checks li { display: flex; gap: 10px; }
.checks svg { flex: none; color: var(--iris); }
.pc-cta { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pc-note { font: 400 14px/1.5 var(--sans); color: var(--ink2); }

/* FAQ */
.faq-in { max-width: 820px; margin: 0 auto; }
.faq-list { margin-top: 40px; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 18px 0;
  font: 600 19px/1.35 var(--sans); cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; color: var(--ink2); transition: transform .2s; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { padding: 0 40px 26px 0; font: 400 17px/1.6 var(--sans); color: var(--ink2); }

/* Closing */
.closing { padding: 0 0 clamp(80px, 10vw, 136px); }
.closing-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.closing-in img { width: 112px; height: 112px; margin: -8px; }
.closing .store-soon { margin-top: 8px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-in { display: flex; flex-direction: column; gap: 20px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.made { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--sans); color: var(--ink); }
.made img { width: 28px; height: 28px; margin: -3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font: 400 15px/1.2 var(--sans); }
.foot-links a, .foot-lang a { color: var(--ink2); }
.foot-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font: 400 15px/1.2 var(--sans); color: var(--ink2); }
.foot-lang a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.foot-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font: 400 13px/1.5 var(--sans); color: var(--ink2); }
.foot-small a { color: inherit; }

/* ---------- 404 ---------- */
.nf { padding: clamp(96px, 14vw, 180px) 0; text-align: center; }
.nf h1 { font: 400 clamp(40px, 6vw, 72px)/1.06 var(--serif); letter-spacing: -.02em; }
.nf p { margin-top: 18px; font: 400 18px/1.55 var(--sans); color: var(--ink2); }
.nf .home { margin-top: 32px; display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--iris); color: #FFFFFF; font: 600 16px/1 var(--sans); }
.nf .home:hover { text-decoration: none; }
.nf-langs { display: flex; justify-content: center; gap: 24px; }

/* ---------- narrow screens (board W02) ---------- */
@media (max-width: 820px) {
  .menu { display: none; }
  .nav-menu { display: block; }
  .ts { display: none; }
  .shot img { max-width: 380px; margin: 0 auto; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .lvl i { animation: none; }
  .faq-list summary svg { transition: none; }
}
