/* Today Loop — static site design system */

:root {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-border: #e7e5e4;
  --color-accent: #059669;
  --color-accent-hover: #047857;
  --color-accent-soft: #ecfdf5;
  --color-accent-lime: #84cc16;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-sm: 0.9375rem;
  --font-size-base: 1.0625rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: clamp(1.75rem, 4vw, 2.5rem);
  --line-height: 1.6;
  --line-height-tight: 1.25;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --radius: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(28 25 23 / 0.06);
  --shadow-md: 0 8px 24px rgb(28 25 23 / 0.08);
  --max-width: 42rem;
  --max-width-wide: 56rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(250 250 249 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner,
.site-main,
.site-footnotes,
.site-footer__inner {
  width: min(100% - var(--space-4), var(--max-width-wide));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-2);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 650;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--color-text);
}

.site-logo__mark {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
}

.site-main {
  padding-block: var(--space-5) var(--space-6);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}

.site-footer nav a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--color-accent);
}

.site-footnotes {
  padding-block: var(--space-3) 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.site-footnotes p {
  margin: 0;
}

.site-footnotes p + p {
  margin-top: 0.75rem;
}

.site-footnotes a {
  color: inherit;
  text-underline-offset: 2px;
}

.site-footnotes a:hover {
  color: var(--color-accent);
}

.footnote-ref {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.footnote-ref:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Landing */

.hero {
  max-width: var(--max-width-wide);
  margin-bottom: var(--space-4);
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0 0 var(--space-2);
}

.hero__eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-pill);
}

.hero__eyebrow--soon {
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.hero h1 {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero__lead {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  flex: 1 1 16rem;
  max-width: 40ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  flex: 0 0 auto;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.btn--primary {
  color: #fff;
  background: var(--color-text);
}

.btn--primary:not(:disabled):hover {
  background: #292524;
  color: #fff;
}

.btn--store {
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: not-allowed;
  opacity: 0.85;
}

.btn__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.features {
  display: grid;
  gap: var(--space-3);
  max-width: var(--max-width-wide);
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card--wide {
    grid-column: 1 / -1;
  }
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.feature-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-card:not(.feature-card--featured) .feature-card__icon {
  background: #f5f5f4;
  color: #78716c;
}

.feature-card__body {
  flex: 1;
  min-width: 0;
}

.feature-card--featured {
  background: var(--color-accent-soft);
  border-color: #a7f3d0;
}

.feature-card--featured .feature-card__icon {
  background: var(--color-surface);
}

.feature-card__note {
  margin: var(--space-2) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid #a7f3d0;
  color: #065f46;
  font-size: var(--font-size-sm);
}

.feature-card h2 {
  margin: 0 0 var(--space-1);
  font-size: var(--font-size-lg);
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Legal pages */

.legal {
  max-width: var(--max-width);
}

.legal__meta {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.legal h1 {
  margin: 0 0 var(--space-1);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--font-size-lg);
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--color-text);
}

.legal ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal li strong {
  color: var(--color-text);
}

.legal p {
  margin: 0 0 var(--space-2);
}

.legal a {
  word-break: break-word;
}
