/* Attest marketing site. Mobile-first; breakpoints 640px (sm), 768px (md), 1024px (lg).
   Colours meet WCAG 2.1 AA contrast. No framework: the whole file is a few kilobytes. */

:root {
  --navy: #0b1f33;
  --navy-2: #16324f;
  --ink: #1a2330;
  --muted: #4a5563;
  --copper: #a14d2c;      /* accent; 5.6:1 on white */
  --copper-light: #f3e3da;
  --sand: #f6f3ee;
  --line: #dde2e8;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 31, 51, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); }
h3 { font-size: 1.15rem; color: var(--navy); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--white); padding: .5rem 1rem; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: .5rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--copper); color: var(--white); text-decoration: none; font-weight: 600;
       padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid var(--copper); cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { background: #8a3f22; border-color: #8a3f22; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn-small { padding: .45rem 1rem; color: var(--white) !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; flex-wrap: wrap; column-gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.header-tools { display: flex; align-items: center; gap: .25rem; }
.lang-toggle { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px;
               padding: .3rem .85rem; font: inherit; font-size: .9rem; cursor: pointer; }
.lang-toggle:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.nav-toggle { background: none; border: 0; color: var(--white); padding: .5rem; cursor: pointer; }
.site-nav { display: none; width: 100%; padding-bottom: 1rem; }
.site-nav.open { display: block; }
.site-nav ul { display: flex; flex-direction: column; gap: .75rem; }
.site-nav a:not(.btn) { color: #dbe6f1; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--white); text-decoration: underline; }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; padding: 0; order: 1; margin-left: auto; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1rem; font-size: .95rem; white-space: nowrap; }
  .header-tools { order: 2; margin-left: .75rem; }
  .site-nav li:has(.btn-small) { display: none; }  /* the hero repeats this button at medium widths */
}
@media (min-width: 1024px) {
  .site-nav li:has(.btn-small) { display: list-item; }
  .site-nav ul { gap: 1.5rem; font-size: 1rem; }
  .header-tools { margin-left: 1.25rem; }
}

/* ---------- Hero ---------- */
.hero { color: var(--white); padding: 3.5rem 0 4rem;
        background: radial-gradient(circle at 85% 10%, rgba(161, 77, 44, .35), transparent 45%),
                    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: #f0c9b6; font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; color: #dbe6f1; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: #c5d6e4; }
.hero-points li::before { content: "✓ "; color: #f0c9b6; }
.hero-shot { margin: 0; }
.hero-shot img { border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15); }
@media (min-width: 1024px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero-inner { grid-template-columns: 1fr 1.1fr; }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--sand); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 46rem; margin-bottom: 2rem; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: 1 / -1; }
}
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 8px rgba(11, 31, 51, .04); }
.card p { color: var(--muted); }
.card-icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--copper-light); margin-bottom: 1rem;
             fill: none; stroke: var(--copper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.saving { margin: 0; padding-top: .75rem; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--ink) !important; }
.saving strong { color: var(--copper); }

/* ---------- Time savings ---------- */
.savings { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .savings { grid-template-columns: 1fr 1.15fr; } }
.badges { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .badges { grid-template-columns: repeat(3, 1fr); } }
.badges li { background: var(--white); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--line); }
.badge-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--copper); font-variant-numeric: tabular-nums; }
.badges li span:last-child { font-size: .9rem; color: var(--muted); }
.fine-print { font-size: .85rem; color: var(--muted); }
.chart-card { margin: 0; background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.chart-card figcaption { font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.chart-legend { display: flex; gap: 1.25rem; font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.swatch-before { background: #9aa8b8; }
.swatch-after { background: var(--copper); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--ink); }
.chart .bar-before { fill: #9aa8b8; }
.chart .bar-after { fill: var(--copper); }
.chart .bar { transform-origin: left; transition: transform .8s ease-out; }
.chart:not(.visible) .bar { transform: scaleX(0); }

/* ---------- Carousel ---------- */
.carousel { max-width: 960px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.carousel-track { display: flex; transition: transform .45s ease; }
.slide { flex: 0 0 100%; }
.slide img { width: 100%; border-bottom: 1px solid var(--line); }
.caption { margin: 0; padding: 1rem 1.25rem; color: var(--muted); }
.caption strong { color: var(--navy); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.carousel-btn:hover { background: var(--sand); }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; padding: 0; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--navy); }

/* ---------- Resources ---------- */
.resource-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } .resource:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .resource-grid { grid-template-columns: repeat(3, 1fr); } .resource:last-child { grid-column: auto; } }
.resource { display: flex; flex-direction: column; }
.resource p:not(.resource-meta) { flex: 1; }
.btn-outline { background: transparent; color: var(--copper); align-self: flex-start; }
.btn-outline:hover { background: var(--copper); color: var(--white); }
.resource-meta { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Call to action ---------- */
.cta { background: var(--navy); color: var(--white); }
.cta h2 { color: var(--white); }
.cta p { color: #dbe6f1; }
.cta-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .cta-inner { grid-template-columns: 1.2fr 1fr; } }
.cta-form label { display: block; font-weight: 600; margin-bottom: .4rem; }
.form-row { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 640px) { .form-row { flex-direction: row; } }
.form-row input { flex: 1; padding: .8rem 1rem; border-radius: 999px; border: 2px solid transparent; font: inherit; min-width: 0; }
.form-row input[aria-invalid="true"] { border-color: #ffb4a2; }
.form-status { min-height: 1.5rem; margin-top: .6rem; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #071523; color: #c5d6e4; padding: 2rem 0; font-size: .9rem; }
.footer-inner { display: grid; gap: 1rem; justify-items: center; text-align: center; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: auto auto; justify-content: space-between; text-align: left; justify-items: start; }
  .copyright { grid-column: 1 / -1; }
}
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--white); }
.social { display: flex; gap: 1rem; }
.social a { color: #c5d6e4; display: inline-flex; padding: .25rem; }
.social a:hover { color: var(--white); }
.copyright { margin: 0; color: #9fb2c4; }
