:root {
  --primary: #163a5f;
  --primary-dark: #0d2945;
  --cobalt: #0968f6;
  --cobalt-dark: #004fd6;
  --pale-blue: #eaf4ff;
  --pale-blue-2: #f6fbff;
  --accent: #1f7a68;
  --accent-dark: #15594c;
  --ink: #17212b;
  --muted: #5f6b76;
  --line: #dfe5e9;
  --soft: #f4f7f8;
  --white: #ffffff;
  --warning: #9d5c14;
  --danger: #a12828;
  --success: #176a49;
  --shadow-sm: 0 8px 24px rgba(16, 40, 62, 0.08);
  --shadow-md: 0 18px 50px rgba(16, 40, 62, 0.12);
  --shadow-blue: 0 22px 60px rgba(9, 104, 246, 0.14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body.legal-layout {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.legal-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.legal-layout main {
  flex: 1;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.narrow { max-width: 820px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(214, 226, 241, 0.82);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
}
.brand-mark { width: 38px; height: 34px; object-fit: contain; }
.brand-name {
  color: var(--primary);
  font-weight: 760;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.desktop-nav a { text-decoration: none; color: var(--muted); font-size: 0.94rem; font-weight: 620; }
.desktop-nav a:hover { color: var(--primary); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 730;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 8px 18px rgba(22, 58, 95, 0.16); transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(31, 122, 104, 0.28); outline-offset: 2px; }
.button:disabled { opacity: 0.55; cursor: wait; transform: none; box-shadow: none; }
.product-cta {
  width: 100%;
  white-space: nowrap;
}
.button.product-cta-solid {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
}
.button.product-cta-solid:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.button.product-cta-outline {
  background: var(--white) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.button.product-cta-outline:hover {
  background: #eef4f8 !important;
  color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.button-small { min-height: 40px; padding: 0 17px; font-size: 0.9rem; }
.button-large { min-height: 54px; padding-inline: 27px; }
.button-secondary { background: var(--white); color: var(--primary); }
.button-secondary:hover { background: #eef4f8; color: var(--primary-dark); }
.button-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.button-ghost:hover { background: var(--soft); border-color: #cbd6dc; color: var(--primary); box-shadow: none; }
.button-light { background: var(--white); border-color: var(--white); color: var(--primary); }
.button-light:hover { background: #edf4f7; border-color: #edf4f7; color: var(--primary-dark); }

.legal-page .support-recover-cta {
  color: #ffffff !important;
}

.legal-page .support-recover-cta:hover,
.legal-page .support-recover-cta:visited,
.legal-page .support-recover-cta:active,
.legal-page .support-recover-cta:focus {
  color: #ffffff !important;
}
.full-width { width: 100%; }
.text-link { color: var(--primary); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 132px;
  background:
    radial-gradient(circle at 84% 12%, rgba(9, 104, 246, 0.16), transparent 28%),
    radial-gradient(circle at 56% 74%, rgba(9, 104, 246, 0.08), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, var(--pale-blue-2) 52%, #ffffff 100%);
  border-bottom: 0;
}
.hero::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -92px;
  height: 230px;
  background:
    radial-gradient(120% 95% at 42% 0%, rgba(9, 104, 246, 0.98) 0%, rgba(6, 91, 224, 0.96) 45%, rgba(13, 41, 69, 0.96) 78%, rgba(13, 41, 69, 0) 79%),
    linear-gradient(90deg, rgba(9, 104, 246, 0.98), rgba(13, 41, 69, 0.96));
  border-radius: 50% 50% 0 0 / 72% 72% 0 0;
  transform: rotate(-1.4deg);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); align-items: center; gap: 74px; }
.hero-grid { position: relative; z-index: 2; }
.hero h1 span { color: var(--cobalt); }
.eyebrow { display: inline-block; margin-bottom: 15px; color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.eyebrow.light { color: #cde6df; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.12; letter-spacing: -0.035em; }
h1 { max-width: 720px; margin-bottom: 22px; color: var(--primary-dark); font-size: clamp(2.6rem, 5.1vw, 4.65rem); }
h2 { margin-bottom: 16px; color: var(--primary-dark); font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.32rem; }
.hero-lede { max-width: 700px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.27rem); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 31px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.87rem; }
.trust-row li { position: relative; padding-left: 20px; }
.trust-row li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.hero-illustration {
  position: relative;
  min-height: 530px;
}
.hero-illustration::before {
  content: "";
  position: absolute;
  inset: 9% -5% 4% 2%;
  background: linear-gradient(145deg, rgba(221, 236, 255, 0.82), rgba(246, 251, 255, 0));
  border-radius: 48% 52% 42% 58%;
}
.hero-art {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 620px);
  margin-left: auto;
  filter: drop-shadow(0 24px 32px rgba(22, 58, 95, 0.12));
}
.hero-curve { position: absolute; inset: auto 0 0; height: 1px; pointer-events: none; }

.document-visual { position: relative; min-height: 500px; }
.paper { position: absolute; left: 50%; width: 332px; height: 440px; border: 1px solid #d6dfe4; border-radius: 8px; background: white; box-shadow: var(--shadow-md); }
.paper-back { top: 37px; transform: translateX(-50%) rotate(-7deg); opacity: 0.7; }
.paper-middle { top: 24px; transform: translateX(-50%) rotate(5deg); opacity: 0.85; }
.paper-front { top: 12px; padding: 29px; transform: translateX(-50%); }
.paper-heading { display: flex; align-items: center; gap: 9px; color: var(--primary); font-size: 0.56rem; font-weight: 850; letter-spacing: 0.08em; }
.paper-heading img { width: 22px; height: 22px; }
.paper-title-line { width: 70%; height: 12px; margin: 35px 0 25px; border-radius: 5px; background: var(--primary); }
.paper-line { height: 6px; margin: 12px 0; border-radius: 4px; background: #dce4e8; }
.paper-line.long { width: 100%; }
.paper-line.medium { width: 82%; }
.paper-line.short { width: 55%; }
.paper-card { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 35px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.paper-card div { height: 73px; border-radius: 4px; background: linear-gradient(145deg, #dae6e3, #edf2f3); }
.paper-footer-line { width: 100%; height: 4px; margin-top: 37px; background: #e6ecef; }
.visual-badge { position: absolute; right: 0; bottom: 34px; padding: 11px 15px; border: 1px solid #c9dad5; border-radius: 999px; background: white; box-shadow: var(--shadow-sm); color: var(--accent-dark); font-size: 0.8rem; font-weight: 760; }

.assurance-strip { border-bottom: 1px solid #d8e7f6; background: white; }
.assurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.assurance-grid > div { min-height: 124px; padding: 24px 25px; border-right: 1px solid rgba(216, 231, 246, 0.78); }
.assurance-grid > div:first-child { border-left: 1px solid rgba(216, 231, 246, 0.78); }
.assurance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}
.assurance-icon svg {
  width: 64px;
  height: 64px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(22, 58, 95, 0.1));
}
.assurance-grid strong, .assurance-grid span { display: block; }
.assurance-grid strong { margin-bottom: 7px; color: var(--primary-dark); }
.assurance-grid span { color: var(--muted); font-size: 0.88rem; }

.section { padding: 102px 0; }
.section-soft { background: linear-gradient(180deg, #ffffff 0%, var(--pale-blue-2) 100%); border-block: 1px solid #d8e7f6; }
.section-heading { max-width: 720px; margin-bottom: 46px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.compact { margin-bottom: 33px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 20px; }
.product-card { position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 32px; border: 1px solid #d8e7f6; border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.product-card { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.product-card:hover,
.product-card:focus-within { border-color: #9bb1ca; }
.product-badge {
  position: absolute;
  right: 24px;
  top: -14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.product-badge-pricing {
  height: 28px;
  padding: 0 16px;
  font-size: 11px;
}
.product-badge-builder {
  height: 22px;
  padding: 0 11px;
  font-size: 10px;
}
.badge-recommended { background: var(--primary); color: #fff; }
.badge-advanced { background: #0b3f73; color: #fff; }
.product-kicker { margin-bottom: 13px; color: var(--accent); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.product-card[data-product-card='warranty_claim_letter'],
.product-card[data-product-card='refund_packet'] {
  border-color: #aecff5;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}
.product-card[data-product-card='refund_packet'] { background: #fbfdff; }
.product-card h3 { margin-bottom: 14px; color: var(--primary-dark); font-size: 1.55rem; }
.product-card p { margin: 0; color: var(--muted); }
.product-card ul { margin: 27px 0 0; padding: 0; list-style: none; }
.product-card li { position: relative; margin: 12px 0; padding-left: 23px; }
.product-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.product-bottom { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); }
.product-bottom > div { margin-bottom: 18px; }
.price { color: var(--primary-dark); font-size: 2rem; font-weight: 820; letter-spacing: -0.04em; }
.price-note { color: var(--muted); font-size: 0.83rem; }
.product-bottom .product-cta { width: 100%; }
.pricing-disclosure { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 0.8rem; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.steps-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.steps-grid article > span { display: inline-flex; justify-content: center; align-items: center; width: 35px; height: 35px; margin-bottom: 28px; border-radius: 50%; background: var(--primary); color: white; font-weight: 800; }
.steps-grid h3 { margin-bottom: 10px; color: var(--primary-dark); font-size: 1.13rem; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.template-page-section.template-page-hidden {
  display: none;
}
.template-card-grid { gap: 18px; }
.template-card-grid .product-card {
  min-height: 0;
  padding: 24px 24px 22px;
}
.template-card-grid .product-card h3 {
  margin-bottom: 10px;
  font-size: 1.34rem;
}
.template-card-grid .product-card p {
  font-size: 0.97rem;
}
.template-card-grid .product-bottom {
  padding-top: 18px;
}
.template-best-for {
  margin-top: 12px !important;
  color: var(--primary-dark) !important;
  font-size: 0.9rem !important;
}
.template-fallback {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 26px 28px;
  border: 1px solid #d8e7f6;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.template-fallback h3 {
  margin-bottom: 10px;
}
.template-fallback p {
  margin: 0;
  color: var(--muted);
}
.template-fallback p:last-child {
  margin-top: 18px;
}
.template-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.template-detail-grid article {
  padding: 24px;
}
.template-page-section .section-heading {
  max-width: 760px;
}

.builder-section { padding: 48px 0 116px; background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); }
.builder-container { max-width: 1040px; }
.builder-shell { overflow: hidden; border: 1px solid #d8e7f6; border-radius: var(--radius); background: white; box-shadow: var(--shadow-blue); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0 36px; border-bottom: 1px solid #d8e7f6; background: linear-gradient(90deg, var(--pale-blue-2), #ffffff); list-style: none; }
.progress li { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 77px; color: #89939c; font-size: 0.86rem; }
.progress li span { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid #bdc7cd; border-radius: 50%; background: white; font-size: 0.76rem; }
.progress li.active, .progress li.complete { color: var(--primary); }
.progress li.active span { border-color: var(--primary); background: var(--primary); color: white; }
.progress li.complete span { border-color: var(--accent); background: var(--accent); color: white; }
.form-step { display: none; padding: 43px 50px 48px; }
.form-step.active { display: block; }
.step-heading { margin-bottom: 34px; }
.step-heading > span { display: block; margin-bottom: 8px; color: var(--accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.step-heading h3 { margin-bottom: 10px; color: var(--primary-dark); font-size: 1.85rem; }
.step-heading p { margin: 0; color: var(--muted); }
.product-step-summary { margin-top: 0; margin-bottom: 8px; font-size: 1.12rem; color: var(--primary-dark); font-weight: 780; }
.selected-package { margin-left: 4px; color: var(--accent); font-size: 1.35rem; font-weight: 760; white-space: nowrap; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 212px;
  padding: 24px;
  padding-right: 40px;
  border: 1.5px solid #d8e7f6;
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.choice-content strong {
  color: var(--primary-dark);
  font-size: 1.04rem;
  min-height: 2.35rem;
  line-height: 1.25;
}
.choice-content small {
  color: var(--muted);
  line-height: 1.45;
  min-height: 4.2rem;
  margin: 0 0 14px;
}
.choice-content b {
  margin: 0;
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: auto;
  display: flex;
  align-items: end;
  line-height: 1.2;
  min-height: 2.2rem;
}
.choice-content::after {
  content: none;
  position: absolute;
  top: 11px;
  right: 11px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  color: transparent;
  font-size: 0.72rem;
  font-weight: 780;
  background: #fff;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.choice-card input:checked + .choice-content::after {
  content: "✓";
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1;
  color: #1f7a68;
  background: #e8f6f1;
  border-color: #1f7a68;
  box-shadow: 0 0 0 2px #fff;
}
.choice-card input:checked + .choice-content {
  border-color: var(--primary);
  background: #f4fbff;
  box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 1px rgba(9, 104, 246, 0.08);
}
.choice-card input:focus-visible + .choice-content { outline: 3px solid rgba(31, 122, 104, 0.28); outline-offset: 2px; }
.tone-section .step-helper { margin: -12px 0 16px; }
.tone-grid .choice-content {
  min-height: 128px;
  padding: 20px 40px 20px 20px;
}
.tone-grid .choice-content strong {
  min-height: 0;
}
.tone-grid .choice-content small {
  min-height: 0;
  margin-bottom: 0;
}
.tone-examples {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}
.tone-examples summary {
  padding: 12px 14px;
  color: var(--primary);
  font-weight: 740;
  cursor: pointer;
}
.tone-example-grid {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}
.tone-example-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}
.choice-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.65rem;
  font-weight: 760;
  background: #fff;
}
.selected-product-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

#products.section { padding-bottom: 48px; }

#product-continue.next-step {
  min-width: 145px;
}
#product-continue.next-step:disabled {
  border-color: #a9b9c7;
  background: #b7c6d4;
  color: #f4f8fc;
}

.form-section { margin: 34px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section h4 { margin-bottom: 20px; color: var(--primary-dark); font-size: 1.08rem; letter-spacing: -0.015em; }
.field-grid { display: grid; gap: 19px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid .full { grid-column: 1 / -1; }
label { display: block; color: var(--ink); font-size: 0.9rem; font-weight: 680; }
.optional { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #c7d8e8; border-radius: var(--radius-sm); background: white; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
input:not([type="radio"]):not([type="checkbox"]) { min-height: 47px; }
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(9, 104, 246, 0.12); outline: 0; }
input.invalid, textarea.invalid { border-color: var(--danger); background: #fffafa; }
label > small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.select-with-other { align-self: start; }
.conditional-other {
  display: block;
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid #d8e3e0;
}
.conditional-other-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.conditional-other input {
  margin-top: 0;
  min-height: 42px;
}
.shipping-support-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}
.shipping-support-heading {
  margin-bottom: 14px;
}
.shipping-support-heading h5 {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.shipping-support-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
}
.shipping-support-grid {
  gap: 16px;
}
.additional-details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); }
.additional-details summary { padding: 14px 16px; color: var(--primary); font-weight: 700; cursor: pointer; }
.additional-details label { padding: 0 16px 16px; }
.step-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.step-actions.end { justify-content: flex-end; }
.step-helper { margin: 0; color: var(--muted); font-size: 0.82rem; }

.upload-rules { margin-bottom: 17px; color: var(--muted); font-size: 0.85rem; }
.drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 285px; padding: 34px; border: 2px dashed #b8cbe3; border-radius: var(--radius-sm); background: #fbfdff; text-align: center; transition: border-color 0.15s ease, background 0.15s ease; }
.drop-zone.dragging { border-color: var(--cobalt); background: #f1f7ff; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone strong { margin-top: 8px; color: var(--primary-dark); font-size: 1.06rem; }
.drop-zone span { margin: 4px 0 19px; color: var(--muted); font-size: 0.88rem; }
.upload-icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 16px; background: var(--pale-blue); color: var(--cobalt); font-size: 1.6rem; font-weight: 800; }
.file-list { display: grid; gap: 13px; margin-top: 18px; }
.file-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 0.92fr); align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.file-type { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; background: var(--soft); color: var(--primary); font-size: 0.68rem; font-weight: 850; }
.file-size-meta { min-width: 0; }
.file-size-meta strong, .file-size-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size-meta strong { font-size: 0.84rem; }
.file-size-meta span { margin-top: 2px; color: var(--muted); font-size: 0.74rem; }
.file-main-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 12px; min-width: 0; }
.file-main-controls .conditional-other { grid-column: 1 / -1; }
.file-action-row { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.file-field { display: grid; gap: 6px; margin: 0; color: var(--primary-dark); font-size: 0.78rem; font-weight: 700; }
.file-field input,
.file-field select { width: 100%; }
.file-details { grid-column: 1 / -1; margin-top: 2px; border-top: 1px solid var(--line); }
.file-details summary { width: max-content; padding: 12px 0 2px; color: var(--primary); font-size: 0.84rem; font-weight: 740; cursor: pointer; }
.file-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  min-width: 0;
  width: 100%;
}
.file-meta-grid input,
.file-meta-grid select,
.include-row {
  min-height: 40px !important;
  font-size: 0.81rem;
}
.include-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.file-row input { margin: 0 !important; min-height: 40px !important; font-size: 0.82rem; }
.remove-file { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 0; border-radius: 50%; background: transparent; color: var(--danger); cursor: pointer; }
.remove-file:hover { background: #fff0f0; }
.evidence-actions { align-items: end; }
.evidence-confirmation-stack { display: grid; justify-items: end; gap: 14px; }
.confirmation { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 0.86rem; font-weight: 560; text-align: left; }
.confirmation input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.notice { padding: 15px 17px; border: 1px solid; border-radius: 10px; font-size: 0.86rem; }
.notice-neutral { margin-top: 16px; border-color: var(--line); background: white; color: var(--muted); }
.notice-info { margin-bottom: 18px; border-color: #b8d4e6; background: #f1f8fc; color: #214b67; }
.notice-error { border-color: #e4bbbb; background: #fff5f5; color: var(--danger); }

.status-message { min-height: 24px; margin-bottom: 12px; color: var(--muted); font-size: 0.86rem; }
.status-message.error { color: var(--danger); }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr); gap: 22px; }
.preview-frame-wrap { position: relative; overflow: hidden; min-height: 650px; border: 1px solid #d8e7f6; border-radius: var(--radius-sm); background: #e8f0f8; }
.preview-frame-wrap iframe { width: 100%; height: 650px; border: 0; background: white; }
.preview-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.preview-placeholder strong { margin-top: 17px; color: var(--primary-dark); }
.preview-placeholder span { margin-top: 3px; font-size: 0.84rem; }
.spinner { width: 42px; height: 42px; border: 4px solid #cfd8dc; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-card { align-self: start; padding: 25px; border: 1px solid #d8e7f6; border-radius: var(--radius-sm); background: white; box-shadow: var(--shadow-sm); }
.order-label { color: var(--accent); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.order-card h4 { margin: 9px 0 17px; color: var(--primary-dark); font-size: 1.38rem; }
.order-price { display: flex; align-items: baseline; justify-content: space-between; padding: 17px 0; border-block: 1px solid var(--line); }
.order-price > span { color: var(--primary-dark); font-size: 2.05rem; font-weight: 820; letter-spacing: -0.04em; }
.order-price small { color: var(--muted); }
.order-card ul { margin: 20px 0; padding: 0; list-style: none; }
.order-card li { position: relative; margin: 10px 0; padding-left: 22px; color: var(--muted); font-size: 0.86rem; }
.order-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.checkout-note { margin: 14px 0 0; color: var(--muted); font-size: 0.74rem; text-align: center; }
.recovery-copy { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.recovery-copy p { margin: 0 0 8px; color: var(--muted); font-size: 0.84rem; }
.recovery-copy label { display: block; margin: 10px 0 7px; color: var(--primary-dark); font-weight: 640; }
.recovery-copy input { width: 100%; margin-bottom: 10px; }
.demo-note { margin-top: 13px; padding: 10px; border-radius: 8px; background: #fff8e8; color: var(--warning); font-size: 0.76rem; }
.success-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 19px 22px; border: 1px solid #b9dacd; border-radius: var(--radius); background: #f1faf6; }
.success-panel > div { display: flex; align-items: center; gap: 14px; }
.success-panel h3 { margin: 0 0 3px; color: var(--success); font-size: 1.08rem; }
.success-panel p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--success); color: white; font-weight: 900; }

.security-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 75px; }
.security-grid > div:first-child { position: sticky; top: 120px; }
.security-grid > div:first-child p { color: var(--muted); font-size: 1.05rem; }
.security-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.security-cards article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.security-cards strong { color: var(--primary-dark); }
.security-cards p { margin: 8px 0 0; color: var(--muted); font-size: 0.87rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 23px 40px 23px 0; color: var(--primary-dark); font-weight: 720; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 5px; color: var(--accent); font-size: 1.4rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -6px 0 23px; color: var(--muted); }

.final-cta { padding: 76px 0; background: var(--primary); color: white; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.final-cta h2 { margin-bottom: 10px; color: white; }
.final-cta p { margin: 0; color: #d8e5ec; }
.site-footer { padding: 60px 0 25px; background: #0d2235; color: #ccdae3; }
.legal-layout main {
  flex: 1;
}
.legal-layout footer {
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 45px; }
.footer-brand {
  gap: 12px;
}
.footer-brand-mark {
  width: 44px;
  height: 40px;
  padding: 0;
  border-radius: 0;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}
.footer-brand .brand-name { color: white; }
.footer-grid > div:first-child p { max-width: 360px; color: #9eb1bd; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid strong { margin-bottom: 5px; color: white; }
.footer-grid a:not(.brand) { color: #adbdc7; text-decoration: none; font-size: 0.9rem; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); color: #8599a6; font-size: 0.75rem; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .nav-wrap > .button { margin-left: auto; }
  .hero { padding-top: 66px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-lede { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-illustration { min-height: 360px; order: 2; }
  .hero-art { margin-inline: auto; max-height: 390px; }
  .assurance-grid { grid-template-columns: repeat(2, 1fr); }
  .assurance-grid > div:nth-child(3) { border-left: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr; max-width: 690px; margin-inline: auto; }
  .product-card { min-height: auto; }
  .product-card .product-badge { top: -11px; right: 16px; }
  .product-badge { white-space: normal; text-align: center; }
  .product-cta { white-space: normal; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .template-detail-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .order-card { order: -1; }
  .security-grid { grid-template-columns: 1fr; gap: 35px; }
  .security-grid > div:first-child { position: static; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-wrap { min-height: 66px; gap: 14px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 34px; height: 31px; flex: 0 0 auto; }
  .site-header .brand-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.94rem;
    line-height: 1;
  }
  .site-header .button-small {
    min-height: 38px;
    padding-inline: 14px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .hero { padding: 42px 0 118px; }
  .hero::after { bottom: -68px; height: 154px; transform: rotate(-1deg); }
  h1 { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .hero-actions { flex-direction: column; gap: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-illustration { min-height: 238px; margin: -12px -8px -36px; }
  .hero-art { max-height: 265px; }
  .assurance-grid { grid-template-columns: 1fr; }
  .assurance-strip { padding-top: 38px; }
  .assurance-grid > div, .assurance-grid > div:first-child, .assurance-grid > div:nth-child(3) {
    min-height: auto;
    padding: 20px 18px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 231, 246, 0.72);
  }
  .assurance-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
  }
  .assurance-icon svg {
    width: 56px;
    height: 56px;
  }
  .template-card-grid .product-card {
    padding: 22px 20px 20px;
  }
  .template-fallback {
    padding: 22px 20px;
  }
  .section, .builder-section { padding: 72px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .progress { padding: 0 8px; }
  .progress li { min-height: 63px; gap: 5px; }
  .progress li b { display: none; }
  .form-step { padding: 30px 20px 34px; }
  .choice-grid, .field-grid.two { grid-template-columns: 1fr; }
  .choice-content { min-height: 145px; }
  .field-grid .full { grid-column: auto; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .button { width: 100%; }
  .file-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .file-main-controls { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .file-action-row { justify-content: space-between; }
  .file-meta-grid { grid-template-columns: 1fr; }
  .evidence-actions { align-items: stretch; }
  .evidence-confirmation-stack { justify-items: stretch; width: 100%; }
  .include-row { grid-column: 1 / -1; }
  .preview-frame-wrap, .preview-frame-wrap iframe { min-height: 520px; height: 520px; }
  .security-cards { grid-template-columns: 1fr; }
  .final-cta-inner { flex-direction: column; align-items: flex-start; }
  .final-cta .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
  .success-panel { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
.product-card.selected { border-color: var(--primary); background: #f4fbff; box-shadow: 0 0 0 2px rgba(9, 104, 246, 0.14), var(--shadow-sm); }
.legal-page { padding: 82px 0 100px; }
.legal-page h1 { margin-bottom: 8px; font-size: clamp(2.4rem, 6vw, 4rem); }
.legal-page .legal-date { margin: 0 0 28px; color: var(--muted); }
.legal-page .notice { margin-bottom: 36px; }
.legal-page h2 { margin: 42px 0 10px; font-size: 1.45rem; }
.legal-page p { color: var(--muted); }
.legal-page a { color: var(--primary); }

.download-page {
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
}
.download-shell {
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
  padding: 40px 0 72px;
}
.download-brand {
  display: inline-flex;
  margin-bottom: 34px;
  text-decoration: none;
}
.download-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.download-card h1 {
  margin: 16px 0 12px;
  color: var(--primary-dark);
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.04;
}
.download-card > p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.download-actions .notice {
  flex-basis: 100%;
  margin: 0;
}
.download-confirmation {
  flex-basis: 100%;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid #dbe6e2;
  border-radius: var(--radius);
  background: #f7fbfa;
}
.download-confirmation span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.download-confirmation strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.45rem;
  letter-spacing: 0;
}
.download-confirmation p,
.download-help {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.download-secondary-link {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 720px) {
  .download-card { padding: 28px 20px; }
  .download-actions { align-items: stretch; }
  .download-actions .button { width: 100%; }
}
