/* ===========================================================================
   AnySchedule public website
   Design tokens, reset, typography, layout primitives.
   Light theme only: the public site never renders a dark variant.
   =========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: only light;

  --green-700: #15803D;
  --green-750: #14682F;
  --green-600: #16A34A;
  --green-200: #BBF7D0;
  --green-100: #DCFCE7;
  --green-50: #F0FDF4;

  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --surface: #FFFFFF;
  --surface-muted: #F9FAFB;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 6px 16px -6px rgba(17, 24, 39, 0.12), 0 2px 6px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 24px 60px -28px rgba(17, 24, 39, 0.28),
    0 8px 24px -16px rgba(17, 24, 39, 0.12);

  --container: 1120px;
  --gutter: 20px;
  --header-height: 68px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The header is sticky, so every fragment target would otherwise land
     underneath it: "#product" on the home page hides the eyebrow by 28px at
     390px wide. One offset here covers all pages instead of a
     scroll-margin-top per component. */
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "cv11" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 640;
  letter-spacing: -0.021em;
  line-height: 1.18;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--green-700);
  text-decoration-color: var(--green-200);
  text-underline-offset: 3px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
  color: var(--green-750);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--green-100);
  color: var(--ink);
}


/* --- Layout primitives ---------------------------------------------------- */

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section--muted {
  background: var(--surface-muted);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  font-size: clamp(1.7rem, 1.05rem + 2vw, 2.35rem);
  margin-top: 12px;
}

.section__lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  max-width: 38rem;
}

.section__head--center .section__lede {
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-700);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
  color: #fff;
}

/* --- Buttons -------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 580;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease,
    color 150ms ease, box-shadow 150ms ease;
}

.btn--primary {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--green-750);
  border-color: var(--green-750);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: var(--green-600);
  color: var(--green-750);
}

.btn__arrow {
  width: 16px;
  height: 16px;
  flex: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 560;
  text-decoration: none;
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 150ms ease;
}

.text-link:hover svg {
  transform: translateX(2px);
}

/* --- Site header & navigation -------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand__name {
  font-size: 1.0625rem;
}

.nav {
  margin-left: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 520;
  text-decoration: none;
}

.nav__link:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.nav__link.is-active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 580;
}

.nav__toggle,
.nav__panel {
  display: none;
}

/* --- Site footer ---------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: clamp(32px, 4vw, 48px);
}

.site-footer__about {
  margin-top: 14px;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__title {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__column ul {
  display: grid;
  gap: 10px;
}

.site-footer__column a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer__column a:hover {
  color: var(--green-700);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 8px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer__note {
  max-width: 46rem;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 72px) clamp(44px, 6vw, 84px);
  background:
    radial-gradient(78% 62% at 88% -8%, var(--green-50) 0%, rgba(240, 253, 244, 0) 62%),
    radial-gradient(50% 45% at 0% 0%, #FAFAFA 0%, rgba(250, 250, 250, 0) 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.hero__copy {
  max-width: 36rem;
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(2.1rem, 1.15rem + 3.3vw, 3.4rem);
  font-weight: 660;
  letter-spacing: -0.032em;
  line-height: 1.06;
}

.hero__lede {
  max-width: 32rem;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.62;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.855rem;
}

.hero__fact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__fact svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--green-600);
}

/* The preview is a <figure> for its caption, so the user-agent margin (40px on
   each side) and the min-content floor are both reset here: without them the
   card is inset from its grid column and the timetable is clipped instead of
   scrolling inside .preview__scroll. */
.hero__media {
  min-width: 0;
  margin: 0;
}

/* --- Timetable preview (decorative, built with CSS only) ------------------ */

.preview {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.preview__title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.preview__sub {
  margin-top: 1px;
  font-size: 0.72rem;
  color: var(--muted);
}

.preview__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid var(--green-100);
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.71rem;
  font-weight: 620;
  white-space: nowrap;
}

.preview__pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}

.preview__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.preview__scroll::-webkit-scrollbar {
  height: 8px;
}

.preview__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

.tt {
  display: grid;
  grid-template-columns: 46px repeat(5, minmax(0, 1fr));
  gap: 4px;
  min-width: 430px;
  padding: 10px;
}

.tt__corner {
  min-height: 12px;
}

