/* ===== TOKENS ===== */
:root {
  --bg: #f8f9fa;
  --bg-alt: #f3f4f5;
  --surface: #ffffff;
  --line: #d7dee8;
  --line-soft: #e3e6ea;
  --text-dark: #18212b;
  --text-body: #191c1d;
  --text-soft: #525c69;
  --text-muted: #9aa3af;
  --blue: #1f5fbf;
  --blue-deep: #205caa;
  --red: #d94734;
  --red-alt: #c15b3d;
  --purple: #6b5aa6;
  --green: #2b7a58;
  --shadow-card: 0 20px 50px rgba(19, 43, 77, 0.08);
  --shadow-soft: 0 28px 80px rgba(17, 52, 103, 0.1);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --max-w: 1184px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, .section-lead, .hero-body { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== LAYOUT HELPERS ===== */
.page-shell { overflow: clip; }
.section-inner {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: 48px;
}

/* ===== ANIMATIONS ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-reveal] { animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
[data-reveal="2"] { animation-delay: 80ms; }
[data-reveal="3"] { animation-delay: 160ms; }
[data-reveal="4"] { animation-delay: 240ms; }
[data-reveal="5"] { animation-delay: 320ms; }
[data-reveal="6"] { animation-delay: 400ms; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 48px;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215,219,224,0.55);
}

.nav-toggle {
  display: none;
}

.nav-overlay {
  display: contents;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1d3158;
}
.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px;
  background: #f3f6fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  justify-self: center;
}
.site-nav a {
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1d3158;
  transition: color 160ms;
}
.site-nav a:hover { color: var(--blue); }
.header-actions {
  display: flex;
  gap: 10px;
  justify-self: end;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #fff;
  background: linear-gradient(-104deg, #ec3d30, #1170ee);
  box-shadow: 0 12px 28px rgba(31,95,191,0.22);
}
.button-primary:hover { box-shadow: 0 16px 36px rgba(31,95,191,0.32); }
.button-secondary {
  color: var(--text-body);
  background: #fff;
  border-color: #c9d0da;
}
.button-ghost {
  color: var(--text-body);
  background: rgba(255,255,255,0.8);
  border-color: var(--line);
}
.button-large { min-height: 56px; padding-inline: 32px; font-size: 1rem; }
.button-blue {
  color: #fff;
  background: #2563eb;
  border-radius: var(--radius-lg);
  padding: 16px 40px;
}
.button-cta-outline {
  color: var(--text-body);
  background: transparent;
  border: 2px solid var(--text-body);
}

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(80deg, var(--blue) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section-heading {
  display: grid;
  gap: 16px;
  padding-block: 120px 0;
}
.section-heading h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #191c1d;
}
.section-lead {
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-soft);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 38% 20%, rgba(236,61,48,0.10) 0, transparent 26%),
    radial-gradient(circle at 68% 14%, rgba(17,112,238,0.10) 0, transparent 24%),
    var(--bg);
  padding-bottom: 96px;
}
.hero-glow {
  position: absolute;
  width: 568px;
  height: 568px;
  border-radius: 50%;
  filter: blur(92px);
  opacity: 0.7;
  pointer-events: none;
}
.hero-glow-red {
  top: 80px; left: 24%;
  background: radial-gradient(circle, rgba(236,61,48,0.16) 0, transparent 70%);
}
.hero-glow-blue {
  top: 40px; right: 14%;
  background: radial-gradient(circle, rgba(17,112,238,0.14) 0, transparent 70%);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 48px 0;
  gap: 24px;
}

/* Eyebrow pill */
.eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e2e7ee;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(16,33,61,0.07);
  font-size: 0.95rem;
  font-weight: 700;
}
.eyebrow-lead { color: #2a313b; }
.eyebrow-word { color: #205caa; }
.eyebrow-sep  { color: #9aa3af; margin: 0 1px; }
.eyebrow-ppt  { color: #c15b3d; }

/* Hero headline */
.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-headline-bottom {
  display: inline-block;
  white-space: normal;
  word-break: keep-all; /* auto-phrase fallback 1 */
  word-break: auto-phrase;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #18212b;
  max-width: none;
}
.headline-gradient {
  background: linear-gradient(-104deg, #205caa, #c15b3d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-body {
  max-width: 44rem;
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--text-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-visual {
  width: 100%;
  max-width: 768px;
  margin-top: 16px;
}
.hero-visual img { width: 100%; border-radius: 0; }

/* ===== FLOW STRIP ===== */
.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 980px);
  margin: 48px auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid #c9d7e6;
  box-shadow: 0 10px 28px rgba(141,165,194,0.15);
}
.flow-item {
  padding: 18px 22px;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-item + .flow-item { border-left: 1px solid rgba(201,215,230,0.6); }
.flow-item span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.flow-item p {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.42;
  color: #14202b;
}
.flow-item-blue  { background: linear-gradient(-104deg, #f7fafd, #eaf1f8); }
.flow-item-blue span  { color: #245fb2; }
.flow-item-red   { background: linear-gradient(-102deg, #fcf7f5, #f7e9e4); }
.flow-item-red span   { color: var(--red); }
.flow-item-purple{ background: linear-gradient(-100deg, #f7f5fd, #eae4f7); }
.flow-item-purple span{ color: var(--purple); }
.flow-item-green {
  background: linear-gradient(-100deg, #f7fbf8, #eaf4ee);
  padding: 18px 28px 18px 34px;
  align-items: center;
}
.flow-item-green span {
  width: 183px;
  font-size: 14px;
  letter-spacing: 0.8px;
  color: var(--green);
}
.flow-item-green p { width: 100%; font-size: 14px; }

/* ===== CONCEPT ===== */
.concept { background: var(--bg-alt); padding: 124px 0 120px; text-align: left; }
.concept .section-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 56px; }
.concept .section-heading { padding-top: 0; display: flex; flex-direction: column; align-items: flex-start; }
.concept .section-heading h2 {
  max-width: 704px;
  font-size: clamp(2rem, 2.65vw, 34px);
  line-height: 1.3;
}
.concept-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; width: 100%; margin-top: 32px; }
.concept-point {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  background: transparent;
}
.concept-point span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background-image: linear-gradient(180deg, #1f5fbf 0%, #d94734 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.concept-point p { font-size: 0.95rem; font-weight: 700; color: #191c1d; }
.reference-visual {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.reference-visual figcaption {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(80deg, var(--blue) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.reference-visual-frame {
  width: min(100%, 820px);
  margin-inline: auto;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(215, 222, 232, 0.9);
  box-shadow: 0 18px 38px rgba(19, 43, 77, 0.08);
}
.reference-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197,198,204,0.3);
}

/* Process block */
.process-block {
  margin-top: 48px;
  padding: 38px 40px 42px;
  background: #fbfbfc;
  border: 1px solid rgba(217,221,227,0.3);
  border-radius: var(--radius-lg);
  text-align: left;
  width: 100%;
}
.process-block .section-label { 
  margin-bottom: 10px; 
}
.process-block h3 {
  max-width: 28ch;
  font-size: clamp(1.42rem, 2.15vw, 1.8rem);
  line-height: 1.26;
  letter-spacing: -0.03em;
  color: #191c1d;
  margin: 10px 0 28px;
}
.process-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.process-steps article {
  padding: 24px 22px;
  background: #fcfcfd;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-steps span {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(80deg, var(--blue) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.process-steps h4 { font-size: 1.1rem; line-height: 1.25; color: #191c1d; }
.process-steps p { font-size: 0.9rem; color: var(--text-soft); }

/* ===== FEATURES ===== */
.features { background: var(--bg); padding-block: 120px; }
.features .section-inner .section-heading { padding-block: 0 40px; }
.features .section-heading h2 {
  max-width: max-content;
}
.features .section-heading h2 span {
  display: block;
  white-space: nowrap;
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0,0.76fr) minmax(0,1.24fr);
  gap: 36px;
  align-items: center;
  padding-block: 20px;
}
.feature-row.reverse { grid-template-columns: minmax(0,1.24fr) minmax(0,0.76fr); }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-copy { padding-right: 16px; display: grid; gap: 12px; }
.feature-step {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(80deg, var(--blue) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.feature-copy h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #191c1d;
}
.feature-copy p { font-size: 1rem; line-height: 1.72; color: var(--text-soft); }
.feature-visual {
  padding: 18px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(215,222,232,0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-visual figcaption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.feature-visual img { width: 100%; border-radius: var(--radius-md); }

/* ===== SECURITY ===== */
.security { background: var(--bg); padding-block: 120px; }
.security .section-inner .section-heading { padding-block: 0 40px; }
.security .section-heading h2 { max-width: 22ch; }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.security-grid article {
  padding: 28px 24px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(215,222,232,0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 12px;
}
.security-grid span {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(80deg, var(--blue) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.security-grid h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; color: #191c1d; }
.security-grid p { font-size: 0.92rem; color: var(--text-soft); }
.security-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  margin-top: 24px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(215,222,232,0.9);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.security-strip article { padding: 24px 22px; }
.security-strip article + article { border-left: 1px solid rgba(215,222,232,0.75); }
.security-strip span {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(80deg, var(--blue) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.security-strip p { font-size: 0.875rem; line-height: 1.5; color: var(--text-soft); }

/* ===== TRUST ===== */

/* ===== TRUST ===== */
.trust { padding-block: 120px 96px; }
.origin-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,0.9fr);
  gap: 56px;
  align-items: center;
}
.origin-copy { display: grid; gap: 20px; }
.origin-copy h2 {
  font-size: clamp(2rem,3vw,2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #191c1d;
  background: transparent;
}
.trust .origin-copy { display: grid; gap: 20px; }
.trust .origin-copy p {
  font-size: 1rem;
  line-height: 1.7;
  color: #5d6674;
}
.origin-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}
.origin-logo-row img {
  width: 132px;
  height: 24px;
}
.origin-visual {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,
    linear-gradient(90deg, var(--blue), var(--red)) border-box;
  box-shadow: 0 18px 40px rgba(31,95,191,0.10), 0 6px 22px rgba(217,71,52,0.08);
}
.origin-visual img { width: 100%; display: block; }

/* ===== PRICING ===== */
.pricing { padding-block: 0 40px; }
.pricing-head {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0;
  padding-bottom: 32px;
}
.pricing-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #191c1d;
  background: transparent;
}
.pricing-head p { font-size: 1rem; line-height: 1.7; color: #5d6674; max-width: 50rem; margin-inline: auto; }
.price-visual {
  background: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.price-visual-inner {
  width: min(100%, 1184px);
  margin-inline: auto;
  padding: 64px 32px;
  display: grid;
  gap: 64px;
}
.price-visual-head { text-align: center; display: grid; gap: 16px; }
.price-visual-head h3 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #0f172a;
}
.price-visual-head p { font-size: 1.1rem; color: #475569; }

/* Pricing cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 384px));
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1216px;
  margin-inline: auto;
  align-items: stretch;
}
.plan-card {
  position: relative;
  width: 100%;
  min-height: 300px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  box-shadow: 0 2px 8.75px rgba(0,0,0,0.06), 0 4px 17.5px rgba(0,0,0,0.08);
}
.plan-card-featured {
  border: 2px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,
    linear-gradient(90deg, var(--blue), var(--red)) border-box;
  box-shadow: 0 10px 21.875px rgba(31,95,191,0.10), 0 20px 21.875px rgba(31,95,191,0.16);
}
.plan-name { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.plan-price {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.05em;
  color: #0f172a;
  margin-bottom: 12px;
}
.plan-price span { font-size: 1rem; font-weight: 400; color: #475569; letter-spacing: 0; margin-left: 6px; }
.plan-features {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-content: start;
}
.plan-features li {
  position: relative;
  min-height: 20px;
  padding-left: 32px;
  font-size: 0.875rem;
  line-height: 1.43;
  color: #0f172a;
}
.plan-features li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 10.25 8.25 13l6.25-6.25' stroke='%231F5FBF' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='9.125' stroke='%23BFDBFE' stroke-width='1.75'/%3E%3C/svg%3E");
}
.plan-card-paid .plan-features li:first-child {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
/* Comparison */
.comparison-section { display: grid; gap: 32px; padding-top: 32px; }
.comparison-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  text-align: center;
}
.comparison-table {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: 0 1px 1.75px rgba(0,0,0,0.08);
}
.comparison-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.comparison-table th,
.comparison-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; }
.comparison-table thead th { background: rgba(241,245,249,0.8); font-weight: 700; color: #0f172a; }
.comparison-table td { color: #475569; }
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* Enterprise */
.enterprise-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 68px 64px;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fbfdff, #f2f7fd);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 1.75px rgba(0,0,0,0.08);
}
.enterprise-banner::before {
  content: "";
  position: absolute;
  inset: 16px 0;
  background: linear-gradient(135deg, rgba(255,255,255,0), rgba(220,235,255,0.4), rgba(255,255,255,0));
  pointer-events: none;
}
.enterprise-banner h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: #0f172a; margin-bottom: 8px; }
.enterprise-banner p { font-size: 0.95rem; color: #475569; max-width: 40rem; }
.enterprise-banner .button-blue { flex-shrink: 0; }

/* ===== CTA ===== */
.final-cta { padding-block: 128px 104px; background: var(--bg); }
.cta-head {
  text-align: center;
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.cta-cap {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(80deg, var(--blue) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cta-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #191c1d;
}
.cta-head p { font-size: 1.0625rem; line-height: 1.7; color: #5d6674; max-width: 40rem; margin-inline: auto; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}
.cta-row .button-primary {
  min-height: 0;
  padding: 20px 42px;
  font-size: 0.9375rem;
}
.cta-row .button-cta-outline {
  min-height: 0;
  padding: 18px 40px;
  font-size: 0.9375rem;
}
.cta-classdoor {
  width: min(100%, 420px);
  margin: 26px auto 0;
  padding: 16px 18px 18px;
  display: grid;
  gap: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #243349, #1d293d);
  border: 1px solid #334155;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}
.cta-classdoor-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.cta-classdoor-logo img {
  width: 88px;
  height: 16px;
  color: #8cb8ff;
}
.cta-classdoor-logo span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #c2d5ea;
}
.cta-classdoor h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e7eef8;
}
.cta-classdoor p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.72;
  color: #afc0d4;
}

/* ===== FOOTER ===== */
.site-footer { background: #fff; color: #191c1d; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 72px 48px 56px;
  width: min(100%, var(--max-w));
  margin-inline: auto;
}
.footer-brand { display: grid; gap: 14px; max-width: 400px; }
.footer-brand img { width: 37px; height: 29px; }
.footer-wordmark { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; color: #1d3158; }
.footer-brand > p { font-size: 0.75rem; line-height: 2; color: #5d6674; max-width: 320px; }
.footer-links { display: flex; gap: 48px; }
.footer-links h3 { font-size: 1.1rem; font-weight: 700; color: #191c1d; margin-bottom: 14px; }
.footer-links a { display: block; margin-top: 8px; font-size: 0.875rem; line-height: 1.8; color: #5d6674; }
.footer-links a:hover { color: #191c1d; }
.footer-bottom {
  padding: 18px 48px 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
  width: min(100%, var(--max-w));
  margin-inline: auto;
}
.footer-bottom p {
  font-family: "Courier New", monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}

/* ===== CONTACT PAGES ===== */
.contact-page {
  background:
    radial-gradient(circle at 20% 12%, rgba(236, 61, 48, 0.07), transparent 24%),
    radial-gradient(circle at 78% 6%, rgba(17, 112, 238, 0.08), transparent 28%),
    var(--bg);
}

.contact-stage {
  position: relative;
  overflow: clip;
  padding: 88px 48px 120px;
}

.contact-stage-confirm {
  padding-top: 110px;
}

.contact-stage-thanks {
  padding-top: 120px;
}

.contact-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(92px);
  opacity: 0.72;
  pointer-events: none;
}

.contact-glow-red {
  top: 52px;
  left: 8%;
  background: radial-gradient(circle, rgba(236, 61, 48, 0.12) 0, transparent 70%);
}

.contact-glow-blue {
  top: 24px;
  right: 7%;
  background: radial-gradient(circle, rgba(17, 112, 238, 0.13) 0, transparent 72%);
}

.contact-intro,
.contact-card,
.contact-actions-centered {
  position: relative;
  z-index: 1;
}

.contact-intro {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  text-align: center;
}

.contact-kicker {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #375dfb;
}

.contact-intro h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.contact-intro p {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #475467;
}

.contact-card {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding: 28px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(19, 43, 77, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.contact-form-card,
.contact-confirm-card {
  display: grid;
  gap: 14px;
}

.contact-fieldset {
  display: grid;
  gap: 8px;
}

.contact-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #344054;
}

.contact-input,
.contact-textarea,
.contact-value {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  font: inherit;
}

.contact-input,
.contact-value {
  min-height: 52px;
  padding: 14px 16px;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #2458e6;
  box-shadow: 0 0 0 4px rgba(36, 88, 230, 0.12);
}

.contact-textarea {
  min-height: 180px;
  padding: 14px 16px;
  resize: vertical;
}

.contact-submit,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.contact-submit,
.contact-button-primary {
  background: #2458e6;
  color: #fff;
  box-shadow: 0 16px 34px rgba(36, 88, 230, 0.2);
}

.contact-submit:hover,
.contact-button:hover {
  transform: translateY(-1px);
}

.contact-button-secondary {
  background: #fff;
  border-color: #d0d5dd;
  color: #344054;
}

.contact-submit {
  width: 100%;
  cursor: pointer;
}

.contact-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #667085;
}

.contact-note a {
  color: #2458e6;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-value {
  display: flex;
  align-items: center;
  line-height: 1.6;
  white-space: pre-wrap;
}

.contact-value-message {
  align-items: flex-start;
  min-height: 152px;
  padding-top: 12px;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 8px;
}

.contact-actions-centered {
  width: min(100%, 760px);
  margin: 24px auto 0;
}

.contact-button-fixed {
  min-width: 220px;
}

.contact-thanks-card {
  display: grid;
  gap: 14px;
}

.contact-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #344054;
}

.contact-summary-row strong,
.contact-summary-row span {
  color: #111827;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  background:
    radial-gradient(circle at 16% 10%, rgba(236, 61, 48, 0.06), transparent 24%),
    radial-gradient(circle at 82% 4%, rgba(17, 112, 238, 0.08), transparent 26%),
    var(--bg);
}

.legal-stage {
  position: relative;
  overflow: clip;
  padding: 96px 48px 120px;
}

.legal-stage-terms {
  padding-top: 80px;
  padding-bottom: 100px;
}

.legal-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.68;
  pointer-events: none;
}

.legal-glow-red {
  top: 40px;
  left: 7%;
  background: radial-gradient(circle, rgba(236, 61, 48, 0.12) 0, transparent 70%);
}

.legal-glow-blue {
  top: 0;
  right: 6%;
  background: radial-gradient(circle, rgba(17, 112, 238, 0.14) 0, transparent 72%);
}

.legal-shell,
.legal-card {
  position: relative;
  z-index: 1;
}

.legal-shell {
  width: min(100%, 760px);
  margin-inline: auto;
  display: grid;
  gap: 28px;
}

.legal-shell-wide {
  width: min(100%, 900px);
}

.legal-header {
  display: grid;
  gap: 10px;
}

.legal-kicker {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #375dfb;
}

.legal-header h1 {
  font-size: clamp(2.4rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.legal-header p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #475467;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.875rem;
  color: #667085;
}

.legal-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #475467;
}

.legal-sections {
  display: grid;
  gap: 22px;
}

.legal-section {
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(208, 213, 221, 0.8);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: none;
}

.legal-section h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  color: #0f172a;
}

.legal-section h3 {
  font-size: 1rem;
  line-height: 1.45;
  color: #101828;
}

.legal-section p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #475467;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.legal-section li {
  font-size: 1rem;
  line-height: 1.75;
  color: #475467;
}

.legal-card {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: 32px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(19, 43, 77, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.legal-card > .legal-meta {
  margin-bottom: 18px;
  font-size: 0.8125rem;
}

.legal-terms-block h2 {
  font-size: 1.125rem;
}

.legal-terms-block p,
.legal-terms-block li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #344054;
}

.legal-contact-box {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 247, 251, 0.98));
  border: 1px solid rgba(208, 213, 221, 0.9);
}

.legal-contact-box a {
  color: #2458e6;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ===== RESPONSIVE ===== */

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .site-header { padding-inline: 28px; }
  .hero-inner { padding-inline: 28px; }
  .flow-strip { grid-template-columns: repeat(2,1fr); }
  .flow-item + .flow-item { border-left: none; }
  .flow-item:nth-child(3), .flow-item:nth-child(4) { border-top: 1px solid rgba(201,215,230,0.6); }
  .concept .section-inner { grid-template-columns: 1fr; }
  .origin-grid { grid-template-columns: 1fr; }
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual { order: initial; }
  .feature-copy { padding-right: 0; }
  .security-grid { grid-template-columns: repeat(2,1fr); }
  .security-strip { grid-template-columns: repeat(2,1fr); }
  .pricing-cards { height: auto; position: static; display: grid; grid-template-columns: 1fr; gap: 20px; }
  .plan-card { position: static; width: 100%; height: auto; }
  .enterprise-banner { flex-direction: column; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 760px) {
  .section-inner { padding-inline: 20px; }
  .site-header {
    position: sticky; /* Make sticky again for full-screen overlay */
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
  }
  
  .nav-overlay {
    display: flex;
    position: fixed;
    top: 73px; /* height of header approx */
    left: 0;
    width: 100vw;
    height: calc(100vh - 73px);
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 32px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
  }
  
  .site-header.nav-open .nav-overlay {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20;
  }
  
  .hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
  }
  
  .site-header.nav-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
  }
  .site-header.nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
  }

  .site-nav { 
    flex-direction: column; 
    width: 100%; 
    gap: 24px; 
    background: transparent;
    border: none;
  }
  .site-nav a {
    font-size: 1.25rem;
  }
  .header-actions { 
    flex-direction: column; 
    width: 100%; 
  }
  .header-actions .button { font-size: 1rem; min-height: 48px; width: 100%; }
  
  .hero { padding-bottom: 72px; }
  .hero-inner { padding: 28px 20px 0; gap: 18px; }
  .hero h1 {
    font-size: clamp(1.95rem, 9.2vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }
  .hero-body {
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 30rem;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-actions .button {
    width: min(100%, 17.5rem);
    min-height: 50px;
    padding-inline: 20px;
    font-size: 0.95rem;
  }
  .hero-visual {
    margin-top: 8px;
    display: flex;
    justify-content: center;
  }
  .hero-visual img {
    margin-inline: auto;
    width: min(100%, 31rem);
  }
  .flow-strip {
    grid-auto-flow: column;
    grid-auto-columns: minmax(16rem, 82vw);
    grid-template-columns: none;
    width: 100%;
    margin: 36px 0 0;
    padding: 0 20px 8px;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .flow-strip::-webkit-scrollbar {
    display: none;
  }
  .flow-item + .flow-item {
    border-left: none;
    border-top: none;
  }
  .flow-item:nth-child(3), .flow-item:nth-child(4) {
    border-top: none;
  }
  .flow-item {
    min-height: 132px;
    padding: 18px 18px 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(201, 215, 230, 0.8);
    box-shadow: 0 16px 32px rgba(19, 43, 77, 0.08);
    scroll-snap-align: center;
  }
  .flow-item span,
  .flow-item-green span {
    width: auto;
    font-size: 0.76rem;
  }
  .flow-item p,
  .flow-item-green p {
    font-size: 0.88rem;
  }
  .flow-item-green {
    padding: 18px 20px;
    align-items: flex-start;
  }
  .section-heading { gap: 12px; }
  .section-heading h2 {
    max-width: 100%;
    font-size: clamp(1.68rem, 7.2vw, 2.15rem);
    line-height: 1.14;
  }
  .section-lead {
    font-size: 0.93rem;
    line-height: 1.68;
  }
  .concept { padding: 88px 0 92px; }
  .concept .section-inner { gap: 36px; }
  .concept-points { grid-template-columns: 1fr; gap: 18px; }
  .concept .section-heading h2,
  .process-block h3,
  .feature-copy h3,
  .security-grid h3,
  .origin-copy h2,
  .pricing-head h2,
  .price-visual-head h3,
  .comparison-section h3,
  .enterprise-banner h3,
  .cta-head h2 {
    font-size: clamp(1.55rem, 6.6vw, 1.95rem);
    line-height: 1.18;
  }
  .reference-visual {
    gap: 14px;
    padding: 6px 0 0;
  }
  .reference-visual-frame {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(19, 43, 77, 0.07);
  }
  .reference-visual img {
    border-radius: 14px;
  }
  .process-block {
    margin-top: 24px;
    padding: 24px 20px;
    border-radius: 22px;
  }
  .process-block h3 {
    font-size: clamp(1.28rem, 5.6vw, 1.5rem);
    line-height: 1.24;
    margin-bottom: 18px;
  }
  .process-steps article {
    padding: 18px 16px;
    gap: 10px;
  }
  .process-steps h4 {
    font-size: 1rem;
  }
  .process-steps p {
    font-size: 0.88rem;
    line-height: 1.58;
  }
  .features { padding-block: 92px; }
  .feature-row {
    gap: 20px;
    padding-block: 28px;
  }
  .features .section-heading h2 {
    max-width: 100%;
  }
  .features .section-heading h2 span {
    white-space: normal;
  }
  .feature-copy {
    gap: 10px;
  }
  .feature-copy p {
    font-size: 0.93rem;
    line-height: 1.68;
  }
  .feature-visual {
    padding: 10px;
    gap: 10px;
    border-radius: 20px;
    margin-inline: auto;
    width: min(100%, 34rem);
  }
  .feature-visual img {
    border-radius: 14px;
  }
  .security { padding-block: 92px; }
  .security-grid, .security-strip { grid-template-columns: 1fr; }
  .security-grid article,
  .security-strip article {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .security-grid p,
  .security-strip p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .security-strip article + article { border-left: none; border-top: 1px solid rgba(215,222,232,0.75); }
  .process-steps { grid-template-columns: 1fr; }
  .trust {
    padding-block: 92px 84px;
  }
  .origin-grid {
    gap: 28px;
  }
  .trust .origin-copy p {
    font-size: 0.94rem;
    line-height: 1.7;
  }
  .origin-logo-row {
    display: none;
  }
  .origin-logo-row img {
    width: 118px;
    height: 21px;
  }
  .origin-visual {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
  }
  .pricing {
    padding-block: 0 28px;
  }
  .price-visual-head p {
    font-size: 0.93rem;
    line-height: 1.68;
  }
  .price-visual {
    border-radius: 24px 24px 0 0;
  }
  .price-visual-inner {
    padding: 28px 20px 40px;
    gap: 32px;
  }
  .price-visual-head {
    gap: 12px;
  }
  .pricing-cards {
    gap: 12px;
  }
  .plan-card {
    min-height: 0;
    padding: 20px 18px;
    border-radius: 22px;
    gap: 6px;
  }
  .plan-card-featured {
    border-width: 2px;
  }
  .plan-name {
    margin-bottom: 6px;
  }
  .plan-price {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  .plan-features {
    gap: 10px;
  }
  .plan-features li {
    padding-left: 28px;
    font-size: 0.84rem;
    line-height: 1.48;
  }
  .plan-features li::before {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
  }
  .plan-card-paid .plan-features li:first-child {
    font-size: 1rem;
  }
  .comparison-section {
    gap: 18px;
    padding-top: 8px;
  }
  .comparison-table {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .comparison-table table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }
  .comparison-table table {
    min-width: 0;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tbody {
    display: grid;
    gap: 14px;
  }
  .comparison-table tr {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 14px 32px rgba(19, 43, 77, 0.06);
  }
  .comparison-table td {
    padding: 0;
    border-bottom: none;
    display: grid;
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 10px;
    font-size: 0.84rem;
    line-height: 1.5;
  }
  .comparison-table td + td {
    margin-top: 10px;
  }
  .comparison-table td:first-child {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
  }
  .comparison-table td:nth-child(2)::before,
  .comparison-table td:nth-child(3)::before,
  .comparison-table td:nth-child(4)::before {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
  }
  .comparison-table td:nth-child(2)::before { content: "フリー"; }
  .comparison-table td:nth-child(3)::before { content: "ライト"; }
  .comparison-table td:nth-child(4)::before { content: "プロ"; }
  .enterprise-banner {
    gap: 18px;
    padding: 26px 20px;
    border-radius: 24px;
    align-items: flex-start;
  }
  .enterprise-banner p {
    font-size: 0.92rem;
    line-height: 1.64;
  }
  .enterprise-banner .button-blue {
    width: 100%;
    padding-inline: 18px;
  }
  .final-cta {
    padding-block: 84px 88px;
  }
  .cta-head {
    text-align: center;
    gap: 10px;
    margin-bottom: 22px;
  }
  .cta-head p {
    font-size: 0.93rem;
    line-height: 1.68;
    max-width: 32rem;
  }
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .cta-row .button {
    width: auto;
    min-height: 0;
  }
  .cta-row .button-primary {
    padding: 18px 28px;
  }
  .cta-row .button-cta-outline {
    padding: 16px 26px;
  }
  .cta-classdoor {
    width: 100%;
    margin-top: 18px;
    padding: 14px 14px 16px;
    gap: 8px;
    border-radius: 14px;
  }
  .cta-classdoor-logo img {
    width: 80px;
    height: 14px;
  }
  .cta-classdoor h3 {
    font-size: 0.88rem;
  }
  .cta-classdoor p {
    font-size: 0.78rem;
    line-height: 1.68;
  }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-top { padding-inline: 24px; }
  .footer-bottom { padding-inline: 24px; }
  .contact-stage,
  .contact-stage-confirm,
  .contact-stage-thanks {
    padding: 68px 20px 88px;
  }
  .contact-intro {
    gap: 8px;
  }
  .contact-intro h1 {
    font-size: clamp(2rem, 8.8vw, 2.75rem);
  }
  .contact-intro p {
    font-size: 0.98rem;
  }
  .contact-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 18px;
  }
  .contact-actions {
    grid-template-columns: 1fr;
  }
  .contact-button,
  .contact-submit {
    width: 100%;
  }
  .contact-button-fixed {
    min-width: 0;
  }
  .contact-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .contact-summary-row strong,
  .contact-summary-row span {
    font-size: 1rem;
  }
  .legal-stage,
  .legal-stage-terms {
    padding: 72px 20px 88px;
  }
  .legal-shell,
  .legal-shell-wide,
  .legal-card {
    width: 100%;
  }
  .legal-shell {
    gap: 22px;
  }
  .legal-header {
    gap: 8px;
  }
  .legal-header h1 {
    font-size: clamp(2rem, 8.6vw, 2.7rem);
  }
  .legal-header p,
  .legal-intro {
    font-size: 0.98rem;
    line-height: 1.68;
  }
  .legal-card {
    padding: 22px 20px;
    border-radius: 18px;
  }
  .legal-section {
    gap: 8px;
    padding-top: 18px;
  }
  .legal-section h2 {
    font-size: 1.18rem;
  }
  .legal-section h3 {
    font-size: 0.96rem;
  }
  .legal-section p,
  .legal-section li,
  .legal-terms-block p,
  .legal-terms-block li {
    font-size: 0.92rem;
    line-height: 1.72;
  }
  .legal-meta {
    font-size: 0.8rem;
    gap: 8px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
