/* getcalibrew.com — the app's own colours and type. */
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/DMMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/DMMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --oat: #F3EEE6; --surface: #FBF8F3; --line: #E4DCD0; --espresso: #2B1D16; --bezel: #17100C;
  --ink: #221C18; --muted: #6F655B; --terracotta: #9E4526; --crema: #D4A24C; --crema-ink: #8A6520;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans JP", "Noto Sans KR", sans-serif;
  --serif: "Instrument Serif", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--oat); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--crema-ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* The top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand img { display: block; width: 34px; height: 34px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; color: var(--muted); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; margin: 0; padding: 6px; list-style: none; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -12px rgba(43, 29, 22, .28); }
.lang li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a:focus-visible { background: var(--oat); }
.lang li a[aria-current] { font-weight: 600; }

/* The first screen */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: center; padding: 36px 0 80px; }
.kicker { margin: 0; font: 500 13px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); }
h1 { margin: 14px 0 22px; font: 400 clamp(48px, 7.4vw, 86px)/0.98 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.lede { margin: 0; max-width: 32em; font-size: 20px; line-height: 1.5; color: var(--muted); }
.soon, .cta { display: inline-flex; align-items: center; gap: 10px; margin: 30px 0 0; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.soon { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crema); box-shadow: 0 0 0 4px rgba(212, 162, 76, .22); }
.cta { background: var(--espresso); color: var(--oat); text-decoration: none; }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.phone { justify-self: center; width: 100%; max-width: 320px; margin: 0; padding: 9px; background: var(--bezel); border-radius: 50px; box-shadow: 0 40px 80px -30px rgba(43, 29, 22, .5), 0 2px 6px rgba(43, 29, 22, .16); }
.phone img { display: block; width: 100%; height: auto; border-radius: 41px; background: var(--surface); }

/* The one-paragraph pitch */
.pitch { padding: 72px 0; border-top: 1px solid var(--line); }
.statement { max-width: 25em; margin: 0 auto; font: 400 clamp(28px, 3.6vw, 40px)/1.24 var(--serif); text-align: center; text-wrap: balance; }

/* Words beside the screen they describe */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 280px minmax(0, 1fr); }
.feature.flip .phone { order: -1; }
h2 { margin: 12px 0 16px; font: 400 clamp(32px, 3.6vw, 44px)/1.08 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
h2.long { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.14; }
.feature p, .band p { max-width: 34em; margin: 0 0 14px; font-size: 18px; }
.kinds { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.kinds li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.kinds strong { display: block; font-weight: 600; font-size: 15.5px; color: var(--ink); }

/* The brewing screen, live. Sized in points of the app's 402-pt screen, so it
   scales with the phone like the screenshots beside it. */
.live { position: relative; aspect-ratio: 1320 / 2868; overflow: hidden; border-radius: 41px; background: var(--oat); container-type: inline-size; }
.live-screen { --u: calc(100cqw / 402); position: absolute; inset: 0; color: var(--ink); font-family: var(--sans); }
.live-status { position: absolute; top: calc(22 * var(--u)); left: calc(50 * var(--u)); right: calc(34 * var(--u)); display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: calc(17 * var(--u)); }
.live-icons { width: calc(78 * var(--u)); height: calc(14 * var(--u)); fill: var(--ink); }
.live-head { position: absolute; top: calc(62 * var(--u)); left: calc(24 * var(--u)); right: calc(24 * var(--u)); display: flex; align-items: center; justify-content: space-between; }
.live-pill { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); height: calc(33 * var(--u)); padding: 0 calc(14 * var(--u)) 0 calc(11 * var(--u)); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: calc(15 * var(--u)); white-space: nowrap; }
.live-glyph, .live-lock { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.live-glyph { width: calc(16 * var(--u)); height: calc(16 * var(--u)); stroke: var(--ink); }
.live-chip { display: inline-flex; align-items: center; height: calc(27 * var(--u)); padding: 0 calc(10 * var(--u)); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font: 400 calc(13.5 * var(--u))/1 var(--mono); color: var(--muted); white-space: nowrap; }
.live-recipe { position: absolute; top: calc(109 * var(--u)); left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); }
.live-lock { width: calc(14 * var(--u)); height: calc(14 * var(--u)); stroke: #A69C90; }
.live-ring { position: absolute; top: calc(258.5 * var(--u)); left: calc(37 * var(--u)); width: calc(328 * var(--u)); height: calc(328 * var(--u)); }
.live-dial { position: absolute; inset: 0; width: 100%; height: 100%; }
.live-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.live-machine { width: calc(148.5 * var(--u)); height: calc(148.5 * var(--u)); margin-bottom: calc(3 * var(--u)); }
.live-digits { font: 500 calc(53.7 * var(--u))/1.15 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.live-label { font-size: calc(15 * var(--u)); color: var(--muted); }
.live .live-cue { position: absolute; top: calc(598 * var(--u)); left: calc(40 * var(--u)); right: calc(40 * var(--u)); margin: 0; font-size: calc(15.5 * var(--u)); line-height: 1.6; text-align: center; color: var(--muted); opacity: 0; transition: opacity .3s ease; }
.live .live-cue.is-shown { opacity: 1; }
.live-stop { position: absolute; top: calc(767 * var(--u)); left: calc(24 * var(--u)); right: calc(24 * var(--u)); height: calc(57 * var(--u)); display: flex; align-items: center; justify-content: center; background: #B8552F; color: var(--oat); border-radius: 999px; font-weight: 600; font-size: calc(18 * var(--u)); transition: opacity .4s ease; }
.live-stop.is-done { opacity: .35; }
.live-home { position: absolute; bottom: calc(8 * var(--u)); left: 50%; width: calc(134 * var(--u)); height: calc(5 * var(--u)); margin-left: calc(-67 * var(--u)); background: var(--ink); border-radius: 99px; }

/* The bag drop: the app's animation, in the app's Slate, straight on the page. Tap to drop it again. */
.bag-drop { justify-self: center; width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bag-drop svg { display: block; width: 100%; height: 100%; overflow: hidden;
  /* The bag falls in from above the box: fade it in rather than cut it off mid-air. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%); mask-image: linear-gradient(to bottom, transparent 0, #000 24%); }

/* Three short ones */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 80px 0; border-top: 1px solid var(--line); }
.card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.card .kicker { margin-bottom: 14px; }
.card p { margin: 0; font-size: 16px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 22px; margin: 0 0 16px; }
.stats b { display: block; font: 400 48px/1 var(--serif); }
.stats span { display: block; max-width: 9em; font-size: 13px; line-height: 1.3; color: var(--muted); }

/* Privacy, on espresso */
.band { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 72px; align-items: center; margin: 0 0 80px; padding: 64px; background: var(--espresso); color: var(--oat); border-radius: 36px; }
.band .kicker { color: var(--crema); }
.band h2 { color: var(--oat); }
.band p { color: #E6DCCF; }
.band a { color: var(--crema); font-weight: 600; }
.band .phone { background: #0E0907; }

.closing { padding: 8px 0 96px; text-align: center; }
.closing h2 { margin: 0; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 28px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
footer a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Japanese sets its headlines in Mincho, Korean in its Gothic. Neither breaks
   a line inside a word: Korean wraps at spaces, and a Japanese headline keeps
   each phrase (build.py wraps them) whole. */
:lang(ko) { word-break: keep-all; }
:lang(ja) { line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) .statement { word-break: auto-phrase; }
.phrase { display: inline-block; }
:lang(ja) h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.16; }
:lang(ko) h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.18; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) .statement { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
:lang(ja) h2, :lang(ko) h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.38; }
:lang(ja) h2.long, :lang(ko) h2.long { font-size: clamp(21px, 2.2vw, 26px); }
:lang(ja) .statement, :lang(ko) .statement { font-size: clamp(21px, 2.5vw, 28px); line-height: 1.65; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hero, .feature, .feature.flip, .band { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature.flip .phone { order: 0; }
  .hero { padding: 12px 0 56px; }
  .phone { max-width: 240px; border-radius: 38px; padding: 7px; }
  .phone img, .phone .live { border-radius: 31px; }
  .bag-drop { max-width: 260px; }
  .feature .phone, .band .phone { max-width: 210px; }
  .pitch { padding: 52px 0; }
  .statement { text-align: left; }
  .feature, .cards { padding: 56px 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .band { margin-bottom: 56px; padding: 40px 22px; border-radius: 28px; }
  .closing { padding-bottom: 64px; }
}
