Files
petvity/app/globals.css
T
CatoandClaude 4a40a03d44 feat(charts): health trends and twin meters on @bitbaum/chartkit 0.7 (#141)
ChartKit 0.7.0 closes both gaps recorded in package-plan.json (#140):
LineChart now labels days on a 30-day span, and Meter takes a tone and
showValue={false}.

- HealthTrendChart renders ChartKit's LineChart on the server: one line
  per metric, the species' normal range as a reference band, the portal
  locale for dates and numbers. A day without a reading is left out of
  that line. The trend charts sit one per row: in the portal's 4xl
  column, three across left each plot about 190px and the day ticks ran
  into each other.
- The twin score and per-metric bars (DigitalTwinCard, public pet page,
  portal dashboard) are ChartKit Meters coloured by the twin state's
  tone, with the figure printed once by the page.
- The twin score block wraps under the state name on a narrow card; at
  390px in German it was clipped ("41 / 1") before this change.
- recharts is removed, with the chart colour config and the tooltip
  shadow that only it used. Both exceptions leave package-plan.json; the
  bindings are recorded instead.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 20:02:23 +01:00

1113 lines
28 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@import "tailwindcss";
@import "@bitbaum/chartkit/styles.css";
:root {
/* Brand – deep forest teal */
--teal: #0d6e78;
--teal-dark: #0a5860;
--teal-light: #e3f4f6;
--teal-mid: #b2dde2;
/* Accent – warm terracotta (all primary CTAs). Darkened from #E06B3A to pass WCAG AA 4.5:1 with white text. */
--accent: #b8502a;
--accent-dark: #9e4220;
--accent-light: #fef0e8;
/* Text */
--ink: #1c1917;
--ink2: #44403c;
--muted: #78716c;
--faint: #c4bbb3;
/* Backgrounds */
--off: #faf8f5;
--light: #f0ebe3;
--card: #ffffff;
--border: #e8e2d9;
/* States */
--green: #16a34a;
--green-bg: #dcfce7;
--green-text: #166534; /* 5.93:1 on --green-bg — WCAG AA for badges/alerts */
--warn: #d97706;
--warn-bg: #fef3c7;
--warn-text: #92400e; /* 5.79:1 on --warn-bg — WCAG AA for badges/alerts */
--danger: #dc2626;
--danger-bg: #fee2e2;
--danger-text: #991b1b; /* 6.36:1 on --danger-bg — WCAG AA for badges/alerts */
/* User role badge colors (vet, sitter, groomer, admin — owner uses --teal) */
--role-vet-bg: #eff6ff;
--role-vet: #1d4ed8;
--role-sitter-bg: #fffbeb;
--role-sitter: #92400e;
--role-groomer-bg: #fdf2f8;
--role-groomer: #be185d;
--role-admin-bg: #f3e8ff;
--role-admin: #6b21a8;
/* Secondary palette (sitter / feminine brand — currently pink) */
--secondary: #ec4899;
--secondary-dark: #be185d;
--secondary-bg: #fdf2f8;
/* Info palette (trust, informational — currently blue) */
--info: #2563eb;
--info-bg: #eff6ff;
/* Digital twin identity color (currently violet) */
--twin: #7c3aed;
--twin-bg: #ede9fe;
/* Warm bg/text (amber-50 / amber-700 — decorative icon backgrounds) */
--warm-bg: #fffbeb;
--warm-text: #b45309;
/* Signal border colors (lighter tints for card borders) */
--green-border: #bbf7d0;
--warn-border: #fde68a;
--danger-border: #fca5a5;
/* Star rating color (amber-400) */
--star: #fbbf24;
/* Danger hover */
--danger-dark: #b91c1c;
/* Teal-wash — gradient endpoint for hero backgrounds */
--teal-wash: #f0fafb;
/* Keep legacy aliases */
--off-bg: var(--off);
/* ── Obsidian luxury layer (marketing surface) ──────────────────────────
Dark, precise, luxury-futurist design language for the public marketing
pages: obsidian black + warm platinum + champagne gold, paired with an
ultra-light geometric display face and instrument-style mono labels.
Lives alongside the teal/terracotta product palette — the product UI
(portal/admin) keeps its light theme; the marketing face wears this. */
--obsidian: #08080a; /* page ground — near-black, faint warm bias */
--obsidian-deep: #050506; /* deepest band (final CTA, footer) */
--carbon: #0f0f13; /* raised section surface */
--onyx: #131318; /* card surface on dark */
--hairline: #26262c; /* borders on dark */
--hairline-soft: #1b1b20; /* subtle dividers on dark */
--platinum: #ece9e2; /* primary text on dark — warm platinum */
--platinum-dim: #b6b3ac; /* secondary text on dark */
--mist-dark: #86847e; /* muted text on dark */
--champagne: #c9b586; /* accent — champagne gold */
--champagne-bright: #e3d2a9; /* accent hover / highlights */
--champagne-dim: #8f7f5b; /* subdued accent, borders */
--danger-soft: #f0a8a8; /* danger-tinted text legible on dark */
/* Kept for the light app-mockup card headers on the marketing pages */
--warm-dark: #1f231d; /* olive-charcoal (mockup card headers) */
--warm-ink: #2a2926; /* warm near-black text inside light cards */
--display-face: var(--font-display), "Jost", "Futura", "Century Gothic", sans-serif;
--mono-face: var(--font-mono), "IBM Plex Mono", ui-monospace, monospace;
/* Shadows */
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 16px 0 rgb(0 0 0 / 0.07), 0 2px 6px -2px rgb(0 0 0 / 0.05);
--shadow-lg: 0 12px 40px 0 rgb(0 0 0 / 0.1), 0 4px 12px -4px rgb(0 0 0 / 0.06);
/* Colored shadows */
--brand-shadow: 0 4px 12px rgb(13 110 120 / 0.25);
--secondary-shadow: 0 4px 12px rgb(236 72 153 / 0.25);
--cta-shadow: 0 4px 20px rgb(0 0 0 / 0.15);
/* Hover border */
--border-hover: #d4cdc5;
/* One chart renderer (@bitbaum/chartkit). Its defaults expect design-tokens'
HSL triplets, which Petvity does not use, so map them onto the palette once. */
--ck-ink: var(--ink);
--ck-ink-muted: var(--muted);
--ck-line: var(--border);
--ck-bg: var(--card);
--ck-accent: var(--teal);
--ck-up: var(--green);
--ck-down: var(--danger);
--ck-warning: var(--warn);
--ck-font: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
--ck-mono: var(--mono-face);
}
/* ── Base ───────────────────────────────────────────────────────────────────── */
* {
box-sizing: border-box;
}
body {
font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
color: var(--ink);
background: var(--off);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ── RTL support (Arabic) ───────────────────────────────────────────────────── */
[dir="rtl"] .flip-rtl {
transform: scaleX(-1);
}
/* ── Layout helpers ─────────────────────────────────────────────────────────── */
.section-inner {
max-width: 1100px;
margin: 0 auto;
padding: 0 24px;
}
/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 16px;
box-shadow: var(--shadow-sm);
transition:
box-shadow 0.2s ease,
border-color 0.2s ease;
}
.card-hover:hover {
box-shadow: var(--shadow-md);
border-color: var(--border-hover);
}
/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 10px;
padding: 10px 22px;
font-size: 14px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
text-decoration: none;
transition:
background 0.15s,
transform 0.1s,
box-shadow 0.15s;
white-space: nowrap;
letter-spacing: -0.01em;
}
.btn-primary:hover {
background: var(--accent-dark);
box-shadow: 0 4px 12px rgb(184 80 42 / 0.35);
}
.btn-primary:active {
transform: scale(0.98);
box-shadow: none;
}
/* Compact primary, for product cards where a full-size button crowds the price.
A semantic modifier rather than `btn-primary px-3 py-1.5`, because utilities
lose to unlayered CSS and would be silently dead. */
.btn-primary-sm {
padding: 7px 14px;
font-size: 13px;
gap: 6px;
}
/* ── Auth screens ───────────────────────────────────────────────────────────── */
/* The form column of the split auth layout.
`min-width: 0` is the load-bearing declaration: a flex child defaults to
`min-width: auto`, which refuses to shrink below its content's minimum — here
the 380px card plus 48px of column padding. At 375px of viewport that is a
48px sideways scroll on every auth page, which is the first screen a new user
ever sees. */
.auth-panel {
flex: 1 1 0%;
min-width: 0;
}
.auth-card {
width: 100%;
max-width: 380px;
}
/* ── Filter pills ───────────────────────────────────────────────────────────── */
/* The one control the public browse pages use to narrow a list: shop
categories, professional types, adoption species.
It had grown three variants — text-xs/text-sm, px-3/px-4, py-1.5/py-2 — and
two different idle fills (transparent vs white) for what a visitor reads as
the same button. This is the single definition. The 44px floor is the touch
target minimum; the old pills were 30px, which is a miss on a phone. */
.browse-chip {
display: inline-flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
min-height: 44px;
padding: 0 16px;
border-radius: 999px;
border: 1px solid var(--border);
background: var(--card);
color: var(--ink2);
font-family: inherit;
font-size: 14px;
font-weight: 500;
line-height: 1;
white-space: nowrap;
cursor: pointer;
text-decoration: none;
transition:
background 0.15s,
border-color 0.15s,
color 0.15s;
}
.browse-chip:hover {
border-color: var(--border-hover);
color: var(--warm-ink);
}
.browse-chip-active,
.browse-chip-active:hover {
background: var(--warm-ink);
border-color: var(--warm-ink);
color: #fff;
}
/* Horizontally scrollable row of pills. min-width:0 is what lets it actually
scroll instead of pushing the page sideways when it is itself a flex child. */
.browse-chip-row {
display: flex;
gap: 8px;
min-width: 0;
overflow-x: auto;
}
/* ── Obsidian luxury classes (petvity.com brand language) ───────────────────── */
/* Display face — ultra-light geometric, the luxury-futurist headline voice. */
.font-display {
font-family: var(--display-face);
}
/* Page ground + section bands. The hero carries a faint champagne aurora and
a fine engineering grid — the one ambient moment; everything else is flat. */
.lux-hero {
background:
radial-gradient(
ellipse 55% 45% at 72% 18%,
color-mix(in srgb, var(--champagne) 9%, transparent),
transparent 70%
),
radial-gradient(
ellipse 40% 35% at 12% 85%,
color-mix(in srgb, var(--champagne) 4%, transparent),
transparent 70%
),
linear-gradient(color-mix(in srgb, #ffffff 2.5%, transparent) 1px, transparent 1px),
linear-gradient(90deg, color-mix(in srgb, #ffffff 2.5%, transparent) 1px, transparent 1px),
var(--obsidian);
background-size:
auto,
auto,
72px 72px,
72px 72px,
auto;
}
.lux-section {
background: var(--obsidian);
}
.lux-section-raised {
background: var(--carbon);
}
.lux-section-deep {
background: var(--obsidian-deep);
color: var(--platinum);
}
/* Hero headline — thin, vast, platinum; the emphasis word turns champagne. */
.display-title {
font-family: var(--display-face);
font-weight: 200;
line-height: 1.05;
letter-spacing: -0.01em;
color: var(--platinum);
text-wrap: balance;
}
.display-title em {
font-style: normal;
color: var(--champagne);
}
/* Instrument eyebrow — mono, tracked wide, champagne. */
.ed-eyebrow,
.eyebrow-editorial {
display: inline-flex;
align-items: center;
gap: 8px;
font-family: var(--mono-face);
font-size: 14px;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 0.28em;
color: var(--champagne);
}
/* Primary pill — champagne fill, obsidian text, soft gold bloom on hover. */
.btn-editorial {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--champagne);
color: var(--obsidian);
border: 1px solid var(--champagne);
border-radius: 100px;
padding: 14px 30px;
font-size: 13px;
font-weight: 600;
font-family: var(--font-sans);
text-transform: uppercase;
letter-spacing: 0.12em;
text-decoration: none;
cursor: pointer;
transition:
background 0.18s,
border-color 0.18s,
box-shadow 0.18s,
transform 0.1s;
white-space: nowrap;
}
/* Lets a long localized CTA label wrap on the narrowest phones instead of
pushing the page sideways (btn-editorial is nowrap by default). */
.btn-editorial-wrap {
white-space: normal;
text-align: center;
}
.btn-editorial:hover {
background: var(--champagne-bright);
border-color: var(--champagne-bright);
box-shadow: 0 0 32px color-mix(in srgb, var(--champagne) 30%, transparent);
}
.btn-editorial:active {
transform: scale(0.98);
}
/* Ghost pill — hairline border, platinum text, champagne on hover. */
.btn-editorial-ghost {
display: inline-flex;
align-items: center;
gap: 8px;
background: transparent;
color: var(--platinum);
border: 1px solid var(--hairline);
border-radius: 100px;
padding: 14px 30px;
font-size: 13px;
font-weight: 500;
font-family: var(--font-sans);
text-transform: uppercase;
letter-spacing: 0.12em;
text-decoration: none;
cursor: pointer;
transition: all 0.18s;
white-space: nowrap;
}
.btn-editorial-ghost:hover {
border-color: var(--champagne-dim);
color: var(--champagne-bright);
}
/* Compact ghost pill — for card-level secondary actions. */
.btn-editorial-ghost-sm {
display: inline-flex;
align-items: center;
gap: 6px;
background: transparent;
color: var(--platinum-dim);
border: 1px solid var(--hairline);
border-radius: 100px;
padding: 9px 18px;
font-size: 12px;
font-weight: 500;
font-family: var(--font-sans);
text-transform: uppercase;
letter-spacing: 0.1em;
text-decoration: none;
cursor: pointer;
transition: all 0.18s;
white-space: nowrap;
}
.btn-editorial-ghost-sm:hover {
border-color: var(--champagne-dim);
color: var(--champagne-bright);
}
/* Platinum pill for the deepest bands (final CTA). */
.btn-editorial-light {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--platinum);
color: var(--obsidian);
border: 1px solid var(--platinum);
border-radius: 100px;
padding: 14px 30px;
font-size: 13px;
font-weight: 600;
font-family: var(--font-sans);
text-transform: uppercase;
letter-spacing: 0.12em;
text-decoration: none;
cursor: pointer;
transition:
opacity 0.18s,
transform 0.1s;
white-space: nowrap;
}
.btn-editorial-light:hover {
opacity: 0.88;
}
.btn-editorial-light:active {
transform: scale(0.98);
}
/* Compact champagne pill — nav CTAs. */
.btn-editorial-sm {
display: inline-flex;
align-items: center;
gap: 6px;
/* 44px: the nav CTA is a tap target (fleet nav contract rule 3). */
min-height: 44px;
background: var(--champagne);
color: var(--obsidian);
border: 1px solid var(--champagne);
border-radius: 100px;
padding: 9px 18px;
font-size: 12px;
font-weight: 600;
font-family: var(--font-sans);
text-transform: uppercase;
letter-spacing: 0.1em;
text-decoration: none;
cursor: pointer;
transition:
background 0.18s,
border-color 0.18s,
transform 0.1s;
white-space: nowrap;
}
.btn-editorial-sm:hover {
background: var(--champagne-bright);
border-color: var(--champagne-bright);
}
.btn-editorial-sm:active {
transform: scale(0.98);
}
/* Section headings — display face, thin, platinum. */
.ed-title {
font-family: var(--display-face);
font-weight: 200;
line-height: 1.08;
letter-spacing: -0.01em;
color: var(--platinum);
font-size: clamp(2.4rem, 5vw, 3.5rem);
text-wrap: balance;
}
.ed-title em {
font-style: normal;
color: var(--champagne);
}
.ed-title-sm {
font-family: var(--display-face);
font-weight: 300;
line-height: 1.1;
letter-spacing: -0.01em;
color: var(--platinum);
font-size: clamp(2rem, 4vw, 2.7rem);
text-wrap: balance;
}
.ed-title-on-dark {
color: var(--platinum);
} /* legacy pair for deep bands */
/* Numbered step marker — hairline ring, champagne mono numeral. */
.ed-num {
background: transparent;
border: 1px solid var(--champagne-dim);
color: var(--champagne);
font-family: var(--mono-face);
font-weight: 400;
}
/* Icon badge — champagne tint on dark. */
.ed-icon {
background: color-mix(in srgb, var(--champagne) 12%, transparent);
color: var(--champagne);
}
/* Card on dark — onyx surface, hairline edge, faint top light-catch. */
.lux-card {
background: var(--onyx);
border: 1px solid var(--hairline);
border-radius: 14px;
box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 4%, transparent);
transition: border-color 0.2s ease;
}
.lux-card-hover:hover {
border-color: var(--champagne-dim);
}
/* Small hairline chip on dark (species strip, tags). */
.lux-chip {
display: inline-flex;
align-items: center;
gap: 6px;
background: color-mix(in srgb, #ffffff 4%, transparent);
border: 1px solid var(--hairline);
color: var(--platinum-dim);
font-size: 12px;
font-weight: 500;
padding: 6px 14px;
border-radius: 100px;
white-space: nowrap;
}
/* Hero entrance — one orchestrated reveal, then stillness. */
@media (prefers-reduced-motion: no-preference) {
.lux-rise {
opacity: 0;
transform: translateY(14px);
animation: lux-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.lux-rise-2 {
animation-delay: 0.12s;
}
.lux-rise-3 {
animation-delay: 0.24s;
}
.lux-rise-4 {
animation-delay: 0.36s;
}
@keyframes lux-rise {
to {
opacity: 1;
transform: translateY(0);
}
}
}
.btn-outline {
display: inline-flex;
align-items: center;
gap: 8px;
background: transparent;
color: var(--ink2);
border: 1.5px solid var(--border);
border-radius: 10px;
padding: 10px 22px;
font-size: 14px;
font-weight: 500;
font-family: inherit;
cursor: pointer;
text-decoration: none;
transition: all 0.15s;
white-space: nowrap;
}
.btn-outline:hover {
border-color: var(--teal);
color: var(--teal);
background: var(--teal-light);
}
.btn-ghost {
display: inline-flex;
align-items: center;
gap: 8px;
background: transparent;
color: var(--muted);
border: none;
border-radius: 10px;
padding: 8px 14px;
font-size: 14px;
font-weight: 500;
font-family: inherit;
cursor: pointer;
text-decoration: none;
transition: all 0.15s;
}
.btn-ghost:hover {
background: var(--light);
color: var(--ink);
}
/* ── Form inputs ────────────────────────────────────────────────────────────── */
/* NOTE: these rules are unlayered, so Tailwind utilities (which live in
@layer utilities) can NEVER override their properties — a `ps-9` next to
`form-input` is silently dead. Wrapping them in @layer components does not
help: the v4/Turbopack pipeline strips author @layer blocks. Use semantic
modifier classes (e.g. .form-input-icon) instead of utility overrides. */
.form-input {
width: 100%;
border: 1.5px solid var(--border);
border-radius: 10px;
padding: 10px 14px;
font-size: 14px;
font-family: inherit;
color: var(--ink);
background: white;
transition:
border-color 0.15s,
box-shadow 0.15s;
outline: none;
}
/* Input with a leading (inline-start) icon overlaid — makes room for it. */
.form-input-icon {
padding-inline-start: 36px;
}
.form-input:focus {
border-color: var(--teal);
box-shadow: 0 0 0 3px var(--teal-light);
}
.form-input::placeholder {
color: var(--faint);
}
.form-label {
display: block;
font-size: 14px;
font-weight: 500;
color: var(--ink2);
margin-bottom: 6px;
}
/* Inline text link on light surfaces (auth pages, form footers). */
.link-accent {
color: var(--teal);
font-weight: 500;
text-decoration: none;
transition: color 0.15s;
}
.link-accent:hover {
color: var(--teal-dark);
text-decoration: underline;
}
/* ── Portal primitives — the vocabulary every portal page speaks ───────────── */
/* Page header: one title + one subtitle, identical on every page. */
.page-title {
font-size: 1.5rem;
line-height: 2rem;
font-weight: 600;
color: var(--ink);
}
.page-sub {
font-size: 0.875rem;
color: var(--muted);
margin-top: 2px;
}
/* Back link: the "← somewhere" above a page title. One class because the
hand-rolled copies had drifted into five variants (gap-1 vs gap-1.5,
mb-1 vs mb-5 vs none) that all meant the same thing. */
.back-link {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.875rem;
color: var(--muted);
text-decoration: none;
margin-bottom: 6px;
transition: color 0.15s ease;
}
.back-link:hover {
color: var(--teal);
}
/* Stat: a single measured number and what it measures. Separate from
.page-title because a count is not a heading — reusing the title class for
numbers meant restyling page headings silently restyled every stat card. */
.stat-value {
font-size: 1.5rem;
line-height: 2rem;
font-weight: 700;
color: var(--ink);
}
/* Tints are modifiers, not utilities: .stat-value is unlayered, so a
text-[var(--teal)] utility beside it would be silently dead. */
.stat-value-brand {
color: var(--teal);
}
.stat-value-warn {
color: var(--warn-text);
}
.stat-value-muted {
color: var(--ink2);
}
.stat-label {
font-size: 0.75rem;
color: var(--muted);
}
/* Uppercase caption above a stat, used where the label reads before the number. */
.stat-caption {
font-size: 0.75rem;
font-weight: 500;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.025em;
margin-bottom: 4px;
}
/* Badge: small status pill. Tone via modifier; content via children. */
.badge {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 0.75rem;
font-weight: 500;
padding: 2px 8px;
border-radius: 9999px;
}
.badge-green {
background: var(--green-bg);
color: var(--green-text);
}
.badge-warn {
background: var(--warn-bg);
color: var(--warn-text);
}
.badge-danger {
background: var(--danger-bg);
color: var(--danger-text);
}
.badge-teal {
background: var(--teal-light);
color: var(--teal);
}
.badge-accent {
background: var(--accent-light);
color: var(--accent);
}
.badge-neutral {
background: var(--off);
color: var(--muted);
}
/* Icon tile: the rounded square behind a section/list icon.
Layout only — size defaults to 32px; color via bg-/text- utilities. */
.icon-tile {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 32px;
height: 32px;
border-radius: 10px;
}
.icon-tile-lg {
width: 40px;
height: 40px;
border-radius: 12px;
}
/* Modal: one overlay, one panel — never rebuilt per feature. */
.modal-overlay {
position: fixed;
inset: 0;
background: rgb(0 0 0 / 0.4);
z-index: 50;
display: flex;
align-items: flex-end;
justify-content: center;
padding: 16px;
}
@media (min-width: 640px) {
.modal-overlay {
align-items: center;
}
}
.modal-panel {
background: white;
border-radius: 16px;
box-shadow: var(--shadow-lg);
width: 100%;
max-width: 28rem;
max-height: 90vh;
overflow-y: auto;
}
/* Hub tabs: segmented control linking sibling pages of one hub. */
.hub-tabs {
display: flex;
gap: 4px;
background: var(--off);
padding: 4px;
border-radius: 12px;
width: fit-content;
margin-bottom: 24px;
}
.hub-tab {
padding: 6px 16px;
border-radius: 8px;
font-size: 0.875rem;
font-weight: 500;
color: var(--muted);
text-decoration: none;
transition: color 0.15s;
}
.hub-tab:hover {
color: var(--ink);
}
.hub-tab-active {
background: white;
color: var(--ink);
box-shadow: var(--shadow-sm);
}
/* ── Signal badges ──────────────────────────────────────────────────────────── */
.signal-healthy {
display: inline-flex;
align-items: center;
gap: 4px;
background: var(--green-bg);
color: var(--green-text);
padding: 3px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}
.signal-watch {
display: inline-flex;
align-items: center;
gap: 4px;
background: var(--warn-bg);
color: var(--warn-text);
padding: 3px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}
.signal-concern {
display: inline-flex;
align-items: center;
gap: 4px;
background: var(--danger-bg);
color: var(--danger-text);
padding: 3px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}
/* ── Alert / error box ──────────────────────────────────────────────────────── */
.alert-error {
background: var(--danger-bg);
color: var(--danger-text);
border-radius: 10px;
padding: 10px 14px;
font-size: 13px;
}
.alert-success {
background: var(--green-bg);
color: var(--green-text);
border-radius: 10px;
padding: 10px 14px;
font-size: 13px;
}
/* ── Navigation links (sidebar + portal) ───────────────────────────────── */
.nav-link {
display: flex;
align-items: center;
gap: 12px;
/* 10px vertical padding around 14px text landed near 41px — just under the
44px touch floor. min-height says the floor explicitly rather than
leaving it to arithmetic that happens to work today. */
min-height: 44px;
padding: 10px 12px;
border-radius: 12px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
white-space: nowrap;
transition:
background-color 0.15s,
color 0.15s;
border: none;
font-family: inherit;
}
.nav-link-active {
background: var(--teal-light);
color: var(--teal);
}
.nav-link-inactive {
color: var(--ink2);
}
.nav-link-inactive:hover {
background: var(--light);
color: var(--ink);
}
.nav-link-muted {
color: var(--muted);
}
.nav-link-muted:hover {
background: var(--light);
color: var(--ink);
}
.nav-link-danger {
color: var(--muted);
}
.nav-link-danger:hover {
background: var(--danger-bg);
color: var(--danger-text);
}
/* ── Mobile bottom tab items ────────────────────────────────────────────── */
.mobile-tab-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 8px 0;
font-size: 12px;
font-weight: 500;
text-decoration: none;
transition: color 0.15s;
}
.mobile-tab-item-active {
color: var(--teal);
}
.mobile-tab-item-inactive {
color: var(--muted);
}
/* ── Hero eyebrow badge ─────────────────────────────────────────────────── */
.eyebrow-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--teal-light);
color: var(--teal);
font-size: 12px;
font-weight: 600;
padding: 6px 12px;
border-radius: 9999px;
border: 1px solid var(--teal-mid);
margin-bottom: 28px;
}
/* ── CTA section buttons (on --teal background) ─────────────────────────── */
.btn-on-teal {
display: inline-flex;
align-items: center;
gap: 8px;
background: white;
color: var(--teal);
font-weight: 700;
font-family: inherit;
font-size: 16px;
padding: 16px 32px;
border-radius: 12px;
text-decoration: none;
border: none;
cursor: pointer;
transition: background-color 0.15s;
}
.btn-on-teal:hover {
background: var(--teal-light);
}
.btn-on-teal-ghost {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgb(255 255 255 / 0.1);
color: white;
font-weight: 700;
font-family: inherit;
font-size: 16px;
padding: 16px 32px;
border-radius: 12px;
text-decoration: none;
border: 1px solid rgb(255 255 255 / 0.2);
cursor: pointer;
transition: background-color 0.15s;
}
.btn-on-teal-ghost:hover {
background: rgb(255 255 255 / 0.2);
}
/* ── Long-form legal copy — Privacy / Terms / Cookies pages ─────────────── */
.prose-legal h2 {
font-size: 18px;
font-weight: 600;
color: var(--ink);
margin-top: 28px;
margin-bottom: 8px;
}
.prose-legal h2:first-child {
margin-top: 0;
}
.prose-legal h3 {
font-size: 15px;
font-weight: 600;
color: var(--ink);
margin-top: 16px;
margin-bottom: 4px;
}
.prose-legal p {
font-size: 15px;
}
.prose-legal ul {
list-style: disc;
padding-inline-start: 22px;
font-size: 15px;
}
.prose-legal ul li {
margin-bottom: 4px;
}
.prose-legal a {
color: var(--teal);
text-decoration: underline;
text-underline-offset: 2px;
}
.prose-legal code {
background: var(--off);
padding: 1px 6px;
border-radius: 4px;
font-size: 0.9em;
}