/* SignBuddy marketing site. One shared stylesheet, mobile first. */

:root {
  --blue: #3B7BF5;
  --blue-dark: #2A62DA;
  --blue-deep: #1F4FBF;
  --blue-soft: #E6EEFD;
  --ink: #1B2333;
  --ink-2: #3A4356;
  --muted: #5F6779;
  --bg: #F7F9FE;
  --white: #FFFFFF;
  --line: #E4EAF3;
  --green: #34D66A;
  --green-ink: #17803F;
  --green-soft: #E3F8EA;
  --amber: #F6B70E;
  --amber-soft: #FEF4D6;
  --orange: #F27F0C;
  --orange-soft: #FDEBDA;
  --purple: #8A63F0;
  --purple-soft: #EEE8FD;
  --fur: #7099FF;
  --navy: #172B73;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(27, 35, 51, .04), 0 8px 24px rgba(27, 35, 51, .06);
  --shadow-lift: 0 2px 4px rgba(27, 35, 51, .05), 0 18px 40px rgba(27, 35, 51, .10);
  --wrap: 1120px;
  --gutter: 20px;
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 900; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 7.6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 5vw, 2.7rem); }
h3 { font-size: 1.22rem; font-weight: 800; }
p { margin: 0 0 1em; }

a { color: var(--blue-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 254, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 38px; height: 38px;
  border-radius: 11px;
  box-shadow: 0 2px 0 rgba(23, 43, 115, .25);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.site-nav {
  position: absolute;
  top: calc(var(--header-h) - 4px);
  left: var(--gutter);
  right: var(--gutter);
  display: none;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); }
.site-nav .nav-cta { margin-top: 6px; }
.site-nav .nav-cta a { background: var(--blue); color: #fff; text-align: center; box-shadow: 0 4px 0 var(--blue-dark); }
.site-nav .nav-cta a:hover { background: var(--blue); color: #fff; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { padding: 8px 14px; font-size: .98rem; }
  .site-nav .nav-cta { margin: 0 0 0 10px; }
  .site-nav .nav-cta a { padding: 10px 18px; border-radius: 14px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--blue-dark);
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}
.btn:hover { color: #fff; background: #4685F7; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--blue-dark); }
.btn svg { width: 22px; height: 22px; }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--line);
}
.btn-ghost:hover { background: var(--white); color: var(--blue-dark); }
.btn-ghost:active { box-shadow: 0 0 0 var(--line); }

/* App Store badge, styled after Apple's black "Download on the App Store" badge. */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 58px;
  padding: 0 20px 0 15px;
  border: 1.5px solid #A6A6A6;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.app-store-badge:hover { color: #fff; background: #111; transform: translateY(-1px); }
.app-store-badge:active { transform: translateY(1px); }
.app-store-badge .apple-logo { width: 28px; height: 28px; margin-top: -3px; }
.app-store-badge .badge-text { display: flex; flex-direction: column; text-align: left; }
.app-store-badge .badge-small { font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .01em; }
.app-store-badge .badge-big { font-size: 25px; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.cta .app-store-badge { box-shadow: 0 8px 20px rgba(10, 15, 26, .25); }

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

.hero {
  position: relative;
  padding: 36px 0 64px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(112, 153, 255, .22), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(246, 183, 14, .10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #EEF3FE 100%);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 44px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 800;
  color: var(--ink-2);
  box-shadow: 0 2px 0 var(--line);
}
.eyebrow .tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
}

.hero h1 .hl {
  color: var(--blue);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: .02em;
  height: .2em;
  border-radius: 999px;
  background: rgba(246, 183, 14, .55);
  z-index: -1;
}
.hero h1 { position: relative; z-index: 0; }

.hero-lead {
  max-width: 34em;
  margin: 20px 0 28px;
  font-size: 1.14rem;
  color: var(--ink-2);
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
  font-size: .95rem;
  color: var(--ink-2);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; color: var(--green-ink); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
}
.hero-visual .blob {
  position: absolute;
  width: min(420px, 92%);
  aspect-ratio: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #CFDDFD, #B7CBFA 55%, rgba(183, 203, 250, 0) 72%);
}

.phone {
  position: relative;
  width: min(290px, 70vw);
  padding: 10px;
  border-radius: 46px;
  background: #121826;
  box-shadow:
    inset 0 0 0 2px #2B3346,
    0 30px 60px rgba(23, 43, 115, .25),
    0 12px 24px rgba(23, 43, 115, .15);
}
.phone::before {
  content: "";
  position: absolute;
  top: 19px; left: 50%;
  width: 30%; height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #121826;
  z-index: 2;
}
.phone img {
  width: 100%;
  aspect-ratio: 402 / 874;
  object-fit: cover;
  border-radius: 37px;
  background: var(--bg);
}
.phone.sm { width: 100%; padding: 7px; border-radius: 34px; }
.phone.sm::before { top: 13px; height: 14px; }
.phone.sm img { border-radius: 28px; }

.hero-poko {
  position: absolute;
  left: max(-4px, calc(50% - 250px));
  bottom: -18px;
  width: min(190px, 40vw);
  z-index: 3;
  filter: drop-shadow(0 12px 18px rgba(23, 43, 115, .22));
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 9px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  font-weight: 800;
  font-size: .9rem;
  white-space: nowrap;
}
.float-chip .ic {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 10px;
}
.float-chip .ic svg { width: 17px; height: 17px; }
.float-chip.one { top: 14%; right: max(-4px, calc(50% - 235px)); }
.float-chip.two { top: 54%; right: max(-4px, calc(50% - 250px)); }

@media (min-width: 900px) {
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 40px; }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 3.75rem); }
  .phone { width: 300px; }
  .hero-poko { width: 210px; left: calc(50% - 290px); }
  .float-chip.one { right: calc(50% - 250px); }
  .float-chip.two { right: calc(50% - 270px); }
}

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

