/* Meetxt immersive homepage, approved direction 2 — local implementation 2026-10-12. */
:root,
html[data-theme="light"] {
  --bg: #f7f8fc;
  --panel: #ffffff;
  --panel-subtle: #eef2fa;
  --text: #0a1533;
  --muted: #65708c;
  --muted-strong: #43506d;
  --line: #dfe5f1;
  --line-strong: #c9d3e6;
  --primary: #167ce8;
  --primary-dark: #0d62c7;
  --primary-soft: #e5f1ff;
  --blue: #0a72df;
  --shadow: 0 22px 70px rgba(37, 63, 112, .13);
  --landing-bg: #f7f8fc;
  --landing-surface: #ffffff;
  --landing-deep: #0a1430;
  --landing-copy: #0a1533;
  --landing-muted: #5f6c88;
  --landing-accent: #6c4dff;
  --landing-accent-2: #007ee8;
  --landing-card: rgba(255, 255, 255, .92);
  --landing-card-line: rgba(89, 113, 161, .22);
}

html[data-theme="dark"] {
  --bg: #050b1d;
  --panel: #0b1530;
  --panel-subtle: #111d3c;
  --text: #f7f9ff;
  --muted: #9aa7c5;
  --muted-strong: #c4cdea;
  --line: #24345d;
  --line-strong: #38507d;
  --primary: #258cf2;
  --primary-dark: #55b5ff;
  --primary-soft: #142958;
  --blue: #73c4ff;
  --danger: #ff8d9a;
  --warning: #f7c86a;
  --shadow: 0 24px 76px rgba(0, 0, 0, .36);
  --landing-bg: #050b1d;
  --landing-surface: #0a1430;
  --landing-deep: #020718;
  --landing-copy: #f7f9ff;
  --landing-muted: #b4c0dc;
  --landing-accent: #b365ff;
  --landing-accent-2: #31b7ff;
  --landing-card: rgba(8, 17, 42, .88);
  --landing-card-line: rgba(135, 167, 235, .28);
}

html,
body { background: var(--bg); }

body { overflow-x: hidden; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline-color: rgba(37, 140, 242, .36);
}

.topbar,
html[data-theme="dark"] .topbar {
  position: sticky !important;
  top: 0;
  z-index: 80;
  width: 100% !important;
  min-height: 76px;
  max-height: none !important;
  padding: 12px max(28px, calc((100vw - 1440px) / 2 + 48px)) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px;
  overflow: visible !important;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 252, .92);
  backdrop-filter: blur(22px);
}

html[data-theme="dark"] .topbar { background: rgba(5, 11, 29, .90); }

.topbar .brand {
  padding: 0 !important;
  border: 0 !important;
  gap: 12px;
}

.topbar .logo { width: 42px !important; height: 42px !important; border-radius: 12px; }
.topbar .brand-name { font-size: 23px !important; letter-spacing: -.04em; }

.top-actions {
  width: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex: 1;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.main-nav {
  order: 0;
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: visible !important;
}

.main-nav .ghost,
html[data-theme="dark"] .main-nav .ghost {
  width: auto !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--muted-strong) !important;
  font-size: 14px;
  text-align: center !important;
}

.main-nav .ghost:hover,
.main-nav .ghost.active,
html[data-theme="dark"] .main-nav .ghost:hover,
html[data-theme="dark"] .main-nav .ghost.active {
  background: var(--panel-subtle) !important;
  color: var(--text) !important;
}

.main-nav .nav-primary {
  min-height: 46px;
  margin-left: 6px;
  padding: 11px 19px;
  border-radius: 13px;
  white-space: nowrap;
}

.nav-primary.context-hidden { visibility: hidden !important; pointer-events: none !important; }

.top-actions > .theme-toggle { order: 1 !important; }
#ui-language-toggle { order: 2; width: 42px; padding-inline: 8px; }
.sub-status { display: none; }
.mobile-menu-support { display: none !important; }

.theme-toggle,
html[data-theme="dark"] .theme-toggle {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--text);
}

.shell {
  width: min(1440px, 100%) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 48px 72px !important;
}

.landing-screen {
  position: relative;
  color: var(--landing-copy);
}

