/* ==========================================================================
   E-Document LP — design tokens & base
   Palette: navy/blue inherited from the product logo, ink text, cool paper
   background, vermilion reserved for the 印 (seal) motif only.
   ========================================================================== */

:root {
  --navy: #0b3f8a;
  --navy-deep: #082d63;
  --blue: #1a73c8;
  --blue-soft: #e7f0fb;
  --ink: #1b2430;
  --slate: #5b6472;
  --line: #d9dfe8;
  --paper: #f4f7fb;
  --white: #ffffff;
  --seal: #c8322b;
  --seal-soft: #fbeceb;

  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --container: 1120px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-shot: 0 1px 2px rgba(11, 63, 138, 0.08), 0 18px 40px -20px rgba(11, 63, 138, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--blue-soft);
  color: var(--navy);
}

.btn-lg {
  min-height: 58px;
  padding: 14px 36px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand img {
  width: 172px;
  height: auto;
}

.brand-sub {
  font-size: 12px;
  color: var(--slate);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  line-height: 1.3;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: inline-block;
  padding: 8px 10px;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
}

.nav a:hover {
  background: var(--paper);
  color: var(--navy);
}

.header-cta {
  display: flex;
  gap: 8px;
  flex: none;
}

.header-cta .btn {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .brand-sub {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--paper);
    font-size: 15px;
  }
  .header-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background-color: #f3f7fd;
  background-image: url("/assets/img/hero-bg.webp");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 64px 0 56px;
}

.hero-kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  padding: 5px 16px;
  border: 1px solid rgba(11, 63, 138, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(28px, 2.75vw, 39px);
  line-height: 1.32;
  letter-spacing: -0.005em;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--navy);
}

.hero-lede {
  font-size: 16.5px;
  color: #3a4452;
  max-width: 34em;
  margin-bottom: 26px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-bottom: 30px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-points img {
  width: 52px;
  height: 52px;
  flex: none;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  font-size: 13px;
  color: var(--slate);
  margin: 14px 0 0;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 2px;
}

.lang-switch button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.lang-switch button:hover:not([aria-pressed="true"]) {
  background: var(--paper);
  color: var(--ink);
}

.lang-switch .flag {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  background: #d6212f;
  position: relative;
}

.lang-switch .flag-vi::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #f5c400;
  clip-path: polygon(50% 0, 62% 38%, 100% 38%, 69% 60%, 81% 100%, 50% 75%, 19% 100%, 31% 60%, 0 38%, 38% 38%);
}

.lang-switch .flag-en {
  background: #123b8a;
}

.lang-switch button[aria-pressed="true"] .flag {
  outline: 2px solid rgba(255, 255, 255, 0.7);
}

.screen-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-shot);
}

.screen-frame img {
  width: 100%;
}

.screen-frame img[hidden] {
  display: none;
}

/* Visual: dashboard + floating cards */
.hero-visual {
  position: relative;
  min-height: 520px;
  padding: 56px 120px 40px 0;
  margin-right: -70px;
}

.hero-screen {
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(11, 63, 138, 0.08), 0 30px 60px -24px rgba(11, 63, 138, 0.45);
}

.hero-screen img {
  aspect-ratio: 1440 / 900;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 63, 138, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 34px -16px rgba(11, 63, 138, 0.4);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.hero-card-cloud {
  top: 12px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
}

.hero-card-cloud img {
  width: 56px;
  height: 56px;
}

.hero-visual .lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  box-shadow: 0 14px 34px -16px rgba(11, 63, 138, 0.4);
}

.hero-card-steps {
  right: 0;
  top: 150px;
  width: 140px;
  padding: 14px 14px 6px;
}

.hero-card-steps li {
  position: relative;
  padding: 0 0 12px 30px;
}

.hero-card-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
  z-index: 1;
}

.hero-card-steps li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  z-index: 2;
}

.hero-card-steps li:not(:last-child) span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: -4px;
  border-left: 2px dashed rgba(11, 63, 138, 0.3);
}

.hero-card-steps small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--slate);
}

.hero-card-stamp {
  right: 0;
  bottom: 30px;
  width: 140px;
  padding: 16px 12px 14px;
  text-align: center;
}

.hero-card-stamp img {
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
}

.hero-card-stamp > span:last-child {
  display: block;
}

.hero-card-stamp .stamp-mini {
  position: absolute;
  top: 50px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--seal);
  border-radius: 50%;
  color: var(--seal);
  font-size: 13px;
  font-weight: 700;
  transform: rotate(-12deg);
  background: rgba(255, 255, 255, 0.92);
}

/* Fact strip */
.hero-strip {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(11, 63, 138, 0.08);
}

.hero-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-strip li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 16px 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--slate);
}

