/* Light theme only. Values copied from frontend/src/plugins/vuetify.ts
   (see docs/design/style-guide.md) — keep the two in sync. */
:root {
  color-scheme: light;

  --background: #f7fafb;
  --surface: #ffffff;
  --surface-variant: #edf3f5;
  --text: #0f1e26;
  --text-muted: #56697a;
  --border: #dce6eb;
  --border-strong: #b7c9d3;
  --primary: #1d5b79;
  --on-primary: #ffffff;
  --primary-tint: #ddebf2;
  --due: #b9432c;
  --due-tint: #fbeae5;
  --success: #2f7f63;
  --success-tint: #e2f2eb;
  --overlay-shadow: 0 8px 24px rgba(15, 30, 38, 0.08);

  --radius: 4px;
  --gutter: 16px;
  --max-width: 1080px;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: var(--primary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.narrow {
  max-width: 720px;
}

/* Type scale — same names as the app's style.css where they exist. */
.t-app-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.t-hero {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.t-page-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.t-step-title {
  font-size: 17px;
  font-weight: 600;
}

.t-row-title {
  font-size: 15px;
  font-weight: 500;
}

.t-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.t-section-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: #174a63;
}

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

.btn-text:hover {
  background: var(--primary-tint);
}

/* Badges (status-badge in the app) */
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-due {
  background: var(--due-tint);
  color: var(--due);
}

.badge-scheduled {
  background: var(--surface-variant);
  color: var(--text-muted);
}

/* Lists (list-container / list-row in the app) */
.list-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 16px;
}

.list-row + .list-row {
  border-top: 1px solid var(--border);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 72px 0;
}

.hero-inner {
  display: grid;
  /* minmax(0, …) lets columns shrink below their content's min width,
     so the mock's nowrap badges can't push the hero past the screen. */
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
}

.lede em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Hero mock */
.hero-mock {
  position: relative;
  padding-bottom: 72px;
}

.mock-window {
  background: var(--surface-variant);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.row-text .t-row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-clip {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: min(280px, 85%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--overlay-shadow);
  padding: 16px;
}

.mock-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
  margin: 8px 0;
}

.mock-wave span {
  flex: 1;
  border-radius: 2px;
  background: var(--primary);
}

.mock-turn {
  font-weight: 600;
  color: var(--primary);
}

.mock-turn .t-meta {
  margin-left: 6px;
  font-weight: 400;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section p + p {
  margin-top: 12px;
}

/* Beta notice, between the hero and the first section */
.beta-band {
  padding: 24px 0;
  background: var(--primary-tint);
  border-top: 1px solid var(--border);
}

.beta-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.beta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.beta-copy p {
  color: var(--text-muted);
  font-size: 15px;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* Features */
.feature-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.feature-row .t-meta {
  font-size: 14px;
}

.feature-row strong {
  color: var(--text);
  font-weight: 500;
}

/* Key features */
.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.highlight {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.highlight:hover {
  border-color: var(--border-strong);
}

.highlight p {
  color: var(--text-muted);
  font-size: 15px;
}

/* The two main features get more weight than the supporting two. */
.highlight-main {
  padding: 28px 24px;
  background: var(--primary-tint);
  border-color: transparent;
}

.highlight-main:hover {
  border-color: var(--primary);
}

.highlight-main .t-section-label {
  color: var(--primary);
}

.highlight-main .t-step-title {
  font-size: 22px;
}

.highlight-main p {
  color: var(--text);
  font-size: 16px;
}

.highlight-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

/* Feature spotlights */
.spotlight-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 32px;
}

.spotlight-head .t-section-label {
  margin-bottom: 8px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 15px;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.check-list strong {
  color: var(--text);
  font-weight: 500;
}

.section-intro {
  margin-bottom: 24px;
  color: var(--text-muted);
}

/* Screenshots */
.shot {
  max-width: 880px;
  margin: 0 auto;
}

.feature-list + .shot {
  margin-top: 32px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.shot-pair .shot {
  max-width: none;
  margin: 0;
}

/* FAQ */
.faq-item {
  padding: 0 16px;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p,
.faq-item ul {
  padding-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
}

/* Intro line sits directly above its list. */
.faq-item p:has(+ ul) {
  margin-bottom: 0;
  padding-bottom: 4px;
}

.faq-item ul {
  margin: 0;
  padding-left: 24px;
}

/* Sign-up */
.signup-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.signup-inner .t-page-title {
  margin-bottom: 4px;
}

.signup-inner p:last-of-type {
  color: var(--text-muted);
  max-width: 480px;
}

.signup-inner .btn {
  margin-top: 12px;
}

/* Legal pages (privacy.html, terms.html) */
.legal {
  padding: 48px 0 64px;
}

.legal h1 {
  margin-bottom: 4px;
}

.legal h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 12px;
}

.legal ul {
  margin: 0;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal-summary {
  margin-top: 24px;
  padding: 16px;
  background: var(--primary-tint);
  border-radius: var(--radius);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.site-footer a {
  text-decoration: none;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-mock {
    max-width: 480px;
  }

  .mock-clip {
    right: 0;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Phone */
@media (max-width: 600px) {
  .header-nav {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .header-inner .btn {
    margin-left: auto;
  }

  .beta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* The longer name needs a little less room to stay on one line */
  .brand .t-app-name {
    font-size: 17px;
    white-space: nowrap;
  }

  .hero {
    padding: 40px 0 48px;
  }

  /* Badge drops below the title when the row is too narrow for both. */
  .hero-mock .list-row {
    flex-wrap: wrap;
    gap: 6px 12px;
    min-height: 0;
  }

  .hero-mock .row-text {
    flex-basis: 160px;
  }

  .section {
    padding: 48px 0;
  }

  .t-page-title {
    font-size: 24px;
  }

  .lede {
    font-size: 17px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .highlights,
  .shot-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
