/* Actes. Paper and ink, Mediterranean light. One accent, generous space, quiet motion. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --paper: #f5f0e6;
  --paper-2: #efe8db;
  --sheet: #fdfbf7;
  --ink: #1b1916;
  --ink-2: #3d3934;
  --text: #4d4842;
  --muted: #8a8378;
  --hair: rgba(27, 25, 22, 0.11);
  --hair-2: rgba(27, 25, 22, 0.20);
  --sea: #166e72;
  --sea-deep: #0f5356;
  --sea-tint: rgba(22, 110, 114, 0.10);
  --sea-tint-2: rgba(22, 110, 114, 0.18);
  --olive-ok: #4f7a3a;
  --shadow: 0 1px 2px rgba(60, 45, 20, 0.05), 0 14px 40px rgba(60, 45, 20, 0.09);
  --shadow-2: 0 10px 30px rgba(60, 45, 20, 0.16), 0 2px 8px rgba(60, 45, 20, 0.08);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1080px;
}

* { 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: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-deep); }
button { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--sea-tint-2); }

/* Light on paper: a soft wash from the top, plus a whisper of paper grain */
body { position: relative; }
.ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #fcf9f3 0px, var(--paper) 720px, var(--paper) 100%);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.18 0 0 0 0.12 0'/></filter><rect width='180' height='180' filter='url(%23g)'/></svg>");
  background-size: 180px 180px;
}
.page { position: relative; z-index: 1; }

/* ---------- labels ---------- */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label.sea { color: var(--sea); }
.label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: 0 0 auto;
}
.label.plain::before { display: none; }
em, .em { font-style: italic; color: var(--sea); font-weight: 400; }

/* ---------- nav ---------- */
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.brand { display: flex; align-items: baseline; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .word {
  font-family: var(--display);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand .word::after {
  content: ".";
  color: var(--sea);
}
.brand .sub {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--sea); border-color: var(--hair); background: rgba(253, 251, 247, 0.8); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section.block { padding: 84px 0 0; }
.section-head { margin-bottom: 30px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
}
.section-head p { color: var(--text); margin: 0; max-width: 600px; font-size: 17px; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 22px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(42px, 6.6vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 16px 0 20px;
  max-width: 16ch;
}
.hero h1 em { font-weight: 300; }
.hero .lede {
  font-size: 19px;
  color: var(--text);
  max-width: 58ch;
  margin: 0 0 44px;
  line-height: 1.5;
}
.hero .lede strong { font-weight: 600; color: var(--ink); }

/* ---------- action cards ---------- */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px;
  position: relative;
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.card-head h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
.card-head .label { font-size: 11px; }

/* record */
.rec { display: flex; align-items: center; gap: 26px; padding: 6px 0 2px; }
.rec-btn {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 0;
  background: var(--sea);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 10px 28px rgba(22, 110, 114, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.rec-btn:hover { transform: translateY(-1px); background: var(--sea-deep); box-shadow: 0 14px 32px rgba(22, 110, 114, 0.42); }
.rec-btn:active { transform: translateY(0); }
.rec-btn .core {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sheet);
  transition: border-radius 0.25s, width 0.25s, height 0.25s;
}
.rec-btn .ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--sea);
  opacity: 0;
}
.rec-btn.recording .core { width: 30px; height: 30px; border-radius: 7px; }
.rec-btn.recording .ring { animation: ringpulse 1.8s ease-out infinite; }
.rec-btn.busy { pointer-events: none; opacity: 0.6; }
@keyframes ringpulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
.rec-meta { min-width: 0; }
.rec-time {
  font-family: var(--display);
  font-weight: 300;
  font-size: 48px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
  transition: color 0.2s;
}
.rec.live .rec-time { color: var(--sea); }
.rec-hint { margin: 10px 0 0; font-size: 15px; color: var(--text); min-height: 22px; }
.rec-hint.warn { color: #a15b1f; font-size: 13.5px; }
.rec-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
/* what is already transcribed while the recording is still going: a quiet aside, never
   competing with the record button */
.rec-live-note { margin: 9px 0 0; font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }
.rec-live-preview {
  margin: 5px 0 0;
  height: 4.4em;
  overflow: hidden;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(77, 72, 66, 0.6);
  opacity: 0;
  transition: opacity 0.7s ease;
  /* the last line fades out instead of being cut off mid word */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, 0));
}
.rec-live-preview.in { opacity: 1; }
.rec-facts { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.rec-facts li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; color: var(--text); line-height: 1.45; }
.rec-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); flex: 0 0 auto; position: relative; top: -2px; }
.rec-hint.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sea);
  margin-right: 8px;
  vertical-align: 1px;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* upload */