.hero-strip li + li {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.hero-strip img {
  width: 48px;
  height: 48px;
  flex: none;
}

.hero-strip strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

@media (max-width: 1260px) {
  .hero-visual {
    margin-right: 0;
  }
}

@media (max-width: 1100px) {
  .hero-visual {
    padding-right: 90px;
  }
}

@media (max-width: 900px) {
  .hero {
    background-image: linear-gradient(rgba(243, 247, 253, 0.9), rgba(243, 247, 253, 0.9)), url("/assets/img/hero-bg-sm.webp");
    background-size: cover, cover;
    background-position: center, right bottom;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 32px;
  }
  .hero-visual {
    min-height: 0;
    padding: 0;
  }
  .hero-visual .lang-switch {
    position: static;
    margin-bottom: 12px;
    box-shadow: none;
  }
  .hero-card-cloud,
  .hero-card-steps {
    display: none;
  }
  .hero-card-stamp {
    position: static;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 8px 14px 8px 8px;
    margin-top: 14px;
  }
  .hero-card-stamp img {
    width: 40px;
    height: 40px;
    margin: 0;
  }
  .hero-card-stamp .stamp-mini {
    position: static;
    transform: none;
  }
  .hero-card-stamp > span:last-child {
    display: inline;
  }
  .hero-card-stamp br {
    display: none;
  }
  .hero-strip .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-strip li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .hero-strip li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 24px;
  }
  .hero-points {
    grid-template-columns: 1fr;
  }
  .hero-strip .container {
    grid-template-columns: 1fr;
  }
  .hero-strip li {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
  .hero-strip li + li {
    border-top: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  max-width: 44em;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin-bottom: 14px;
}

.section-lead {
  color: var(--slate);
  font-size: 16px;
  margin: 0;
}

@media (max-width: 700px) {
  .section {
    padding: 60px 0;
  }
}

/* Issues */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.issue {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}

.issue h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.issue p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}

@media (max-width: 900px) {
  .issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .issue-grid {
    grid-template-columns: 1fr;
  }
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.pillar h3 {
  font-size: 19px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar h3 svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
  flex: none;
}

.pillar p {
  font-size: 15px;
  color: var(--slate);
  margin: 0;
}

@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Vietnam section */
.vn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.vn-list {
  display: grid;
  gap: 4px;
}

.vn-list li {
  padding: 18px 0 18px 22px;
  border-left: 3px solid var(--blue-soft);
  transition: border-color 0.18s var(--ease);
}

.vn-list li:hover {
  border-left-color: var(--blue);
}

.vn-list h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.vn-list p {
  font-size: 14.5px;
  color: var(--slate);
  margin: 0;
}

.vn-visual {
  position: sticky;
  top: 96px;
  padding-bottom: 120px;
  padding-right: 40px;
}

.vn-visual .screen-frame + .screen-frame {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 190px;
  border-radius: 18px;
  border-width: 4px;
  border-color: #1b2430;
  box-shadow: 0 24px 48px -20px rgba(11, 63, 138, 0.45);
}

.vn-visual .screen-frame + .screen-frame img {
  aspect-ratio: 390 / 560;
  object-fit: cover;
  object-position: top;
}

.vn-visual figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 13px;
  color: var(--slate);
  max-width: 52%;
}

@media (max-width: 900px) {
  .vn-visual {
    padding-bottom: 0;
    padding-right: 0;
  }
  .vn-visual .screen-frame + .screen-frame {
    position: static;
    width: 160px;
    margin: -60px 0 0 auto;
  }
  .vn-visual figcaption {
    position: static;
    max-width: none;
    margin-top: 10px;
  }
}

@media (max-width: 900px) {
  .vn-grid {
    grid-template-columns: 1fr;
  }
  .vn-visual {
    position: static;
  }
}

/* Features */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.feature:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.feature:nth-of-type(even) .feature-text {
  order: 2;
}

.feature-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 8px;
}

.feature h3 {
  font-size: 23px;
  margin-bottom: 12px;
}

.feature-text > p {
  color: var(--slate);
  font-size: 15px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  margin-bottom: 6px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.feature-shot {
  margin: 0;
}

.feature-shot .screen-frame img {
  aspect-ratio: auto;
}

.feature-shot figcaption {
  font-size: 13px;
  color: var(--slate);
  margin-top: 10px;
}

.shot-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }
  .feature:nth-of-type(even) .feature-text {
    order: 0;
  }
}

/* Seal figure (the memorable element) */
.seal-figure {
  position: relative;
  margin: 0;
}

.seal-figure .screen-frame {
  border-color: rgba(200, 50, 43, 0.25);
}

.seal-figure .seal-note {
  position: absolute;
  right: 12px;
  top: -14px;
  background: var(--seal);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

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

.flow-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -14px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: rotate(45deg);
}

.flow-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow-step:not(:last-child)::after {
    display: none;
  }
}

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

/* Deployment / security */
.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.deploy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.deploy h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.deploy .deploy-sub {
  color: var(--slate);
  font-size: 14px;
  margin-bottom: 16px;
}

