:root {
  --ink: #101c35;
  --muted: #60708e;
  --blue: #5667e8;
  --blue-deep: #4152d9;
  --mint: #5de6b7;
  --sky: #c9e9ff;
  --lavender: #e8e5ff;
  --surface: rgba(255, 255, 255, 0.72);
  --line: rgba(59, 79, 124, 0.14);
  --shadow: 0 24px 80px rgba(66, 93, 155, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.section-shell,
.site-header,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(74, 91, 221, 0.22);
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: #50617e;
  font-weight: 600;
}

nav a,
.footer-links a {
  transition: color 160ms ease;
}

nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--blue);
}

.header-cta {
  justify-self: end;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(47, 66, 110, 0.08);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 58px;
  align-items: center;
  padding-block: 70px 92px;
}

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

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-deep);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(93, 230, 183, 0.16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(66px, 8vw, 106px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 820;
}

h1 span {
  color: var(--blue);
}

.hero-lead {
  max-width: 550px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 21px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, #6172f0, #4859dd);
  box-shadow: 0 14px 34px rgba(73, 89, 221, 0.28);
}

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

.button-muted {
  color: #70809a;
  background: rgba(235, 240, 249, 0.78);
  border: 1px solid rgba(89, 104, 142, 0.08);
  cursor: default;
}

.micro-copy {
  margin: 17px 0 0;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}

.hero-visual {
  min-width: 0;
  position: relative;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.ambient-orb-one {
  width: 520px;
  height: 520px;
  inset: -100px auto auto -30px;
  background: radial-gradient(circle, rgba(171, 224, 255, 0.9), rgba(201, 233, 255, 0));
}

.ambient-orb-two {
  width: 420px;
  height: 420px;
  right: -70px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(205, 196, 255, 0.78), rgba(232, 229, 255, 0));
}

.browser-frame {
  position: relative;
  min-height: 505px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow), inset 0 1px 0 white;
  backdrop-filter: blur(28px);
}

.browser-bar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(64, 85, 132, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.browser-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd4e3;
}

.browser-address {
  margin-left: 13px;
  flex: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(230, 237, 248, 0.82);
  color: #8795ab;
  font-size: 10px;
}

.browser-body {
  min-height: 447px;
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  padding: 34px;
}

.reading-copy {
  align-self: stretch;
  padding: 58px 8px 0 0;
}

.label {
  display: block;
  margin-bottom: 15px;
  color: #8794aa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.fake-line {
  height: 12px;
  margin: 15px 0;
  border-radius: 999px;
  background: #cbd5e6;
}

.fake-line.long { width: 92%; }
.fake-line.medium { width: 75%; }
.fake-line.short { width: 54%; }

.blocked-pill {
  display: inline-flex;
  margin-top: 15px;
  padding: 8px 11px;
  border-radius: 10px;
  color: #78869e;
  background: rgba(224, 230, 241, 0.78);
  font-size: 10px;
  font-weight: 700;
  text-decoration: line-through;
}

.flow-line {
  width: 78px;
  height: 2px;
  position: absolute;
  left: 31%;
  top: 51%;
  background: linear-gradient(90deg, transparent, #7c8cf1);
}

.flow-line::after {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  right: 0;
  top: 50%;
  border-top: 2px solid #7c8cf1;
  border-right: 2px solid #7c8cf1;
  transform: translateY(-50%) rotate(45deg);
}

.extension-card {
  min-width: 0;
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  background: rgba(249, 251, 255, 0.82);
  box-shadow: 0 20px 56px rgba(61, 82, 134, 0.16);
  backdrop-filter: blur(20px);
}

.extension-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.extension-top img {
  border-radius: 13px;
}

.extension-top strong,
.extension-top span {
  display: block;
}

.extension-top strong {
  font-size: 18px;
  letter-spacing: -0.035em;
}

.extension-top span {
  margin-top: 3px;
  color: #74829a;
  font-size: 10px;
}

.selection-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(238, 240, 255, 0.95), rgba(240, 255, 250, 0.88));
}

.selection-card .label {
  margin-bottom: 7px;
  color: var(--blue);
}

.selection-card strong {
  font-size: 15px;
}

.selection-card p {
  margin: 5px 0 0;
  color: #6f7d93;
  font-size: 10px;
}

.extension-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.extension-tags span {
  padding: 9px 7px;
  border-radius: 999px;
  text-align: center;
  color: #16866c;
  background: #eafaf4;
  font-size: 9px;
  font-weight: 750;
}

.extension-tags span + span {
  color: #4e5cdb;
  background: #eef0ff;
}

.active-control {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #52627d;
  font-size: 10px;
  font-weight: 700;
}

.switch-on {
  width: 34px;
  height: 20px;
  position: relative;
  border-radius: 999px;
  background: var(--blue);
}

.switch-on::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  right: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(21, 32, 68, 0.24);
}

.trust-strip {
  max-width: 1180px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.trust-strip div {
  padding: 25px 28px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.trust-strip span {
  color: #77869e;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-block {
  padding-block: 128px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 54px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 810;
}

.section-heading > p:last-child,
.demo-copy > p,
.limits > p,
.final-cta > div > p:last-child,
.legal-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.015em;
}

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

.step-card,
.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 48px rgba(52, 76, 128, 0.07);
}