.drop {
  display: block;
  border: 1.5px dashed var(--hair-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.drop:hover, .drop.over { border-color: var(--sea); background: rgba(255, 255, 255, 0.9); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop .glyph {
  font-family: var(--display);
  font-size: 30px;
  color: var(--sea);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 300;
}
.drop .t { font-size: 15.5px; color: var(--ink); font-weight: 500; margin: 0; }
.drop .s { font-size: 13.5px; color: var(--muted); margin: 5px 0 0; }
.drop.has .t { color: var(--sea); }
.field { margin-top: 16px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input[type="text"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input[type="text"]:focus { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-tint); }
/* meeting-language picker, same shape as a text field */
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 12px 38px 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23767066' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center/12px 8px;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select:focus { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-tint); }
.field.compact { margin-top: 14px; }
.form-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.status-line { font-size: 14.5px; color: var(--text); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, color 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--sea); border-color: var(--sea); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair-2); }
.btn.ghost:hover { color: var(--sea); border-color: var(--sea); background: #fff; }
.btn.sea { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn.sea:hover { background: var(--sea-deep); border-color: var(--sea-deep); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--hair-2); }
.step {
  padding: 28px 26px 30px 0;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step + .step { padding-left: 26px; }
.step:last-child { border-right: 0; padding-right: 0; }
.step .n {
  font-family: var(--display);
  font-weight: 300;
  font-size: 54px;
  line-height: 1;
  color: var(--sea);
  letter-spacing: -0.03em;
  font-style: italic;
}
.step h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  margin: 6px 0 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.55; }
.notes { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.note .k {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- jobs list ---------- */
.jobs {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.job {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hair);
  transition: background 0.15s;
}
.job:last-child { border-bottom: none; }
.job:hover { background: #fff; }
.job .main { min-width: 0; }
.job .title {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job .title:hover { color: var(--sea); }
.job .meta {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.job .meta .sep { opacity: 0.6; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  color: var(--text);
  background: #fff;
}
.tag.bot { border-color: transparent; color: var(--sea-deep); background: var(--sea-tint); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.pill.done .dot { background: var(--olive-ok); }
.pill.processing { color: var(--sea-deep); border-color: var(--sea-tint-2); background: var(--sea-tint); }
.pill.processing .dot { background: var(--sea); animation: blink 1.2s ease-in-out infinite; }
.pill.error { color: #9a3b1f; border-color: rgba(154, 59, 31, 0.3); }
.pill.error .dot { background: #9a3b1f; }
.job .open {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: #fff;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.job .open:hover { color: var(--sea); border-color: var(--sea); }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: #9a3b1f; border-color: var(--hair-2); background: #fff; }
.icon-btn:disabled { opacity: 0.4; pointer-events: none; }
.empty { padding: 52px 24px; text-align: center; color: var(--muted); font-size: 15px; }
.empty .big { font-family: var(--display); font-size: 27px; color: var(--ink); display: block; margin-bottom: 6px; }

/* ---------- footer ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--hair-2); }
.footer .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  padding-bottom: 36px;
  flex-wrap: wrap;
}
.footer .w { font-family: var(--display); font-size: 22px; color: var(--ink); }
.footer .small { font-size: 13.5px; color: var(--muted); }

/* ---------- job page ---------- */
.job-head { padding: 26px 0 10px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); font-weight: 500; }
.back:hover { color: var(--sea); }
.job-head h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 16px 0 12px;
  overflow-wrap: anywhere;
}
.job-head .metaline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.job-head .metaline .sep { opacity: 0.6; }

/* processing */
.processing {
  margin-top: 30px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.processing .glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  right: -220px;
  top: -340px;
  background: radial-gradient(circle, rgba(22, 110, 114, 0.55), transparent 62%);
  pointer-events: none;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.processing .inner { position: relative; display: flex; align-items: center; gap: 30px; }
.scan { width: 66px; height: 66px; border-radius: 50%; border: 1px solid rgba(245, 240, 230, 0.25); position: relative; flex: 0 0 auto; }
.scan::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #7fc3c5;
  animation: spin 1.6s linear infinite;
}
.scan::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #7fc3c5;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing .label { color: rgba(245, 240, 230, 0.6); }
.processing h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 10px 0 8px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.processing h2 em { color: #7fc3c5; }
.processing p { margin: 0; color: rgba(245, 240, 230, 0.78); font-size: 15.5px; max-width: 58ch; line-height: 1.55; }
.processing .band {
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 46%;
  left: -50%;
  background: linear-gradient(100deg, transparent 0%, rgba(245, 240, 230, 0.05) 45%, rgba(127, 195, 197, 0.10) 50%, rgba(245, 240, 230, 0.05) 55%, transparent 100%);
  transform: skewX(-12deg);
  animation: sweep 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { left: -50%; } 60%, 100% { left: 120%; } }
.processing .top { flex: 1; min-width: 0; }
.processing .clock {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 14px;
  align-items: baseline;
  padding-left: 26px;
  border-left: 1px solid rgba(245, 240, 230, 0.16);
}
.clock-k { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 240, 230, 0.5); }
.clock-v { font-family: var(--display); font-size: 24px; font-weight: 300; color: var(--paper); font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.clock-v.soon { color: #7fc3c5; font-style: italic; }
.bar-wrap { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.bar { position: relative; flex: 1; height: 6px; border-radius: 999px; background: rgba(245, 240, 230, 0.14); overflow: hidden; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 999px; background: #7fc3c5; transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bar-shine { position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); animation: shine 2.6s ease-in-out infinite; }
@keyframes shine { to { left: 130%; } }
.bar-pct { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: right; }
.stages { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.stages li { display: flex; gap: 12px; align-items: flex-start; opacity: 0.42; transition: opacity 0.5s; }
.stages li b { display: block; font-weight: 500; font-size: 14.5px; color: var(--paper); line-height: 1.3; }
.stages li span:last-child { display: block; font-size: 12.5px; color: rgba(245, 240, 230, 0.6); line-height: 1.45; margin-top: 3px; }
.stages .mark { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(245, 240, 230, 0.45); margin-top: 1px; position: relative; transition: background 0.4s, border-color 0.4s; }
.stages li.done { opacity: 0.75; }
.stages li.done .mark { background: #7fc3c5; border-color: #7fc3c5; }
.stages li.done .mark::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.stages li.current { opacity: 1; }
.stages li.current .mark { border-color: #7fc3c5; }
.stages li.current .mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #7fc3c5; animation: blink 1.4s ease-in-out infinite; }
.stages li.current b { color: #7fc3c5; }
.reassure {
  position: relative;
  max-width: none;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 240, 230, 0.14);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: rgba(245, 240, 230, 0.85);
  min-height: 28px;
  transition: opacity 0.6s;
}
.reassure.fade { opacity: 0; }
.processing.leaving { opacity: 0; transform: translateY(-8px); transition: opacity 0.45s, transform 0.45s; }
.result.entering { animation: rise 0.6s ease-out; }
.processing.is-error .band, .processing.is-error .bar-shine { animation: none; display: none; }
.processing.is-error .scan::before { animation: none; border-top-color: transparent; }
.processing.is-error .scan::after { animation: none; }

/* result layout */
.result {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: start;
  padding: 26px 0 0;
}
.col-sticky { position: sticky; top: 16px; }

/* acta, set like a printed sheet */
.acta {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 38px 42px 36px;
}
.acta .acta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
/* ---------- split download button (PDF + a menu of every part) ---------- */
.dl-split { position: relative; display: inline-flex; align-items: stretch; }
.dl-split .primary {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px 0 0 999px;
  border: 1px solid var(--sea);
  background: var(--sea);
  color: #fff;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.dl-split .primary:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.dl-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  border-radius: 0 999px 999px 0;
  border: 1px solid var(--sea);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--sea);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.dl-more:hover, .dl-more[aria-expanded="true"] { background: var(--sea-deep); border-color: var(--sea-deep); }
.dl-more svg { transition: transform 0.2s; }
.dl-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.dl-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 240px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  animation: rise 0.18s ease-out;
}
.dl-menu[hidden] { display: none; }
.dl-group { display: flex; flex-direction: column; gap: 2px; }
.dl-group + .dl-group { border-top: 1px solid var(--hair); padding-top: 8px; }
.dl-group-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 8px 4px;
}
.dl-group a {
  font-size: 14px;
  color: var(--text);
  padding: 7px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.dl-group a:hover, .dl-group a:focus-visible { background: var(--sea-tint); color: var(--sea-deep); outline: none; }

@media (max-width: 480px) {
  .dl-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: 70vh;
    overflow-y: auto;
  }
}
.prose { font-family: var(--display); font-weight: 400; color: var(--ink-2); font-size: 17.5px; line-height: 1.6; }
.prose > :first-child { margin-top: 0; }
.prose h1 {
  font-weight: 300;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink);
}
.prose h2 {
  font-weight: 400;
  font-style: italic;
  font-size: 25px;
  line-height: 1.1;
  margin: 32px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  color: var(--sea);
  letter-spacing: -0.01em;
}
.prose h3 { font-weight: 400; font-size: 21px; margin: 22px 0 6px; color: var(--ink); }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose li::marker { color: var(--sea); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose em { color: var(--sea); }
.prose blockquote {
  margin: 12px 0;
  padding: 10px 18px;
  border-left: 2px solid var(--sea);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
  color: var(--text);
}
.prose code { font-family: var(--sans); font-size: 14px; background: var(--paper); padding: 1px 6px; border-radius: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 10px 0 16px; font-family: var(--sans); }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 20px 0; }

/* player */
.player {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.player .glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -160px;
  top: -250px;
  background: radial-gradient(circle, rgba(22, 110, 114, 0.5), transparent 62%);
  pointer-events: none;
}
.player .row { position: relative; display: flex; align-items: center; gap: 14px; }
.play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.play:hover { background: #7fc3c5; transform: translateY(-1px); }
.play svg { width: 18px; height: 18px; display: block; }
.play .ico-pause { display: none; }
.play.playing .ico-play { display: none; }
.play.playing .ico-pause { display: block; }
.player .times {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(245, 240, 230, 0.65);
  white-space: nowrap;
}
.player .times b { font-weight: 500; color: var(--paper); }
.seek { flex: 1; height: 30px; display: flex; align-items: center; cursor: pointer; min-width: 60px; touch-action: none; }
.seek .track { position: relative; width: 100%; height: 4px; border-radius: 999px; background: rgba(245, 240, 230, 0.2); }
.seek .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 999px; background: #7fc3c5; }
.seek .knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: scale(0.85);
  transition: transform 0.15s;
}
.seek:hover .knob { transform: scale(1); }
.rate {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 240, 230, 0.28);
  background: transparent;
  color: rgba(245, 240, 230, 0.85);
  cursor: pointer;
  flex: 0 0 auto;
}
.rate:hover { border-color: #7fc3c5; color: #7fc3c5; }
.player audio { display: none; }

/* transcript, a quiet conversation */
.transcript {
  margin-top: 20px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px 24px 18px;
}
.transcript .t-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.transcript h2 { font-family: var(--display); font-weight: 400; font-size: 27px; margin: 0; letter-spacing: -0.015em; }
.transcript .count { font-size: 13px; color: var(--muted); }
.transcript .help { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.transcript .help b { font-weight: 500; color: var(--text); }
.lines { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 6px; padding-bottom: 28px; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent); }
.line {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 5px 12px;
  padding: 11px 12px 11px 10px;
  border-radius: 14px;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.line:hover { background: var(--paper); }
.line.active { background: var(--sea-tint); border-left-color: var(--sea); }
.line .ts { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.line.active .ts { color: var(--sea-deep); }
.line .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  color: var(--text);
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  user-select: none;
}
.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(60, 45, 20, 0.14); }
.chip.s0 { background: var(--sea); border-color: var(--sea); color: #fff; }
.chip.s1 { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.s2 { background: #fff; border-color: var(--sea); color: var(--sea-deep); }
.chip.s3 { background: #fff; border-color: var(--ink); color: var(--ink); }
.chip.s4 { background: var(--sea-tint); border-color: transparent; color: var(--sea-deep); }
.chip.s5 { background: var(--paper-2); border-color: transparent; color: var(--ink); }
.line .txt { grid-column: 2; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.line.active .txt { color: var(--ink); }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(27, 25, 22, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal .box {
  width: min(440px, 100%);
  background: var(--sheet);
  border-radius: 20px;
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-2);
  padding: 28px 28px 22px;
  animation: rise 0.25s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal h3 { font-family: var(--display); font-weight: 400; font-size: 27px; margin: 8px 0 8px; line-height: 1.1; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.modal p { margin: 0 0 6px; color: var(--text); font-size: 15px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 60;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- rename the meeting ---------- */
.title-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.title-row h1 { flex: 1 1 auto; min-width: 0; }
.rename-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.rename-btn:hover { color: var(--sea); border-color: var(--sea); background: #fff; }
.rename-btn svg { flex: 0 0 auto; }
.job-tools { display: flex; align-items: center; gap: 2px; }
.icon-btn.job-rename:hover { color: var(--sea); }

/* stage name next to the percentage */
.bar-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 3.4ch; }
.bar-stage { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #7fc3c5; white-space: nowrap; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; padding-right: 0; }
  .step:nth-child(3) { padding-left: 0; border-top: 1px solid var(--hair); }
  .step:nth-child(4) { border-top: 1px solid var(--hair); }
  .result { grid-template-columns: 1fr; }
  .col-sticky { position: static; }
  .stages { grid-template-columns: 1fr 1fr; }
  .lines { max-height: none; overflow: visible; padding-right: 0; padding-bottom: 0; -webkit-mask-image: none; mask-image: none; }
  .player-wrap { position: sticky; top: 10px; z-index: 5; }
}
@media (max-width: 720px) {
  .nav { height: 64px; padding: 0 18px; }
  .nav-links { display: none; }
  .brand .sub { display: none; }
  .wrap { padding: 0 18px; }
  section.block { padding-top: 60px; }
  .hero { padding-top: 18px; }
  .hero h1 { font-size: clamp(40px, 12vw, 54px); max-width: 100%; }
  .hero .lede { font-size: 17px; margin-bottom: 28px; }
  .actions { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 20px; border-radius: 20px; }
  .card-head { margin-bottom: 18px; }
  .card-head h3 { font-size: 27px; }
  .rec { gap: 20px; }
  .rec-btn { width: 96px; height: 96px; }
  .rec-time { font-size: 42px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding: 24px 0; border-top: 1px solid var(--hair); }
  .step + .step { padding-left: 0; }
  .step:first-child { border-top: 0; }
  .notes { grid-template-columns: 1fr; gap: 12px; }
  .job { grid-template-columns: 1fr auto; gap: 10px 12px; padding: 18px 16px; }
  .job .main { grid-column: 1 / -1; }
  .job .title { white-space: normal; font-size: 21px; }
  .job .pill { justify-self: start; }
  .job .open { display: none; }
  .job .job-tools { justify-self: end; }
  .title-row { align-items: center; gap: 10px; }
  .title-row h1 { flex-basis: 100%; margin-bottom: 4px; }
  .rename-btn { margin: 0 0 12px; }
  .bar-stage { font-size: 10.5px; letter-spacing: 0.1em; }
  .acta { padding: 28px 20px; border-radius: 20px; }
  .prose { font-size: 17px; }
  .prose h1 { font-size: 31px; }
  .transcript { padding: 20px 14px 14px; border-radius: 20px; }
  .line { grid-template-columns: 44px 1fr; padding: 10px 8px; }
  .line .txt { grid-column: 1 / -1; }
  .player { padding: 14px 14px 12px; border-radius: 16px; }
  .processing { padding: 28px 22px; }
  .processing .inner { flex-wrap: wrap; gap: 18px; }
  .processing .top { flex-basis: calc(100% - 84px); }
  .processing .clock { flex-basis: 100%; border-left: 0; padding-left: 0; border-top: 1px solid rgba(245, 240, 230, 0.16); padding-top: 14px; grid-template-columns: auto 1fr; }
  .stages { grid-template-columns: 1fr; gap: 12px; }
  .bar-pct { font-size: 26px; }
  .reassure { font-size: 16.5px; }
  .player .times { font-size: 12px; }
  .rate { display: none; }
  .footer { margin-top: 64px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
}


/* ---------- sessions, privacy, admin ---------- */
.dim { color: var(--muted); }
.privacy-line { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.privacy-line a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.privacy-line a:hover { color: var(--sea); }
.quiet-link { margin: 14px 0 0; font-size: 14px; }
.quiet-link a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.quiet-link a:hover { color: var(--sea); }
.status-line.warn { color: #a15b1f; }
.admin-badge { margin-left: auto; border-color: transparent; color: var(--sea-deep); background: var(--sea-tint); }
.footer .small a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer .small a:hover { color: var(--sea); }
#recoverDialog .box { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
#recoverDialog .row { justify-content: flex-end; }
@media (max-width: 560px) {
  #recoverDialog .box { padding: 22px 20px 18px; }
  #recoverDialog .row { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  #recoverDialog .row .btn { width: 100%; justify-content: center; text-align: center; }
}

/* the privacy page */
.legal { margin-top: 8px; }
.legal h2, .legal p { max-width: 660px; }
.legal h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 34px 0 8px;
}
.legal h2:first-child { margin-top: 8px; }
.legal p { color: var(--text); font-size: 16.5px; line-height: 1.62; margin: 0 0 10px; }
.legal strong { color: var(--ink); font-weight: 600; }

/* "Idioma de la reunió": people missed it, so it reads like a real control now */
.field.compact { margin-top: 18px; }
.field.compact label { display: block; font-family: var(--font-display, "Fraunces", serif); font-size: 18px; color: var(--ink, #1b1916); margin-bottom: 8px; letter-spacing: 0; text-transform: none; }
.field.compact select { width: 100%; font-size: 16px; padding: 12px 14px; border: 1.5px solid #166e72; border-radius: 12px; background: #fff; color: #1b1916; }
