/* TimeMark: marketing site styles
 *
 * Hand-written CSS, no build step. Variables track the iOS app's Theme.swift
 * (navy surfaces, amber brand, the event palette) so the site and the app
 * read as one product. Dark is the default, as in the app.
 */

:root {
  --brand: #f5a623;          /* amber fill */
  --brand-hi: #ffc857;
  --brand-ink: #1a1206;      /* text on amber */
  --brand-text: #f5a623;     /* amber used as text */

  --ev-blue: #0a84ff;
  --ev-green: #32d74b;
  --ev-orange: #ff9f0a;
  --ev-red: #ff453a;
  --ev-purple: #bf5af2;
  --ev-gray: #98989f;

  --bg: #0f1923;
  --bg-2: #15212d;
  --bg-3: #1b2838;
  --text: #f4f6f8;
  --text-2: #b4bfca;
  --text-3: #7d8a97;
  --border: rgba(244, 246, 248, 0.09);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 12px 40px rgba(245, 166, 35, 0.28);

  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

@media (prefers-color-scheme: light) {
  :root {
    --brand-text: #9a5f00;
    --bg: #ffffff;
    --bg-2: #f5f6f8;
    --bg-3: #eceef2;
    --text: #0f1923;
    --text-2: #45515e;
    --text-3: #7a8591;
    --border: rgba(15, 25, 35, 0.09);
    --shadow-card: 0 4px 24px rgba(15, 25, 35, 0.08);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

.mono {
  font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ----------------- Header ----------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

nav.primary {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-2);
}

@media (max-width: 720px) { nav.primary { display: none; } }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
}

.cta-large { padding: 16px 28px; font-size: 16px; }

.cta-ghost {
  color: var(--text-2);
  font-weight: 600;
}

/* ----------------- Hero ----------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 120px) clamp(40px, 8vw, 80px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 70% 0%,
    color-mix(in srgb, var(--brand) 16%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-meta { justify-content: center; }
  .lede { margin-inline: auto; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-text);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ev-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev-red) 25%, transparent);
}

h1.headline {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 .accent { color: var(--brand-text); }

.lede {
  margin: 0 0 28px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-2);
  max-width: 54ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  color: var(--text-3);
  font-size: 13px;
  flex-wrap: wrap;
}

.hero-meta strong { color: var(--text); font-weight: 700; }

.hero-screen {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-screen img {
  width: min(400px, 88%);
  border-radius: clamp(28px, 4vw, 46px);
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px -20px color-mix(in srgb, var(--brand) 40%, transparent),
    0 12px 24px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
}

/* ----------------- Timeline band ----------------- */
/* The app's own swim-lane output, as a divider. Pure CSS, decorative. */

.lanes {
  display: grid;
  gap: 8px;
  padding-block: 8px 0;
  opacity: 0.9;
}

.lane {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
}

.lane span {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
}

.playhead {
  position: absolute;
  top: -10px;
  bottom: -10px;
  width: 3px;
  border-radius: 2px;
  background: var(--brand);
  left: 68%;
}

/* ----------------- Section base ----------------- */

section { padding-block: clamp(56px, 8vw, 100px); }

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-head p {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(15px, 1.4vw, 18px);
}

/* ----------------- How it works ----------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 12px;
}

.step h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ----------------- Use cases ----------------- */

.uses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.uses span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

/* ----------------- Feature blocks ----------------- */

.features {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: center;
  margin-block: clamp(40px, 6vw, 80px);
}

.feature-row.flip .feature-text { order: 2; }
.feature-row.flip .feature-art { order: 1; }

@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-text { order: 1; }
  .feature-row.flip .feature-art { order: 2; }
}

.feature-text h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.feature-text p {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 17px;
  max-width: 50ch;
}

.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 15px;
}

/* A tiny timeline mark instead of a stock checkmark. */
.feature-list li::before {
  content: "";
  width: 14px;
  height: 6px;
  border-radius: 3px;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 8px;
}

.feature-art {
  position: relative;
  display: grid;
  place-items: center;
}

