/* Shared polish layer: loaded after each page's inline styles */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
::selection { background: var(--yellow); color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(43, 91, 255, 0.45);
  outline-offset: 2px;
}

/* ---------- Icons ---------- */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.icon-box .ico { width: 26px; height: 26px; }
.tone-blue { background: #DBEAFE; color: #1D4ED8; }
.tone-yellow { background: #FEF3C7; color: #B45309; }
.tone-green { background: #D1FAE5; color: #047857; }
.tone-navy { background: var(--navy); color: var(--yellow); }

/* ---------- Navigation ---------- */
.nav { border-bottom: 1px solid transparent; transition: box-shadow 0.2s, border-color 0.2s; }
.nav.scrolled { border-color: var(--gray-200); box-shadow: 0 6px 24px rgba(3, 3, 47, 0.06); }
.nav-inner { gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; margin-right: 10px; }
.nav-menu { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.nav-menu a { padding: 8px 14px; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--gray-700); transition: background 0.15s, color 0.15s; }
.nav-menu a:hover { background: var(--gray-100); color: var(--navy); }
.nav-menu a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.nav-menu .nav-menu-login { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { padding: 8px 14px; font-weight: 600; font-size: 0.92rem; border-radius: 8px; }
.nav-login:hover { background: var(--gray-100); }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger:hover { background: var(--gray-100); }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { box-shadow: 0 8px 20px rgba(43, 91, 255, 0.25); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(43, 91, 255, 0.32); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #FFD033; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.8); border: 1.5px solid var(--gray-200); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-line-light { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn-line-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Layout helpers ---------- */
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); background: #E8EEFF; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--gray-500); font-size: 1.1rem; margin: 0 auto; }
.split { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.split p.lead { color: var(--gray-500); font-size: 1.08rem; line-height: 1.7; }
.photo { width: 100%; border-radius: 28px; object-fit: cover; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; }
.checklist { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .check { width: 28px; height: 28px; border-radius: 50%; background: #DCFCE7; color: #15803D; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.checklist .check .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.checklist strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.checklist span { color: var(--gray-500); font-size: 0.93rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.1s; }
.js .reveal.d2 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none !important; }
}

/* ---------- Sub-page hero ---------- */
.page-hero.on-dark { color: #fff; padding: 110px 24px 96px; position: relative; overflow: hidden; }
.page-hero.on-dark h1 { color: #fff; }
.page-hero.on-dark h1 span { color: var(--yellow); }
.page-hero.on-dark p { color: rgba(255, 255, 255, 0.82); }
.page-hero.hero-img { background: linear-gradient(180deg, rgba(3, 3, 47, 0.78), rgba(3, 3, 47, 0.92)), var(--bg) center / cover no-repeat; }
.page-hero.hero-dark { background: radial-gradient(circle at 85% 0%, rgba(255, 189, 0, 0.28), transparent 45%), radial-gradient(circle at 0% 100%, rgba(43, 91, 255, 0.45), transparent 50%), linear-gradient(135deg, #03032F, #12124A); }
.page-hero .eyebrow { background: rgba(255, 255, 255, 0.12); color: var(--yellow); }
.page-hero .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.crumbs { font-size: 0.85rem; opacity: 0.75; margin-bottom: 18px; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps.four { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 32px 28px; border: 1px solid var(--gray-200); border-radius: 24px; background: #fff; transition: transform 0.25s, box-shadow 0.25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { position: absolute; top: 20px; right: 26px; font-size: 3rem; font-weight: 800; color: var(--gray-100); line-height: 1; }
.step h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; max-width: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 16px; border: 1px solid var(--gray-200); overflow: hidden; transition: box-shadow 0.2s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: #C7D2FE; }
.faq-item summary { padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 24px 22px; color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; max-width: none; }

/* ---------- CTA banner ---------- */
.cta-banner { border-radius: 32px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-banner .btn.btn-line-light { background: transparent; color: #fff; }

/* ---------- Footer ---------- */
footer { padding-top: 72px; }
.footer-brand .logo { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.footer-social a:hover { background: var(--yellow); color: var(--navy); }
.footer-social .ico { width: 18px; height: 18px; }
.footer-col a:hover { color: var(--yellow); opacity: 1; }
.footer-bottom span:last-child { display: flex; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-menu { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--gray-200); box-shadow: 0 20px 40px rgba(3, 3, 47, 0.08); display: none; }
  .nav.open .nav-menu { display: flex; }
  .nav-menu a { padding: 16px 4px; font-size: 1rem; border-bottom: 1px solid var(--gray-100); border-radius: 0; }
  .nav-menu .nav-menu-login { display: block; }
  .nav-burger { display: flex; }
  .nav-login { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav-menu { flex: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps, .steps.four { grid-template-columns: 1fr; }
  .page-hero.on-dark { padding: 80px 24px 64px; }
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-banner { padding: 40px 28px; }
}

.footer-address { display: flex; gap: 10px; align-items: flex-start; font-style: normal; font-size: 0.88rem; line-height: 1.6; opacity: 0.8; margin-top: 18px; }
.footer-address .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--yellow); }
