@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font: 100% Inter, system-ui, sans-serif;
  --surface: #fff;
  --text: #111;
  --muted: #545454;
  --border: #e7e4e6;
  --soft: #f7f6f7;
  --red: #d71920;
  --red-text: #a9161e;
  --track: #d8d8d8;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--surface); }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
a { color: var(--red-text); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 4px; }
[id] { scroll-margin-block-start: 1rem; }

.wrap {
  width: min(calc(100% - 3rem), 71rem);
  margin-inline: auto;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 1;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.75rem;
  background: var(--surface);
}

.site-header { border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); }

.header-content, .footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.header-content { min-height: 4.75rem; }
.footer-content { padding-block: 1.5rem; }
.publisher { display: grid; justify-items: start; gap: 0.5625rem; }
.publisher p { font-size: 0.8125rem; color: var(--muted); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img { flex: none; border-radius: 8px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: 523fr 557fr;
  align-items: center;
  gap: clamp(1.75rem, 3.89vw, 3.5rem);
  padding-block: 2.75rem 3.1875rem;
}

.hero-copy, .hero-text, .hero-action { display: grid; justify-items: start; }
.hero-copy { gap: 1.375rem; min-width: 0; }
.hero-text { gap: 1.0625rem; }
.hero-action { gap: 0.75rem; }
.hero-action p, .eyebrow { font-size: 0.8125rem; color: var(--muted); }
.eyebrow { color: var(--red-text); font-weight: 600; line-height: 1.125rem; }

.hero h1 {
  font-size: clamp(2.75rem, 4.52vw, 4.0625rem);
  letter-spacing: -0.065em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.hero-text p {
  max-width: 29.1875rem;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.875rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.6875rem; }

.button {
  display: inline-grid;
  place-items: center;
  min-height: 3.125rem;
  padding: 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button-primary { min-width: 11.375rem; background: var(--red); color: var(--surface); }
.button-primary:hover { background: var(--red-text); }
.button-secondary { min-width: 8.3125rem; border-color: var(--border); }
.button-secondary:hover { background: var(--soft); }

.chart-stage {
  min-width: 0;
  padding: 2.125rem clamp(1.125rem, 2.92vw, 2.625rem);
  border-radius: 1.875rem;
  background: linear-gradient(135deg, #fff4f3, #f4e8ed);
}

.schedule-preview {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #f0e7e9;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 14px 36px rgb(82 18 26 / 11%);
}

.preview-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem 0.75rem;
}

.preview-heading h2 { font-size: 1.1875rem; letter-spacing: -0.024em; }
.preview-heading p {
  padding: 0.3125rem 0.5rem;
  border-radius: 0.375rem;
  background: #faeced;
  color: var(--red-text);
  font-size: 0.6875rem;
  font-weight: 600;
}

.preview-section {
  display: grid;
  gap: 0.625rem;
  margin-top: 0.9375rem;
  padding-top: 0.9375rem;
  border-top: 1px solid var(--border);
}

.preview-section h3 { font-size: 0.875rem; }
.monthly-chart { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.chart-donut { display: grid; place-items: center; }
.chart-donut img, .chart-donut strong { grid-area: 1 / 1; }
.chart-donut strong { font-size: 1.1875rem; letter-spacing: -0.025em; }

.chart-legend { display: grid; gap: 0.6875rem; width: 10rem; font-size: 0.8125rem; }
.chart-legend div { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.chart-legend dt { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.chart-legend dt::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
}
.chart-legend .legend-other::before { background: var(--track); }
.chart-legend dd { font-weight: 700; white-space: nowrap; }

.daily-section { gap: 0.4375rem; }
.daily-chart { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.75rem; }
.daily-chart .day-column { width: 3.625rem; }
.daily-chart .total-column { width: 2.125rem; }
.daily-chart th, .daily-chart td { padding: 0; }
.daily-chart tbody tr { height: 1.4375rem; }
.daily-chart tbody th { color: var(--muted); font-weight: 400; text-align: left; }
.daily-chart tbody td:last-child { font-weight: 600; text-align: right; white-space: nowrap; }

.hour-scale {
  display: flex;
  justify-content: space-between;
  min-height: 1.125rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 400;
}

.daily-bar {
  display: block;
  width: var(--total);
  height: 8px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--track);
}

.daily-bar::before {
  content: "";
  display: block;
  width: var(--annemasse);
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.setup { padding-block: 1.5625rem 3.25rem; border-top: 1px solid var(--border); }
.setup-heading h2 { margin-bottom: 0.4375rem; font-size: 2.5rem; letter-spacing: -0.043em; line-height: 1.2; }
.setup-heading p { color: var(--muted); font-size: 1.0625rem; line-height: 1.5625rem; }

.setup-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5625rem;
  padding: 0;
  list-style: none;
}

.setup-step {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.375rem;
  border: 1px solid var(--border);
  border-radius: 1.125rem;
}

.step-number { color: var(--red-text); font-size: 0.8125rem; font-weight: 700; }
.setup-step h3 { font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.6875rem; }
.setup-step p, .features p, .help-topics p { color: var(--muted); line-height: 1.5625rem; }
.setup-step .setup-path { color: var(--red-text); font-size: 0.875rem; font-weight: 600; line-height: 1.375rem; }

.features { background: var(--soft); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 5.42vw, 4.875rem);
  padding-block: 2.1875rem 2.375rem;
}
.features h2 { margin-bottom: 0.625rem; font-size: 1.4375rem; letter-spacing: -0.024em; line-height: 1.8125rem; }

.document { padding-block: 3.5625rem 4.0625rem; }
.document-heading { display: grid; gap: 0.625rem; }
.document h1 { font-size: 3.625rem; letter-spacing: -0.06em; line-height: 1.12; }
.document-heading p { color: var(--muted); font-size: 1.1875rem; line-height: 1.875rem; }
.policy-heading { gap: 0.4375rem; }
.policy-heading .policy-brand { font-size: 1rem; font-weight: 600; line-height: 1.5rem; }
.policy-heading .policy-date { font-size: 0.8125rem; line-height: 1.25rem; }

.document-grid {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 6.25vw, 5.625rem);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.support-grid { grid-template-columns: minmax(0, 704fr) minmax(16rem, 342fr); }
.help-topics { display: grid; gap: 1.1875rem; }
.help-topics section { display: grid; gap: 0.4375rem; }
.help-topics section + section { padding-top: 1.1875rem; border-top: 1px solid var(--border); }
.help-topics h2 { font-size: 1.3125rem; letter-spacing: -0.024em; line-height: 1.6875rem; }

.support-contact, .policy-contents { display: grid; background: var(--soft); }
.support-contact { gap: 0.75rem; padding: 1.375rem; border-radius: 1.125rem; }
.support-contact h2, .policy-article h2 { font-size: 1.5rem; letter-spacing: -0.023em; line-height: 1.875rem; }
.support-contact p, .policy-article p { color: var(--muted); font-size: 1.0625rem; line-height: 1.75rem; }
.support-contact a { justify-self: start; font-weight: 600; text-decoration: none; }
.support-contact a:hover, .policy-contents a:hover { text-decoration: underline; }

.policy-grid { grid-template-columns: minmax(0, 44.75rem) 15.875rem; gap: clamp(2rem, 7.08vw, 6.375rem); }
.policy-article, .policy-article section { display: grid; }
.policy-article { gap: 1.75rem; }
.policy-article section { gap: 0.625rem; }
.policy-contents { gap: 0.625rem; padding: 1.25rem; border-radius: 1rem; font-size: 0.875rem; }
.policy-contents a { line-height: 1.375rem; text-decoration: none; }

@media (max-width: 56.25rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.4375rem; padding-block: 2rem 1.875rem; }
  .hero-copy { gap: 1.0625rem; }
  .hero-text { gap: 0.8125rem; }
  .hero h1 { font-size: clamp(2rem, 11vw, 2.6875rem); letter-spacing: -0.06em; line-height: 1.07; }
  .hero-text p { font-size: 1.0625rem; line-height: 1.5625rem; }
  .chart-stage { padding: 0.9375rem 0.875rem; border-radius: 1.375rem; }
  .schedule-preview { padding: 1.125rem; }
  .preview-heading h2 { font-size: 1rem; }
  .preview-section { margin-top: 0.75rem; padding-top: 0.75rem; }
  .monthly-chart { gap: 1.25rem; }
  .chart-legend { width: 7.625rem; }
}

@media (max-width: 46.25rem) {
  .header-content { min-height: 4.25rem; }
  .header-content .desktop-link { display: none; }
  .footer-content { flex-direction: column; align-items: flex-start; padding-block: 1.375rem 1.625rem; }
  .footer-content .site-nav { column-gap: 1.125rem; }
  .hero-action, .hero-buttons { width: 100%; }
  .hero-buttons { display: grid; gap: 0.5625rem; }
  .button { min-width: 0; }
  .setup { padding-block: 1rem 1.9375rem; }
  .setup-heading h2 { font-size: 1.9375rem; }
  .setup-heading p { font-size: 1rem; }
  .setup-steps { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-top: 1rem; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 1.3125rem; padding-block: 1.625rem 1.8125rem; }
  .document { padding-block: 1.9375rem 2.5rem; }
  .document h1 { font-size: 2.5625rem; letter-spacing: -0.055em; }
  .document-heading p { font-size: 1.0625rem; line-height: 1.625rem; }
  .document-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6875rem; margin-top: 1.4375rem; padding-top: 1.4375rem; }
  .policy-contents { display: none; }
  .policy-article { gap: 1.5625rem; }
  .policy-article h2, .support-contact h2 { font-size: 1.3125rem; line-height: 1.6875rem; }
  .policy-article p, .support-contact p { font-size: 1rem; line-height: 1.5625rem; }
}

@media (max-width: 22.5rem) {
  .brand { gap: 0.5rem; font-size: 1rem; }
  .header-content { gap: 0.25rem; }
  .monthly-chart { gap: 0.75rem; }
  .chart-legend { width: auto; }
}