.feature-art img {
  width: min(340px, 86%);
  border-radius: clamp(28px, 3vw, 40px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.feature-art::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border-radius: 32px;
  filter: blur(56px);
  opacity: 0.3;
  z-index: 0;
}
.feature-art img { position: relative; z-index: 1; }

.feature-row.record .feature-art::before   { background: linear-gradient(135deg, var(--ev-orange), var(--ev-purple)); }
.feature-row.review .feature-art::before   { background: linear-gradient(135deg, var(--ev-blue), var(--ev-green)); }
.feature-row.templates .feature-art::before { background: linear-gradient(135deg, var(--brand), var(--ev-red)); }
.feature-row.history .feature-art::before  { background: linear-gradient(135deg, var(--ev-purple), var(--ev-blue)); }

/* ----------------- Button modes ----------------- */

.modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 960px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } }

.mode {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.mode h3 { margin: 12px 0 6px; font-size: 18px; }
.mode p { margin: 0; color: var(--text-2); font-size: 14px; }

/* Each mode drawn as the timeline shape it produces. */
.mode-viz {
  position: relative;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  overflow: hidden;
}
.mode-viz span {
  position: absolute;
  height: 10px;
  border-radius: 5px;
}
.mode-viz .dot {
  width: 10px;
  border-radius: 50%;
}

/* ----------------- Privacy block ----------------- */

.privacy-card {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 9%, var(--bg)),
    color-mix(in srgb, var(--ev-blue) 5%, var(--bg)));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 720px) { .privacy-card { grid-template-columns: 1fr; } }

.privacy-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.privacy-list li {
  padding-left: 16px;
  border-left: 3px solid var(--brand);
  color: var(--text-2);
}

.privacy-list strong {
  color: var(--text);
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

/* ----------------- Pricing ----------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin-inline: auto;
}

@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.plan.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand);
  border-radius: 999px;
}

.plan h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }

.plan .price {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-block: 6px 14px;
}

.plan .price .per { font-size: 14px; color: var(--text-3); font-weight: 500; }

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.plan li { color: var(--text-2); font-size: 14px; padding-left: 18px; position: relative; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-3);
}
.plan.featured li::before { background: var(--brand); }

.pricing-note {
  text-align: center;
  margin-top: 18px;
  color: var(--text-3);
  font-size: 13px;
}

/* ----------------- FAQ ----------------- */

.faq-section {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.faq-list {
  max-width: 740px;
  margin-inline: auto;
  display: grid;
  gap: 8px;
}

details.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}

details.faq-item[open] {
  background: color-mix(in srgb, var(--brand) 5%, var(--bg));
}

details.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--text-3);
  line-height: 1;
}

details.faq-item[open] summary::after { content: "\2212"; }

details.faq-item p {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ----------------- Final CTA ----------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1e3044, #09111a);
  color: #f4f6f8;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 166, 35, 0.25);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 56px);
}

.final-cta img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.final-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.final-cta p {
  margin: 0 auto 28px;
  max-width: 50ch;
  color: #c9d2dc;
  font-size: 17px;
}

/* ----------------- Footer ----------------- */

footer.site {
  border-top: 1px solid var(--border);
  padding-block: 32px 24px;
  color: var(--text-3);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-row a:hover { color: var(--text); }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ----------------- Reduced motion ----------------- */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-screen img { transform: none; }
}

/* ----------------- Try it: interactive recording demo ----------------- */
/* The phone always renders in the app's dark theme, like a device shot. */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.try { padding-top: clamp(24px, 4vw, 48px); }

.try-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 380px);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 860px) {
  .try-grid { grid-template-columns: 1fr; }
  .tm-demo-wrap { order: 2; }
}

.try-copy .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px;
}
.try-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 800;
}
.try-copy > p { color: var(--text-2); font-size: 17px; max-width: 52ch; margin: 0 0 18px; }

