/* Tavvian – static site styles (v1). Colours follow the original Tailwind palette. */
:root {
  --bg: #101828;          /* gray-900 */
  --bg-alt: #1e2939;      /* gray-800 */
  --bg-card: rgba(30, 41, 57, .5);
  --line: #364153;        /* gray-700 */
  --line-soft: #1e2939;
  --text: #f3f4f6;        /* gray-100 */
  --text-strong: #fff;
  --muted: #99a1af;       /* gray-400 */
  --soft: #d1d5dc;        /* gray-300 */
  --accent: #65cada;      /* logo */
  --teal: #00d5be;        /* teal-400, links on dark */
  --teal-hi: #46ecd5;     /* teal-300 */
  --teal-btn: #00857a;    /* AA with white text */
  --teal-btn-hover: #00786f;
  --blue-btn: #155dfc;
  --blue-btn-hover: #1447e6;
  --blue: #2b7fff;
  --sparo: #0f9d76;
  --sparo-hi: #34d399;
  --sparo-btn: #0b7a5c;
  --radius: .75rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.5; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hi); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem;
  background: var(--teal-btn); color: #fff; border-radius: .5rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: .5rem; border: 0; font-weight: 600; white-space: nowrap;
  color: #fff; transition: background-color .3s, transform .2s;
}
.btn:hover { color: #fff; }
.btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.btn-teal { background: var(--teal-btn); }
.btn-teal:hover { background: var(--teal-btn-hover); }
.btn-blue { background: var(--blue-btn); }
.btn-blue:hover { background: var(--blue-btn-hover); }
.btn-sparo { background: var(--sparo-btn); }
.btn-sparo:hover { background: #096a50; }
.btn-ghost { background: var(--line); }
.btn-ghost:hover { background: #4a5565; }
.btn-lg { padding: .75rem 1.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 24, 40, .85); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.header-bar > * { flex: 1; }
.brand { display: inline-flex; color: #fff; border-radius: .5rem; }
.brand svg { height: 4.5rem; width: auto; }
@media (min-width: 640px) { .brand svg { height: 5rem; } }
.nav-main { display: none; justify-content: center; gap: 2rem; }
.nav-main a {
  color: var(--soft); font-size: 1.125rem; font-weight: 500; padding-bottom: .25rem;
  border-bottom: 2px solid transparent; transition: color .3s;
}
.nav-main a:hover { color: #fff; }
.nav-main a[aria-current="page"] { color: var(--teal); border-color: var(--teal); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.header-actions > .btn { display: none; }
@media (min-width: 640px) {
  .nav-main { display: flex; }
  .header-actions > .btn { display: inline-flex; }
}
@media (min-width: 640px) and (max-width: 860px) {
  .header-bar > .nav-main { flex: 0 1 auto; gap: 1.25rem; }
  .header-actions { gap: .5rem; }
  .header-actions > .btn { padding: .5rem .75rem; font-size: .9rem; }
}

/* Mobile menu – <details>, works without JavaScript */
.mnav { display: block; flex: 0 0 auto; }
@media (min-width: 640px) { .mnav { display: none; } }
.mnav > summary {
  list-style: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: .375rem; color: var(--text); cursor: pointer;
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary svg { width: 1.5rem; height: 1.5rem; }
.mnav .icon-close, .mnav[open] .icon-open { display: none; }
.mnav[open] .icon-close { display: block; }
.mnav-panel {
  position: absolute; left: 0; right: 0; top: 100%; padding: 0 1rem 1rem;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.mnav-panel a.mlink {
  display: block; padding: .75rem 1rem; font-size: 1.125rem; font-weight: 500; color: var(--text); border-radius: .375rem;
}
.mnav-panel a.mlink:hover { background: var(--line); color: #fff; }
.mnav-panel a.mlink[aria-current="page"] { background: rgba(0, 187, 167, .2); color: var(--teal-hi); }
.mnav-cta { display: grid; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mnav-cta .btn { padding: .75rem 1rem; }

/* Main */
main { flex: 1 0 auto; padding-block: 2rem; }
@media (min-width: 768px) { main { padding-block: 4rem; } }
.page-head { text-align: center; margin-bottom: 3rem; }
.page-head h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 800; color: #fff; margin-bottom: .5rem; letter-spacing: -.01em; }
.page-head p { font-size: 1.125rem; color: var(--muted); max-width: 48rem; margin-inline: auto; }
@media (min-width: 768px) {
  .page-head h1 { font-size: 3rem; }
  .page-head p { font-size: 1.25rem; }
}
.narrow { max-width: 56rem; margin-inline: auto; }

.panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.25rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
@media (min-width: 768px) { .panel { padding: 3rem; } }

/* Prose (about, legal) */
.prose { color: var(--soft); line-height: 1.7; }
.prose > section + section { margin-top: 2.5rem; }
.prose h2 { color: #fff; font-size: 1.5rem; line-height: 1.3; font-weight: 700; margin-bottom: .75rem; }
.prose h3 { color: #fff; font-size: 1.125rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ul + ul { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }
.prose strong { color: #fff; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { background: var(--bg); padding: .1rem .35rem; border-radius: .25rem; font-size: .9em; }
.prose-lg { font-size: 1.125rem; }
.prose-lg h2 { font-size: 1.875rem; margin-bottom: 1rem; }
.prose-lg > section + section { margin-top: 3rem; }
.list-plain { list-style: none; padding-left: .5rem !important; }
.list-plain li + li { margin-top: .75rem; }
.callout { background: var(--bg); border-left: 3px solid var(--teal); padding: 1rem 1.25rem; border-radius: .5rem; color: var(--text); }
.meta-line { color: var(--muted); font-size: 1rem; }

/* Home: hero + filters */
.filters { border: 0; padding: 0; margin: 0 0 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; }
.filters label {
  padding: .5rem 1.5rem; font-size: .875rem; font-weight: 600; border-radius: 9999px; cursor: pointer;
  background: var(--bg-alt); color: var(--soft); transition: background-color .3s, color .3s;
}
.filters label:hover { background: var(--line); }
.filters input:checked + label { background: var(--teal-btn); color: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.3); }
.filters input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 3px; }

.project-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
/* CSS-only audience filter (no JS needed). Without :has() support all projects stay visible. */
.projects:has(#f-individuals:checked) .card-item:not([data-aud~="individuals"]),
.projects:has(#f-students:checked) .card-item:not([data-aud~="students"]),
.projects:has(#f-businesses:checked) .card-item:not([data-aud~="businesses"]) { display: none; }

.card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-alt); color: inherit; box-shadow: 0 10px 15px -3px rgba(0,0,0,.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { color: inherit; transform: translateY(-.5rem); box-shadow: 0 20px 25px -5px rgba(0, 187, 167, .2); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 5 / 3; max-height: 12rem; width: 100%; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1); }
.card-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); transition: background-color .3s; }
.card:hover .card-media::after { background: rgba(0,0,0,.1); }
.card-media.no-shade::after { background: transparent; }
.badge {
  position: absolute; top: .75rem; right: .75rem; z-index: 1; padding: .25rem .75rem; border-radius: 9999px;
  background: #fdc700; color: #101828; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card-aud { font-size: .75rem; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.tags li { background: var(--line); color: var(--teal-hi); font-size: .75rem; font-weight: 500; padding: .25rem .625rem; border-radius: 9999px; }
.card h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.card p { color: var(--muted); flex: 1; margin-bottom: 1rem; }
.card-cta { display: inline-flex; align-items: center; gap: .5rem; color: var(--teal); font-weight: 600; }
.card:hover .card-cta { color: var(--teal-hi); }
.card-cta svg { width: 1.25rem; height: 1.25rem; transition: transform .3s; }
.card:hover .card-cta svg { transform: translateX(.25rem); }

/* FAQ */
.faq { margin-top: 5rem; padding: 4rem 1rem; background: var(--bg-alt); border-radius: 1rem; }
@media (min-width: 768px) { .faq { padding-inline: 2rem; } }
@media (min-width: 1024px) { .faq { padding-inline: 4rem; } }
.faq-head { text-align: center; margin-bottom: 2.5rem; }
.faq-head h2 { font-size: 1.875rem; line-height: 1.2; font-weight: 700; color: #fff; margin-bottom: .75rem; }
@media (min-width: 768px) { .faq-head h2 { font-size: 2.25rem; } }
.faq-head p { color: var(--muted); max-width: 42rem; margin-inline: auto; }
.faq-list { max-width: 48rem; margin-inline: auto; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; font-size: 1.125rem; font-weight: 600; color: #fff;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 1.25rem; height: 1.25rem; color: var(--teal); flex-shrink: 0; transition: transform .3s; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details > div { padding-bottom: 1.25rem; color: var(--muted); line-height: 1.7; }
.faq-list details > div a { text-decoration: underline; text-underline-offset: 2px; }

/* Contact / info cards */
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.info-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem; }
.info-card > svg { width: 3rem; height: 3rem; margin-bottom: 1rem; }
.info-card h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.info-card p { color: var(--muted); margin-bottom: 1rem; }
.info-card address { font-style: normal; color: var(--soft); line-height: 1.8; }
.c-teal { color: var(--teal); }
.c-blue { color: var(--blue); }
.contact-strip { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact-strip h2 { text-align: center; margin-bottom: 1.5rem; }
.contact-grid { display: grid; gap: 1.5rem; text-align: center; background: rgba(54, 65, 83, .5); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid span { display: block; color: var(--muted); font-size: .875rem; margin-bottom: .5rem; }
.contact-grid a { font-weight: 600; text-decoration: none; }

/* Breadcrumbs */
.crumbs { margin-bottom: 1.5rem; font-size: .875rem; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal); }

/* Sparo */
.sparo { --teal: var(--sparo-hi); --teal-hi: #6ee7b7; }
.sparo-hero { display: grid; gap: 2rem; align-items: center; text-align: center; margin-bottom: 4rem; }
.sparo-hero .app-icon { width: 128px; height: 128px; border-radius: 28px; margin-inline: auto; box-shadow: 0 20px 40px -12px rgba(15, 157, 118, .55); }
.sparo-hero h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.sparo-hero .lead { font-size: 1.25rem; font-weight: 600; color: var(--sparo-hi); margin-top: .75rem; }
.sparo-hero .intro { color: var(--soft); font-size: 1.125rem; max-width: 40rem; margin: 1rem auto 0; }
.sparo-hero .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.play-soon {
  display: inline-flex; align-items: center; gap: .75rem; padding: .625rem 1.25rem; border-radius: .75rem;
  background: #000; border: 1px solid #4a5565; color: #fff; text-align: left; line-height: 1.2;
}
.play-soon svg { width: 1.75rem; height: 1.75rem; }
.play-soon small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.play-soon strong { font-size: 1.05rem; }
@media (min-width: 900px) {
  .sparo-hero { grid-template-columns: auto 1fr; text-align: left; gap: 3rem; }
  .sparo-hero .app-icon { width: 176px; height: 176px; border-radius: 38px; }
  .sparo-hero h1 { font-size: 3rem; }
  .sparo-hero .intro { margin-inline: 0; }
  .sparo-hero .cta-row { justify-content: flex-start; }
}
.section-title { font-size: 1.875rem; line-height: 1.2; font-weight: 700; color: #fff; margin-bottom: 1.5rem; text-align: center; }
.feature-grid { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }
.feature .emoji { font-size: 1.75rem; line-height: 1; display: block; margin-bottom: .75rem; }
.feature h3 { color: #fff; font-size: 1.125rem; font-weight: 700; margin-bottom: .375rem; }
.duo { display: grid; gap: 1.5rem; margin-top: 4rem; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, 1fr); } }
.duo .panel h2 { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.duo .panel p { color: var(--soft); }
.duo .panel p + p { margin-top: 1rem; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sparo-hi); margin-bottom: .5rem; }
.sparo .faq { margin-top: 4rem; }
.lang-switch { display: inline-block; margin-left: .25rem; }

/* 404 */
.notfound { text-align: center; padding-block: 3rem; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .875rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; padding-block: 1.75rem; text-align: center; }
.footer-info p + p { margin-top: .25rem; }
.footer-info a { color: var(--muted); }
.footer-info a:hover, .footer-nav a:hover, .footer-nav button:hover { color: var(--teal); }
.footer-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.footer-nav a { color: var(--muted); }
@media (min-width: 900px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .footer-nav ul { justify-content: flex-end; }
}

/* Cookie banner */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--bg-alt); border-top: 1px solid var(--line); padding: 1rem 0;
  box-shadow: 0 -10px 25px -5px rgba(0,0,0,.4);
}
.cookie[hidden] { display: none; }
.cookie-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cookie p { font-size: .9rem; color: var(--soft); text-align: center; }
.cookie p a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: .75rem; }
.cookie-actions .btn { min-width: 7rem; border-radius: 9999px; padding: .55rem 1.5rem; }
@media (min-width: 640px) {
  .cookie-inner { flex-direction: row; justify-content: space-between; }
  .cookie p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.faq-q { font: inherit; color: inherit; margin: 0; }
main p a:not(.btn), main address a { text-decoration: underline; text-underline-offset: 2px; }
/* UnitHarbor page – reuses the product layout with UnitHarbor blue */
.uh { --sparo-hi: #60a5fa; --teal: #60a5fa; --teal-hi: #93c5fd; }
.uh .sparo-hero .app-icon { box-shadow: 0 20px 40px -12px rgba(0, 102, 204, .6); }
.btn-uh { background: #0066cc; }
.btn-uh:hover { background: #0052a3; }
.uh .feature h3 a { color: #fff; text-decoration: none; }
.uh .feature h3 a:hover { color: var(--teal-hi); text-decoration: underline; }
.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.chip-list li { background: var(--line); color: var(--soft); font-size: .875rem; padding: .3rem .75rem; border-radius: 9999px; }
.chip-links li { padding: 0; }
.chip-links a { display: block; padding: .3rem .75rem; color: var(--teal-hi); text-decoration: none; border-radius: 9999px; }
.chip-links a:hover { background: #4a5565; }