.step-card > span {
  display: block;
  margin-bottom: 60px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.step-card h3,
.feature-card h3 {
  margin-bottom: 11px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.step-card p,
.feature-card p {
  margin-bottom: 0;
  color: #677690;
  font-size: 14px;
  line-height: 1.65;
}

.showcase {
  background:
    radial-gradient(circle at 20% 15%, rgba(190, 229, 255, 0.88), transparent 38%),
    radial-gradient(circle at 85% 80%, rgba(219, 211, 255, 0.82), transparent 38%),
    #eef7ff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.showcase-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 24px 68px rgba(62, 88, 145, 0.12);
}

.showcase-card img {
  width: 100%;
  display: block;
}

.showcase-card figcaption {
  padding: 18px 22px 21px;
  color: #687791;
  font-size: 13px;
  line-height: 1.5;
}

.showcase-card figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
}

.showcase-large {
  grid-column: 1 / -1;
}

.demo-layout {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  align-items: center;
  gap: 64px;
}

.demo-copy h2 {
  font-size: clamp(40px, 5vw, 62px);
}

.check-list {
  margin: 28px 0 26px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  color: #4f607d;
  font-size: 14px;
  font-weight: 650;
}

.check-list li::before {
  content: "\2713";
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 9px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0c8b68;
  background: #e3faf2;
  font-size: 12px;
  font-weight: 900;
}

.text-link {
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 800;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 10px solid white;
  border-radius: 27px;
  background: #dce9f7 url("textflow-demo.png") center / cover;
  box-shadow: var(--shadow);
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
}

.feature-section {
  background: #101b34;
  color: white;
}

.feature-section .eyebrow {
  color: #8ba0ff;
}

.feature-section .section-heading {
  max-width: 760px;
}

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

.feature-card {
  min-height: 250px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.feature-card p {
  color: #a9b6cc;
}

.feature-check {
  width: 34px;
  height: 34px;
  margin-bottom: 55px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #6ef0c4;
  background: rgba(93, 230, 183, 0.12);
  font-weight: 900;
}

.limits {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: end;
}

.limits h2 {
  margin-bottom: 0;
}

.limits > p {
  margin-bottom: 5px;
}

.faq {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 760;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  color: var(--blue);
  font-size: 22px;
  font-weight: 400;
  transition: transform 180ms ease;
}

details[open] summary span {
  transform: rotate(45deg);
}

details p {
  max-width: 660px;
  margin: -5px 48px 24px 0;
  color: #66758e;
  font-size: 14px;
  line-height: 1.7;
}

.final-cta {
  margin-bottom: 112px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 32px;
  background:
    radial-gradient(circle at 10% 0, rgba(168, 222, 255, 0.88), transparent 48%),
    radial-gradient(circle at 90% 100%, rgba(210, 201, 255, 0.75), transparent 42%),
    #ecf7ff;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(40px, 5vw, 64px);
}

.final-cta > div:first-child {
  max-width: 650px;
}

footer {
  padding: 48px 0 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.footer-main p,
.copyright {
  margin: 15px 0 0;
  color: #8290a5;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: start;
  color: #576680;
  font-size: 13px;
  font-weight: 650;
}

.copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}

.legal-page {
  min-height: 100vh;
}

.legal-hero {
  max-width: 820px;
  padding-block: 110px 68px;
}

.legal-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 84px);
}

.legal-hero h1 span {
  display: block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-content {
  max-width: 820px;
  padding-bottom: 120px;
}

.legal-card {
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 42px rgba(52, 76, 128, 0.06);
}

.legal-card h2 {
  margin-bottom: 13px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.legal-card h3 {
  margin: 23px 0 9px;
  font-size: 16px;
}

.legal-card p,
.legal-card li {
  color: #61708a;
  font-size: 14px;
  line-height: 1.75;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul,
.legal-card ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-card a,
.support-email {
  color: var(--blue-deep);
  font-weight: 760;
}

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

.support-grid .legal-card {
  margin-bottom: 0;
}

.support-note {
  margin-top: 18px;
  padding: 24px;
  border-radius: 20px;
  background: #eef3ff;
  color: #4c5f87;
  font-size: 14px;
  line-height: 1.7;
}

:focus-visible {
  outline: 3px solid rgba(86, 103, 232, 0.34);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .browser-frame {
    max-width: 720px;
    margin-inline: auto;
  }

  .step-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-layout,
  .limits,
  .faq {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .final-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .section-shell,
  .site-header,
  footer,
  .trust-strip {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 70px;
  }

  .header-cta {
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    gap: 48px;
    padding-block: 62px 72px;
  }

  h1 {
    font-size: clamp(58px, 20vw, 80px);
  }

  .hero-actions,
  .final-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .browser-frame {
    min-height: 460px;
    border-radius: 23px;
  }

  .browser-body {
    min-height: 402px;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .reading-copy,
  .flow-line {
    display: none;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .section-block {
    padding-block: 88px;
  }

  .step-grid,
  .feature-grid,
  .showcase-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .showcase-large {
    grid-column: auto;
  }

  .feature-card {
    min-height: 230px;
  }

  .final-cta {
    margin-bottom: 74px;
    padding: 36px 24px;
  }

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

  .copyright {
    grid-column: auto;
  }

  .legal-hero {
    padding-block: 74px 48px;
  }

  .legal-content {
    padding-bottom: 80px;
  }

  .legal-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
