:root {
  --primary: #0b2a4a;
  --primary-dark: #071d33;
  --primary-light: #174f7a;
  --accent: #ff3366;
  --accent-dark: #dc2857;
  --accent-soft: #fff0f4;
  --blue: #2f7edb;
  --blue-soft: #eaf3fc;
  --text: #17212b;
  --secondary: #5d6875;
  --border: #dce3ea;
  --background: #ffffff;
  --soft: #f6f8fa;
  --panel: #f4f4f5;
  --success: #27845a;
  --shadow: 0 12px 32px rgba(15, 35, 55, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(47, 126, 219, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 28px rgba(15, 35, 55, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--primary);
  font-weight: 700;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.logo strong {
  color: var(--accent);
  font-size: 1.05rem;
}

.logo small {
  display: block;
  margin-top: -5px;
  color: var(--secondary);
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.desktop-nav a,
.footer nav a {
  transition: color 0.18s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-link {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 22px rgba(255, 51, 102, 0.18);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 16px 26px rgba(255, 51, 102, 0.24);
}

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

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

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

.mobile-menu {
  position: fixed;
  inset: 72px 0 auto 0;
  z-index: 19;
  display: none;
  padding: 18px 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.mobile-menu a {
  display: block;
  padding: 13px 0;
  font-weight: 600;
}

.mobile-menu .btn {
  margin-top: 10px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  min-height: 780px;
  padding: 128px clamp(20px, 6vw, 88px) 80px;
  background:
    linear-gradient(120deg, #fff 0%, #f7f9fb 55%, #edf3f8 100%),
    linear-gradient(90deg, rgba(11, 42, 74, 0.05) 1px, transparent 1px);
  overflow: hidden;
}

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

.badge,
.label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: clamp(2.55rem, 5vw, 4rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  font-weight: 700;
}

.hero-text {
  margin-bottom: 30px;
  color: var(--secondary);
  font-size: 1.04rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-note {
  margin: 14px 0 0;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-panel {
  min-width: 0;
}

.app-frame {
  display: grid;
  grid-template-columns: 178px 1fr;
  min-height: 504px;
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 35, 55, 0.14);
  overflow: hidden;
}

.mock-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px 8px;
}

.mock-brand {
  padding: 0 10px 18px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.mock-brand span {
  display: block;
  margin-top: 2px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 400;
}

.mock-sidebar nav {
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.mock-sidebar nav span {
  padding: 10px 8px;
  color: #334155;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.mock-sidebar nav span.active {
  color: var(--primary-dark);
  background: #f1f2f4;
}

.mock-main {
  padding: 22px;
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.mock-topbar span {
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 700;
}

.mock-topbar button {
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.customer-card,
.activity-box,
.mail-mock,
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.customer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  margin-bottom: 16px;
}

small {
  color: var(--secondary);
}

.customer-card small,
.detail-grid small,
.mail-controls small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.customer-card strong {
  color: var(--primary-dark);
  font-size: 1.18rem;
}

.status {
  min-width: max-content;
  padding: 6px 12px;
  color: var(--success);
  background: #eaf7f1;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.detail-grid p {
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.activity-box {
  padding: 18px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.activity-header span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.activity-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--secondary);
  font-size: 0.88rem;
}

.activity-box b {
  color: var(--primary);
}

.strip,
.section,
.final-cta,
.footer {
  padding-inline: clamp(20px, 6vw, 88px);
}

.strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: var(--primary-dark);
  color: #fff;
}

.strip h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-list li {
  padding: 9px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 600;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section:nth-of-type(even) {
  background: var(--soft);
}

.section-heading {
  max-width: 830px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.final-cta h2 {
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.32;
  font-weight: 700;
}

.section-heading p:not(.label) {
  color: var(--secondary);
}

.pain-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.card,
.feature-card,
.usecase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 35, 55, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.feature-card:hover,
.usecase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 51, 102, 0.26);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.card-icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
}

.card h3,
.feature-card h3,
.usecase-card h3,
.benefit-list h3 {
  color: var(--primary-dark);
  line-height: 1.45;
  font-weight: 700;
}

.card h3 {
  min-height: 78px;
  font-size: 1.08rem;
}

.card p,
.feature-card p,
.usecase-card p,
.benefit-list p {
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 0.94rem;
}

.merge-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.source-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.source-stack span {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--secondary);
  text-align: center;
  font-weight: 700;
}

.merge-arrow {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
}

.hub-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hub-card h3 {
  margin: 14px 0;
  color: var(--primary-dark);
}

.hub-logo {
  width: 48px;
  height: 48px;
  display: block;
}

.hub-card ul,
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-card li,
.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--secondary);
}

.hub-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

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

.feature-card,
.usecase-card {
  padding: 24px;
}

.feature-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  border-radius: 10px;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-flow li {
  position: relative;
  padding: 24px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 39px;
  right: -12px;
  width: 12px;
  height: 1px;
  background: var(--border);
}

.step-flow span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.step-flow h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 1.02rem;
}

.step-flow p {
  margin: 0;
  color: var(--secondary);
  font-size: 0.88rem;
}

.ai-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 54px;
  align-items: center;
  background: var(--primary-dark) !important;
  color: #fff;
}

.ai-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.32;
}

.ai-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.ai-copy .label {
  color: #ff9db7;
}

.ai-copy .check-list li {
  color: rgba(255, 255, 255, 0.85);
}

.ai-feature-list {
  gap: 14px;
}

.ai-feature-list li {
  display: grid;
  gap: 3px;
}

.ai-feature-list strong {
  color: #fff;
  font-size: 0.98rem;
}

.ai-feature-list span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.mail-mock {
  padding: 24px;
}

.mail-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mail-controls p {
  margin: 0;
  padding: 14px;
  background: var(--soft);
  border-radius: 10px;
  color: var(--primary-dark);
  font-weight: 700;
}

.mail-result {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.mail-result strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
}

.mail-result p {
  margin: 0;
  color: var(--secondary);
}

.usecase-grid {
  grid-template-columns: repeat(3, 1fr);
}

.benefits {
  background: #fff !important;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.benefit-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.benefit-list span {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.benefit-list h3 {
  margin-bottom: 8px;
}

.benefit-list p {
  grid-column: 2;
}

.pricing {
  background: var(--soft) !important;
}

.pricing-compare {
  max-width: 1040px;
  margin: 0 auto;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 35, 55, 0.05);
}

.pricing-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  border-right: 0;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table thead th {
  background: #f1f6fb;
  font-weight: 700;
}

.pricing-table thead th:first-child,
.pricing-table tbody th {
  width: 30%;
}

.pricing-table thead span {
  display: block;
  margin-bottom: 2px;
}

.pricing-table thead strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.pricing-table tbody th {
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.pricing-limit-note {
  margin-top: 18px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 35, 55, 0.05);
}

.pricing-limit-note h3 {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 1rem;
}

.pricing-limit-note p {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.94rem;
}

.pricing-limit-note p:last-child {
  margin-bottom: 0;
}

.pricing-ai-note {
  max-width: 760px;
  margin: 18px auto 0;
  padding: 16px 18px;
  color: var(--primary-dark) !important;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  text-align: left;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 35, 55, 0.05);
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 18px 42px rgba(255, 51, 102, 0.12);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 18px;
  padding: 5px 12px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.price-card h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 1.18rem;
  line-height: 1.45;
}

.plan-note {
  min-height: 52px;
  margin-bottom: 18px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.price {
  margin-bottom: 22px;
  color: var(--primary-dark);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  font-weight: 700;
}

.price span {
  margin-left: 4px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.price-card li {
  position: relative;
  padding-left: 20px;
  color: var(--secondary);
  font-size: 0.9rem;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.onboarding-steps span {
  padding: 18px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
}

.accordion {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.accordion details + details {
  border-top: 1px solid var(--border);
}

.accordion summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--primary-dark);
  font-weight: 700;
}

.accordion p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--secondary);
}

.final-cta {
  padding-top: 88px;
  padding-bottom: 88px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 29, 51, 0.98), rgba(11, 42, 74, 0.96)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
  text-align: center;
}