.try-steps {
  margin: 0 0 18px; padding: 0; list-style: none;
  display: grid; gap: 10px; counter-reset: s;
}
.try-steps li {
  counter-increment: s;
  display: flex; gap: 12px; align-items: baseline;
  color: var(--text-2); font-size: 15px;
}
.try-steps li::before {
  content: counter(s);
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand-text);
  transform: translateY(-1px);
}
.try-steps strong { color: var(--text); }

.try-keys { color: var(--text-3); font-size: 13px; }
.try-keys kbd, .try-csv kbd {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
}
@media (hover: none) { .try-keys { display: none; } }

.try-csv {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
}
.try-csv-head {
  padding: 10px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.try-csv pre {
  margin: 0; padding: 12px 14px;
  font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 12px; line-height: 1.6;
  color: var(--text-2);
  overflow-x: auto;
}

.tm-demo-wrap { display: grid; place-items: center; }

.tm-phone {
  --screen: #0f1923;
  position: relative;
  width: min(360px, 100%);
  height: clamp(600px, 84vh, 720px);
  border-radius: 50px;
  border: 10px solid #05090d;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--screen);
  color: #f4f6f8;
  box-shadow:
    0 40px 90px -30px color-mix(in srgb, var(--brand) 45%, transparent),
    0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.tm-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; border-radius: 16px; background: #000;
  z-index: 3;
}

.tm-top { padding: 52px 16px 10px; text-align: center; }

.tm-timer {
  font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}
.tm-main { font-size: 58px; letter-spacing: -0.02em; }
.tm-cs { font-size: 29px; opacity: 0.6; }

.tm-pill {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 8px; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
}
.tm-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tm-pill.is-ready  { background: rgba(244, 246, 248, 0.08); color: #b4bfca; }
.tm-pill.is-ready .tm-pill-dot { animation: tm-blink 1.4s ease-in-out infinite; }
.tm-pill.is-rec    { background: rgba(255, 69, 58, 0.16); color: #ff8078; }
.tm-pill.is-rec .tm-pill-dot { background: #ff453a; }
.tm-pill.is-paused { background: rgba(245, 166, 35, 0.16); color: #f5a623; }
@keyframes tm-blink { 50% { opacity: 0.25; } }

.tm-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 10px;
  padding: 6px 14px 0;
  min-height: 0;
}

.tm-btn {
  position: relative;
  border: 0;
  border-radius: 18px;
  font: inherit;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  touch-action: manipulation;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.tm-btn:active:not(:disabled) { transform: scale(0.97); }
.tm-btn:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.tm-btn:disabled { cursor: default; opacity: 0.55; }
.tm-btn.is-active {
  box-shadow: inset 0 0 0 2.5px #fff, 0 8px 20px rgba(0, 0, 0, 0.45);
}
.tm-btn.is-flashing {
  outline: 2.5px dashed #ff453a;
  outline-offset: -2.5px;
}

.tm-label { font-size: 18px; font-weight: 700; }
.tm-sub { font-size: 11px; font-weight: 600; opacity: 0.82; font-variant-numeric: tabular-nums; }
.tm-count {
  position: absolute; top: 9px; left: 11px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px; font-weight: 700; opacity: 0.9;
}
.tm-mark {
  position: absolute; top: 9px; right: 9px;
  width: 17px; height: 17px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink, #fff) 55%, transparent);
}
.tm-btn.is-active .tm-mark {
  background: #fff;
  box-shadow: none;
}
.tm-btn.is-active .tm-mark::after {
  content: "";
  position: absolute; left: 6px; top: 3px;
  width: 4px; height: 8px;
  border: solid #0b1a10; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tm-key {
  position: absolute; bottom: 8px; right: 10px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 10px; opacity: 0.4;
}
@media (hover: none) { .tm-key { display: none; } }

.tm-strip { padding: 12px 14px 0; }
.tm-strip-head {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #7d8a97; margin-bottom: 6px;
}
.tm-strip-last { font-family: "SF Mono", ui-monospace, Menlo, monospace; text-transform: none; letter-spacing: 0; font-weight: 500; }
.tm-strip-track { position: relative; height: 26px; border-radius: 8px; background: #0a121a; }
.tm-strip-bars span { position: absolute; top: 4px; height: 18px; border-radius: 3px; }
.tm-playhead { position: absolute; right: 0; top: -4px; width: 2.5px; height: 34px; border-radius: 2px; background: #f5a623; }

.tm-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 18px 20px;
  background: #15202b;
  border-top: 1px solid rgba(244, 246, 248, 0.08);
}
.tm-ctrl {
  display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: #1b2838; color: #f4f6f8;
  touch-action: manipulation;
}
.tm-ctrl svg { width: 22px; height: 22px; fill: currentColor; }
.tm-ctrl:disabled { cursor: default; color: rgba(244, 246, 248, 0.35); }
.tm-ctrl:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.tm-undo { width: 46px; height: 46px; box-shadow: inset 0 0 0 1px rgba(244, 246, 248, 0.16); }
.tm-undo svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tm-pause, .tm-stop { width: 58px; height: 58px; }
.tm-pause { margin-left: auto; }
.tm-stop { background: #ff453a; color: #fff; margin-right: auto; }
.tm-stop:disabled { background: rgba(255, 69, 58, 0.35); color: rgba(255, 255, 255, 0.6); }
.tm-pause .i-play { display: none; }
.tm-pause.is-paused .i-play { display: block; }
.tm-pause.is-paused .i-pause { display: none; }
.tm-undo-label {
  width: 46px; text-align: center;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 10px; color: #7d8a97;
}

.tm-results {
  position: absolute; inset: 0;
  z-index: 2;
  background: var(--screen);
  overflow-y: auto;
  padding: 50px 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  animation: tm-rise 0.28s ease-out;
}
.tm-results[hidden] { display: none; }
@keyframes tm-rise { from { transform: translateY(24px); opacity: 0; } }

.tm-res-title { text-align: center; font-weight: 700; font-size: 15px; outline: none; }
.tm-card {
  display: flex; justify-content: space-between;
  padding: 14px; border-radius: 16px;
  background: #1b2838; border: 1px solid rgba(244, 246, 248, 0.08);
}
.tm-right { text-align: right; }
.tm-cap { font-size: 11px; color: #7d8a97; }
.tm-big { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tm-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #7d8a97; margin: 6px 0 2px;
}
.tm-res-body svg { width: 100%; height: auto; display: block; }
.tm-lane-label { fill: #b4bfca; font-size: 10px; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.tm-axis { fill: #7d8a97; font-size: 8px; font-family: "SF Mono", ui-monospace, Menlo, monospace; }
.tm-sum-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 5px 0; }
.tm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tm-sum-label { width: 52px; font-weight: 600; }
.tm-sum-bar { flex: 1; height: 6px; border-radius: 3px; background: #0a121a; overflow: hidden; }
.tm-sum-bar span { display: block; height: 100%; border-radius: 3px; }
.tm-sum-pct { width: 32px; text-align: right; color: #7d8a97; }
.tm-sum-dur { width: 50px; text-align: right; color: #b4bfca; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; }
.tm-empty { color: #b4bfca; font-size: 14px; text-align: center; margin: 24px 8px; }

.tm-res-actions { margin-top: auto; display: grid; gap: 6px; padding-top: 8px; }
.tm-export {
  border: 0; border-radius: 999px; padding: 15px;
  background: #f5a623; color: #1a1206;
  font: inherit; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px;
  cursor: pointer;
}
.tm-export:disabled { opacity: 0.45; cursor: default; }
.tm-again {
  border: 0; background: none; color: #f5a623;
  font: inherit; font-weight: 600; font-size: 14px; padding: 8px; cursor: pointer;
}
.tm-export:focus-visible, .tm-again:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .tm-pill.is-ready .tm-pill-dot, .tm-results { animation: none; }
}

.plan .plan-alt {
  margin: -8px 0 14px;
  color: var(--text-3);
  font-size: 13px;
}
