/* PanSan SEO landing pages — shared styles (no external dependencies) */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #5b6b7a;
  --line: #d9e2ef;
  --navy: #172033;
  --navy-2: #1f2d45;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-bright: #ff6a3d;
  --accent-soft: #fff1eb;
  --success: #15803d;
  --success-soft: #dcfce7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(24, 36, 58, 0.08);
  --shadow-sm: 0 4px 14px rgba(24, 36, 58, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid rgba(194, 65, 12, 0.45);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.header-cta {
  margin-left: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: #f0b8a4;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: #f3f6fb;
  color: var(--navy);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 56px 0 30px;
}

.hero.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero.hero-single .lead {
  max-width: 72ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid #f3c9b9;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.hero .lead {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: 0 0 7px;
}

/* Route card */
.route-card {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 24px 50px rgba(23, 32, 51, 0.2);
}

.route-card h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.route-card p {
  margin: 0 0 18px;
  color: #c7d2e5;
  font-size: 0.86rem;
}

.route {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 0 0 22px;
}

.route li:last-child {
  padding-bottom: 0;
}

.route li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 2px;
  width: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.route .dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-bright);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.route strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
}

.route span {
  display: block;
  color: #c7d2e5;
  font-size: 0.83rem;
  line-height: 1.45;
}

/* Sections */
.section {
  padding: 34px 0;
}

main [id] {
  scroll-margin-top: 90px;
}

.section-head {
  max-width: 68ch;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

h2,
h3 {
  letter-spacing: -0.01em;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.article-card h3 {
  margin: 26px 0 8px;
  font-size: 1.04rem;
  line-height: 1.4;
}

.article-card h3:first-of-type {
  margin-top: 0;
}

.article-card p {
  margin: 0 0 12px;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.article-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
}

.article-card li {
  margin-bottom: 6px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.15;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.review-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.review-card,
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.review-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: #eef2f7;
}

.review-media.is-post {
  aspect-ratio: 3 / 4;
}

.review-media.is-square {
  aspect-ratio: 1 / 1;
}

.review-media.is-video {
  aspect-ratio: 16 / 9;
}

.review-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.review-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-media.is-video img {
  object-fit: cover;
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px dashed #b9c6d6;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, #f8fbfe, #f8fbfe 10px, #eef3f8 10px, #eef3f8 20px);
  color: #7a8899;
  text-align: center;
}

.media-placeholder strong {
  color: #5b6b7a;
  font-size: 0.9rem;
}

.media-placeholder span {
  margin-top: 4px;
  font-size: 0.78rem;
}

.review-body,
.video-body {
  padding: 18px 20px 20px;
}

.review-body h2,
.review-body h3,
.video-body h3 {
  margin: 0 0 4px;
  font-size: 1.04rem;
  line-height: 1.35;
}

.review-meta,
.video-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.review-product {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.review-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.review-link.is-pending {
  color: #8a97a6;
  font-weight: 500;
}

.review-link.is-pending::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  content: "";
}

.video-body {
  padding-top: 16px;
}

.video-card .review-media {
  border-bottom: 0;
}

.video-body .review-link {
  margin-top: 2px;
}

.verify-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.verify-list li {
  margin-bottom: 12px;
}

.verify-list li:last-child {
  margin-bottom: 0;
}

.verify-list strong {
  color: var(--text);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.card p {
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

/* Steps */
.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.steps .num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.steps strong {
  display: block;
  font-size: 0.98rem;
}

.steps p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Checklist */
.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 14px 16px 14px 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 2px solid var(--success);
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.checklist strong {
  display: block;
  margin-bottom: 2px;
}

.checklist span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Calculator */
.calc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 700;
}

.field select,
.field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.field select:hover,
.field input:hover {
  border-color: #b9c7d9;
}

.field .hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.calc-result {
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}

.calc-result[hidden] {
  display: none;
}

.calc-result h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: #c7d2e5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.result-row:last-of-type {
  border-bottom: 0;
}

.result-row span:first-child {
  color: #c7d2e5;
}

.result-row strong {
  text-align: right;
}

.calc-result .note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #c7d2e5;
  font-size: 0.82rem;
  line-height: 1.5;
}

.calc-result .btn {
  margin-top: 14px;
}

.error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.9rem;
}

/* Formula / table */
.formula {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px dashed #c9d5e5;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.9rem;
}

.formula code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.4;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Callout / CTA band */
.callout {
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  padding: 16px 18px;
  font-size: 0.94rem;
}

.callout strong {
  color: var(--accent);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
}

.cta-band > div:first-child {
  flex: 1 1 auto;
}

.cta-band.cta-band-stacked {
  flex-direction: column;
  align-items: flex-start;
}

.cta-band.cta-band-stacked .cta-actions {
  width: 100%;
}

.cta-band.cta-band-stacked .cta-actions .btn {
  flex: 1 1 220px;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.cta-band p {
  margin: 0;
  color: #c7d2e5;
  font-size: 0.95rem;
}

.cta-band p a {
  color: #ffb59a;
  text-decoration: underline;
}

.cta-band p a:hover {
  color: #fff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.cta-band .btn {
  flex: 0 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #9aa9b8;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 44px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 28px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin: 6px 0 0;
  max-width: 46ch;
}

.site-footer h3,
.site-footer .footer-heading {
  margin: 0 0 8px;
  max-width: none;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

/* Small utilities */
.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-0 {
  margin-bottom: 0;
}

.two-col-list {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 18px;
}

.two-col-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }

  .route-card {
    max-width: 520px;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-nav {
    margin-left: auto;
    gap: 0;
  }

  .site-nav > a:not(.header-cta) {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }

  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 34px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .cta-band .btn {
    width: 100%;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 100%;
  }

  .stats-bar,
  .review-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .two-col-list {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .header-cta .btn {
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .card,
  .calc {
    padding: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
