/* Alamara. Layout idea: a dark screening room. The footage is the only colour on the page, type is off-white,
   and the one red is the cue line: it marks what is live (the new line, a recording, a take being made). */
:root {
  --bg: #0b0b0c; --panel: #141415; --raise: #1d1d1f; --line: #2b2b2e; --text: #f4efe6; --muted: #9a9ca2; --signal: #e5432d;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/plex-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/plex-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/plex-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.mono { font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(28px, 7.9vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.3vw, 56px); line-height: 1.04; }
h3 { font: 600 19px/1.3 var(--body); margin: 0; }
.lede { max-width: 36em; margin: 16px 0 0; color: var(--muted); font-size: 18px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--text); color: var(--bg); border: 1px solid var(--text); border-radius: 10px; padding: 13px 20px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.button:hover { background: #fff; border-color: #fff; }
.button.ghost { background: none; color: var(--text); border-color: var(--line); }
.button.ghost:hover { border-color: var(--text); }
.button.live { background: var(--signal); border-color: var(--signal); color: #fff; }
.button.live:hover { background: #f2473d; border-color: #f2473d; }
.button[disabled] { cursor: progress; }

header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
header img { height: 28px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
nav a:hover { color: var(--text); }
nav a.button { color: var(--bg); padding: 10px 16px; font-size: 15px; }

/* Hero: the claim, then the footage as wide as the page */
.hero { padding: 40px 0 38px; }
.pitch { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 56px; flex-wrap: wrap; margin-top: 28px; }
.pitch p { font-size: 19px; color: #cfd0d2; margin: 0; max-width: 33em; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.actions a:not(.button) { color: var(--muted); text-underline-offset: 5px; }
.actions a:not(.button):hover { color: var(--text); }

/* A/B player: the original and the take play together on the same frame; the switch changes which one you see */
.ab { margin: 0; }
.screen { position: relative; aspect-ratio: 960 / 400; max-height: 78vh; background: #000; border-radius: 14px; overflow: hidden; cursor: pointer; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.screen video.take { transition: opacity .1s; }
.ab[data-show="original"] video.take { opacity: 0; }
.screen .tag, .screen .tc { position: absolute; top: 14px; padding: 7px 10px; border-radius: 7px; background: rgba(11, 11, 12, .62); color: var(--text); pointer-events: none; }
.screen .tag { left: 14px; display: inline-flex; align-items: center; gap: 8px; }
.screen .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ab[data-show="take"] .tag::before { background: var(--signal); }
.screen .tc { right: 14px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.screen .unmute { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 9px 15px; border-radius: 999px; background: rgba(11, 11, 12, .72); color: var(--text); pointer-events: none; white-space: nowrap; }
.ab[data-loud] .unmute, .ab[data-show="original"] .unmute { display: none; }
@media (max-width: 380px) { .ab[data-show="original"] .tc { display: none; } }   /* the original's label needs the room */
.screen .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(244, 245, 242, .14); pointer-events: none; }
.screen .progress i { display: block; height: 100%; width: 0; background: var(--signal); }
.ab[data-paused] .screen::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(11, 11, 12, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M26 20v24l20-12z' fill='%23f4f5f2'/%3E%3C/svg%3E") center / contain no-repeat; }
.deck { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-top: 16px; }
.switch { display: inline-flex; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.switch button { font: 600 15px/1 var(--body); padding: 10px 16px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.switch button:hover { color: var(--text); }
.switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.sound { padding: 13px 16px; font-size: 15px; }
.sound svg { width: 18px; height: 18px; flex: none; }
.sound .waves { opacity: .25; }
.sound[aria-pressed="true"] { border-color: var(--signal); }
.sound[aria-pressed="true"] .waves { opacity: 1; }
.reel { display: flex; gap: 10px; margin-left: auto; }
.reel button { width: 116px; padding: 0 0 8px; border: 0; background: none; color: var(--muted); cursor: pointer; text-align: left; }
.reel img { display: block; width: 100%; aspect-ratio: 960 / 400; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); opacity: .55; margin-bottom: 8px; transition: opacity .15s, border-color .15s; }
.reel button:hover img { opacity: .85; }
.reel button[aria-pressed="true"] { color: var(--text); }
.reel button[aria-pressed="true"] img { opacity: 1; border-color: var(--text); }
.ab .caption { margin: 12px 0 0; color: var(--muted); font-size: 15px; max-width: 46em; min-height: 1.6em; }
/* The showreel at the top of the page: one wide picture that plays every clip in turn. Its reel is the row of
   bars along the bottom edge, one per clip, filling as the clip plays; the label names the clip. */
.show .screen { border-radius: 16px; max-height: none; }
.show .tc { letter-spacing: 0.08em; }
.show .reel { position: absolute; left: 14px; right: 14px; bottom: 0; display: flex; gap: 5px; margin: 0; }
.show .reel button { flex: 1; width: auto; min-width: 0; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.show .reel button::before { content: none; }
.show .reel i { display: block; position: relative; flex: 1; height: 3px; border-radius: 2px; background: rgba(244, 245, 242, .26); overflow: hidden; transition: height .12s; }
.show .reel i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--played, 0%); background: var(--text); }
.show .reel button[aria-pressed="true"] i::after { background: var(--signal); }
.show .reel button:hover i, .show .reel button:focus-visible i { height: 6px; }
.show .unmute { bottom: 34px; }
.show .deck { flex-wrap: nowrap; align-items: center; }
.show .deck .caption { margin: 0 0 0 auto; padding-left: 12px; max-width: 34em; min-height: 3em; display: flex; align-items: center; text-align: right; }

main > section { border-top: 1px solid var(--line); }
main > section > .wrap { padding-top: 84px; padding-bottom: 84px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split figure { margin: 0; }
.split figure img { display: block; width: 100%; border-radius: 14px; }
.split figcaption { margin-top: 10px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.four + .small { margin-top: 18px; }
.code { margin: 0; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; font: 13px/1.75 "IBM Plex Mono", ui-monospace, monospace; color: var(--text); }
.code i { font-style: normal; color: var(--muted); }
.code b { font-weight: 400; color: #8fd19e; }
#api .notify { margin-top: 18px; max-width: 420px; }
.figures { display: flex; gap: 40px; margin: 30px 0 0; }
.figures div { border-top: 1px solid var(--line); padding-top: 14px; flex: 1; }
.figures b { display: block; font: 400 46px/1 var(--display); letter-spacing: -0.01em; margin-bottom: 8px; }
.figures span { color: var(--muted); font-size: 15px; display: block; line-height: 1.4; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
#ways .card, #how .card, #handles .card { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 0; }
#ways .cards, #how .cards, #handles .cards { gap: 36px; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 400 13px/1 var(--mono); color: var(--signal); margin-bottom: 44px; }
.steps p { margin: 8px 0 0; color: var(--muted); }

.lists { grid-template-columns: minmax(0, 1fr); }
.lists ul { margin: 16px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 36px; }
.lists li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; padding: 11px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.lists li::before { content: ""; justify-self: start; }
.lists .yes li::before { width: 6px; height: 11px; margin: 5px 0 0 3px; border: solid var(--text); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.plan { display: flex; flex-direction: column; }
.plan .mono { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 26px; }
.plan .mono.open { color: var(--text); }
.plan .mono.open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.plan .price { font: 400 54px/1 var(--display); letter-spacing: -0.01em; margin: 14px 0 6px; }
.plan .unit { color: var(--muted); font-size: 15px; min-height: 3.2em; margin: 0; }
.plan ul { margin: 22px 0 26px; padding: 0; list-style: none; flex: 1; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.plan .button { width: 100%; }
.notify { display: grid; gap: 10px; }
.notify output { font-size: 14px; color: var(--muted); min-height: 1.5em; }

input[type="email"], input[type="text"] { width: 100%; font: inherit; font-size: 15.5px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
input[type="email"]::placeholder { color: #6d6f75; }
input[type="email"]:hover, input[type="email"]:focus { border-color: #55565b; }

/* Try it: the one place the visitor acts */
#try .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.terms { margin: 34px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.terms li { padding: 14px 0; border-top: 1px solid var(--line); }
.terms strong { color: var(--text); display: block; font-weight: 600; }
#tryform { display: grid; gap: 30px; padding: 30px; }
.field { display: grid; grid-template-columns: 38px minmax(0, 1fr); }
.field > .n { font: 400 13px/1.9 var(--mono); color: var(--signal); }
.field .label { font-weight: 600; display: block; }
.field .hint { font-size: 14px; color: var(--muted); margin: 2px 0 12px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border: 1px dashed #4a4b50; border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--text); }
.drop.over { background: var(--raise); }
.drop:focus-within { outline: 2px solid var(--signal); outline-offset: 3px; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop .ask b { display: block; font-weight: 600; }
.drop .ask span { font-size: 14px; color: var(--muted); }
.drop .got { display: none; min-width: 0; }
.drop.has { border-style: solid; border-color: var(--line); }
.drop.has .ask { display: none; }
.drop.has .got { display: block; }
.drop .got b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop .got span { font-size: 14px; color: var(--muted); }
.pick { position: relative; z-index: 1; flex: none; line-height: 0; cursor: crosshair; }   /* above the file input: a click here points at the speaker */
.pick video { display: block; width: auto; height: auto; max-width: 240px; max-height: 124px; border-radius: 7px; background: #000; }
.pick i { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid var(--signal); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .6); pointer-events: none; }
#pickhint { margin: 10px 0 0; }
.or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.typed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.typed textarea, .typed select, .ask textarea, .ask select { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 15.5px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.typed textarea, .ask textarea { resize: vertical; min-height: 76px; }
.ask label { display: block; max-width: 560px; }
.typed textarea::placeholder { color: #6d6f75; }
.typed .hint { margin: 0; }
.typed .check { font-size: 14.5px; }
.typed textarea:disabled { opacity: .45; }
.said { margin: 18px 0 0; line-height: 1.7; }
.said .mono { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-right: 10px; }
.sample { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: 14.5px; color: var(--text); }
.sample em { font-style: normal; color: var(--muted); margin-left: 6px; }
.sample input { font: inherit; font-size: 14px; color: var(--muted); max-width: 100%; }
.sample input::file-selector-button { font: inherit; color: var(--text); background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-right: 12px; cursor: pointer; }
#rec { width: 100%; }
#rec i { width: 11px; height: 11px; border-radius: 50%; background: var(--signal); flex: none; }
#rec[aria-pressed="true"] { border-color: var(--signal); font-variant-numeric: tabular-nums; }
#rec[aria-pressed="true"] i { border-radius: 2px; animation: pulse 1s ease-in-out infinite; }
#heard { width: 100%; height: 38px; margin-top: 12px; }
.note { color: #ff8078; font-size: 14.5px; margin: 10px 0 0; }
label.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--signal); }
.send { display: grid; gap: 12px; margin-left: 38px; }
#go { position: relative; overflow: hidden; padding: 16px 22px; font-size: 17px; }
#go[disabled] { background: #5c1a16; border-color: #5c1a16; }
#go[disabled]::before { content: ""; position: absolute; inset: 0; width: var(--sent, 0%); background: var(--signal); transition: width .2s; }
#go span { position: relative; }
#formnote { margin: 0; padding: 12px 14px; border: 1px solid #7a2a25; border-radius: 10px; background: #1e1110; color: #ffb4ae; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 28px; justify-content: space-between; align-items: flex-start; padding-top: 36px; padding-bottom: 48px; }
footer img { height: 22px; width: auto; opacity: .9; }
footer p { margin: 0; max-width: 48em; }

/* The pages after the form: your take, the approval list, errors */
.plain main { max-width: 900px; margin: 0 auto; padding: 40px 28px 96px; }
.plain h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 16px; }
.plain main > p:not(.small) { color: #cfd0d2; max-width: 40em; font-size: 18px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 36px 0; padding: 0; list-style: none; }
.track li { border-top: 3px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 15px; }
.track li.done { border-color: var(--text); color: var(--text); }
.track li.now { border-color: var(--signal); color: var(--text); font-weight: 600; }
.track li.now::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--signal); animation: pulse 1.2s ease-in-out infinite; }
.plain .ab { margin: 30px 0 22px; }
.marks { display: grid; gap: 14px; margin-top: 34px; }
.marks h2 { font: 600 19px/1.3 var(--body); letter-spacing: 0; }
.marks .small, .marks .note { margin: 0; }
.marks .deck { margin-top: 0; }
.marks .chips { margin: 0; min-height: 1.6em; font-variant-numeric: tabular-nums; }
.marks .strength { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.marks input[type="range"] { accent-color: var(--signal); width: 180px; }
.marks .button[disabled] { opacity: .45; cursor: not-allowed; }
.marks > .button { justify-self: start; }
.request { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; margin: 0 0 18px; }
.request video { display: block; width: 100%; border-radius: 10px; background: #000; }
.request audio { width: 100%; }
.request form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.log { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--muted); }
.log td { padding: 8px 12px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }

@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .split, #try .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cards, .lists { grid-template-columns: minmax(0, 1fr); }
  .lists ul { columns: 1; }
  .hero { padding: 22px 0 28px; }
  .pitch { margin-top: 20px; }
  main > section > .wrap { padding-top: 60px; padding-bottom: 60px; }
  nav a:not(.button) { display: none; }
  .wrap, .plain main { padding-left: 18px; padding-right: 18px; }
  .screen { border-radius: 10px; }
  .reel { margin-left: 0; width: 100%; }
  .reel button { width: auto; flex: 1; min-width: 0; }
  .reel span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
  .steps li::before { margin-bottom: 22px; }
  #tryform { padding: 20px 16px; }
  .field { grid-template-columns: 30px minmax(0, 1fr); }
  .send { margin-left: 0; }
  .pick video { max-width: 130px; max-height: 100px; }
  .request { grid-template-columns: minmax(0, 1fr); }
  .track { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .marks #mark { margin-left: 0 !important; }
  footer .wrap { flex-direction: column; }
}
@media (max-width: 900px) {
  .show .screen { margin-inline: 0; border-radius: 10px; }
  .show .reel { left: 8px; right: 8px; width: auto; gap: 3px; }
  .show .reel button { height: 20px; }
  .show .unmute { bottom: 26px; }
  .show .deck { flex-wrap: wrap; }
  .show .sound { margin-left: auto; }
  .show .deck .caption { margin: 0; padding: 0; width: 100%; max-width: none; min-height: 4.8em; align-items: flex-start; text-align: left; }
}
@media (min-width: 901px) {   /* the picture is wider than the text, and never taller than what is left of the window under the headline */
  .show .screen { --w: min(100vw - 48px, 1320px); width: var(--w); margin-inline: calc((100% - var(--w)) / 2); }
}
@media (min-width: 901px) and (max-width: 1099px) and (min-height: 600px) { .show .screen { --w: min(100vw - 48px, (100vh - 460px) * 2.4); } }
@media (min-width: 1100px) and (min-height: 600px) { .show .screen { --w: min(100vw - 48px, 1320px, (100vh - 320px) * 2.4); } }
@media (min-width: 1100px) {   /* the headline on one line, like a title, so that the picture starts higher */
  .hero { padding: 24px 0 30px; }
  .hero h1 { font-size: clamp(46px, 4.7vw, 66px); }
  .hero h1 br { display: none; }
  .hero .pitch { margin-top: 22px; }
  .hero .pitch p { font-size: 18px; }
}
@media (max-width: 560px) { .show .sound span { display: none; } .show .sound { padding: 13px 15px; } }   /* a phone: the switch and the sound button on one row */
@media (max-width: 1100px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards.four { grid-template-columns: minmax(0, 1fr); } .code { font-size: 12px; padding: 18px; } }