.final-cta > div {
  max-width: 860px;
  margin: 0 auto;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p,
.final-cta small {
  color: rgba(255, 255, 255, 0.76);
}

.final-cta .hero-buttons {
  justify-content: center;
  margin: 28px 0 12px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--success);
  font-weight: 700;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  padding-top: 42px;
  padding-bottom: 32px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--secondary);
}

.footer .operator {
  margin-top: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
  max-width: 560px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer small {
  grid-column: 1 / -1;
  color: #8a96a3;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background: var(--soft);
}

.legal-hero {
  padding: 132px clamp(20px, 6vw, 88px) 54px;
  background: linear-gradient(120deg, #fff 0%, #f7f9fb 58%, #edf3f8 100%);
  border-bottom: 1px solid var(--border);
}

.legal-hero-inner {
  max-width: 920px;
  margin: 0 auto;
}

.legal-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.legal-hero p {
  max-width: 760px;
  color: var(--secondary);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 20px 88px;
}

.legal-card {
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.legal-card section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.legal-card h2 {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 1.35rem;
  line-height: 1.45;
}

.legal-card p,
.legal-card li {
  color: var(--secondary);
}

.legal-card ul,
.legal-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.3em;
}

.legal-meta {
  margin: 0 0 28px;
  color: var(--secondary);
  font-size: 0.92rem;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 180px;
  color: var(--primary-dark);
  font-weight: 700;
}

.company-table td {
  color: var(--secondary);
}

.company-table a {
  color: var(--accent);
  font-weight: 700;
}

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

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

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

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

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  body.menu-open .mobile-menu {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .pain-grid,
  .pricing-grid,
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-flow,
  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .step-flow li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .strip,
  .merge-diagram,
  .ai-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .pricing-grid,
  .benefit-list {
    grid-template-columns: 1fr;
  }

  .mail-controls {
    grid-template-columns: 1fr;
  }

  .footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
    padding-inline: 20px;
  }

  .mobile-menu {
    top: 64px;
  }

  .hero {
    padding: 104px 20px 64px;
  }

  h1 {
    font-size: 2.35rem;
  }

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

  .btn {
    width: 100%;
  }

  .app-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mock-sidebar {
    display: none;
  }

  .mock-main {
    padding: 14px;
  }

  .mock-topbar {
    align-items: flex-start;
    gap: 10px;
  }

  .customer-card {
    display: grid;
  }

  .detail-grid,
  .pain-grid,
  .pricing-grid,
  .source-stack,
  .usecase-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .strip,
  .section,
  .final-cta,
  .footer {
    padding-inline: 20px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .merge-diagram {
    gap: 18px;
  }

  .merge-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .card h3 {
    min-height: 0;
  }

  .benefit-list article {
    grid-template-columns: 1fr;
  }

  .benefit-list p {
    grid-column: auto;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .company-table td {
    padding-top: 0;
  }
}
