:root {
  --teal: #009999;          /* main colour */
  --teal-dark: #007373;     /* for text and links (easier to read) */
  --teal-darker: #005c5c;
  --teal-50: #f0fafa;       /* light tints */
  --teal-100: #dcf2f2;
  --teal-200: #b8e6e6;
  --ink: #12302f;
  --muted: #536b6a;
  --line: #e2ecec;
  --white: #ffffff;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--teal-dark); }
a:hover { color: var(--teal-darker); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }

/* Intro */
.intro {
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--white) 100%);
  padding: 56px 0 40px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 16px;
  max-width: 22ch;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.lead {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.075rem;
}

/* Tools */
.tools { padding: 12px 0 64px; }

.tool-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.tool-item { display: flex; }

.tool-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tool-card.is-live {
  border-top: 4px solid var(--teal);
}
.tool-card.is-live:hover {
  color: var(--ink);
  border-color: var(--teal-200);
  border-top-color: var(--teal);
  box-shadow: 0 10px 28px -12px rgba(0, 92, 92, 0.28);
  transform: translateY(-2px);
}
.tool-card.is-soon {
  background: #fafcfc;
  border-top: 4px solid var(--teal-100);
}

.tool-top { display: flex; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-live { background: var(--teal-100); color: var(--teal-darker); }
.badge-soon { background: #eef2f2; color: var(--muted); }

.tool-name {
  margin: 6px 0 0;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.is-soon .tool-name { color: #3f5655; }

.tool-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-bottom {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.tool-address {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tool-open {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--teal-dark);
  color: var(--white);
  font-weight: 600;
}
.tool-open .arrow { transition: transform .15s ease; }
.tool-card.is-live:hover .tool-open { background: var(--teal-darker); }
.tool-card.is-live:hover .arrow { transform: translateX(3px); }

.noscript {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--teal-50);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--teal-50);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.footer-inner p { margin: 0; }

@media (max-width: 520px) {
  .intro { padding: 36px 0 28px; }
  .wrap { padding: 0 16px; }
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
