/* Locally hosted fonts: Latin character subset. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/manrope-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/manrope-800.woff2') format('woff2');
}


  :root {
    /* Modern Tech Color Palette */
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-alt: #F1F5F9;
    --text-main: #0F172A;
    --text-soft: #475569;
    --border: #E2E8F0;
    --accent: #2563EB; /* Tech Blue */
    --accent-hover: #1D4ED8;
    --accent-light: #EFF6FF;
    --success: #10B981;
  }
  * { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
  }
  body {
    margin: 0;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  h1, h2, h3, .brandmark, .amount {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.02em;
  }
  a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
  /* Removed the double-border framing for a clean modern edge-to-edge layout */
  .page-frame {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-surface);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  }
  .page-frame-inner {
    padding: 0;
  }
  /* ---------- Modern Dividers (replacing flourishes) ---------- */
  .flourish {
    height: 1px;
    width: 100%;
    max-width: 200px;
    background: var(--border);
    margin: 0 auto;
    display: block;
  }
  .flourish span { display: none; } /* Hide old ornamental text */
  .flourish-divider { margin: 32px auto; }
  /* ---------- Masthead ---------- */
  .masthead {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
  }
  .brandmark {
    font-size: clamp(2rem, 5vw, 2.5rem);
    letter-spacing: -0.04em;
    color: var(--text-main);
  }
  .brandmark .amp { color: var(--accent); }
  .nav-strip {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  .nav-strip a:hover, .nav-strip a:focus-visible {
    color: var(--accent);
  }
  /* ---------- Hero Section ---------- */
  .hero {
    padding: 80px 24px 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: #FFFFFF;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    max-width: 24ch;
    margin: 0 auto;
  }
  .hero h1 em {
    font-style: normal;
    color: var(--accent);
  }
  .hero .sub {
    max-width: 60ch;
    margin: 24px auto 0;
    font-size: 1.125rem;
    color: var(--text-soft);
  }
  /* Clean Modern Button */
  .stamp-btn {
    display: inline-block;
    margin-top: 32px;
    font-weight: 600;
    font-size: 1rem;
    color: #FFFFFF;
    background: var(--accent);
    padding: 16px 36px;
    border-radius: 8px;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    transition: all 0.2s ease;
    border: none;
  }
  .stamp-btn:hover, .stamp-btn:focus-visible {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  }
  /* ---------- Sections ---------- */
  section {
    padding: 80px 24px;
    border-bottom: 1px solid var(--border);
  }
  section:last-of-type { border-bottom: none; }
  h2.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
  }
  .section-lede {
    max-width: 60ch;
    margin: 16px auto 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 1.125rem;
  }
  /* ---------- Comparison Table (SaaS Style) ---------- */
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 40px;
    padding-bottom: 16px; /* Space for scrollbar */
  }
  table.compare {
    width: 100%;
    min-width: 700px; /* Forces scroll on small mobile */
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  table.compare caption {
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 16px;
    text-align: left;
  }
  table.compare th, table.compare td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  table.compare thead th {
    font-weight: 700;
    background: var(--bg-alt);
    color: var(--text-main);
  }
  table.compare thead th.hw {
    color: var(--accent);
    background: var(--accent-light);
  }
  table.compare tbody th {
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-surface);
    width: 20%;
  }
  table.compare tbody tr:last-child th,
  table.compare tbody tr:last-child td {
    border-bottom: none;
  }
  table.compare tbody td.hw-cell {
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
  }
  /* ---------- Directions (Modern Grid) ---------- */
  ol.directions {
    list-style: none;
    counter-reset: step;
    margin: 64px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  ol.directions li {
    counter-increment: step;
    position: relative;
    padding-top: 24px;
    border-top: 3px solid var(--border);
  }
  ol.directions li::before {
    content: "0" counter(step);
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 12px;
  }
  ol.directions h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  ol.directions p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
  }
  /* ---------- Modern Spec Card ---------- */
  .certificate {
    margin: 48px auto 24px;
    max-width: 700px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    background: var(--bg-surface);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
  }
  .certificate::before, .certificate::after { display: none; } /* Removed pseudo elements */
  .certificate h3 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--text-main);
  }
  dl.spec { margin: 0; }
  dl.spec div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }
  dl.spec div:last-child { border-bottom: none; padding-bottom: 0; }
  dl.spec dt {
    font-weight: 600;
    color: var(--text-main);
    flex-shrink: 0;
    margin-right: 24px;
  }
  dl.spec dd {
    margin: 0;
    color: var(--text-soft);
    text-align: right;
  }
  #certificate > div:last-child {
    text-align: center;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 500;
  }
  /* ---------- Modern Carousel ---------- */
  .carousel {
    position: relative;
    margin: 60px auto 0;
    max-width: 800px;
    border-radius: 12px;
    background: var(--bg-alt);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  .carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    margin: 0;
    padding: 24px;
  }
  .carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  /* Updated wireframe SVGs to match modern tech palette */
  .carousel-slide .plate-svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  .carousel-slide figcaption {
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    padding-top: 16px;
    color: var(--text-soft);
  }
  .carousel-btn {
    position: absolute;
    top: calc(50% - 24px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.2s, transform 0.2s;
  }
  .carousel-btn:hover {
    background: #FFFFFF;
    transform: scale(1.05);
  }
  .carousel-btn.prev { left: 16px; }
  .carousel-btn.next { right: 16px; }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 24px;
    background: var(--bg-alt);
  }
  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .carousel-dot.active { 
    background: var(--accent); 
    transform: scale(1.2);
  }
  /* ---------- Modern Order Panel ---------- */
  .order-panel {
    text-align: center;
    background: var(--bg-alt);
    padding: 48px 24px;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
  }
  .seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
  }
  .seal .amount {
    font-size: 3.5rem;
    color: var(--text-main);
    line-height: 1;
  }
  .seal .small {
    font-size: 0.95rem;
    color: var(--text-soft);
    font-weight: 500;
    margin-top: 8px;
  }
  .order-note {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 16px;
  }
  /* ---------- Footer ---------- */
  footer {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-surface);
  }
  footer .legal {
    font-size: 0.875rem;
    color: var(--text-soft);
  }
  /* Accessibility focus */
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  /* =========================================
     MOBILE RESPONSIVENESS OVERHAUL
     ========================================= */
  @media (max-width: 900px) {
    ol.directions { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  }
  @media (max-width: 640px) {
    body { font-size: 15px; }
    .masthead { padding: 24px 16px; }
    .nav-strip { gap: 16px; }
    .hero { padding: 56px 16px 48px; }
    section { padding: 56px 16px; }
    ol.directions { grid-template-columns: 1fr; gap: 32px; }
    .certificate { padding: 24px 16px; }
    dl.spec div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
    dl.spec dd { text-align: left; }
    .carousel-btn { width: 40px; height: 40px; }
    .carousel-btn.prev { left: 8px; }
    .carousel-btn.next { right: 8px; }
    .carousel-slide { padding: 16px; }
    .order-panel { padding: 40px 16px; }
  }

/* Shared comparison guides and accessible navigation */
.skip-link{position:absolute;left:16px;top:-100px;padding:12px;background:#fff;z-index:10}.skip-link:focus{top:16px}
.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:40px auto 0;max-width:1000px}
.guide-card{display:block;padding:28px;border:1px solid var(--border);border-radius:12px;background:var(--bg-surface)}
.guide-card:hover{border-color:var(--accent);background:var(--accent-light)}.guide-card h3{font-size:1.2rem}.guide-card p{color:var(--text-soft)}.guide-card span{color:var(--accent);font-weight:600}
.eyebrow{color:var(--accent);font-size:.85rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.guide-body{padding-top:32px}.breadcrumb,.editorial-note{max-width:76ch;margin:0 auto 24px}.breadcrumb{font-size:.9rem}.editorial-note{font-size:.9rem;color:var(--text-soft);padding:20px;background:var(--bg-alt);border-radius:8px}
.guide-body>h2{text-align:center}.prose{max-width:76ch;margin:36px auto}.prose h2{font-size:1.6rem;line-height:1.3;margin:36px 0 14px}.prose p{margin:0 0 22px}.prose a,.breadcrumb a,footer a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.prose details{border-bottom:1px solid var(--border);padding:18px 0}.prose summary{cursor:pointer;font-weight:600}.prose details p{margin:14px 0 0}.sources li{margin:12px 0;overflow-wrap:anywhere}.order-panel{margin-top:40px}
@media(max-width:640px){.guide-grid{grid-template-columns:1fr}.guide-card{padding:22px}table.compare th,table.compare td{padding:14px 16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

.order-divider{margin:22px auto}

/* Flat background for comparison-page headings. */
article > .hero { background: var(--bg-surface); }
