@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap");

:root {
  --ink: #181a2b;
  --ink-soft: #454864;
  --muted: #6b6e87;
  --accent: #2647c9;
  --accent-dark: #1a338f;
  --accent-tint: #eef1fc;
  --bg: #f7f6f1;
  --card-bg: #ffffff;
  --border: #e7e3d8;
  --border-soft: #eeece4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ---------- Hero band with stitched-seam motif ---------- */

.hero-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 480px at 50% -220px, #eef1fc 0%, var(--bg) 62%);
  padding-top: 3.25rem;
}

.stitch-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed rgba(38, 71, 201, 0.16);
}

.stitch-row.top {
  top: 34px;
}

.stitch-row.bottom {
  bottom: 18px;
}

.hero-illustration {
  width: 148px;
  margin: 0 0 1.5rem;
  filter: drop-shadow(0 10px 16px rgba(24, 26, 43, 0.1));
}

.hero-illustration svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.illus-doc {
  fill: var(--card-bg);
  stroke: var(--border);
  stroke-width: 1.5;
}

.illus-lines {
  fill: var(--ink-soft);
}

.illus-lines.soft {
  fill: var(--border-soft);
}

.illus-seam {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
}

.illus-needle {
  stroke: var(--accent-dark);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.illus-needle-eye {
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.6;
}

.illus-badge-bg {
  fill: var(--accent);
}

.illus-badge-check {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0.85rem 0 0;
}

.trust-line svg {
  width: 15px;
  height: 15px;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 1rem;
}

.eyebrow svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 2.55rem;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  color: var(--ink);
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  color: var(--accent-dark);
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 1.4rem;
}

.hero-band > p {
  font-size: 1.02rem;
  margin: 0 0 1.1rem;
}

.hero-band > p strong {
  color: var(--ink);
}

/* ---------- Before/after tailoring mockup ---------- */

.fit-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.85rem;
  align-items: stretch;
  margin: 1.9rem 0;
}

.fit-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem 1.05rem;
}

.fit-card .fit-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.fit-card.before {
  opacity: 0.62;
}

.fit-card.before .fit-label {
  color: var(--muted);
}

.fit-card.after {
  border-color: rgba(38, 71, 201, 0.35);
  box-shadow: 0 8px 22px rgba(38, 71, 201, 0.12);
}

.fit-card.after .fit-label {
  color: var(--accent-dark);
}

.fit-line {
  height: 7px;
  border-radius: 4px;
  background: var(--border);
  margin-bottom: 7px;
}

.fit-card.after .fit-line {
  background: linear-gradient(90deg, var(--accent-tint), #dbe3fa);
}

.fit-line.short {
  width: 62%;
}

.fit-line.tiny {
  width: 40%;
}

.fit-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.fit-arrow svg {
  width: 20px;
  height: 20px;
}

/* ---------- Price / CTA card ---------- */

.price-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  margin: 2.25rem 0;
  box-shadow: 0 1px 2px rgba(24, 26, 43, 0.04), 0 12px 32px rgba(24, 26, 43, 0.07);
}

.price {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-dark);
  background: var(--accent-tint);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin: 0 0 1.25rem;
}

.price-box ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  counter-reset: step;
}

.price-box li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.price-box li:last-child {
  margin-bottom: 0;
}

.price-box li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fine-print {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
  line-height: 1.55;
}

.residency-check {
  margin: 1rem 0 0.9rem;
}

.residency-check label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
}

.residency-check select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6e87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}

.residency-check select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.residency-note {
  font-size: 0.85rem;
  color: #a3302f;
  margin: 0.5rem 0 0;
}

.cta.cta-disabled,
.sticky-cta a.cta-disabled {
  background: var(--border);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.cta.cta-disabled:hover {
  transform: none;
  box-shadow: none;
}

.cta {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin: 0.25rem 0 0;
  box-shadow: 0 1px 1px rgba(26, 51, 143, 0.15), 0 8px 20px rgba(26, 51, 143, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(26, 51, 143, 0.18), 0 12px 24px rgba(26, 51, 143, 0.32);
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding-left: 0.9rem;
  margin: 1.1rem 0;
}

/* ---------- Detail sections with icons ---------- */

.details {
  border-top: 1px solid var(--border-soft);
  padding-top: 2.25rem;
  margin-top: 2.5rem;
}

.detail-block {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.detail-block:first-child {
  margin-top: 0;
}

.detail-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-icon svg {
  width: 18px;
  height: 18px;
}

.detail-block h2 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.detail-block p {
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- Sticky mini CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 20;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.sticky-cta a {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  white-space: nowrap;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cta,
  .sticky-cta {
    transition: none;
  }
}

/* ---------- Free guides (internal links to blog) ---------- */

.guides {
  border-top: 1px solid var(--border-soft);
  padding-top: 2.25rem;
  margin-top: 2.5rem;
}

.guides h2 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.guides-lede {
  font-size: 0.97rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.guides-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.guides-list a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}

.guides-list a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2.5rem 1rem 5rem;
}

footer a {
  color: var(--accent-dark);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .faq-note {
  max-width: 560px;
  margin: 1.5rem auto 0;
  text-align: left;
  line-height: 1.5;
}

footer .faq-note strong {
  color: var(--ink);
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.05rem;
  }
  .fit-compare {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .fit-arrow svg {
    transform: rotate(90deg);
  }
}
