:root {
  --ink: #17191d;
  --muted: #6e7078;
  --soft-muted: #9b9da5;
  --paper: #f5f5f1;
  --card: #ffffff;
  --line: #dedfd8;
  --purple: #6551f3;
  --purple-dark: #4b38d6;
  --purple-soft: #e8e4ff;
  --mint: #d8f8dc;
  --lime: #dfff72;
  --sand: #f1e5cd;
  --dark-card: #202329;
  --shadow: 0 24px 70px rgba(27, 28, 35, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --section-width: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.generated-analysis {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.generated-analysis h2,
.generated-analysis h3 {
  color: var(--ink);
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.generated-analysis p,
.generated-analysis li {
  color: var(--muted);
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.generated-analysis ul,
.generated-analysis ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.section-shell {
  width: min(calc(100% - 48px), var(--section-width));
  margin-inline: auto;
}

#top {
  scroll-margin-top: 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 76px;
  padding: 0 max(24px, calc((100vw - var(--section-width)) / 2));
  border-bottom: 1px solid rgba(222, 223, 216, 0.72);
  background: rgba(245, 245, 241, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  border-radius: 11px;
  background: var(--ink);
}

.brand-mark svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.brand-mark svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.brand-name {
  font-size: 21px;
}

.beta-label {
  padding: 5px 7px 4px;
  color: var(--purple-dark);
  border-radius: 999px;
  background: var(--purple-soft);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 590;
}

.desktop-nav a,
.desktop-nav button,
.site-footer a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav button:hover,
.site-footer a:hover {
  color: var(--purple);
}

.desktop-nav button {
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  font-weight: 710;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 13px;
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.button-ghost:hover {
  border-color: #c4c5bd;
  background: white;
}

.button-primary {
  color: white;
  background: var(--purple);
  box-shadow: 0 12px 28px rgba(101, 81, 243, 0.22);
}

.button-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 16px 34px rgba(101, 81, 243, 0.28);
}

.button-light {
  color: var(--ink);
  background: white;
}

.button-outline {
  border: 1px solid var(--line);
  background: white;
}

.button-wide {
  width: 100%;
}

.button-large {
  min-height: 56px;
  padding-inline: 25px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-menu {
  position: fixed;
  top: 68px;
  right: 16px;
  left: 16px;
  z-index: 45;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu > a,
.mobile-menu > button {
  width: 100%;
  padding: 13px 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 650;
}

.mobile-menu > a:hover,
.mobile-menu > button:hover {
  background: var(--paper);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 64px;
  align-items: center;
  min-height: 690px;
  padding-block: 82px 72px;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.27;
}

.hero-glow-one {
  top: 30px;
  left: -40px;
  background: var(--lime);
}

.hero-glow-two {
  right: -40px;
  bottom: 60px;
  background: #bcaeff;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

.status-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0.28;
  content: "";
}

.hero h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(54px, 5.2vw, 77px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  color: var(--purple);
}

.hero h1 span::after {
  position: absolute;
  right: -2px;
  bottom: -5px;
  left: 2px;
  height: 9px;
  border-radius: 50%;
  border-top: 3px solid var(--purple);
  transform: rotate(-1.5deg);
  content: "";
}

.hero-lead {
  max-width: 570px;
  margin: 30px 0 26px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 17px;
  color: #55575e;
  font-size: 13px;
  font-weight: 600;
}

.hero-points span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-points svg {
  width: 17px;
  fill: none;
  stroke: var(--purple);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.hero-tool {
  position: relative;
  z-index: 3;
  padding: 11px 26px 21px;
  border: 1px solid rgba(207, 208, 201, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.tool-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin-bottom: 18px;
  border-bottom: 1px solid #ecece7;
}

.tool-tabs {
  display: flex;
  align-self: stretch;
  gap: 22px;
}

.tool-tab {
  position: relative;
  padding: 2px 0 0;
  color: var(--soft-muted);
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tool-tab.active {
  color: var(--ink);
}

.tool-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--purple);
  content: "";
}

.demo-pill {
  padding: 5px 8px;
  color: #656770;
  border: 1px solid #dedfd9;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-panel {
  animation: panel-in 220ms ease both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.field-label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.field-label em {
  color: var(--soft-muted);
  font-style: normal;
  font-weight: 550;
}

.url-field {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  height: 56px;
  padding: 0 8px 0 16px;
  border: 1.5px solid #d8d9d3;
  border-radius: 14px;
  background: #fbfbf9;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.url-field:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(101, 81, 243, 0.1);
}

.url-field.invalid {
  border-color: #d75a67;
  box-shadow: 0 0 0 4px rgba(215, 90, 103, 0.08);
}

.url-field input {
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.url-field input::placeholder,
.prompt-field textarea::placeholder {
  color: #a8a9ae;
}

.url-icon svg {
  width: 22px;
  fill: none;
  stroke: #8f9197;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.paste-button {
  height: 38px;
  padding: 0 11px;
  color: var(--purple-dark);
  border: 0;
  border-radius: 9px;
  background: var(--purple-soft);
  font-size: 11px;
  font-weight: 730;
  cursor: pointer;
}

.field-error {
  min-height: 16px;
  margin: 4px 2px 0;
  color: #c33f4e;
  font-size: 11px;
}

.source-note {
  margin: 8px 0 0;
  color: var(--soft-muted);
  font-size: 11px;
  line-height: 1.4;
}

.source-diagnostic {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin-top: 11px;
  padding: 12px;
  border: 1px solid #d9d5f4;
  border-radius: 12px;
  background: #faf9ff;
}

.source-diagnostic-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--purple-dark);
  border-radius: 9px;
  background: var(--purple-soft);
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
}

.source-diagnostic b {
  display: block;
  margin-top: 1px;
  font-size: 13px;
}

.source-diagnostic p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.source-diagnostic small {
  display: block;
  margin-top: 6px;
  color: var(--soft-muted);
  font-size: 11px;
  line-height: 1.35;
}

.source-diagnostic[data-state="page-opened"] {
  border-color: #b9dfc2;
  background: #f4fcf5;
}

.source-diagnostic[data-state="page-opened"] .source-diagnostic-icon {
  color: #34734a;
  background: #e3f5e7;
}

.source-diagnostic[data-state="browser-gate"],
.source-diagnostic[data-state="unavailable"],
.source-diagnostic[data-state="network-error"] {
  border-color: #f0c8ca;
  background: #fff8f8;
}

.source-diagnostic[data-state="browser-gate"] .source-diagnostic-icon,
.source-diagnostic[data-state="unavailable"] .source-diagnostic-icon,
.source-diagnostic[data-state="network-error"] .source-diagnostic-icon {
  color: #b64c55;
  background: #ffe8e8;
}

.switch-row:has(input:disabled) {
  opacity: 0.72;
}

.format-block {
  margin-top: 10px;
}

.included-block {
  margin-top: 12px;
}

.included-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.included-results > span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 11px;
  border: 1px solid #dcd9f3;
  border-radius: 12px;
  background: #faf9ff;
}

.included-results i {
  display: grid;
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--purple-dark);
  border-radius: 7px;
  background: var(--purple-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.included-results b {
  min-width: 0;
  font-size: 12px;
  line-height: 1.2;
}

.included-results small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--soft-muted);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.format-card {
  position: relative;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 71px;
  padding: 10px 9px;
  border: 1.5px solid #e1e2dc;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.format-card:hover {
  border-color: #c7c8c2;
}

.format-card.selected {
  border-color: var(--purple);
  background: #faf9ff;
}

.format-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.format-card > span:nth-of-type(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.format-card b {
  font-size: 12px;
}

.format-card small {
  overflow: hidden;
  color: var(--soft-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-card > i {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid #d8d9d2;
  border-radius: 50%;
}

.format-card.selected > i {
  border-color: var(--purple);
  background: var(--purple);
}

.format-card.selected > i::after {
  width: 5px;
  height: 3px;
  margin-top: -1px;
  border-bottom: 1.5px solid white;
  border-left: 1.5px solid white;
  transform: rotate(-45deg);
  content: "";
}

.format-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
}

.format-icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.format-icon-brief {
  color: #4c3ed1;
  background: #e8e4ff;
}

.format-icon-detailed {
  color: #267246;
  background: #e0f5e6;
}

.format-icon-transcript {
  color: #a26326;
  background: #f8ead8;
}

.tool-options {
  margin: 12px 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f5f5f1;
}

.switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  cursor: pointer;
}

.switch-row > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.switch-row b {
  font-size: 12px;
}

.switch-row small {
  color: var(--soft-muted);
  font-size: 10px;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d2d3ce;
  transition: background-color 160ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease;
  content: "";
}

.switch-row input:checked + .switch {
  background: var(--purple);
}

.switch-row input:checked + .switch::after {
  transform: translateX(16px);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  color: #96989e;
  font-size: 10px;
}

.privacy-note svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.job-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  color: var(--ink);
  border: 1px solid #d9d2ff;
  border-radius: 14px;
  background: #f7f5ff;
  text-align: left;
}

.job-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(101, 81, 243, 0.12);
}

.job-status.completed .job-status-dot {
  background: #4e9b60;
  box-shadow: 0 0 0 4px rgba(78, 155, 96, 0.12);
}

.job-status.failed {
  border-color: #f1cccc;
  background: #fff7f7;
}

.job-status.failed .job-status-dot {
  background: #d75454;
  box-shadow: 0 0 0 4px rgba(215, 84, 84, 0.1);
}

.job-status div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.job-status b {
  font-size: 12px;
}

.job-status small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.job-status button,
.processing-hide {
  border: 0;
  color: var(--purple-dark);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.job-status button {
  padding: 6px 4px;
  font-size: 12px;
}

.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 9px;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap select {
  width: 100%;
  height: 48px;
  padding: 0 35px 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fbfbf9;
  font-size: 12px;
  font-weight: 590;
  appearance: none;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  pointer-events: none;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.prompt-field {
  display: block;
  margin-top: 14px;
}

.prompt-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fbfbf9;
  font-size: 12px;
  line-height: 1.45;
  resize: none;
}

.prompt-field textarea:focus,
.select-wrap select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(101, 81, 243, 0.09);
}

.destination-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.destination-row > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.destination-row b {
  font-size: 12px;
}

.destination-row small {
  color: var(--soft-muted);
  font-size: 10px;
}

.telegram-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #e4f5fd;
}

.telegram-icon svg {
  width: 22px;
  fill: #229ed9;
}

.chevron {
  width: 18px;
  fill: none;
  stroke: var(--soft-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 25px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform-row > p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--soft-muted);
  font-size: 12px;
  font-weight: 650;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
}

.platform-list > span,
.message-source,
.subscription-preview {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 710;
}

.platform-logo {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex: 0 0 auto;
  color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 0;
  font-style: normal;
  line-height: 1;
}

.platform-logo.youtube {
  background-image: url("assets/logos/youtube.svg");
}

.platform-logo.vk {
  background-image: url("assets/logos/vk.svg");
}

.platform-logo.rutube {
  background-image: url("assets/logos/rutube.svg");
}

.platform-logo.telegram {
  background-image: url("assets/logos/telegram.svg");
}

.platform-soon {
  color: var(--soft-muted);
  font-weight: 580 !important;
}

.platform-soon i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px dashed #bfc0ba;
  border-radius: 8px;
  font-style: normal;
}

.possibilities,
.workflow,
.telegram-section {
  padding-block: 116px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  column-gap: 90px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.section-heading h2,
.telegram-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(40px, 4.1vw, 58px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.section-heading > p:last-child {
  max-width: 470px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.section-heading.compact {
  display: block;
  text-align: center;
}

.section-heading.compact .section-kicker {
  justify-content: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 365px;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.feature-card h3 {
  max-width: 380px;
  margin: 0 0 10px;
  font-size: 27px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.feature-card p {
  max-width: 420px;
  margin: 0;
  color: rgba(23, 25, 29, 0.67);
  font-size: 14px;
  line-height: 1.55;
}

.feature-number {
  display: block;
  margin-bottom: 22px;
  color: rgba(23, 25, 29, 0.45);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.feature-purple {
  background: #dcd5ff;
}

.feature-mint {
  background: var(--mint);
}

.feature-dark {
  color: white;
  background: var(--dark-card);
}

.feature-dark p,
.feature-dark .feature-number {
  color: rgba(255, 255, 255, 0.58);
}

.feature-sand {
  min-height: 320px;
  background: var(--sand);
}

.feature-card-large,
.feature-card-wide {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 30px;
}

.feature-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: 0.75fr 1.25fr;
}

.timeline-demo {
  align-self: end;
  padding: 13px;
  border: 1px solid rgba(68, 52, 170, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 40px rgba(64, 50, 154, 0.13);
  transform: rotate(1.5deg) translateY(12px);
}

.video-miniature {
  position: relative;
  display: grid;
  height: 160px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 68% 30%, rgba(223, 255, 114, 0.9), transparent 22%),
    linear-gradient(135deg, #30266c, #6e5df4 52%, #b0a5ff);
}

.video-miniature::before,
.result-cover-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
}

.play-circle {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding-left: 3px;
  color: var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  font-size: 13px;
}

.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  color: white;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 9px;
}

.timeline-lines {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 13px 4px 4px 40px;
}

.timeline-lines span {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dad8e7;
}

.timeline-lines span i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9a89fb;
}

.timeline-lines b {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--purple-dark);
  font-size: 10px;
}

.orbit-icon {
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(38, 114, 70, 0.23);
  border-radius: 50%;
}

.orbit-icon::before,
.orbit-icon::after {
  position: absolute;
  border: 1px solid rgba(38, 114, 70, 0.21);
  border-radius: 50%;
  content: "";
}

.orbit-icon::before {
  inset: 24px;
}

.orbit-icon::after {
  inset: 51px;
  background: rgba(255, 255, 255, 0.4);
}

.orbit-icon span,
.orbit-icon i,
.orbit-icon b {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 3px solid var(--mint);
  border-radius: 50%;
  background: #348458;
  box-shadow: 0 0 0 1px rgba(52, 132, 88, 0.3);
}

.orbit-icon span {
  top: 12px;
  left: 72px;
}

.orbit-icon i {
  right: 23px;
  bottom: 31px;
}

.orbit-icon b {
  bottom: 45px;
  left: 36px;
}

.question-demo {
  position: absolute;
  right: 25px;
  bottom: 24px;
  left: 25px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background: #2c3037;
}

.question-demo span {
  padding: 12px 14px;
  border-radius: 12px 12px 12px 3px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 12px;
}

.question-demo i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(223, 255, 114, 0.65);
}

.question-demo i:last-child {
  width: 68%;
  background: rgba(255, 255, 255, 0.17);
}

.digest-stack {
  position: relative;
  align-self: center;
  min-height: 230px;
}

.digest-stack > div {
  position: absolute;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px 15px;
  border: 1px solid rgba(118, 93, 52, 0.16);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 35px rgba(86, 65, 29, 0.09);
}

.digest-stack > div:nth-child(1) {
  top: 0;
  z-index: 3;
}

.digest-stack > div:nth-child(2) {
  top: 70px;
  z-index: 2;
  right: 18px;
  left: 18px;
}

.digest-stack > div:nth-child(3) {
  top: 140px;
  z-index: 1;
  right: 36px;
  left: 36px;
}

.digest-stack span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.digest-stack b {
  font-size: 13px;
}

.digest-stack small {
  color: var(--soft-muted);
  font-size: 10px;
}

.digest-stack em {
  padding: 6px 8px;
  color: #3f722c;
  border-radius: 8px;
  background: #e7f8dc;
  font-size: 9px;
  font-style: normal;
  font-weight: 720;
}

.workflow {
  padding-top: 36px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-grid article {
  position: relative;
  min-height: 320px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.workflow-grid article:last-child {
  border-right: 0;
}

.workflow-grid article > span {
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 760;
}

.workflow-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 42px 0 32px;
  place-items: center;
  border-radius: 21px;
  background: white;
  box-shadow: 0 12px 35px rgba(29, 30, 36, 0.08);
}

.workflow-icon svg {
  width: 33px;
  fill: none;
  stroke: var(--purple);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.workflow-grid h3 {
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.workflow-grid p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.telegram-card {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  min-height: 640px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #5e4ce8;
}

.telegram-copy {
  padding: 68px 56px;
  color: white;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.68);
}

.eyebrow-light .status-dot {
  background: var(--lime);
}

.telegram-copy h2 {
  max-width: 600px;
}

.telegram-copy > p {
  max-width: 560px;
  margin: 25px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.65;
}

.telegram-copy ul {
  display: grid;
  gap: 13px;
  margin: 30px 0 38px;
  padding: 0;
  list-style: none;
}

.telegram-copy li {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  font-weight: 620;
}

.telegram-copy li svg {
  width: 18px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.phone-wrap {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: end center;
  background:
    radial-gradient(circle at 50% 35%, rgba(223, 255, 114, 0.36), transparent 22%),
    rgba(31, 23, 92, 0.22);
}

.phone-wrap::before,
.phone-wrap::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.phone-wrap::before {
  width: 500px;
  height: 500px;
}

.phone-wrap::after {
  width: 340px;
  height: 340px;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(330px, 82%);
  height: 570px;
  overflow: hidden;
  border: 9px solid #18191d;
  border-bottom: 0;
  border-radius: 39px 39px 0 0;
  background: #dbe9f0;
  box-shadow: 0 30px 70px rgba(22, 17, 72, 0.32);
}

.phone-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 58px;
  padding: 0 17px;
  color: #22252a;
  background: white;
  font-size: 12px;
}

.phone-top span::before {
  content: "‹";
  color: #1688ef;
  font-size: 23px;
}

.phone-top i {
  justify-self: end;
  color: #1688ef;
  font-style: normal;
  letter-spacing: 1px;
}

.phone-chat {
  min-height: 100%;
  padding: 12px;
  background:
    linear-gradient(rgba(219, 233, 240, 0.87), rgba(219, 233, 240, 0.87)),
    radial-gradient(circle, rgba(68, 115, 142, 0.2) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

.phone-date {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 4px 9px;
  color: white;
  border-radius: 999px;
  background: rgba(77, 100, 113, 0.45);
  font-size: 8px;
  font-weight: 700;
}

.message-card {
  overflow: hidden;
  padding: 13px;
  border-radius: 5px 17px 17px 17px;
  background: white;
  box-shadow: 0 4px 10px rgba(53, 77, 89, 0.12);
}

.message-source span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.message-source b {
  font-size: 10px;
}

.message-source small {
  overflow: hidden;
  color: #7e8187;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-preview {
  position: relative;
  display: grid;
  height: 130px;
  margin: 12px -2px;
  place-items: center;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, rgba(223, 255, 114, 0.88), transparent 18%),
    linear-gradient(135deg, #362b84, #7565e7);
}

.message-preview small {
  position: absolute;
  right: 7px;
  bottom: 6px;
  padding: 3px 5px;
  color: white;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 7px;
}

.message-preview .play-circle {
  width: 38px;
  height: 38px;
  font-size: 10px;
}

.message-card h4 {
  margin: 0 0 7px;
  color: #1d1f23;
  font-size: 12px;
  line-height: 1.25;
}

.message-card > p {
  margin: 0;
  color: #54575e;
  font-size: 9px;
  line-height: 1.5;
}

.message-points {
  display: grid;
  gap: 6px;
  margin: 11px 0;
}

.message-points span {
  padding: 7px 8px;
  border-radius: 7px;
  background: #f5f5f2;
  color: #595c62;
  font-size: 8px;
}

.message-points b {
  margin-right: 5px;
  color: var(--purple);
}

.message-card > button {
  width: 100%;
  height: 31px;
  color: white;
  border: 0;
  border-radius: 8px;
  background: #269fd8;
  font-size: 8px;
  font-weight: 720;
}

.final-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  padding-block: 88px 100px;
}

.final-cta > div > p:last-child {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 100px;
  border-top: 1px solid var(--line);
}

.site-footer .brand-mark {
  width: 31px;
  height: 31px;
}

.site-footer .brand-mark svg {
  width: 18px;
}

.site-footer .brand-name {
  font-size: 18px;
}

.site-footer p {
  color: var(--soft-muted);
  font-size: 11px;
}

.site-footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 12px;
  font-weight: 620;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  padding: 24px;
  overflow-y: auto;
  place-items: center;
  visibility: hidden;
  background: rgba(20, 21, 25, 0.64);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.modal-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.processing-modal,
.subscription-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 50px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  transform: translateY(15px) scale(0.98);
  transition: transform 220ms ease;
}

.modal-backdrop.open .processing-modal,
.modal-backdrop.open .subscription-modal,
.modal-backdrop.open .result-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.modal-close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.processing-content {
  text-align: center;
}

.processing-visual {
  position: relative;
  display: grid;
  width: 106px;
  height: 106px;
  margin: 4px auto 28px;
  place-items: center;
}

.processing-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #e3e0fb;
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

.processing-ring::before {
  position: absolute;
  inset: 13px;
  border: 1px dashed #bdb4f6;
  border-radius: 50%;
  content: "";
}

.processing-play {
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  padding-left: 3px;
  color: white;
  border-radius: 50%;
  background: var(--purple);
  font-size: 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.processing-content .section-kicker {
  justify-content: center;
  margin-bottom: 12px;
}

.processing-content h2,
.subscription-modal h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.processing-caption,
.subscription-modal > p:not(.section-kicker) {
  max-width: 380px;
  margin: 13px auto 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebeae5;
}

.progress-track i {
  display: block;
  width: 5%;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.processing-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 24px;
  text-align: left;
}

.processing-steps span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 620;
  transition: color 180ms ease;
}

.processing-steps i {
  width: 7px;
  height: 7px;
  border: 1px solid #c7c8c1;
  border-radius: 50%;
}

.processing-steps span.active {
  color: var(--ink);
}

.processing-steps span.active i {
  border-color: var(--purple);
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(101, 81, 243, 0.1);
}

.processing-steps span.done {
  color: #4d895d;
}

.processing-steps span.done i {
  border-color: #65aa76;
  background: #65aa76;
}

.processing-hide {
  display: inline-flex;
  margin: 22px auto 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f1eeff;
  font-size: 13px;
}

.processing-note {
  display: block;
  margin-top: 9px;
  color: var(--soft-muted);
  font-size: 11px;
  line-height: 1.4;
}

.result-backdrop {
  align-items: start;
  padding-block: 26px;
}

.result-modal {
  position: relative;
  width: min(1040px, 100%);
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.27);
  transform: translateY(15px) scale(0.985);
  transition: transform 220ms ease;
}

.result-close {
  top: 20px;
  right: 20px;
}

.result-head {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  padding: 30px 76px 26px 30px;
  background: white;
}

#result-modal.player-open .result-head {
  grid-template-columns: minmax(0, 1fr);
}

#result-modal.player-open .result-cover {
  display: none;
}

.result-player {
  padding: 0 30px 28px;
  background: white;
}

.result-player-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

.result-player-topline span {
  display: block;
  margin-bottom: 3px;
  color: var(--purple-dark);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-player-topline b {
  display: block;
  font-size: 13px;
}

.result-player-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
  align-items: center;
}

.result-player-topline a,
.result-player-actions button {
  flex: 0 0 auto;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.result-player-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.result-player-topline a:hover,
.result-player-actions button:hover {
  text-decoration: underline;
}

.result-player-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #171522;
}

.result-player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.result-cover {
  position: relative;
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: inherit;
  min-height: 0;
  aspect-ratio: 16 / 9;
  align-self: start;
  overflow: hidden;
  place-items: center;
  border-radius: 17px;
  background:
    radial-gradient(circle at 72% 24%, var(--lime), transparent 17%),
    linear-gradient(135deg, #252055, #6c5bf3 56%, #a699fa);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.result-cover:hover {
  box-shadow: 0 12px 24px rgba(38, 30, 103, 0.2);
  transform: translateY(-1px);
}

.result-cover:focus-visible {
  outline: 3px solid rgba(101, 81, 243, 0.45);
  outline-offset: 3px;
}

.result-thumbnail {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-cover.has-thumbnail {
  background: #201d38;
}

.result-cover.has-thumbnail .result-cover-grid {
  display: none;
}

.result-cover .play-circle {
  position: relative;
  z-index: 2;
}

.result-cover small {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 4px 6px;
  color: white;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.58);
  font-size: 9px;
}

.result-meta {
  align-self: center;
  min-width: 0;
}

.result-meta > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.platform-tag,
.result-ready {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 720;
}

.platform-tag .platform-logo {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  font-size: 7px;
}

.result-ready {
  padding: 5px 8px;
  color: #34734a;
  border-radius: 999px;
  background: #e3f5e7;
}

.result-ready i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4d9a63;
}

.result-title-row {
  display: block;
}

.result-meta h2 {
  margin: 0;
  font-size: clamp(23px, 2.35vw, 27px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.result-channel {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.result-channel a {
  color: var(--purple-dark);
  font-weight: 720;
  text-decoration: none;
}

.result-channel a:hover {
  text-decoration: underline;
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.result-stats span {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--paper);
  font-size: 9px;
  font-weight: 650;
}

.result-source-link {
  display: inline-flex;
  width: 27px;
  height: 27px;
  margin: 0 0 0 7px;
  align-items: center;
  justify-content: center;
  vertical-align: 0.08em;
  white-space: nowrap;
  padding: 0;
  color: var(--purple-dark);
  border: 1px solid #d5ceff;
  border-radius: 8px;
  background: #f7f5ff;
  font-size: 18px;
  line-height: 1;
  font-weight: 760;
  text-decoration: none;
}

.result-source-link:hover {
  background: #eeeaff;
}

.history-page {
  min-height: calc(100vh - 76px);
  padding-block: 58px 96px;
}

.feed-page,
.account-page {
  min-height: calc(100vh - 76px);
  padding-block: 58px 96px;
}

/* Лента — отдельный каталог: она не наследует ограничение ширины основного сайта. */
.feed-page {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  max-width: none;
  padding: 44px clamp(24px, 3vw, 56px) 72px;
}

.feed-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 22px;
}

.feed-page-heading-copy {
  max-width: 640px;
}

.feed-page-heading h1,
.account-page-heading h1 {
  margin: 7px 0 0;
  font-size: clamp(38px, 4vw, 54px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.feed-page-heading p,
.account-page-heading > p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.feed-onboarding {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #dcd5ff;
  border-radius: 16px;
  background: linear-gradient(105deg, #f3f0ff, #fbfbf7 72%);
}

.feed-onboarding-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--purple-dark);
  border-radius: 14px;
  background: white;
}

.feed-onboarding-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feed-onboarding b {
  display: block;
  font-size: 15px;
}

.feed-onboarding p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.feed-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.feed-toolbar > span {
  color: var(--soft-muted);
  font-size: 12px;
}

.feed-filter-group {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.feed-filter-group button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.feed-filter-group button.active {
  color: var(--purple-dark);
  border-color: #b9aeff;
  background: #f2efff;
}

.feed-filter-group .platform-logo {
  width: 17px;
  height: 17px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feed-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feed-card:hover {
  border-color: #c9c2ff;
  box-shadow: 0 14px 28px rgba(32, 29, 86, 0.1);
  transform: translateY(-2px);
}

.feed-cover {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 9;
  padding: 10px;
  align-items: end;
  justify-content: space-between;
  overflow: hidden;
  color: white;
}

.feed-cover::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 10, 20, 0.63));
  content: "";
}

.feed-cover .platform-logo,
.feed-cover span,
.feed-cover b {
  position: relative;
  z-index: 1;
}

.feed-cover .platform-logo {
  align-self: start;
  width: 23px;
  height: 23px;
}

.feed-cover span {
  margin-left: auto;
  align-self: end;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 10px;
}

.feed-cover b {
  position: absolute;
  bottom: 10px;
  left: 10px;
  max-width: 62%;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.cover-ai { background: radial-gradient(circle at 73% 23%, #ddff45, transparent 15%), linear-gradient(135deg, #18194f, #6253e8 55%, #a49bff); }
.cover-business { background: radial-gradient(circle at 72% 20%, #7fe2ff, transparent 16%), linear-gradient(135deg, #114a73, #298dc7 53%, #95d8fd); }
.cover-market { background: radial-gradient(circle at 77% 22%, #caef48, transparent 15%), linear-gradient(135deg, #334406, #698820 54%, #b5e349); }
.cover-notes { background: radial-gradient(circle at 73% 23%, #ffc661, transparent 16%), linear-gradient(135deg, #5a294b, #bd568f 54%, #ee9ac3); }
.cover-code { background: linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), radial-gradient(circle at 75% 20%, #5cf0ff, transparent 18%), linear-gradient(135deg, #07363d, #076578 55%, #1ab0c3); background-size: 24px 24px, 24px 24px, auto, auto; }
.cover-studio { background: radial-gradient(ellipse at 75% 25%, #ffce6b, transparent 19%), linear-gradient(135deg, #49231e, #a14a33 55%, #e18a57); }
.cover-briefing { background: linear-gradient(135deg, rgba(255,255,255,0.12) 25%, transparent 25%) 0 0 / 24px 24px, radial-gradient(circle at 74% 22%, #efef8b, transparent 15%), linear-gradient(135deg, #24313e, #516e82 56%, #8db6c5); }
.cover-paper { background: linear-gradient(108deg, transparent 48%, rgba(255,255,255,0.16) 49% 51%, transparent 52%), radial-gradient(circle at 76% 20%, #ff8a84, transparent 16%), linear-gradient(135deg, #482b68, #80496d 54%, #d9848b); }
.cover-motion { background: radial-gradient(circle at 23% 18%, #60ffc4, transparent 12%), radial-gradient(circle at 76% 68%, #63c4ff, transparent 20%), linear-gradient(135deg, #0c2743, #155f90 52%, #34b6c3); }
.cover-talk { background: radial-gradient(circle at 78% 22%, #fce47b, transparent 18%), linear-gradient(135deg, #3a2420, #7e503a 55%, #c6935d); }

.feed-card-copy {
  min-height: 126px;
  padding: 12px;
}

.feed-card-copy > div:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--soft-muted);
  font-size: 10px;
}

.feed-card-copy > div:first-child .platform-logo {
  width: 17px;
  height: 17px;
}

.feed-card h2 {
  min-height: 2.55em;
  margin: 9px 0 5px;
  overflow: hidden;
  font-size: 15px;
  letter-spacing: -0.025em;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-card-copy > p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card-actions {
  display: flex;
  gap: 9px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 160ms ease, margin 160ms ease, opacity 120ms ease;
}

.feed-card:hover .feed-card-actions,
.feed-card:focus-within .feed-card-actions {
  max-height: 40px;
  margin-top: 12px;
  opacity: 1;
}

.feed-card-actions a,
.feed-card-actions button {
  display: inline-flex;
  min-height: 34px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  color: var(--purple-dark);
  border: 1px solid #d7d0ff;
  border-radius: 9px;
  background: #faf9ff;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.feed-card-actions button {
  color: white;
  border-color: var(--purple);
  background: var(--purple);
}

.account-page-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.account-page-heading .history-back {
  margin-bottom: 22px;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-setting-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
}

.account-setting-card-wide {
  grid-column: 1 / -1;
}

.account-setting-heading > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account-setting-heading em {
  padding: 4px 8px;
  color: #917432;
  border: 1px solid #ead9ac;
  border-radius: 999px;
  background: #fff9e9;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-setting-heading > div > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--purple-dark);
  border-radius: 8px;
  background: var(--purple-soft);
  font-size: 11px;
  font-weight: 820;
}

.account-setting-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.account-setting-heading > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.account-connect-card {
  position: relative;
  overflow: hidden;
  border-color: #dcd3ff;
  background: linear-gradient(120deg, #fff 0%, #f5f1ff 100%);
}

.account-connect-card::after {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -130px;
  top: -135px;
  border-radius: 50%;
  background: rgba(103, 70, 255, 0.12);
  content: "";
  pointer-events: none;
}

.account-connect-card > * {
  position: relative;
  z-index: 1;
}

.account-manual-card {
  border-style: dashed;
}

.feed-channel-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}

.feed-channel-form input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font: inherit;
  font-size: 14px;
}

.feed-channel-help,
.account-setting-note {
  margin: 11px 0 0;
  color: var(--soft-muted);
  font-size: 12px;
  line-height: 1.55;
}

.saved-feed-channels {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.saved-feed-channel,
.saved-feed-channels > p {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid #ebeae5;
  border-radius: 11px;
  background: #fbfbf9;
  font-size: 12px;
}

.saved-feed-channel > span {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-feed-channel-copy {
  display: grid;
  gap: 2px;
}

.saved-feed-channel-copy b,
.saved-feed-channel-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-feed-channel-copy b {
  color: var(--ink);
  font-size: 12px;
}

.saved-feed-channel-copy small {
  color: var(--soft-muted);
  font-size: 10px;
}

.saved-feed-channel button {
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.account-connect-list,
.account-preference-list {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.account-connect-list button,
.account-preference-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 47px;
  padding: 9px 10px;
  text-align: left;
  border: 1px solid #e9e8e3;
  border-radius: 11px;
  background: #fafaf8;
}

.account-connect-list button {
  cursor: not-allowed;
}

.account-connect-list button:disabled {
  opacity: 1;
  color: var(--ink);
}

.account-connect-list .platform-logo {
  width: 23px;
  height: 23px;
}

.account-connect-list span,
.account-preference-list span {
  display: grid;
  gap: 2px;
}

.account-connect-list small,
.account-preference-list small {
  color: var(--soft-muted);
  font-size: 11px;
}

.account-connect-list button > b {
  margin-left: auto;
  padding: 4px 7px;
  color: var(--soft-muted);
  border-radius: 999px;
  background: #eeeef2;
  font-size: 10px;
}

.account-preference-list label {
  color: var(--muted);
}

.account-preference-list input {
  accent-color: var(--purple);
}

.history-page-panel {
  width: min(860px, 100%);
  margin-inline: auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.27);
}

.history-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 30px;
  padding: 0;
  color: var(--purple-dark);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.history-back svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.history-back:hover {
  text-decoration: underline;
}

.history-heading {
  max-width: 520px;
  margin-bottom: 24px;
}

.history-heading > span {
  display: block;
  margin-bottom: 8px;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-heading h1 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.history-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-empty {
  margin: 0;
  padding: 28px 18px;
  color: var(--muted);
  border: 1px dashed #cbc9c2;
  border-radius: 15px;
  background: white;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.history-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.history-item:hover:not(:disabled) {
  border-color: #bab4ee;
  box-shadow: 0 10px 22px rgba(32, 29, 86, 0.09);
  transform: translateY(-1px);
}

.history-item-muted {
  opacity: 0.62;
  cursor: default;
}

.history-thumbnail {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #252055, #6c5bf3 56%, #a699fa);
}

.history-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-thumbnail-placeholder {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
}

.history-item-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.history-item-top {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--soft-muted);
  font-size: 11px;
}

.history-status {
  padding: 4px 7px;
  color: #34734a;
  border-radius: 999px;
  background: #e3f5e7;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

.history-status.failed {
  color: #9d383c;
  background: #ffe8e8;
}

.history-status.running {
  color: #6251c7;
  background: #ece9ff;
}

.history-item b {
  overflow: hidden;
  font-size: 15px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-open {
  padding-right: 5px;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.result-nav {
  display: flex;
  gap: 24px;
  padding: 0 30px;
  border-top: 1px solid #ecece7;
  border-bottom: 1px solid var(--line);
  background: white;
}

.result-nav button {
  position: relative;
  height: 59px;
  padding: 0;
  color: var(--soft-muted);
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.result-nav button.active {
  color: var(--ink);
}

.result-nav button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--purple);
  content: "";
}

.result-body {
  min-height: 440px;
  padding: 34px 36px 40px;
}

.result-pane {
  animation: panel-in 200ms ease both;
}

.result-pane[data-result-pane="summary"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
}

.summary-highlight {
  margin-bottom: 26px;
  padding: 20px 22px;
  border-left: 3px solid var(--purple);
  border-radius: 0 14px 14px 0;
  background: #e9e5ff;
}

.summary-highlight span,
.side-card > span,
.demo-answer > span {
  display: block;
  margin-bottom: 7px;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-highlight p {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.58;
}

.summary-highlight p + p {
  margin-top: 14px;
}

.result-main > h3 {
  margin: 0 0 15px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

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

.key-points li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.key-points li > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--purple-dark);
  border-radius: 8px;
  background: var(--purple-soft);
  font-size: 12px;
  font-weight: 780;
}

.key-points li > div {
  position: relative;
  padding-right: 47px;
}

.key-points.simple li > div {
  padding-right: 0;
}

.key-points b {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.key-points p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.key-points button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 6px;
  color: var(--purple-dark);
  border: 0;
  border-radius: 6px;
  background: var(--purple-soft);
  font-size: 8px;
  font-weight: 750;
  cursor: pointer;
}

.result-side {
  display: grid;
  align-content: start;
  gap: 11px;
}

.side-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.side-card b {
  display: block;
  margin-bottom: 3px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.side-card small {
  color: var(--soft-muted);
  font-size: 12px;
}

.side-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 13px;
}

.side-card li::before {
  margin-right: 7px;
  color: var(--purple);
  content: "•";
}

.result-side .button {
  min-height: 43px;
  font-size: 13px;
}

.chapter-list {
  display: grid;
  gap: 9px;
}

.chapter-list button {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 15px 17px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.chapter-list button:hover {
  border-color: #bebfb7;
  transform: translateX(3px);
}

.chapter-list time {
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 750;
}

.chapter-list span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chapter-list b {
  font-size: 12px;
}

.chapter-list small {
  color: var(--soft-muted);
  font-size: 10px;
}

.chapter-list i {
  color: var(--soft-muted);
  font-style: normal;
}

.outline-list {
  display: grid;
  gap: 12px;
}

.outline-section {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.outline-section > span {
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 800;
}

.outline-section h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.outline-section p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.outline-section-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.outline-time {
  padding: 7px 9px;
  color: var(--purple-dark);
  border: 1px solid #d7d0ff;
  border-radius: 8px;
  background: #f7f5ff;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.outline-time:hover {
  border-color: #a99cf6;
  background: #ece8ff;
}

.transcript-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.transcript-toolbar label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: min(380px, 100%);
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.transcript-toolbar svg {
  width: 17px;
  fill: none;
  stroke: var(--soft-muted);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.transcript-toolbar input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.transcript-toolbar > button {
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.transcript-text {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.transcript-text p {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 15px;
  border-radius: 11px;
}

.transcript-text p:hover {
  background: white;
}

.transcript-text p > button {
  align-self: start;
  padding: 5px;
  color: var(--purple-dark);
  border: 0;
  border-radius: 6px;
  background: var(--purple-soft);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.transcript-text p > span {
  color: #4e5157;
  font-size: 16px;
  line-height: 1.72;
}

.transcript-text b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 9px;
}

.ask-panel {
  max-width: 720px;
  margin: 16px auto 0;
  text-align: center;
}

.ask-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--purple-dark);
  border-radius: 16px;
  background: var(--purple-soft);
  font-size: 26px;
}

.ask-panel h3 {
  margin: 0 0 10px;
  font-size: 29px;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.ask-panel > p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.suggested-questions button {
  min-height: 42px;
  padding: 9px 14px;
  color: #55575e;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
}

.ask-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  margin-top: 22px;
  padding: 5px;
  border: 1.5px solid #ceccc5;
  border-radius: 17px;
  background: white;
}

.ask-form input {
  min-width: 0;
  padding: 0 13px;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.ask-form button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: white;
  border: 0;
  border-radius: 13px;
  background: var(--purple);
  cursor: pointer;
}

.ask-form svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.demo-answer {
  margin-top: 18px;
  padding: 20px;
  text-align: left;
  border-radius: 16px;
  background: var(--purple-soft);
}

.demo-answer p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}

.demo-answer button {
  padding: 0;
  color: var(--purple-dark);
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
}

.subscription-modal {
  text-align: center;
}

.success-mark {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  place-items: center;
  color: #477e51;
  border-radius: 50%;
  background: #e1f5e5;
}

.success-mark svg {
  width: 41px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.subscription-modal .section-kicker {
  justify-content: center;
  margin-bottom: 10px;
}

.subscription-preview {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  margin: 24px 0 15px;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.subscription-preview > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.subscription-preview b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-preview small {
  color: var(--soft-muted);
  font-size: 9px;
}

.subscription-preview em {
  padding: 5px 7px;
  color: #39734a;
  border-radius: 7px;
  background: #e3f5e7;
  font-size: 8px;
  font-style: normal;
}

.telegram-button-icon {
  fill: currentColor !important;
  stroke: none !important;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 290px;
  padding: 12px;
  visibility: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 48px rgba(20, 22, 27, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #3d7f52;
  border-radius: 10px;
  background: #e1f5e5;
  font-weight: 800;
}

.toast > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toast b {
  font-size: 11px;
}

.toast small {
  color: var(--soft-muted);
  font-size: 9px;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 70px;
  }

  .hero-copy {
    max-width: 800px;
    text-align: center;
    margin-inline: auto;
  }

  .eyebrow,
  .hero-points {
    justify-content: center;
  }

  .hero h1,
  .hero-lead {
    margin-inline: auto;
  }

  .hero-tool {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .platform-row {
    flex-direction: column;
  }

  .platform-list {
    justify-content: center;
  }

  .telegram-card {
    grid-template-columns: 1fr 0.78fr;
  }

  .telegram-copy {
    padding: 55px 42px;
  }

  .phone {
    width: 88%;
  }

  .feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 820px) {
  .section-shell {
    width: min(calc(100% - 32px), var(--section-width));
  }

  .feed-page {
    width: 100%;
    padding: 28px 16px 64px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 68px;
    padding-inline: 16px;
  }

  #top {
    scroll-margin-top: 72px;
  }

  .desktop-nav,
  .header-actions .button {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 0;
    padding-block: 54px 50px;
  }

  .hero h1 {
    font-size: clamp(47px, 11vw, 68px);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p:last-child {
    margin-top: 22px;
  }

  .feature-card-large,
  .feature-card-wide {
    grid-template-columns: 1fr;
  }

  .feature-card-large {
    min-height: 600px;
  }

  .feature-card-wide {
    min-height: 540px;
  }

  .digest-stack {
    align-self: end;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 24px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-grid article:last-child {
    border-bottom: 0;
  }

  .workflow-grid article > span {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .workflow-icon {
    grid-row: 1 / 3;
    margin: 0;
  }

  .workflow-grid h3 {
    align-self: end;
  }

  .telegram-card {
    grid-template-columns: 1fr;
  }

  .phone-wrap {
    min-height: 590px;
  }

  .phone {
    width: min(330px, 80%);
  }

  .final-cta {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    display: none;
  }

  .result-head {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .result-player {
    padding-inline: 30px;
  }

  .result-pane[data-result-pane="summary"] {
    grid-template-columns: 1fr;
  }

  .result-side {
    grid-template-columns: 1fr 1fr;
  }

  .result-side .button {
    grid-column: 1 / -1;
  }

  .feed-page-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feed-onboarding {
    align-items: start;
  }

  .feed-onboarding {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .feed-onboarding .button {
    grid-column: 1 / -1;
  }

  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-card-actions {
    max-height: 40px;
    margin-top: 12px;
    opacity: 1;
  }

  .account-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .feed-page {
    width: 100%;
    padding: 24px 12px 52px;
  }

  .hero-glow-one {
    left: -16px;
  }

  .hero-glow-two {
    right: -16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .beta-label {
    display: none;
  }

  .hero {
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(43px, 13.5vw, 58px);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 16px;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-tool {
    padding: 9px 16px 18px;
    border-radius: 23px;
  }

  .tool-topline {
    margin-bottom: 16px;
  }

  .tool-tabs {
    gap: 16px;
  }

  .tool-tab {
    font-size: 12px;
  }

  .demo-pill {
    display: none;
  }

  .url-field {
    grid-template-columns: 22px minmax(0, 1fr);
    padding-right: 12px;
  }

  .paste-button {
    grid-column: 1 / -1;
    height: 30px;
    margin: -2px 0 8px;
  }

  .url-field:has(.paste-button) {
    height: auto;
    min-height: 78px;
    padding-top: 10px;
  }

  .url-field input {
    height: 40px;
  }

  .format-options {
    grid-template-columns: 1fr;
  }

  .included-results {
    grid-template-columns: 1fr;
  }

  .included-results > span {
    min-height: 56px;
  }

  .format-card {
    min-height: 61px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .platform-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 18px;
  }

  .possibilities,
  .workflow,
  .telegram-section {
    padding-block: 82px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .telegram-copy h2,
  .final-cta h2 {
    font-size: 39px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    grid-column: auto;
  }

  .feature-card {
    min-height: 380px;
    padding: 24px;
  }

  .feature-card-large {
    min-height: 590px;
  }

  .feature-card-wide {
    min-height: 520px;
  }

  .workflow-grid article {
    grid-template-columns: 60px 1fr;
    column-gap: 18px;
    padding: 24px 18px;
  }

  .workflow-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .workflow-icon svg {
    width: 27px;
  }

  .telegram-copy {
    padding: 45px 26px;
  }

  .phone-wrap {
    min-height: 560px;
  }

  .phone {
    width: min(330px, 90%);
  }

  .final-cta {
    padding-block: 70px;
  }

  .final-cta .button {
    width: 100%;
  }

  .site-footer > div {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .processing-modal,
  .subscription-modal {
    padding: 45px 22px 25px;
    border-radius: 22px;
  }

  .processing-steps {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .result-backdrop {
    padding-block: 10px;
  }

  .result-modal {
    border-radius: 20px;
  }

  .result-head {
    grid-template-columns: 1fr;
    padding: 20px 55px 20px 20px;
  }

  .result-player {
    padding: 0 20px 20px;
  }

  .result-player-topline {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .result-player-actions {
    justify-content: start;
  }

  .result-cover {
    min-height: 180px;
  }

  .result-meta h2 {
    font-size: 22px;
  }

  .result-title-row {
    display: block;
  }

  .result-source-link {
    width: 27px;
  }

  .history-page {
    width: min(calc(100% - 32px), var(--section-width));
    padding-block: 28px 64px;
  }

  .history-page-panel {
    padding: 28px 18px 24px;
    border-radius: 22px;
  }

  .history-back {
    margin-bottom: 24px;
  }

  .history-heading {
    padding-right: 34px;
    margin-bottom: 18px;
  }

  .history-heading h1 {
    font-size: 27px;
  }

  .history-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 11px;
  }

  .history-item-open {
    display: none;
  }

  .account-page {
    padding-block: 28px 64px;
  }

  .feed-page {
    padding: 28px 12px 64px;
  }

  .feed-page-heading {
    margin-bottom: 20px;
  }

  .feed-page-heading h1,
  .account-page-heading h1 {
    font-size: 39px;
  }

  .feed-page-heading p,
  .account-page-heading > p {
    font-size: 14px;
  }

  .feed-onboarding {
    gap: 12px;
    padding: 17px;
  }

  .feed-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .feed-grid {
    grid-template-columns: 1fr;
  }

  .feed-channel-form {
    grid-template-columns: 1fr;
  }

  .account-setting-card {
    padding: 18px;
  }

  .result-nav {
    gap: 18px;
    overflow-x: auto;
    padding-inline: 20px;
  }

  .result-nav button {
    flex: 0 0 auto;
  }

  .result-body {
    padding: 20px;
  }

  .outline-section-content {
    grid-template-columns: 1fr;
  }

  .outline-time {
    width: fit-content;
  }

  .result-side {
    grid-template-columns: 1fr;
  }

  .result-side .button {
    grid-column: auto;
  }

  .key-points li > div {
    padding-right: 0;
  }

  .key-points button {
    position: static;
    width: fit-content;
    margin-top: 7px;
  }

  .chapter-list button {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .chapter-list i {
    display: none;
  }

  .transcript-toolbar {
    flex-direction: column;
  }

  .transcript-toolbar > button {
    height: 38px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