.section { padding: 72px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.section-head p { margin: 16px auto 0; max-width: 36em; font-size: 1.08rem; color: var(--muted); }

/* Real signs grid */

.signs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .signs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.signs-grid figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #D9D3CC;
  box-shadow: var(--shadow-card);
}
.signs-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.signs-grid figcaption {
  position: absolute;
  left: 10px; bottom: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  font-weight: 900;
  font-size: .92rem;
  color: var(--ink);
}
.signs-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: .94rem;
}
.pill svg { width: 18px; height: 18px; }

/* Steps */

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.step {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 0 var(--blue-dark);
}
.step:nth-child(2) .step-num { background: var(--green); box-shadow: 0 4px 0 #22A851; color: var(--ink); }
.step:nth-child(3) .step-num { background: var(--orange); box-shadow: 0 4px 0 #C9650A; color: var(--ink); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin-bottom: 22px; }
.step-shot {
  margin: auto auto 0;
  width: 78%;
  max-width: 260px;
  height: 250px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  border: 7px solid #121826;
  border-bottom: 0;
  background: #121826;
}
.step-shot img { width: 100%; height: auto; border-radius: 21px 21px 0 0; }

/* Features */

.features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.feature {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feature h3 { margin: 16px 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.feature .big { display: block; font-size: 2rem; font-weight: 900; line-height: 1.1; color: var(--blue); }

.icon-tile {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.green { background: var(--green-soft); color: var(--green-ink); }
.icon-tile.amber { background: var(--amber-soft); color: #9A6A00; }
.icon-tile.orange { background: var(--orange-soft); color: #B65A04; }
.icon-tile.purple { background: var(--purple-soft); color: #6A43D6; }

.feature.lead-feature {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-color: transparent;
  color: #fff;
}
.feature.lead-feature h3, .feature.lead-feature p { color: #fff; }
.feature.lead-feature .big { color: #fff; }
.feature.lead-feature .icon-tile { background: rgba(255, 255, 255, .18); color: #fff; }

/* Gallery */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 62%);
  gap: 18px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 22px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 14px; text-align: center; }
.gallery figcaption strong { display: block; font-weight: 900; font-size: 1.05rem; }
.gallery figcaption span { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    gap: 28px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

/* Privacy band */

.band {
  position: relative;
  padding: 40px 24px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(112, 153, 255, .45), transparent 60%),
    linear-gradient(150deg, var(--blue-dark), var(--blue-deep));
  color: #fff;
  overflow: hidden;
}
.band h2 { color: #fff; }
.band .lead { margin: 14px 0 28px; max-width: 34em; font-size: 1.08rem; color: #E6EEFD; }
.band-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .band-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .band { padding: 56px; } .band-list { grid-template-columns: repeat(4, 1fr); } }
.band-list li {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.band-list svg { width: 24px; height: 24px; margin-bottom: 8px; color: #fff; }
.band-list strong { display: block; font-weight: 900; font-size: 1.05rem; }
.band-list span { display: block; font-size: .95rem; color: #E6EEFD; }
.band .band-link { display: inline-block; margin-top: 24px; color: #fff; font-weight: 800; }

/* Deaf culture note */

.culture {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 32px 24px;
  border-radius: 28px;
  background: var(--amber-soft);
  border: 2px solid #F8E3A6;
}
@media (min-width: 800px) {
  .culture { grid-template-columns: auto 1fr; gap: 36px; padding: 48px; }
}
.culture-icon { width: 130px; }
.culture-icon img { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(154, 106, 0, .18)); }
@media (min-width: 800px) { .culture-icon { width: 180px; } }
.culture h2 { font-size: clamp(1.6rem, 4.4vw, 2.2rem); margin-bottom: 14px; }
.culture p { color: var(--ink-2); max-width: 46em; }
.culture p:last-child { margin-bottom: 0; }

/* FAQ / accordions */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  margin-bottom: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--line);
  transition: border-color .15s ease;
}
.faq details[open] { border-color: #C9D8F8; }
.faq summary {
  position: relative;
  display: block;
  padding: 18px 60px 18px 22px;
  font-weight: 800;
  font-size: 1.06rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  border-radius: 9px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A62DA' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }
.faq .answer p:last-child, .faq .answer ol:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq .answer ol, .faq .answer ul { padding-left: 1.3em; margin: 0 0 1em; }
.faq .answer li { margin-bottom: 4px; }

/* CTA */

.cta {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 40px 24px 0;
  border-radius: 32px;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(255, 255, 255, .25), transparent 60%),
    linear-gradient(150deg, #4C88F7, var(--blue-dark));
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { margin: 12px auto 26px; max-width: 30em; color: #EEF3FE; font-size: 1.08rem; }
.cta img { width: min(260px, 70%); margin: 0 auto; }
@media (min-width: 860px) {
  .cta { grid-template-columns: 1.3fr 1fr; padding: 56px 56px 0; text-align: left; }
  .cta p { margin-left: 0; }
  .cta img { width: 300px; align-self: end; }
}
.cta-copy { padding-bottom: 8px; }
@media (min-width: 860px) { .cta-copy { padding-bottom: 56px; } }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(112, 153, 255, .2), transparent 60%),
    linear-gradient(180deg, var(--bg), #EEF3FE);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); }
.page-hero .meta { margin: 14px 0 0; color: var(--muted); font-weight: 700; }
.page-hero.with-art .wrap { display: grid; gap: 20px; align-items: center; }
.page-hero.with-art img { width: 150px; }
@media (min-width: 760px) {
  .page-hero.with-art .wrap { grid-template-columns: 1fr auto; }
  .page-hero.with-art img { width: 190px; }
}
.page-hero .lead { margin: 14px 0 0; max-width: 36em; font-size: 1.1rem; color: var(--ink-2); }

/* ---------- Legal ---------- */

.legal-layout { display: grid; gap: 32px; padding: 40px 0 80px; }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 56px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

.toc {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.toc h2 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: .95rem; }
.toc li { margin: 5px 0; }
.toc a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--blue-dark); text-decoration: underline; }

.prose { max-width: 760px; min-width: 0; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose .caps { font-weight: 700; }

.summary-card {
  margin: 0 0 36px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.summary-card h2 { margin: 0 0 14px !important; font-size: 1.2rem; }
.summary-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.summary-card li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.summary-card li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--green-ink); }

.entity-box {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  border: 2px dashed #A9C2F7;
}
.entity-box .label {
  display: block;
  margin-bottom: 4px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.entity-box p { margin: 0; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg); font-weight: 900; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Support ---------- */

.contact-card {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 26px;
  margin-top: -36px;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 760px) { .contact-card { grid-template-columns: auto 1fr auto; gap: 22px; padding: 28px 32px; } }
.contact-card h2 { font-size: 1.3rem; }
.contact-card p { margin: 4px 0 0; color: var(--muted); }

.support-section { padding: 56px 0 0; }
.support-section:last-of-type { padding-bottom: 88px; }
.support-section > h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 4.4vw, 2.1rem); }
.support-section .faq { margin: 0; max-width: none; }
.support-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .support-grid { grid-template-columns: 1fr 1fr; gap: 40px; } .support-grid .support-section { padding-top: 64px; } }

.steps-inline { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-inline li { position: relative; padding-left: 36px; margin-bottom: 8px; }
.steps-inline li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: .82rem;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid;
  place-items: center;
  padding: 56px 0 80px;
  text-align: center;
}
.notfound img { width: 200px; margin: 0 auto 10px; }
.notfound .code { font-weight: 900; color: var(--blue-dark); letter-spacing: .1em; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 6px 0 12px; }
.notfound p { color: var(--muted); max-width: 30em; margin: 0 auto 28px; font-size: 1.08rem; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 36px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.footer-grid p { margin: 12px 0 0; color: var(--muted); max-width: 26em; }
.footer-grid h2 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-grid a { color: var(--ink); font-weight: 800; text-decoration: none; }
.footer-grid a:hover { color: var(--blue-dark); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