.deploy .check-list li {
  font-size: 14.5px;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 28px;
  font-size: 14.5px;
}

.security-list li {
  padding-left: 18px;
  position: relative;
}

.security-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

@media (max-width: 800px) {
  .deploy-grid,
  .security-list {
    grid-template-columns: 1fr;
  }
}

/* Plans */
.plan-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 15px;
}

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

.plan-table thead th {
  background: var(--paper);
  font-size: 16px;
}

.plan-table thead th:first-child {
  width: 22%;
}

.plan-table thead th small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}

.plan-table tbody th {
  font-weight: 500;
  color: var(--slate);
  background: #fbfcfe;
  width: 22%;
}

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

.plan-note {
  font-size: 14px;
  color: var(--slate);
  margin: 18px 0 24px;
}

.plan-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Cases */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.case-meta {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 8px;
}

.case h3 {
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 10px;
}

.case p {
  font-size: 14.5px;
  margin: 0;
}

@media (max-width: 700px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* Support steps */
.support-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  counter-reset: sstep;
  margin-bottom: 28px;
}

.support-steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
}

.support-steps li::before {
  counter-increment: sstep;
  content: "STEP " counter(sstep);
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.support-steps strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

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

.support-facts div {
  border-left: 3px solid var(--blue-soft);
  padding-left: 16px;
}

.support-facts dt {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 4px;
}

.support-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .support-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-facts {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  max-width: 820px;
}

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

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

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-size: 16px;
  font-weight: 700;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-list .faq-a {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--slate);
}

.faq-list .faq-a p {
  margin: 0;
}

/* Final CTA */
.cta-final {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
}

.cta-final .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.cta-final h2 {
  color: #fff;
  font-size: clamp(24px, 2.8vw, 32px);
  margin-bottom: 12px;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  margin: 0;
}

.cta-box {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.cta-box p {
  color: var(--slate);
  font-size: 14px;
  margin-bottom: 16px;
}

.cta-box .btn + .btn {
  margin-top: 10px;
}

.cta-box .cta-alt {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 800px) {
  .cta-final .container {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: 48px 0 110px;
  font-size: 14px;
  color: var(--slate);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h3 {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-grid address {
  font-style: normal;
  line-height: 1.7;
}

.footer-grid li {
  margin-bottom: 6px;
}

.footer-grid a {
  color: var(--slate);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 961px) {
  .site-footer {
    padding-bottom: 48px;
  }
}

/* Mobile fixed CTA */
.mobile-cta {
  display: none;
}

@media (max-width: 960px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn {
    min-height: 46px;
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* --------------------------------------------------------------------------
   Sub pages (forms, legal)
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--paper);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--slate);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.page-head h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.page-head p {
  color: var(--slate);
  margin: 0;
  max-width: 40em;
}

.page-body {
  padding: 48px 0 88px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: start;
}

.form-aside {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-size: 14px;
  position: sticky;
  top: 92px;
}

.form-aside h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.form-aside .doc-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  background: #fff;
}

.form-aside ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.form-aside ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 860px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-aside {
    position: static;
  }
}

.form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field .field-label {
  font-size: 14px;
  font-weight: 700;
}

.req {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--seal);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: 2px;
  line-height: 1.5;
}

.opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: 2px;
  line-height: 1.5;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #b9c2cf;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}

.field-hint {
  font-size: 13px;
  color: var(--slate);
}

.field-error {
  font-size: 13px;
  color: var(--seal);
  display: none;
}

.field.is-invalid .field-error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--seal);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.radio-group,
.check-group {
  display: grid;
  gap: 8px;
}

.radio-group label,
.check-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

.radio-group input,
.check-group input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--navy);
  flex: none;
}

.consent {
  padding: 16px;
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 14px;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.form-actions .btn {
  min-height: 56px;
  font-size: 17px;
}

.form-alert {
  background: var(--seal-soft);
  color: var(--seal);
  border: 1px solid rgba(200, 50, 43, 0.35);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Thanks */
.thanks {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.thanks-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.thanks h1,
.thanks .thanks-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.thanks p {
  color: var(--slate);
}

.thanks-download {
  margin: 28px 0;
  padding: 24px;
  background: var(--paper);
  border-radius: var(--radius-lg);
}

.thanks-download .btn {
  margin-top: 6px;
}

.thanks-next {
  margin-top: 24px;
  font-size: 14px;
}

/* Legal pages */
.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  font-size: 15px;
}

.legal ul,
.legal ol {
  padding-left: 1.4em;
  list-style: disc;
  margin-bottom: 1em;
}

.legal ol {
  list-style: decimal;
}

.legal .legal-meta {
  color: var(--slate);
  font-size: 14px;
  margin-top: 40px;
}

/* 404 */
.notfound {
  text-align: center;
  padding: 96px 0;
}

.notfound h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.notfound p {
  color: var(--slate);
}

.notfound .btn {
  margin: 8px 6px 0;
}