.tt__day {
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 640;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.tt__time {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.tt__cell {
  min-height: 44px;
  border: 1px solid #F3F4F6;
  border-radius: var(--radius-sm);
  background: #FCFDFC;
}

.tt__block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  height: 100%;
  min-height: 44px;
  padding: 5px 6px;
  border: 1px solid var(--green-100);
  border-left: 3px solid var(--green-600);
  border-radius: var(--radius-sm);
  background: var(--green-50);
}

.tt__block--deep {
  border-left-color: var(--green-700);
  background: #EAFBF0;
}

.tt__block--light {
  border-left-color: var(--green-200);
  background: #F7FEF9;
}

.tt__name {
  color: #14532D;
  font-size: 0.635rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.tt__meta {
  color: #4B5563;
  font-size: 0.605rem;
  line-height: 1.3;
}

.tt__break {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 2 / -1;
  padding: 2px 10px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    135deg,
    #F9FAFB 0 6px,
    #F3F4F6 6px 12px
  );
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 560;
  letter-spacing: 0.02em;
}

.preview__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.73rem;
}

.preview__foot svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--green-600);
}

.preview__foot-note {
  margin-left: auto;
  color: #9CA3AF;
  font-size: 0.7rem;
}

.preview__caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

/* --- Page header (inner pages) ------------------------------------------- */

.page-head {
  padding-block: clamp(36px, 4.6vw, 68px) clamp(20px, 2.4vw, 32px);
  background:
    radial-gradient(70% 70% at 92% -20%, var(--green-50) 0%, rgba(240, 253, 244, 0) 66%);
}

.page-head__title {
  margin-top: 16px;
  font-size: clamp(1.95rem, 1.25rem + 2.4vw, 2.9rem);
  font-weight: 660;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-head__lede {
  max-width: 42rem;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
}

.page-head__meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* --- Capability strip ---------------------------------------------------- */

.capabilities {
  border-block: 1px solid var(--line);
  background: var(--surface-muted);
  padding-block: 18px;
}

.capabilities ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}

.capabilities li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 520;
}

.capabilities svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--green-600);
}

/* --- Cards --------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease,
    transform 160ms ease;
}

.card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid var(--green-100);
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-700);
}

.card__icon svg {
  width: 19px;
  height: 19px;
}

.card__title {
  font-size: 1.0125rem;
  font-weight: 620;
}

.card__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

/* --- Steps --------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.step {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}

.step__title {
  margin-top: 16px;
  font-size: 1.05rem;
}

.step__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.step__list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.step__list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.step__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-200);
}

/* --- Principles ---------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.principle__rule {
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--green-600);
}

.principle__title {
  font-size: 1rem;
  font-weight: 620;
}

.principle__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Closing call to action ---------------------------------------------- */

.cta {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--green-50) 0%, #FBFFFC 100%);
}

.cta__title {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
}

.cta__text {
  max-width: 36rem;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cta__actions {
    justify-content: flex-end;
  }
}

/* --- Split text block ---------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
}

.split + .split {
  margin-top: clamp(28px, 3.4vw, 44px);
}

.split__body > * + * {
  margin-top: 14px;
}

.split__body p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.72;
}

.split__title {
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem);
}

.split__kicker {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

/* --- Feature rows (features page) ---------------------------------------- */

.section__more {
  margin-top: clamp(28px, 3.4vw, 40px);
}

.feature-row {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.feature-row:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.feature-row__title {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
}

.step-marker {
  margin-bottom: 14px;
}

.feature-row__text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-row__list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.feature-row__list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.feature-row__list li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.4l3.2 3.2L13 5.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .feature-row--reverse .feature-row__copy {
    order: 2;
  }
}

/* --- Mock interface panels ----------------------------------------------- */

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.panel__bar-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 520;
}

.panel__body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.panel__label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.panel__label + * {
  margin-top: -2px;
}

.panel__group {
  display: grid;
  gap: 6px;
}

.panel__group + .panel__group {
  margin-top: 4px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 520;
}

.chip--ok {
  border-color: var(--green-100);
  background: var(--green-50);
  color: var(--green-700);
}

.chip--muted {
  background: var(--surface-muted);
  color: var(--muted);
}

.diag {
  display: grid;
  gap: 8px;
}

.diag__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.diag__row--warn {
  border-color: #FDE68A;
  background: #FFFBEB;
  color: #92400E;
}

