/* TagIn website styles. Colours, type and shapes from the TagIn design system. */
:root {
  --teal: #0B4F6C; --teal-700: #083A50; --teal-500: #1A6584;
  --sun: #FFC93C; --butter: #FFF4D1; --butter-ink: #6B4E00;
  --mint: #DDF3E6; --mint-ink: #14532D; --field: #1E9E5A;
  --sky: #DDEFF6; --ink: #10222E; --body: #33454F; --muted: #4B5D69;
  --line: #D3E2EA; --mist: #F5F8FA; --white: #FFFFFF;
  --font-display: Outfit, system-ui, sans-serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 12px; --radius-lg: 20px; --radius-pill: 999px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--teal-700); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-mist { background: var(--mist); }
.bg-teal { background: var(--teal); color: var(--white); }
.bg-mint { background: var(--mint); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.bg-teal h1, .bg-teal h2, .bg-teal h3 { color: var(--white); }
.bg-teal .card h3 { color: var(--ink); }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--body); max-width: 560px; }
.body { color: var(--body); }
.small { font-size: 14px; color: var(--muted); }
.accent { color: var(--teal); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-700); color: var(--white); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-out { background: var(--white); border-color: var(--teal); color: var(--teal); }
.btn-out:hover { background: var(--mist); }
.btn-out-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-out-light:hover { background: var(--teal-700); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Name-tag labels */
.tag { display: inline-flex; align-self: flex-start; font-size: 13px; font-weight: 700; line-height: 1.3; padding: 5px 12px 5px 9px; border-radius: 5px 999px 999px 5px; background: var(--mint); color: var(--mint-ink); }
.tag-butter { background: var(--butter); color: var(--butter-ink); }
.tag-sun { background: var(--sun); color: var(--ink); }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--body); }
.stat { background: var(--teal); color: var(--white); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 1; color: var(--sun); }
.stat a { color: #CFE6EF; font-size: 13px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 38px; width: 106px; }
.nav-links { display: flex; gap: 24px; flex-grow: 1; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--body); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal); }
.nav-links a[aria-current="page"] { font-weight: 700; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; gap: 0; order: 3; }
  .nav.open .nav-links a { padding: 14px 0; border-top: 1px solid var(--line); }
  .nav.open .nav-cta { display: inline-flex; order: 4; width: 100%; margin-bottom: 8px; }
}

/* Hero */
.hero { background: var(--mist); overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-top: 72px; }
.hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-bottom: 80px; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.art { position: relative; width: 460px; max-width: 100%; height: 500px; }
.coord { position: absolute; left: 0; top: 24px; width: 300px; max-width: 72%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.bar { height: 10px; background: var(--sky); border-radius: 999px; }
.bar > span { display: block; height: 10px; background: var(--teal); border-radius: 999px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.phone { position: absolute; right: 0; bottom: 0; width: 280px; max-width: 70%; background: var(--teal); border-radius: 36px 36px 0 0; padding: 20px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.phone-top { display: flex; justify-content: space-between; color: var(--white); font-size: 13px; }
.ask { background: var(--white); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ask .labels { display: flex; flex-wrap: wrap; gap: 6px; }
.ask .labels .tag { font-size: 12px; }
.ghost { background: var(--teal-500); border-radius: 18px; height: 110px; }
@media (max-width: 560px) {
  .hero-copy { padding-bottom: 8px; }
  .art { height: auto; display: flex; flex-direction: column; gap: 16px; }
  .coord { position: static; width: 100%; max-width: 100%; }
  .phone { position: static; width: 280px; max-width: 100%; align-self: center; }
}

/* How it works mini screens */
.screen { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.screen .line { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--mist); }
.bubble { align-self: flex-start; max-width: 90%; background: #E7F6EC; border-radius: 14px 14px 14px 4px; padding: 10px 12px; color: var(--ink); }
.bubble a { font-weight: 600; }
.step-n { color: var(--teal); }

/* Who it's for */
.strand { padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); }
.strand:hover { border-color: var(--teal); color: var(--ink); }
.strand-top { height: 150px; padding: 22px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.strand-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.strand-body .more { font-weight: 700; color: var(--teal); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 17px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 20px; color: var(--body); }

/* Calls to action */
.cta-panel { background: var(--butter); border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta-panel > div:first-child { flex: 1 1 480px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 560px) { .cta-panel { padding: 32px 24px; } }

/* Footer */
.site-footer { background: var(--ink); color: #DDEFF6; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 48px; padding-bottom: 48px; }
.footer-inner a { color: #DDEFF6; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; color: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col strong { color: var(--white); }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-brand img { height: 34px; width: 95px; }

/* Safety page */
.num { width: 40px; height: 40px; border-radius: 999px; background: var(--teal); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--white); }
.jump a:hover { border-color: var(--teal); color: var(--teal); }
.report { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.report-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-stats > div { border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.report-stats strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.bars { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.bars .row span:first-child { width: 90px; flex-shrink: 0; }
.bars .bar { flex-grow: 1; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 20; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