.landing-hero {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(430px, .88fr) minmax(620px, 1.12fr);
  align-items: center;
  gap: 58px;
  padding: 68px 0 54px;
}

.landing-copy { position: relative; z-index: 2; max-width: 660px; }

.landing-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--landing-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.landing-kicker i { color: var(--landing-accent-2); font-size: 12px; }

.landing-copy h1 {
  max-width: 670px;
  margin: 0 0 24px;
  color: var(--landing-copy);
  font-size: clamp(54px, 5.2vw, 86px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.06em;
}

.landing-copy h1 span { color: var(--landing-accent); }

.landing-lead {
  max-width: 590px;
  margin: 0;
  color: var(--landing-muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.5;
}

.landing-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.landing-actions .primary,
.landing-actions .secondary {
  min-height: 58px;
  padding: 15px 24px;
  border-radius: 16px;
  font-size: 16px;
}

.landing-primary { box-shadow: 0 15px 34px rgba(22, 124, 232, .28); }

.landing-secondary,
html[data-theme="dark"] .landing-secondary {
  background: var(--landing-surface);
  border-color: var(--line-strong);
  color: var(--landing-copy);
}

.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--landing-muted);
  list-style: none;
  font-size: 13px;
}

.landing-trust li { display: flex; align-items: center; gap: 8px; }
.landing-trust i { color: var(--landing-accent-2); font-size: 17px; }

.landing-visual {
  position: relative;
  min-width: 0;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: var(--landing-deep);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.landing-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(3, 8, 25, .08);
  pointer-events: none;
}

.landing-visual > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 56% center;
}

.hero-image-dark { display: none !important; }
.hero-image-light { display: block !important; }
html[data-theme="dark"] .hero-image-dark { display: block !important; }
html[data-theme="dark"] .hero-image-light { display: none !important; }

html[data-theme="light"] .landing-visual {
  background: #edf3ff;
  border-color: #d7e0ef;
  box-shadow: 0 24px 72px rgba(46, 73, 126, .14);
}

html[data-theme="light"] .landing-visual::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(239, 245, 255, .12));
}

.floating-card {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 18px;
  color: #f7f9ff;
  border: 1px solid rgba(145, 174, 237, .36);
  border-radius: 18px;
  background: rgba(4, 12, 34, .88);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .36);
  backdrop-filter: blur(16px);
}

.transcript-preview { left: 24px; bottom: 26px; width: min(390px, 52%); }

