@import url('/brand-theme.css');

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

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

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.brand-copy { display: grid; gap: 3px; }

.brand-copy strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--background-soft);
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
  outline: none;
}

.nav a.active {
  color: var(--on-brand);
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 20px rgba(var(--brand-rgb), 0.22);
}

.hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px 24px 44px;
  text-align: center;
}

.hero::before {
  content: "";
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  margin-bottom: 22px;
  background: var(--brand-logo-url) center / contain no-repeat;
}

.hero::after { display: none; }

.hero-copy {
  width: min(760px, 100%);
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent-dark);
  border-radius: 50%;
  background: var(--accent-soft);
}

h1, h2, h3, p { letter-spacing: 0; }

h1 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 54px;
  font-weight: 850;
  line-height: 1.02;
}

h1 span { color: var(--brand); }

.lead {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 560;
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--on-brand);
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 32px rgba(var(--brand-rgb), 0.25);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid var(--brand-line);
  outline-offset: 2px;
}

.button.secondary {
  color: var(--brand);
  border-color: var(--brand-line);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.button.secondary:hover,
.button.secondary:focus-visible { background: var(--brand-soft); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--panel);
  font-size: 11px;
  font-weight: 720;
}

.trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.trust-row span:nth-child(2)::before { background: var(--accent-dark); }
.trust-row span:nth-child(3)::before { background: var(--gold); }

.intro-band,
.notice,
.contact-band {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  margin-top: 8px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.intro-band h2,
.notice h2,
.contact-band h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 840;
  line-height: 1.15;
}

.intro-band p,
.notice p,
.contact-band p {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 540;
  line-height: 1.7;
}

.notice {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.notice .section-label { color: var(--brand); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 48px 0 16px;
}

.section-head h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 850;
  line-height: 1.15;
}

.section-head p {
  max-width: 510px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 540;
  line-height: 1.6;
}

.route-grid,
.content,
.principle-grid {
  display: grid;
  gap: 14px;
}

.route-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.principle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.route-card,
.card,
.principle {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.route-card {
  min-height: 215px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.route-card:hover,
.route-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 22px 48px rgba(var(--brand-rgb), 0.12);
  outline: none;
}

.route-index {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.route-card h3 {
  margin: 30px 0 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 830;
}

.route-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.62;
}

.route-card .route-action {
  margin-top: auto;
  padding-top: 20px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.card { padding: 27px; }
.card.full { grid-column: 1 / -1; }
.card.accent { border-top: 3px solid var(--brand); }
.card.warning { border-top: 3px solid var(--red); }
.card.violet { border-top: 3px solid var(--accent-dark); }

.card h2 {
  margin: 7px 0 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 840;
  line-height: 1.2;
}

.card h3 { margin: 22px 0 8px; color: var(--ink); font-size: 16px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.72; }
.card p + p { margin-top: 12px; }

.card a.inline,
.contact-band a.inline,
.faq a.inline {
  color: var(--brand);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.list,
.numbered-list {
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.list li,
.numbered-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.numbered-list { counter-reset: steps; }
.numbered-list li { min-height: 36px; padding-left: 48px; }

.numbered-list li::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.principle { min-height: 170px; padding: 22px; }

.principle b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: 10px;
}

.principle h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; font-weight: 820; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.62; }

.contact-band .actions { margin-top: 0; justify-content: flex-end; }

.faq {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  box-shadow: var(--card-shadow);
}

.faq article { padding: 22px; background: var(--panel); }
.faq h3 { margin: 0 0 8px; color: var(--ink); font-size: 15px; font-weight: 820; }
.faq p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.meta-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
  padding: 24px 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--ink-soft); font-weight: 650; text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--brand); }

@media (max-width: 920px) {
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle-grid { grid-template-columns: 1fr; }
  .principle { min-height: 0; }
  h1 { font-size: 48px; }
  .contact-band { grid-template-columns: 1fr; }
  .contact-band .actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 1120px); padding-top: 12px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 10px; border-radius: 18px; }
  .brand { padding-left: 2px; }
  .nav { width: 100%; overflow-x: auto; }
  .nav a { min-width: max-content; flex: 1 0 auto; padding: 0 10px; }
  .hero { min-height: 470px; padding: 42px 12px 36px; }
  .hero::before { width: 82px; height: 82px; flex-basis: 82px; border-radius: 22px; }
  h1 { font-size: 39px; }
  .lead { font-size: 15px; }
  .intro-band, .notice, .contact-band { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .section-head { align-items: flex-start; flex-direction: column; margin-top: 40px; }
  .section-head h2 { font-size: 25px; }
  .route-grid, .content { grid-template-columns: 1fr; }
  .route-card { min-height: 185px; }
  .card.full { grid-column: auto; }
  .card { padding: 22px; }
  .footer { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .nav a { font-size: 11px; }
  h1 { font-size: 36px; }
  .hero { min-height: 480px; }
  .actions { width: 100%; }
  .actions .button { width: 100%; }
  .trust-row span { flex: 1 1 calc(50% - 5px); justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-card, .button { transition: none; }
}

html[data-embed="app"],
html[data-embed="app"] body {
  background: var(--background);
}

html[data-embed="app"] .shell {
  width: 100%;
  padding: 0 18px 32px;
}

html[data-embed="app"] .topbar,
html[data-embed="app"] .footer {
  display: none;
}

html[data-embed="app"] .hero {
  min-height: 0;
  padding: 26px 4px 34px;
}

html[data-embed="app"] .hero::before {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  margin-bottom: 18px;
  border-radius: 0;
}

html[data-embed="app"] h1 {
  font-size: 34px;
  line-height: 1.04;
}

html[data-embed="app"] .lead {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.58;
}

html[data-embed="app"] .actions {
  margin-top: 20px;
}

html[data-embed="app"] .section-head {
  margin-top: 36px;
}

html[data-embed="app"] .notice,
html[data-embed="app"] .contact-band,
html[data-embed="app"] .card,
html[data-embed="app"] .faq {
  box-shadow: 0 12px 30px rgba(20, 62, 67, 0.07);
}