.diag__row--ok {
  border-color: var(--green-100);
  background: var(--green-50);
  color: var(--green-700);
}

.diag__dot {
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.meter__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green-600);
}

.kv {
  display: grid;
  gap: 6px;
}

.kv__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.kv__row span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* --- Legal documents ----------------------------------------------------- */

.legal {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(28px, 3.6vw, 48px) clamp(48px, 6vw, 80px);
}

.legal__toc {
  display: none;
}

.legal__toc-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal__toc ul {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.legal__toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
}

.legal__toc a:hover {
  color: var(--ink);
}

.legal__toc a.is-current {
  border-left-color: var(--green-600);
  color: var(--green-700);
  font-weight: 580;
}

.legal__body {
  max-width: 44rem;
}

.legal__body .notice + * {
  margin-top: 28px;
}

.notice {
  padding: 14px 16px;
  border: 1px solid var(--green-100);
  border-left: 3px solid var(--green-600);
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.6;
}

.notice--neutral {
  border-color: var(--line);
  border-left-color: var(--line-strong);
  background: var(--surface-muted);
}

.notice__title {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 620;
}

.prose {
  color: var(--ink-soft);
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: clamp(32px, 4vw, 44px);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 26px;
  font-size: 1rem;
  font-weight: 620;
}

.prose p,
.prose li {
  font-size: 0.95rem;
  line-height: 1.72;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-200);
}

.prose ol {
  counter-reset: legal-item;
}

.prose ol li {
  position: relative;
  padding-left: 26px;
  counter-increment: legal-item;
}

.prose ol li::before {
  content: counter(legal-item) ".";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 620;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 0.85em;
}

@media (min-width: 1000px) {
  .legal {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 56px;
  }

  .legal__toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: block;
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
  }
}

/* --- Scroll reveal (progressive enhancement, motion-safe) ---------------- */

/* The `reveal` class is added by site.js only after it has registered its
   observer, so content stays visible when JavaScript is unavailable. */
.reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover {
    transform: none;
  }

  .btn,
  .text-link svg {
    transition: none;
  }
}

/* --- Responsive: header and hero ----------------------------------------- */

@media (max-width: 1079px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero__copy {
    max-width: none;
  }

  .hero__lede {
    max-width: 40rem;
  }
}

@media (max-width: 1023px) {
  .nav {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 560;
    cursor: pointer;
  }

  .nav__toggle-icon {
    position: relative;
    display: block;
    width: 15px;
    height: 10px;
  }

  .nav__toggle-icon::before,
  .nav__toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 15px;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease, top 160ms ease;
  }

  .nav__toggle-icon::before {
    top: 1px;
  }

  .nav__toggle-icon::after {
    top: 8px;
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
    top: 4.5px;
    transform: rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
    top: 4.5px;
    transform: rotate(-45deg);
  }

  .nav__panel {
    display: block;
    /* Short viewports (landscape phones, 320x480) cannot show all seven links
       at once: the panel scrolls instead of pushing the last links off the
       bottom, and body scroll stays locked behind it. */
    max-height: calc(100vh - var(--header-height) - 8px);
    max-height: calc(100dvh - var(--header-height) - 8px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--gutter) 14px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 14px 26px -22px rgba(17, 24, 39, 0.4);
  }

  .nav__panel[hidden] {
    display: none;
  }

  .nav__panel-links {
    display: grid;
    gap: 2px;
  }

  .nav__panel-link {
    display: block;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 520;
    text-decoration: none;
  }

  .nav__panel-link:hover {
    background: var(--surface-muted);
    color: var(--ink);
  }

  .nav__panel-link.is-active {
    background: var(--green-50);
    color: var(--green-700);
    font-weight: 580;
  }

  body.is-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__base {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .tt {
    min-width: 500px;
  }

  .hero__facts {
    gap: 8px 16px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .preview__title {
    font-size: 0.79rem;
  }

  .preview__sub {
    font-size: 0.68rem;
  }

  .preview__pill {
    padding: 4px 9px;
    font-size: 0.66rem;
  }

  .preview__foot-note {
    font-size: 0.66rem;
  }
}

/* --- Print --------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .nav__panel,
  .legal__toc,
  .actions,
  .cta {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 11pt;
  }

  .legal {
    display: block;
    padding-block: 0;
  }

  .prose h2 {
    break-after: avoid;
  }
}