.transcript-preview header {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.transcript-preview header strong { font-size: 14px; }
.transcript-preview header time { color: #aebddd; font-size: 11px; }
.preview-mark { color: #44c0ff; font-size: 20px; }
.transcript-preview p { display: grid; grid-template-columns: 42px 1fr; gap: 8px; margin: 8px 0; color: #dce5fa; font-size: 11px; line-height: 1.4; }
.transcript-preview p time { color: #7fb8ff; }

.summary-preview { right: 22px; bottom: 34px; width: min(310px, 42%); }
.summary-preview h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #fff; font-size: 14px; }
.summary-preview h2 i { color: #4ed7ca; }
.summary-preview ul { margin: 0; padding-left: 20px; color: #dce5fa; font-size: 11px; line-height: 1.65; }
.summary-preview > p { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; color: #71e4d0; font-size: 12px; font-weight: 700; }

html[data-theme="light"] .floating-card {
  color: #14213d;
  border-color: rgba(93, 112, 153, .24);
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 18px 44px rgba(48, 66, 110, .18);
}
html[data-theme="light"] .transcript-preview header time { color: #62708d; }
html[data-theme="light"] .transcript-preview p { color: #34415f; }
html[data-theme="light"] .transcript-preview p time { color: #196fc4; }
html[data-theme="light"] .summary-preview h2 { color: #14213d; }
html[data-theme="light"] .summary-preview ul { color: #34415f; }
html[data-theme="light"] .summary-preview > p { color: #087d70; }

.landing-flow {
  padding: 56px 0 66px;
  border-top: 1px solid var(--line);
}

.landing-section-heading { max-width: 760px; margin-bottom: 36px; }
.landing-section-heading > p { margin: 0 0 10px; color: var(--landing-accent-2); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.landing-section-heading h2 { margin: 0; font-size: clamp(32px, 3vw, 48px); line-height: 1.1; }

.landing-flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.landing-flow-grid article {
  min-height: 210px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 20px 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--landing-surface);
  box-shadow: 0 12px 38px rgba(36, 65, 115, .06);
}

.landing-flow-grid article > span { grid-column: 1 / -1; color: var(--landing-accent-2); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.landing-flow-grid article > i { color: var(--landing-accent); font-size: 34px; }
.landing-flow-grid h3 { margin: 0 0 8px; font-size: 21px; }
.landing-flow-grid p { margin: 0; color: var(--landing-muted); font-size: 14px; line-height: 1.55; }

.landing-proof {
  margin-bottom: 42px;
  padding: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--landing-surface);
}

.landing-proof > div { max-width: 780px; }
.landing-proof .landing-kicker { margin-bottom: 13px; }
.landing-proof h2 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 46px); }
.landing-proof p:not(.landing-kicker) { margin: 0; color: var(--landing-muted); font-size: 17px; }
.landing-proof > button { flex: 0 0 auto; min-height: 50px; border-radius: 14px; }

/* The existing recorder stays fully functional, but now lives on its own screen. */
#record { padding-top: 42px; }
#record .start-workspace { grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; }
#record .start-intro { max-width: 760px; margin-bottom: 24px; }
#record .start-intro .page-date,
#record .process-demo,
#record .hero-more { display: none; }
#record .start-intro h1 { max-width: 720px; font-size: clamp(36px, 4vw, 56px); }
#record .hero-lead { max-width: 690px !important; }
#record .recording-console { border-radius: 22px; background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
#record .start-aside { padding-left: 28px; border-color: var(--line); }
#record .start-aside .pro-invite { display: none !important; }
#record .console-language-auto p { margin: 8px 0 4px; color: var(--text); font-weight: 700; }
#record .console-language-auto .hint { display: block; max-width: 42ch; }
#record .meeting-illustration {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(260px, 1.05fr);
  align-items: center;
  gap: 24px;
  margin: 28px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-subtle);
  overflow: hidden;
}
#record .meeting-illustration-media {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f7fb;
}
#record .meeting-illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}
#record .meeting-illustration .meeting-illustration-dark { display: none; }
html[data-theme="dark"] #record .meeting-illustration-media { background: #08152d; }
html[data-theme="dark"] #record .meeting-illustration-light { display: none; }
html[data-theme="dark"] #record .meeting-illustration .meeting-illustration-dark { display: block; }
#record .meeting-illustration figcaption { display: grid; gap: 9px; }
#record .meeting-illustration figcaption strong { color: var(--text); font-size: 21px; letter-spacing: -.02em; }
#record .meeting-illustration figcaption span { color: var(--muted); line-height: 1.6; }
.feature-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-subtle);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

html[data-theme="dark"] .landing-flow-grid article,
html[data-theme="dark"] .landing-proof,
html[data-theme="dark"] #record .recording-console,
html[data-theme="dark"] #record .recent-section,
html[data-theme="dark"] #record .readiness-panel {
  background: var(--panel);
  border-color: var(--line);
}

html[data-theme="dark"] .primary { background: #258cf2; border-color: #258cf2; color: #fff; }
html[data-theme="dark"] .primary:hover { background: #1476d9; border-color: #1476d9; }
html[data-theme="dark"] button.secondary { background: var(--panel); border-color: var(--line-strong); color: var(--text); }
html[data-theme="dark"] .source-options,
html[data-theme="dark"] .source-options .chip,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background: #0d1936; border-color: var(--line); color: var(--text); }
html[data-theme="dark"] .source-options .chip.active { background: #18366a; color: #9ed8ff; border-color: #3f6ca8; }
html[data-theme="dark"] .audience-consent { background: #0b1530; border-color: #38507d; color: #f7f9ff; }

@media (max-width: 1180px) {
  .topbar,
  html[data-theme="dark"] .topbar { padding-inline: 28px !important; }
  .main-nav .ghost { padding-inline: 10px !important; }
  .landing-hero { grid-template-columns: minmax(360px, .82fr) minmax(500px, 1.18fr); gap: 34px; }
  .landing-copy h1 { font-size: clamp(50px, 5vw, 68px); }
  .landing-visual { height: 510px; }
  .transcript-preview { width: 54%; }
  .summary-preview { width: 44%; }
}

@media (max-width: 1060px) {
  .topbar,
  html[data-theme="dark"] .topbar { flex-wrap: wrap; gap: 10px 20px; }
  .top-actions { flex: 0 0 auto; }
  .nav-toggle { display: inline-flex; order: 4; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    width: min(360px, calc(100vw - 36px)) !important;
    padding: 14px;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex !important; }
  .main-nav .ghost,
  .main-nav .nav-primary { width: 100% !important; margin: 0; justify-content: flex-start; text-align: left !important; }
}

@media (max-width: 980px) {
  .shell { padding-inline: 26px !important; }
  .landing-hero { grid-template-columns: 1fr; padding-top: 50px; }
  .landing-copy { max-width: 760px; }
  .landing-visual { height: min(66vw, 560px); min-height: 470px; }
  .landing-flow-grid { grid-template-columns: 1fr; }
  .landing-flow-grid article { min-height: auto; }
  #record .start-workspace { grid-template-columns: 1fr; }
  #record .start-aside { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  #record .meeting-illustration { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar,
  html[data-theme="dark"] .topbar { min-height: 66px; padding: 10px 14px !important; flex-wrap: nowrap; }
  .topbar .logo { width: 36px !important; height: 36px !important; border-radius: 10px; }
  .topbar .brand-name { font-size: 20px !important; }
  .top-actions > .theme-toggle,
  #ui-language-toggle { width: 38px; height: 38px; min-height: 38px; }
  #ui-language-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-toggle { min-height: 38px; padding: 8px 11px; }
  .shell { width: 100% !important; padding: 0 16px 54px !important; }
  .landing-hero { min-height: 0; gap: 34px; padding: 46px 0 38px; }
  .landing-kicker { margin-bottom: 18px; font-size: 10px; letter-spacing: .16em; }
  .landing-copy h1 { font-size: clamp(43px, 13.5vw, 62px); }
  .landing-lead { font-size: 17px; }
  .landing-actions { display: grid; grid-template-columns: 1fr; margin-top: 26px; }
  .landing-actions .primary,
  .landing-actions .secondary { width: 100%; }
  .landing-trust { gap: 11px 16px; }
  .landing-visual { height: 520px; min-height: 0; border-radius: 24px; }
  .landing-visual > img { object-position: 58% center; }
  .transcript-preview { left: 14px; right: 14px; bottom: 150px; width: auto; }
  .summary-preview { left: 42px; right: 14px; bottom: 14px; width: auto; padding: 14px 16px; }
  .summary-preview ul { display: none; }
  .landing-flow { padding-block: 44px; }
  .landing-flow-grid article { padding: 22px; border-radius: 19px; }
  .landing-proof { padding: 28px 22px; align-items: stretch; flex-direction: column; border-radius: 22px; }
  .landing-proof > button { width: 100%; }
  #record { padding-top: 30px; }
  #record .start-intro h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-screen *,
  .landing-screen *::before,
  .landing-screen *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Unified product surfaces — recorder, library, results, plans and account. */
.screen:not(.landing-screen) {
  padding-top: clamp(34px, 5vw, 66px);
  padding-bottom: 34px;
}

.screen:not(.landing-screen) > :first-child {
  margin-top: 0;
}

.screen:not(.landing-screen) h2,
.screen:not(.landing-screen) .result-record-title,
.screen:not(.landing-screen) .timer {
  color: var(--text);
  letter-spacing: -.035em;
}

.screen:not(.landing-screen) h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
}

.screen:not(.landing-screen) h3,
.screen:not(.landing-screen) .card-title {
  color: var(--text);
  letter-spacing: -.02em;
}

.screen:not(.landing-screen) p,
.screen:not(.landing-screen) li,
.screen:not(.landing-screen) .hint {
  line-height: 1.6;
}

.card,
.panel,
.recording-wrap,
.results-main,
.timeline,
.results-side,
.payment-wrap,
.activate-wrap,
.account-panel,
.import-wrap,
.job-card {
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  background: var(--panel) !important;
  box-shadow: 0 18px 52px rgba(42, 66, 112, .08) !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .recording-wrap,
html[data-theme="dark"] .results-main,
html[data-theme="dark"] .timeline,
html[data-theme="dark"] .results-side,
html[data-theme="dark"] .payment-wrap,
html[data-theme="dark"] .activate-wrap,
html[data-theme="dark"] .account-panel,
html[data-theme="dark"] .import-wrap,
html[data-theme="dark"] .job-card {
  box-shadow: 0 20px 58px rgba(0, 0, 0, .22) !important;
}

input,
select,
textarea {
  min-height: 48px;
  border-color: var(--line-strong) !important;
  border-radius: 12px !important;
  background: var(--landing-surface) !important;
  color: var(--text) !important;
}

input::placeholder,
textarea::placeholder { color: var(--muted); }

.primary,
.secondary,
.ghost,
.plan,
.text-button {
  border-radius: 12px;
}

.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.secondary {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.chip,
.badge,
.speaker-tag,
.status-pill {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--muted-strong);
}

.chip.active,
.source-options .chip.active {
  border-color: rgba(22, 124, 232, .4);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Recorder */
#record .start-workspace { align-items: start; }
#record .start-intro { max-width: 820px; }
#record .start-intro h1 { margin-bottom: 14px; }
#record .hero-actions { margin: 26px 0 18px; }
#record .recording-console { padding: clamp(18px, 2.5vw, 28px); }
#record .console-grid { gap: 18px; }
#record .console-source {
  padding: 0 18px;
  border-color: var(--line);
}
#record .console-label { color: var(--text); font-weight: 700; }
#record .console-label i { color: var(--landing-accent-2); }
#record .record-primary { border-radius: 14px; }
#record .recent-item,
#record .calendar-list {
  border-color: var(--line);
  background: var(--panel-subtle);
}
#record .readiness-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-subtle);
}

/* Library and capabilities */
.history-screen { padding: clamp(24px, 4vw, 40px) !important; }
.history-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.history-head h2 { flex: 1 1 440px; }
.history-controls { margin-top: 24px; }
.history-item,
.background-job,
.speaker,
.time {
  padding: 16px;
  border-color: var(--line);
  border-radius: 14px;
  background: var(--panel-subtle);
}
.history-item:hover { border-color: rgba(22, 124, 232, .35); background: var(--primary-soft); }

#solutions .grid { gap: 18px; margin-top: 24px; }
#solutions .grid > .card {
  min-height: 210px;
  margin: 0;
  padding: 25px;
  border-radius: 19px !important;
  background: var(--panel-subtle) !important;
  box-shadow: none !important;
}
#solutions .grid > .card::before {
  width: 38px;
  height: 5px;
  display: block;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--landing-accent-2), var(--landing-accent));
  content: "";
}

/* Active recording and results */
.recording-wrap { padding: clamp(24px, 4vw, 40px) !important; }
.recording-head { align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.recording-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-subtle);
}
.recording-preview video,
.recording-preview audio { border-radius: 16px; }
.levels .bar,
.progress { height: 10px; background: var(--panel-subtle); }
.levels .bar span,
.progress-bar { background: linear-gradient(90deg, var(--landing-accent-2), var(--landing-accent)); }

.results-layout {
  grid-template-columns: minmax(190px, .72fr) minmax(0, 2fr) minmax(240px, .85fr);
  gap: 20px;
}
.results-main,
.timeline,
.results-side { padding: clamp(20px, 2.8vw, 30px) !important; }
.tabs {
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-subtle);
}
.tabs button {
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
}
.tabs button.active {
  border: 0;
  background: var(--panel);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(34, 58, 102, .10);
}
.meta-box,
.limit-box,
.translation,
.notes,
.transcript-help {
  border-color: var(--line) !important;
  border-radius: 16px !important;
  background: var(--panel-subtle) !important;
}

/* Plans */
.payment-wrap { padding: clamp(28px, 4.5vw, 52px) !important; }
.plans-hero {
  align-items: center;
  padding: 8px 0 34px;
  border-bottom: 1px solid var(--line);
}
.plans-kicker,
.account-eyebrow {
  color: var(--landing-accent-2) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.plans-benefits { gap: 14px; }
.plans-benefits > p,
.plan-tier,
.plans-beta {
  border-color: var(--line) !important;
  border-radius: 18px !important;
  background: var(--panel-subtle) !important;
}
.plan-tier { padding: 26px !important; }
.plan-tier.pro {
  border-color: rgba(108, 77, 255, .42) !important;
  background: linear-gradient(145deg, var(--primary-soft), var(--panel)) !important;
}
.plans .plan {
  min-height: 52px;
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}
.plans .plan.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Activation and account */
.activate-wrap { max-width: 980px; margin-inline: auto; padding: clamp(28px, 4.5vw, 48px) !important; }
.activation-intro { align-items: center; }
.activation-intro img {
  border-radius: 22px;
  background: linear-gradient(145deg, #edf5ff, #f6efff);
}
.activation-steps { gap: 14px; }
.activation-steps li {
  border-color: var(--line) !important;
  border-radius: 16px !important;
  background: var(--panel-subtle) !important;
}

.account-page { display: grid; gap: 24px; }
.account-heading {
  padding: 10px 0 25px;
  border-bottom: 1px solid var(--line);
}
.account-grid { gap: 20px; }
.account-panel { padding: clamp(22px, 3vw, 30px) !important; }
.account-panel-heading i { color: var(--landing-accent-2); }
.account-route,
.account-library-stats > div,
.account-facts li {
  border-color: var(--line) !important;
  border-radius: 15px !important;
  background: var(--panel-subtle) !important;
}
.account-plan-badge {
  border: 1px solid rgba(22, 124, 232, .3);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Import */
.import-wrap {
  max-width: 930px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 54px) !important;
}
.import-options {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-subtle);
}
.import-file-control {
  min-height: 76px;
  padding: 12px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--panel-subtle);
}

/* A complete light theme includes navigation and footer, not only page content. */
html[data-theme="light"] .site-footer {
  border-top: 1px solid var(--line);
  background: #eef2fa;
  color: var(--muted-strong);
}
html[data-theme="light"] .footer-grid a,
html[data-theme="light"] .footer-title { color: var(--text) !important; }
html[data-theme="light"] .footer-copy { border-color: var(--line); }
html[data-theme="dark"] .site-footer { background: #020718; }

@media (max-width: 1120px) {
  .results-layout { grid-template-columns: minmax(200px, .7fr) minmax(0, 1.7fr); }
  .results-side { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .screen:not(.landing-screen) { padding-top: 32px; }
  .results-layout { grid-template-columns: 1fr; }
  .timeline,
  .results-side { grid-column: auto; }
  .activation-intro { align-items: flex-start; }
}

@media (max-width: 680px) {
  .card,
  .panel,
  .recording-wrap,
  .results-main,
  .timeline,
  .results-side,
  .payment-wrap,
  .activate-wrap,
  .account-panel,
  .import-wrap,
  .job-card { border-radius: 19px !important; }
  .history-screen,
  .recording-wrap,
  .results-main,
  .timeline,
  .results-side,
  .payment-wrap,
  .activate-wrap,
  .account-panel,
  .import-wrap { padding: 20px !important; }
  .history-head { align-items: stretch; flex-direction: column; }
  .history-import-cta { width: 100%; margin-left: 0; }
  .plans-hero { align-items: flex-start; }
  .plans-sticker { width: 76px; height: 76px; }
  .activation-intro { grid-template-columns: 1fr; }
  .activation-intro img { width: 100%; height: auto; max-height: 190px; object-fit: contain; }
  .tabs { border-radius: 12px; }
}

/* Editorial product pages — the same visual language as the landing page. */
.editorial-hero {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(500px, 1fr);
  align-items: stretch;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--landing-surface);
  box-shadow: 0 24px 70px rgba(42, 66, 112, .11);
}
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 4vw, 58px); }
.editorial-kicker { margin: 0 0 18px !important; color: var(--landing-accent-2) !important; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.editorial-copy h2 { margin: 0 0 20px; overflow-wrap: normal; word-break: normal; hyphens: none; font-size: clamp(40px, 4vw, 58px) !important; line-height: 1.02 !important; }
.editorial-copy h2 span { color: var(--landing-accent); }
.editorial-copy > p:not(.editorial-kicker):not(.plans-kicker) { margin: 0 0 28px; color: var(--landing-muted); font-size: 18px; }
.editorial-copy > button { align-self: flex-start; min-height: 50px; padding-inline: 22px; }
.editorial-media { position: relative; min-height: 510px; overflow: hidden; background: var(--landing-deep); }
.editorial-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 59% center; }
.editorial-image-dark { display: none; }
html[data-theme="dark"] .editorial-image-light { display: none; }
html[data-theme="dark"] .editorial-image-dark { display: block; }
html[data-theme="dark"] .editorial-hero { box-shadow: 0 28px 78px rgba(0,0,0,.32); }

/* Capabilities */
#solutions .feature-page { max-width: 1328px; margin: 0 auto; }
.feature-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 36px 0 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-flow article { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 28px clamp(18px,3vw,34px); }
.feature-flow article + article { border-left: 1px solid var(--line); }
.feature-flow article > span { grid-column: 1 / -1; margin-bottom: 18px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.feature-flow article > i { grid-row: 2 / 4; color: var(--landing-accent-2); font-size: 31px; }
.feature-flow h3 { margin: 0 0 7px; font-size: 20px; }
.feature-flow p { margin: 0; color: var(--landing-muted); font-size: 14px; }
.feature-stories { display: grid; gap: 24px; }
.feature-story { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); gap: clamp(32px,6vw,84px); align-items: center; min-height: 330px; padding: clamp(34px,5vw,70px); border-radius: 28px; background: var(--panel-subtle); }
.feature-story.reverse { grid-template-columns: minmax(0,1.28fr) minmax(250px,.72fr); }
.feature-story.reverse .feature-story-icon { order: 2; }
.feature-story-icon { display: grid; place-items: center; min-height: 210px; border-radius: 30px; background: radial-gradient(circle at 35% 25%,#c9f2ff 0,#b5d1ff 38%,#d7c4ff 70%,#b45cff 120%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.feature-story-icon i { color: #0a4f9b; font-size: 84px; filter: drop-shadow(0 12px 26px rgba(38,91,173,.2)); }
html[data-theme="dark"] .feature-story-icon { background: radial-gradient(circle at 35% 25%,#173b6e 0,#14275b 45%,#371f6a 100%); }
html[data-theme="dark"] .feature-story-icon i { color: #7bd7ff; }
.feature-story h3 { margin: 0 0 14px; font-size: clamp(28px,3vw,42px); line-height: 1.08; }
.feature-story p:not(.editorial-kicker) { max-width: 60ch; margin: 0 0 18px; color: var(--landing-muted); font-size: 17px; }
.feature-story .text-button { padding-inline: 0; color: var(--landing-accent-2); font-weight: 750; }
.feature-roadmap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,70px); margin: 76px 0; padding: 0 clamp(10px,3vw,32px); }
.feature-roadmap > div { position: relative; padding-top: 20px; border-top: 1px solid var(--line); }
.feature-roadmap h3 { margin: 0 0 12px; font-size: clamp(25px,2.6vw,36px); }
.feature-roadmap p:not(.editorial-kicker) { color: var(--landing-muted); }
.feature-local { display: flex; align-items: center; gap: 24px; padding: clamp(25px,4vw,40px); border-radius: 24px; background: var(--panel-subtle); }
.feature-local > i { color: var(--landing-accent); font-size: 40px; }
.feature-local > div { flex: 1; }.feature-local h3 { margin: 0 0 6px; }.feature-local p { margin: 0; color: var(--landing-muted); }
.feature-disclaimer { max-width: 800px; margin: 28px auto 0 !important; color: var(--muted) !important; font-size: 13px; text-align: center; }

/* Library: one clear surface instead of nested framed cards. */
#history .history-screen { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
#history .history-head { padding: 0 0 26px; border-bottom: 0; }
#history .history-controls { margin-top: 8px; }
#history .background-panel { margin: 18px 0; padding: 16px 18px; border: 0 !important; border-radius: 16px; background: var(--panel-subtle); }
#history .history-actions { margin: 18px 0 6px; }
#history .history-import-link { padding-block: 14px; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0; background: transparent; }
#history .start-history-list { overflow: hidden; border-top: 1px solid var(--line); }
#history .history-item { margin: 0; padding: 18px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
#history .history-item:hover { border-color: var(--line); background: var(--panel-subtle); }

@media (max-width: 980px) {
  .editorial-hero { grid-template-columns: 1fr; }
  .editorial-media { min-height: min(62vw,520px); }
  .feature-flow { grid-template-columns: 1fr; }
  .feature-flow article + article { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .editorial-hero { min-height: 0; border-radius: 24px; }
  .editorial-copy { padding: 30px 22px 28px; }
  .editorial-copy h2 { font-size: 34px !important; line-height: 1.04 !important; }
  .editorial-media { min-height: 360px; }
  .editorial-image { object-position: 62% center; }
  .feature-flow { margin: 24px 0 44px; }
  .feature-story,.feature-story.reverse { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding: 24px; }
  .feature-story.reverse .feature-story-icon { order: 0; }
  .feature-story-icon { min-height: 190px; }.feature-story-icon i { font-size: 68px; }
  .feature-roadmap { grid-template-columns: 1fr; margin: 50px 0; }
  .feature-local { align-items: flex-start; flex-wrap: wrap; }.feature-local > div { min-width: calc(100% - 76px); }.feature-local .secondary { width: 100%; }
  #history .history-controls { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .topbar .brand-name { display: none; }
  .topbar .brand { gap: 0; }
  .top-actions { gap: 5px !important; }
}

/* Experience R2: Features is a product story, not a copy of the home hero. */
.feature-intro { display: grid; gap: 34px; margin-bottom: 34px; }
.feature-intro-copy { max-width: 850px; padding: clamp(10px,2vw,24px) clamp(6px,1vw,12px) 0; }
.feature-intro-copy h2 { max-width: 14ch; margin: 12px 0 20px; font-size: clamp(48px,6.6vw,88px); line-height: .96; letter-spacing: -.055em; }
.feature-intro-copy h2 span { color: var(--landing-accent); }
.feature-intro-copy > p:not(.editorial-kicker) { max-width: 60ch; margin: 0 0 24px; color: var(--landing-muted); font-size: clamp(17px,1.5vw,20px); line-height: 1.65; }
.feature-intro-visual { position: relative; width: min(100%,880px); min-height: 0; aspect-ratio: 3 / 2; justify-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: var(--landing-surface); box-shadow: 0 28px 80px rgba(38,70,120,.13); }
.feature-intro-visual .editorial-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.feature-intro-note { position: absolute; left: clamp(18px,4vw,52px); bottom: clamp(18px,4vw,44px); z-index: 2; display: grid; gap: 4px; max-width: 360px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.65); border-radius: 18px; background: rgba(255,255,255,.84); color: #07142c; box-shadow: 0 16px 45px rgba(27,54,91,.18); backdrop-filter: blur(16px); }
.feature-intro-note strong { font-size: 16px; }.feature-intro-note span { color: #52627a; font-size: 13px; }
html[data-theme="dark"] .feature-intro-note { border-color: rgba(118,157,225,.32); background: rgba(5,16,39,.82); color: #f7f9ff; }
html[data-theme="dark"] .feature-intro-note span { color: #aebbd8; }

@media (max-width: 680px) {
  .feature-intro-visual {
    width: min(100%, 84vw);
    margin-inline: auto;
  }
}

/* Mobile library: no false search field before the first recording, and no empty title spacer. */
@media (max-width: 700px) {
  #history .history-head { gap: 8px; padding-bottom: 18px; }
  #history .history-head h2 { flex: 0 0 auto; }
  #history .history-head .hint { margin: 0; line-height: 1.55; }
  #history.is-empty .start-history-list { border-top: 0; }
  #history.is-empty .history-empty-state { margin-top: 4px; }
  .mobile-mode-links > a,
  .mobile-mode-links > button {
    border-color: var(--line-strong) !important;
    background: var(--primary-soft) !important;
    color: var(--primary-dark) !important;
  }
  .mobile-bottom-nav {
    border-top-color: var(--line) !important;
    background: rgba(255,255,255,.96) !important;
  }
  .mobile-bottom-nav button { color: var(--muted) !important; }
  .mobile-bottom-nav button[aria-current] {
    background: var(--primary-soft) !important;
    color: var(--primary-dark) !important;
  }
  html[data-theme="dark"] .mobile-bottom-nav { background: rgba(5,11,29,.96) !important; }
}
