:root {
  --navy: #0a2b68;
  --navy-dark: #061b45;
  --blue: #0752a2;
  --teal: #18a49c;
  --teal-dark: #0d7f7a;
  --coral: #ed354d;
  --coral-dark: #c91f38;
  --gold: #e4ae36;
  --ivory: #fcfaf5;
  --ink: #122443;
  --muted: #657188;
  --line: #dce3ec;
  --white: #fff;
  --shadow: 0 18px 50px rgba(6, 27, 69, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #e8edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(10, 43, 104, .1);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 5px 22px rgba(10, 43, 104, .07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, 1024px);
  min-height: 68px;
  margin-inline: auto;
}
.brand { display: inline-flex; flex-direction: column; line-height: 1.05; text-decoration: none; }
.brand__name { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 800; letter-spacing: .04em; }
.brand__tagline { margin-top: 5px; color: #66758d; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.header-cta,
.floating-cta,
.faq-cta a,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.header-cta,
.floating-cta {
  background: linear-gradient(180deg, #f2485e, var(--coral) 48%, var(--coral-dark));
  box-shadow: 0 10px 25px rgba(201, 31, 56, .27), inset 0 1px rgba(255, 255, 255, .3);
}
.header-cta { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.header-cta:hover,
.floating-cta:hover,
.faq-cta a:hover,
.submit-btn:hover { transform: translateY(-2px); filter: saturate(1.06); }

/* Image LP */
.lp-images {
  width: min(100%, 1024px);
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 52px rgba(6, 27, 69, .12);
}
.image-section { position: relative; margin: 0; line-height: 0; background: #fff; }
.image-section picture,
.image-section img { display: block; width: 100%; height: auto; }
.image-link { display: block; position: relative; text-decoration: none; }
.image-link::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0); transition: background .18s ease; }
.image-link:hover::after { background: rgba(255, 255, 255, .06); }
.image-link:focus-visible { outline: 6px solid var(--teal); outline-offset: -6px; }

/* FAQ */
.faq-section {
  position: relative;
  overflow: hidden;
  padding: 84px 20px 94px;
  background:
    radial-gradient(circle at 8% 5%, rgba(228, 174, 54, .18), transparent 27%),
    radial-gradient(circle at 94% 91%, rgba(24, 164, 156, .13), transparent 29%),
    var(--ivory);
}
.faq-section::before { content: ""; position: absolute; top: 0; left: 50%; width: 90px; height: 5px; border-radius: 0 0 99px 99px; background: var(--teal); transform: translateX(-50%); }
.faq-section__inner { position: relative; width: min(100%, 900px); margin-inline: auto; }
.faq-eyebrow { margin: 0 0 6px; color: var(--teal); font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 800; letter-spacing: .25em; text-align: center; }
.faq-section h2 { margin: 0; color: var(--navy); font-size: clamp(30px, 5vw, 44px); line-height: 1.3; letter-spacing: .03em; text-align: center; }
.faq-lead { max-width: 620px; margin: 16px auto 38px; color: var(--muted); font-size: 15px; font-weight: 650; text-align: center; }
.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; border: 1px solid #d6dee8; border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 8px 24px rgba(6, 27, 69, .06); }
.faq-item[open] { border-color: rgba(24, 164, 156, .52); box-shadow: 0 12px 30px rgba(6, 27, 69, .1); }
.faq-item summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 20px;
  color: var(--navy);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.6;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #fbfefa; }
.faq-item summary:focus-visible { outline: 3px solid rgba(24, 164, 156, .45); outline-offset: -3px; }
.faq-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #27bcb3, var(--teal-dark)); box-shadow: 0 6px 15px rgba(13, 127, 122, .22); font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.faq-toggle { position: relative; width: 24px; height: 24px; border-radius: 50%; background: #e9f5f4; }
.faq-toggle::before,
.faq-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px; border-radius: 2px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .2s ease, opacity .2s ease; }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { opacity: 0; transform: translate(-50%, -50%); }
.faq-answer { margin: 0 20px 20px 82px; padding: 18px 20px; border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; background: #f5f8fb; }
.faq-answer p { margin: 0; color: #34445f; font-size: 15px; font-weight: 650; line-height: 1.9; }
.faq-cta { margin-top: 44px; padding: 32px 24px; border-radius: 24px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--navy-dark)); box-shadow: var(--shadow); text-align: center; }
.faq-cta p { margin: 0 0 18px; font-size: clamp(19px, 3.8vw, 25px); font-weight: 900; line-height: 1.5; }
.faq-cta a,
.submit-btn { background: linear-gradient(180deg, #24bdb3, var(--teal) 48%, var(--teal-dark)); box-shadow: 0 12px 27px rgba(13, 127, 122, .28), inset 0 1px rgba(255, 255, 255, .3); }
.faq-cta a { gap: 10px; width: min(100%, 430px); min-height: 60px; padding: 15px 24px; font-size: 17px; }
.faq-cta small { display: block; margin-top: 12px; color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 700; }
.floating-cta { display: none; position: fixed; z-index: 99; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; min-height: 54px; padding: 12px 18px; font-size: 15px; }

/* Footer */
.site-footer { padding: 36px 20px calc(32px + env(safe-area-inset-bottom)); color: #fff; background: #041536; text-align: center; }
.site-footer p { margin: 0; }
.site-footer__brand { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 800; letter-spacing: .05em; }
.site-footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0; }
.site-footer__links a { color: rgba(255, 255, 255, .86); font-size: 13px; }
.site-footer__copyright { color: rgba(255, 255, 255, .58); font-size: 11px; }

/* Legal pages */
.legal-page,
.form-page { min-height: 100svh; padding: 30px 16px 56px; background: radial-gradient(circle at 84% 3%, rgba(228, 174, 54, .25), transparent 30%), linear-gradient(160deg, var(--navy), var(--navy-dark) 72%); }
.legal-page__inner,
.form-container { width: min(100%, 920px); margin-inline: auto; }
.form-container--narrow { max-width: 680px; }
.back-home,
.logo-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 14px; color: #fff; font-size: 14px; font-weight: 900; text-decoration: none; }
.back-home:hover,
.logo-link:hover { text-decoration: underline; }
.legal-title { margin: 6px 0 20px; color: #fff; font-size: clamp(29px, 5vw, 40px); line-height: 1.35; }
.legal-meta { margin: -10px 0 22px; color: rgba(255, 255, 255, .72); font-size: 13px; }
.legal-card,
.form-card { padding: clamp(20px, 5vw, 38px); border: 1px solid rgba(255, 255, 255, .72); border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .24); }
.legal-card > p:first-child { margin-top: 0; }
.legal-card h2 { margin: 34px 0 10px; padding-left: 13px; border-left: 5px solid var(--teal); color: var(--navy); font-size: 20px; line-height: 1.5; }
.legal-card p,
.legal-card li { color: #3e4b63; font-size: 15px; }
.legal-card a,
.legal-table a { color: #075aa6; overflow-wrap: anywhere; }
.legal-table { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.legal-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.legal-row:last-child { border-bottom: 0; }
.legal-th { padding: 15px; color: var(--navy); background: #f0f5f8; font-weight: 900; }
.legal-td { min-width: 0; padding: 15px; color: #3e4b63; overflow-wrap: anywhere; }
.legal-bottom { margin-top: 18px; }

/* Consultation form */
.form-hero { position: relative; overflow: hidden; padding: 30px clamp(20px, 5vw, 36px) 28px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 24px 24px 0 0; color: #fff; background: linear-gradient(145deg, rgba(255, 255, 255, .09), transparent), var(--navy); box-shadow: 0 20px 48px rgba(0, 0, 0, .2); }
.form-hero::after { content: ""; position: absolute; top: -70px; right: -80px; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, rgba(24, 164, 156, .42), transparent 68%); pointer-events: none; }
.form-hero__badge { display: inline-flex; margin: 0 0 14px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; color: #fff; background: rgba(24, 164, 156, .2); font-size: 12px; font-weight: 900; letter-spacing: .05em; }
.form-hero h1 { position: relative; margin: 0; color: #fff; font-size: clamp(31px, 8vw, 49px); line-height: 1.22; letter-spacing: -.035em; }
.form-hero h1 span { color: #72ddd5; }
.form-hero__lead { position: relative; margin: 15px 0 0; color: rgba(255, 255, 255, .9); font-size: 15px; font-weight: 700; }
.form-hero__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.form-hero__points span { padding: 8px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 12px; font-weight: 900; text-align: center; }
.form-card--connected { margin-top: 0; border-radius: 0 0 24px 24px; }
.form-card h1 { margin: 0 0 14px; color: var(--navy); font-size: clamp(28px, 5vw, 38px); line-height: 1.4; }
.eyebrow { margin: 0 0 7px; color: var(--teal); font-weight: 900; letter-spacing: .08em; }
.lead { color: #3e4b63; font-size: 16px; font-weight: 650; }
.form-step-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 13px; color: var(--navy); }
.form-step-title:first-child { margin-top: 0; }
.form-step-title span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #27bcb3, var(--teal-dark)); font-size: 14px; font-weight: 900; }
.form-step-title strong { font-size: 20px; }
.form-group { margin: 19px 0; }
fieldset.form-group { min-width: 0; padding: 0; border: 0; }
.form-group > label,
.group-label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 16px; font-weight: 900; }
.required,
.optional { display: inline-block; margin-left: 5px; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--coral-dark); font-size: 11px; line-height: 1.6; vertical-align: 1px; }
.optional { background: #7b8798; }
input,
select,
textarea { width: 100%; min-height: 56px; border: 2px solid #dbe2ed; border-radius: 14px; padding: 14px 15px; color: var(--navy); background: #fff; font: inherit; font-size: 16px; font-weight: 650; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
textarea { min-height: 155px; resize: vertical; line-height: 1.65; }
input:focus,
select:focus,
textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(24, 164, 156, .14); }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-card { position: relative; display: flex; align-items: center; justify-content: center; min-height: 60px; margin: 0; padding: 12px; border: 2px solid #dbe2ed; border-radius: 14px; background: #fbfcfe; color: var(--navy); font-size: 16px; font-weight: 900; cursor: pointer; }
.check-card input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.check-card span { display: flex; align-items: center; gap: 8px; }
.check-card span::before { content: ""; display: inline-grid; place-items: center; width: 19px; height: 19px; border: 2px solid #aab5c6; border-radius: 5px; background: #fff; }
.check-card:has(input:checked) { border-color: var(--teal); background: #f2fffd; box-shadow: 0 0 0 3px rgba(24, 164, 156, .12); }
.check-card:has(input:checked) span::before { content: "✓"; border-color: var(--teal); color: #fff; background: var(--teal); font-size: 12px; }
.check-card:has(input:focus-visible) { outline: 3px solid rgba(24, 164, 156, .4); outline-offset: 2px; }
.field-error { display: none; margin: 8px 0 0; color: var(--coral-dark); font-size: 13px; font-weight: 800; }
.field-error.is-visible { display: block; }
.privacy-check { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 16px; color: #3d4a62; font-size: 14px; font-weight: 700; cursor: pointer; }
.privacy-check input { flex: 0 0 auto; width: 20px; height: 20px; min-height: 0; margin-top: 4px; accent-color: var(--teal); }
.privacy-check a { color: #075aa6; }
.form-assurance { margin: 24px 0 18px; padding: 17px; border: 1px solid rgba(24, 164, 156, .38); border-radius: 16px; background: #f2fffd; }
.form-assurance strong { color: var(--navy); }
.form-assurance ul { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.form-assurance li { position: relative; padding-left: 1.45em; color: #42506a; font-size: 13px; font-weight: 700; }
.form-assurance li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.submit-btn { width: 100%; min-height: 62px; padding: 15px 22px; font-family: inherit; font-size: 17px; cursor: pointer; }
.field-note,
.bottom-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.bottom-note { text-align: center; }
.thanks-box { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f5f8fb; }

@media (max-width: 700px) {
  .site-header__inner { width: min(100% - 24px, 1024px); min-height: 58px; }
  .brand__name { font-size: 22px; }
  .brand__tagline { font-size: 8px; }
  .header-cta { min-height: 40px; padding: 8px 14px; font-size: 12px; }
  .lp-images { box-shadow: none; }
  .faq-section { padding: 62px 13px 72px; }
  .faq-lead { margin-bottom: 28px; font-size: 13px; }
  .faq-list { gap: 10px; }
  .faq-item { border-radius: 13px; }
  .faq-item summary { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 10px; min-height: 72px; padding: 13px; font-size: 15px; line-height: 1.55; }
  .faq-number { width: 40px; height: 40px; font-size: 12px; }
  .faq-toggle { width: 22px; height: 22px; }
  .faq-answer { margin: 0 13px 14px; padding: 15px; }
  .faq-answer p { font-size: 14px; line-height: 1.85; }
  .faq-cta { margin-top: 32px; padding: 26px 16px; border-radius: 19px; }
  .faq-cta a { min-height: 56px; font-size: 15px; }
  .floating-cta { display: inline-flex; }
  .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .legal-page,
  .form-page { padding: 18px 12px 42px; }
  .legal-card,
  .form-card { border-radius: 17px; }
  .legal-row { grid-template-columns: 1fr; }
  .legal-th { padding: 11px 14px; border-bottom: 1px solid var(--line); }
  .legal-td { padding: 13px 14px 17px; }
  .form-hero { padding: 25px 18px 22px; }
  .form-hero__points { grid-template-columns: 1fr; gap: 6px; }
  .form-card--connected { border-radius: 0 0 20px 20px; }
}

@media (max-width: 370px) {
  .brand__tagline { display: none; }
  .header-cta { padding-inline: 12px; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

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