:root {
  --ink: #101418;
  --ink-soft: #1f2a32;
  --paper: #fbfaf7;
  --muted: #69747c;
  --line: #dbe2e3;
  --white: #ffffff;
  --green: #24b26b;
  --teal: #0e7d75;
  --blue: #2a6fcb;
  --coral: #e65f43;
  --yellow: #ffc857;
  --shadow: 0 24px 70px rgba(16, 20, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  font-weight: 900;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: inset -10px -10px 0 rgba(36, 178, 107, 0.25);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.header-cta,
.primary-button,
.secondary-button,
.generate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.primary-button,
.generate-button {
  color: var(--white);
  background: var(--ink);
}

.secondary-button {
  background: transparent;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.hero-section {
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 56px) 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.7vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 36px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.hero-stats dt {
  font-size: 1.7rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.product-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 178, 107, 0.12), transparent 36%),
    linear-gradient(225deg, rgba(42, 111, 203, 0.14), transparent 44%), var(--white);
  box-shadow: var(--shadow);
}

.panel-top,
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-top p,
.panel-top strong {
  display: block;
  margin: 0;
}

.panel-top p,
.preview-head small,
.composer-card label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill {
  padding: 7px 10px;
  color: #073b25;
  font-size: 0.8rem;
  font-weight: 900;
  background: rgba(36, 178, 107, 0.18);
  border-radius: 999px;
}

.composer-card,
.preview-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.composer-card textarea {
  width: 100%;
  min-height: 116px;
  margin-top: 8px;
  padding: 12px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.generate-button {
  width: 100%;
  margin-top: 12px;
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.tab {
  min-height: 38px;
  padding: 0 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.tab.is-active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.preview-head span {
  font-weight: 900;
}

.preview-card p {
  margin: 16px 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.hashtag-row,
.addon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hashtag-row span,
.addon-list span {
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
  background: #edf4f1;
  border-radius: 999px;
}

.platform-strip {
  display: flex;
  gap: 10px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 64px;
  overflow-x: auto;
}

.platform-strip span {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--ink-soft);
  font-weight: 900;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section,
.workflow-section,
.pricing-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.05;
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.17rem;
}

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

.feature-grid article,
.price-card,
.note-card,
.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-grid article {
  min-height: 226px;
  padding: 22px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  font-weight: 900;
  background: var(--coral);
  border-radius: 8px;
}

.feature-grid p,
.workflow-copy p,
.price-card p,
.note-card p,
.faq-grid p {
  color: var(--muted);
  line-height: 1.62;
}

.workflow-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}

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

.workflow-list div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.workflow-list strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
}

.workflow-list span {
  font-weight: 900;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 18px;
}

.price-card,
.note-card {
  padding: clamp(22px, 4vw, 38px);
}

.price-line {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 24px 0;
}

.price-line strong {
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.85;
}

.price-line span {
  color: var(--muted);
  font-weight: 800;
}

.price-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.price-card li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--green);
  font-weight: 900;
}

.note-card {
  background: var(--ink);
  color: var(--white);
}

.note-card p {
  color: #c8d0d4;
}

.note-card .addon-list span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

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

.faq-grid details {
  padding: 20px;
}

.faq-grid summary {
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--ink);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 4px;
  color: #c8d0d4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #c8d0d4;
}

.legal-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 56px) clamp(58px, 8vw, 100px);
}

.legal-header,
.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.legal-header nav,
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-header nav a[aria-current="page"],
.legal-header nav a:hover,
.legal-footer a:hover {
  color: var(--teal);
}

.legal-breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-breadcrumbs a:hover {
  color: var(--teal);
}

.legal-intro {
  max-width: 940px;
}

.legal-intro h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.legal-summary {
  max-width: 850px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 0;
}

.legal-meta div {
  min-width: 170px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-meta dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.legal-notice {
  max-width: 940px;
  margin: 32px 0 56px;
  padding: 18px 20px;
  color: var(--ink-soft);
  line-height: 1.65;
  border-left: 5px solid var(--yellow);
  background: var(--white);
}

.legal-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.refund-notice {
  border-left-color: var(--coral);
  background: #fff4f2;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 104px;
  display: grid;
  max-height: calc(100vh - 130px);
  padding-right: 14px;
  overflow-y: auto;
}

.legal-toc strong {
  margin-bottom: 10px;
}

.legal-toc a {
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.legal-toc a:hover {
  color: var(--teal);
}

.legal-content section {
  scroll-margin-top: 110px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.legal-content section + section {
  padding-top: 38px;
}

.legal-content h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal-content p {
  margin: 16px 0 0;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-content a,
.legal-notice a,
.legal-meta a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
}

.legal-content th,
.legal-content td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal-content th {
  color: var(--ink);
  font-size: 0.82rem;
  background: #edf4f1;
}

.legal-content td {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-content tr:last-child td {
  border-bottom: 0;
}

.legal-footer {
  color: #c8d0d4;
  border: 0;
  background: var(--ink);
}

.legal-footer nav {
  color: #c8d0d4;
}

@media (max-width: 820px) {
  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header {
    position: static;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .legal-toc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.nav-open .main-nav {
    position: absolute;
    top: 77px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .main-nav a {
    padding: 14px;
  }

  .hero-grid,
  .workflow-section,
  .pricing-section {
    grid-template-columns: 1fr;
  }

  .product-panel {
    max-width: 680px;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-stats,
  .feature-grid,
  .faq-grid,
  .platform-tabs {
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
