/* ==========================================================================
   Synchronic — design tokens
   One accent color, light neutrals, generous whitespace.
   ========================================================================== */

:root {
  /* Text */
  /* Text. Every one of these clears 4.5:1 on white and on --surface;
     scripts/check.mjs recomputes the ratios on each build. */
  --ink: #14161f;
  --ink-2: #4d546a;
  --ink-3: #6a7185;

  /* Surfaces */
  --canvas: #ffffff;
  --surface: #f7f8fc;
  --surface-2: #f1f3f9;
  --line: #e0e0e0;
  /* Used on inputs and secondary buttons, where the border is what identifies
     the control, so it is darker than the decorative --line. */
  --line-strong: #b0b0b0;

  /* Accent — the only brand color.
     --accent on white is 5.15:1, --accent-ink is 7.45:1, so accent-ink is
     used for any accent-colored text and accent for fills. */
  --accent: #6d4aff;
  --accent-ink: #5527e6;
  --accent-soft: #f1ecff;
  --accent-ring: rgba(109, 74, 255, 0.28);

  /* Calendar color language.
     Each connected calendar gets its own hue. Synchronic's busy block is
     deliberately neutral + striped, because it is blocked time, not a meeting. */
  --cal-google: #1a73e8;
  --cal-google-bg: #e8f0fe;
  --cal-google-line: #c6dafc;

  --cal-outlook: #0f766e;
  --cal-outlook-bg: #e3f3f0;
  --cal-outlook-line: #bfe2dc;

  --busy: #5a6279;
  --busy-bg: #eef0f6;
  --busy-line: #d8dce8;

  --alert: #c62d46;
  --alert-bg: #fff1f3;
  --alert-line: #fbd0d7;

  --ok: #0f7b4f;
  --ok-bg: #e7f6ef;
  --ok-line: #bfe6d3;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Elevation — subtle only */
  --shadow-sm: 0 1px 2px rgba(20, 22, 31, 0.05);
  --shadow-md: 0 2px 4px rgba(20, 22, 31, 0.04), 0 8px 24px rgba(20, 22, 31, 0.05);
  --shadow-lg: 0 4px 10px rgba(20, 22, 31, 0.04), 0 20px 50px rgba(20, 22, 31, 0.08);

  /* Layout */
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --gutter: 20px;

  /* Calendar grid row height. Tall enough that a one-hour block fits its
     title line plus its time line without clipping. */
  --row: 52px;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchor targets clear of the sticky header */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ==========================================================================
   Typography
   ========================================================================== */

.h1,
.h2,
.h3 {
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.1;
  font-weight: 650;
  text-wrap: balance;
}

.h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.65rem);
  letter-spacing: -0.03em;
}

.h2 {
  font-size: clamp(1.65rem, 4.1vw, 2.5rem);
}

.h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: -0.014em;
}

.lede {
  font-size: clamp(1.03rem, 2.1vw, 1.19rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body {
  color: var(--ink-2);
  text-wrap: pretty;
}

.small {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.micro {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.measure {
  max-width: 54ch;
}

.measure-wide {
  max-width: 64ch;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 9vw, 104px);
}

.section--tight {
  padding-block: clamp(44px, 6vw, 72px);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.stack > * + * {
  margin-top: var(--gap, 16px);
}

.center {
  text-align: center;
  margin-inline: auto;
}

.section-head {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.section-head > * + * {
  margin-top: 14px;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.grid {
  display: grid;
  gap: 20px;
}

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

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-2 {
    gap: 28px;
  }
}

/* Two-column feature row: copy + visual */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }
  .split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split--flip > .split__copy {
    order: 2;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm); /* 8px — solid fill, no gradient, no shadow */
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--primary:hover {
  background: var(--accent-ink);
}

.btn--secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  border-color: var(--ink-3);
  background: var(--surface);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 14px;
}

.btn--ghost:hover {
  background: var(--surface-2);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-row--center {
  justify-content: center;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--accent-ink);
}

.link-arrow svg {
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover {
  text-decoration: none;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Badges & chips
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.badge--accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: none;
}

.badge--alert {
  background: var(--alert-bg);
  border-color: var(--alert-line);
  color: var(--alert);
  box-shadow: none;
}

.badge--ok {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok);
  box-shadow: none;
}

.eyebrow {
  display: block; /* rendered as a <span>, so spacing rules need a block box */
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
}

.card--pad-lg {
  padding: clamp(24px, 3.4vw, 40px);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--shadow {
  box-shadow: var(--shadow-md);
}

.card--surface {
  background: var(--surface);
}

.card--lift {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.card--lift:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.card__body {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

/* Numbered step card */
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}

.step__media {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Checklist */
.checks {
  display: grid;
  gap: 11px;
}

.checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.checks svg {
  margin-top: 3px;
  flex: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header[data-stuck='true'] {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 3px rgba(20, 22, 31, 0.04);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.header .logo img {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}

.logo:hover {
  text-decoration: none;
}

.header__nav {
  display: none;
}

@media (min-width: 900px) {
  .header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
  }
}

.header__link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.93rem;
  font-weight: 520;
  color: var(--ink-2);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.header__link:hover {
  color: var(--ink);
  background: var(--surface-2);
  text-decoration: none;
}

.header__link[aria-current='page'] {
  color: var(--ink);
  font-weight: 580;
  background: var(--surface-2);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__login {
  display: none;
}

.header__cta {
  display: none;
}

@media (min-width: 560px) {
  .header__cta {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .header__login {
    display: inline-flex;
  }
}

/* Mobile menu */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
}

@media (min-width: 900px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn__bars {
  position: relative;
  width: 17px;
  height: 11px;
}

.menu-btn__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.15s var(--ease);
}

.menu-btn__bars span:nth-child(1) {
  top: 0;
}
.menu-btn__bars span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.menu-btn__bars span:nth-child(3) {
  bottom: 0;
}

.menu-btn[aria-expanded='true'] .menu-btn__bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-btn[aria-expanded='true'] .menu-btn__bars span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded='true'] .menu-btn__bars span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px var(--gutter) 20px;
}

.mobile-nav[data-open='true'] {
  display: block;
}

@media (min-width: 900px) {
  .mobile-nav[data-open='true'] {
    display: none;
  }
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 1rem;
  font-weight: 520;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:hover {
  text-decoration: none;
  color: var(--accent-ink);
}

.mobile-nav .btn {
  margin-top: 16px;
}

.mobile-nav__auth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 16px;
}

.mobile-nav__auth .btn {
  display: inline-flex;
  justify-content: center;
  margin-top: 0;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}

.mobile-nav__auth .btn--primary {
  border-color: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  text-decoration: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 7vw, 84px) clamp(56px, 8vw, 96px);
}

/* Very soft light wash — no heavy gradient */
.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  left: 50%;
  width: min(1280px, 160%);
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(
      44% 44% at 30% 32%,
      rgba(109, 74, 255, 0.12),
      transparent 70%
    ),
    radial-gradient(40% 40% at 72% 28%, rgba(26, 115, 232, 0.1), transparent 70%),
    radial-gradient(36% 36% at 54% 60%, rgba(15, 118, 110, 0.07), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__copy {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}

.hero__copy > * + * {
  margin-top: 20px;
}

.hero__sub {
  max-width: 560px;
  margin-inline: auto;
}

.hero__visual {
  margin-top: clamp(36px, 5vw, 56px);
}

.hero__note {
  margin-top: 18px;
  text-align: center;
}

/* Thin page header for interior pages */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), #fff);
}

.page-head__inner {
  max-width: 720px;
}

.page-head__inner > * + * {
  margin-top: 16px;
}

/* ==========================================================================
   Calendar visuals
   ========================================================================== */

.viz {
  container: viz / inline-size;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(16px, 2.6vw, 28px);
  box-shadow: var(--shadow-md);
}

.viz--plain {
  box-shadow: none;
  background: var(--surface);
}

.viz__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.viz__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.viz__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Two calendars with a sync bridge between them */
/* Stacked by default; side by side only once the figure is wide enough that
   both calendars stay readable. Keyed to the figure's own width, because this
   visual appears full width in the hero and inside half columns elsewhere. */
.sync-pair {
  display: grid;
  gap: 14px;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}

@container viz (min-width: 560px) {
  .sync-pair {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
  }
}

/* The connector between the two calendars */
.bridge {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}

@container viz (min-width: 560px) {
  .bridge {
    flex-direction: column;
    width: 62px;
    padding: 0;
  }
}

.bridge__line {
  flex: 1;
  position: relative;
  min-width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

@container viz (min-width: 560px) {
  .bridge__line {
    width: 2px;
    min-width: 0;
    min-height: 28px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
  }
}

.bridge__badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--accent);
}

.bridge__badge svg {
  width: 19px;
  height: 19px;
}

/* Traveling pulse along the connector, shown while syncing */
.bridge__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

[data-viz-state='syncing'] .bridge__pulse {
  animation: pulse-x 0.9s var(--ease);
}

@container viz (min-width: 560px) {
  [data-viz-state='syncing'] .bridge__pulse {
    animation-name: pulse-y;
  }
}

@keyframes pulse-x {
  0% {
    opacity: 0;
    transform: translateX(-38px) scale(0.6);
  }
  25% {
    opacity: 1;
    transform: translateX(-19px) scale(1);
  }
  75% {
    opacity: 1;
    transform: translateX(19px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(38px) scale(0.6);
  }
}

@keyframes pulse-y {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.6);
  }
  25% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  75% {
    opacity: 1;
    transform: translateY(20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(40px) scale(0.6);
  }
}

[data-viz-state='syncing'] .bridge__badge {
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

[data-viz-state='syncing'] .bridge__badge svg {
  animation: spin 0.9s var(--ease);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Connected accounts list (the "Connect your calendars" step) --- */

.conn {
  container: conn / inline-size;
  display: grid;
  gap: 10px;
}

.conn__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.conn__row--add {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.conn__row--add .conn__name,
.conn__row--add .conn__mark {
  color: var(--ink-3);
  font-weight: 400;
}

.conn__mark {
  flex: none;
  display: flex;
}

.conn__names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.conn__name {
  font-size: 0.86rem;
  font-weight: 620;
  color: var(--ink);
  line-height: 1.25;
}

.conn__owner {
  font-size: 0.74rem;
  color: var(--ink-3);
  line-height: 1.3;
}

.conn__state {
  margin-left: auto;
  flex: none;
}

/* When the card gets narrow, drop the account line and let the status chip
   fall to its own line rather than truncating any of it. */
@container conn (max-width: 290px) {
  .conn__owner {
    display: none;
  }
}

@container conn (max-width: 240px) {
  .conn__row {
    flex-wrap: wrap;
  }

  .conn__state {
    margin-left: 30px;
  }
}

/* --- Calendar panel --- */

/* The same panel is rendered anywhere from ~200px wide (the before/after
   minis) to ~520px (the hero), so it adapts to its own width rather than the
   viewport. Below each threshold the least important text is dropped, which
   keeps what remains fully readable instead of ellipsis-truncating all of it. */
.cal {
  container: cal / inline-size;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Narrow: the account line is the first thing to go. */
@container cal (max-width: 310px) {
  .cal__status {
    display: none;
  }
}

@container cal (max-width: 250px) {
  .cal__owner {
    display: none;
  }

  .cal__grid {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-inline: 9px;
  }

  .ev {
    padding: 5px 7px;
  }
}

@container cal (max-width: 200px) {
  .ev__tag {
    display: none;
  }

  .cal__grid {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .cal__time {
    font-size: 0.65rem;
  }
}

.cal--google {
  --cal-accent: var(--cal-google);
  --cal-accent-bg: var(--cal-google-bg);
  --cal-accent-line: var(--cal-google-line);
}

.cal--outlook {
  --cal-accent: var(--cal-outlook);
  --cal-accent-bg: var(--cal-outlook-bg);
  --cal-accent-line: var(--cal-outlook-line);
}

.cal__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--surface));
}

.cal__mark {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--cal-accent);
}

/* Stacks the calendar name over the account line. These are <span>s, so they
   need an explicit block context for the stacking and the ellipsis to work. */
.cal__names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cal__name {
  display: block;
  font-size: 0.86rem;
  font-weight: 620;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal__owner {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-3);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal__status {
  margin-left: auto;
  flex: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-3);
}

.cal__status--free {
  background: var(--ok-bg);
  color: var(--ok);
}

.cal__status--busy {
  background: var(--busy-bg);
  color: var(--busy);
}

.cal__daybar {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--ink-3);
}

.cal__daybar strong {
  font-size: 0.8rem;
  font-weight: 620;
  color: var(--ink-2);
}

/* Time grid */
.cal__grid {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 8px 12px 12px;
  flex: 1;
}

.cal__times {
  display: grid;
  grid-auto-rows: var(--row);
}

.cal__time {
  font-size: 0.7rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transform: translateY(-0.4em);
  padding-right: 8px;
}

.cal__track {
  position: relative;
  display: grid;
  grid-auto-rows: var(--row);
  border-left: 1px solid var(--line);
}

.cal__slot {
  border-bottom: 1px dashed var(--line);
}

.cal__slot:last-child {
  border-bottom: 0;
}

/* Event blocks.
   An event inherits its panel's hue by default, but can carry its own so a
   provider's event stays recognizable in a mixed list. */
.ev--google {
  --cal-accent: var(--cal-google);
  --cal-accent-bg: var(--cal-google-bg);
  --cal-accent-line: var(--cal-google-line);
}

.ev--outlook {
  --cal-accent: var(--cal-outlook);
  --cal-accent-bg: var(--cal-outlook-bg);
  --cal-accent-line: var(--cal-outlook-line);
}

/* Blocks are sized by their time span via min-height, so a block can grow if
   its label needs a second line rather than clipping it. Content starts at the
   top (not centered) so the title is never the part that gets cut. */
.ev {
  position: absolute;
  left: 7px;
  right: 7px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid var(--cal-accent-line, var(--line));
  border-left: 3px solid var(--cal-accent, var(--ink-3));
  background: var(--cal-accent-bg, var(--surface));
  overflow: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s var(--ease);
}

/* Title line, with the Synchronic tag sitting beside it. */
.ev__head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ev__title {
  min-width: 0;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: break-word;
}

.ev__meta {
  font-size: 0.68rem;
  color: var(--ink-2);
  line-height: 1.3;
  overflow-wrap: break-word;
}

/* The Synchronic-created busy block: neutral + striped, never a fake meeting */
.ev--busy {
  border-color: var(--busy-line);
  border-left-color: var(--accent);
  background-color: var(--busy-bg);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(90, 98, 121, 0.11) 0 5px,
    transparent 5px 10px
  );
}

.ev--busy .ev__title {
  color: var(--busy);
}

.ev--free {
  border-style: dashed;
  border-left-style: dashed;
  border-color: var(--line-strong);
  border-left-color: var(--line-strong);
  background: transparent;
  align-items: center;
  justify-content: center;
}

.ev--free .ev__title {
  color: var(--ink-3);
  font-weight: 550;
}

.ev--alert {
  border-color: var(--alert-line);
  border-left-color: var(--alert);
  background-color: var(--alert-bg);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(212, 52, 78, 0.09) 0 5px,
    transparent 5px 10px
  );
}

.ev--alert .ev__title {
  color: var(--alert);
}

.ev__tag {
  flex: none;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.6rem;
  font-weight: 640;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}

/* Blocks that appear only after Synchronic syncs.
   `visibility` matters as much as `opacity` here: both the "Free" slot and the
   "Busy" block occupy the same hour, so the inactive one has to leave the
   accessibility tree or a screen reader announces the slot twice. */
.ev--added {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  pointer-events: none;
}

[data-viz-state='synced'] .ev--added,
[data-viz-state='syncing'] .ev--added {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* Blocks that disappear once synced (e.g. the "Free" placeholder) */
[data-viz-state='synced'] .ev--replaced,
[data-viz-state='syncing'] .ev--replaced {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  pointer-events: none;
}

/* Conflict callout card */
.conflict {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--alert-line);
  background: var(--alert-bg);
}

.conflict--ok {
  border-color: var(--ok-line);
  background: var(--ok-bg);
}

.conflict__icon {
  flex: none;
  margin-top: 1px;
  color: var(--alert);
}

.conflict--ok .conflict__icon {
  color: var(--ok);
}

.conflict__title {
  font-size: 0.875rem;
  font-weight: 620;
  color: var(--ink);
  line-height: 1.35;
}

.conflict__body {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.45;
}

/* Swap the two conflict states as the visual animates */
.state-problem,
.state-solved {
  transition: opacity 0.3s var(--ease);
}

.state-solved {
  display: none;
}

[data-viz-state='synced'] .state-problem,
[data-viz-state='syncing'] .state-problem {
  display: none;
}

[data-viz-state='synced'] .state-solved,
[data-viz-state='syncing'] .state-solved {
  display: block;
}

/* Replay control */
.viz__replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 540;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.viz__replay:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.viz__replay svg {
  width: 13px;
  height: 13px;
}

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.legend__swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  flex: none;
}

.legend__swatch--google {
  background: var(--cal-google-bg);
  border-color: var(--cal-google);
}

.legend__swatch--outlook {
  background: var(--cal-outlook-bg);
  border-color: var(--cal-outlook);
}

.legend__swatch--busy {
  border-color: var(--accent);
  background-color: var(--busy-bg);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(90, 98, 121, 0.3) 0 3px,
    transparent 3px 6px
  );
}

/* ==========================================================================
   Before / after visual
   ========================================================================== */

/* Nested layouts here respond to their own available width, never the
   viewport. This visual is rendered both full width and inside a half column,
   and a viewport query cannot tell those apart — it used to split into two
   columns twice over and leave each calendar about 110px wide. */
.ba {
  container: ba / inline-size;
}

.ba__grid {
  display: grid;
  gap: 18px;
}

/* Side by side only when each panel still gets a usable width. */
@container ba (min-width: 640px) {
  .ba__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.ba-panel {
  container: bapanel / inline-size;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.ba-panel--after {
  background: #fff;
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ba-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ba-panel__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ba-panel--after .ba-panel__label {
  color: var(--accent-ink);
}

.ba-panel__cals {
  display: grid;
  gap: 12px;
}

/* Two calendars fit only if each clears ~200px. Below that they stack. */
@container bapanel (min-width: 420px) {
  .ba-panel__cals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Group scheduling visual
   ========================================================================== */

.poll {
  display: grid;
  gap: 16px;
}

.poll__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.poll__url {
  min-width: 0; /* lets the flex item shrink so the ellipsis can appear */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poll__copy {
  margin-left: auto;
  flex: none;
}

.poll__table {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.poll__row {
  display: grid;
  grid-template-columns: minmax(96px, 1.2fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.poll__row:last-child {
  border-bottom: 0;
}

.poll__row--head {
  background: var(--surface);
}

.poll__cell {
  padding: 10px 8px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-2);
  border-left: 1px solid var(--line);
}

.poll__cell:first-child {
  border-left: 0;
  text-align: left;
  padding-left: 12px;
}

.poll__row--head .poll__cell {
  font-weight: 620;
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.3;
}

.poll__who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--ink);
}

.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.66rem;
  font-weight: 650;
}

.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: transparent;
}

.tick--yes {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
}

.poll__col-best {
  box-shadow: inset 0 0 0 2px var(--accent-ring);
  background: var(--accent-soft);
}

.poll__confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--accent-ring);
  border-radius: var(--r-md);
  background: var(--accent-soft);
}

.poll__confirm-text {
  font-size: 0.85rem;
  font-weight: 580;
  color: var(--ink);
}

.poll__confirm .btn {
  margin-left: auto;
}

/* ==========================================================================
   Problem timeline
   ========================================================================== */

.timeline {
  display: grid;
  gap: 2px;
}

.timeline li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}

.timeline li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 640;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  z-index: 1;
}

.timeline li[data-tone='alert'] .timeline__dot {
  border-color: var(--alert-line);
  background: var(--alert-bg);
  color: var(--alert);
}

.timeline__text {
  padding-top: 4px;
  font-size: 0.96rem;
  color: var(--ink-2);
}

.timeline__text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.notice__icon {
  flex: none;
  margin-top: 2px;
  color: var(--ink-3);
}

.notice strong {
  color: var(--ink);
  font-weight: 600;
}

/* Minimalist pricing. Spacing follows an 8pt grid, borders are a flat 1px
   --line, and shadows appear only on hover. Three weights carry the
   hierarchy: 300 body, 500 labels, 700 prices. */

/* --- Billing period toggle --- */

.toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}

.toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.toggle__btn:hover {
  color: var(--ink);
}

.toggle__btn[aria-selected='true'] {
  background: var(--accent);
  color: #fff;
}

/* Radio glyph inside each toggle option */
.toggle__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.5;
  position: relative;
}

.toggle__btn[aria-selected='true'] .toggle__dot {
  opacity: 1;
}

.toggle__btn[aria-selected='true'] .toggle__dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: currentColor;
}

.toggle__save {
  font-weight: 500;
}

/* --- Plan cards --- */

/* Cards stretch to equal height so the two CTAs line up. */
.plans {
  display: grid;
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}

@media (min-width: 860px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.plan:hover {
  box-shadow: var(--shadow-md);
}

.plan--featured {
  border-color: var(--accent);
}

.plan__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}

.plan__name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

/* Founding-offer badge: line icon, no fill */
.plan__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-ink);
  white-space: nowrap;
}

.plan__badge svg {
  flex: none;
}

/* --- Price block --- */

.plan__price {
  margin-top: 24px;
}

.plan__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.plan__amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan__period {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-2);
}

.plan__strike {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-3);
  text-decoration: line-through;
}

.plan__sub {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink-2);
  min-height: 1.4em;
}

/* Prices fade rather than jump when the billing period changes */
.plan__price[data-swapping='true'] .plan__amount,
.plan__price[data-swapping='true'] .plan__period,
.plan__price[data-swapping='true'] .plan__strike,
.plan__price[data-swapping='true'] .plan__sub {
  opacity: 0;
}

.plan__amount,
.plan__period,
.plan__strike,
.plan__sub {
  transition: opacity 0.16s var(--ease);
}

/* --- Feature lists --- */

.feat {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.feat li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-2);
}

.feat svg {
  margin-top: 4px;
  flex: none;
}

.feat__yes {
  color: var(--accent);
}

.feat__no {
  color: var(--ink-3);
}

.feat li[data-off='true'] {
  color: var(--ink-3);
}

.feat__divider {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* --- Card footer --- */

.plan__cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.plan__micro {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
}

/* Money-back guarantee line inside the Pro card */
.guarantee-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  color: var(--ink-2);
}

.guarantee-line svg {
  flex: none;
  color: var(--accent);
}

/* --- Comparison table (desktop) --- */

.compare {
  display: none;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

@media (min-width: 900px) {
  .compare {
    display: table;
  }
}

.compare caption {
  caption-side: top;
  padding-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink-3);
  text-align: left;
}

.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-2);
}

.compare thead th {
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
}

.compare tbody th {
  font-weight: 300;
  color: var(--ink);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:nth-child(3) {
  color: var(--ink);
}

.compare__mark {
  display: inline-flex;
  vertical-align: -2px;
}

/* --- Comparison accordion (tablet) --- */

.compare-acc {
  display: none;
  max-width: 560px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

@media (min-width: 640px) and (max-width: 899px) {
  .compare-acc {
    display: block;
  }
}

.compare-acc details {
  border-bottom: 1px solid var(--line);
}

.compare-acc details:last-child {
  border-bottom: 0;
}

.compare-acc summary {
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-acc summary::-webkit-details-marker {
  display: none;
}

.compare-acc summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.compare-acc details[open] summary::after {
  transform: rotate(-135deg);
}

.compare-acc__body {
  display: grid;
  gap: 8px;
  padding: 0 20px 16px;
}

.compare-acc__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink-2);
}

.compare-acc__row span:first-child {
  color: var(--ink-3);
}

/* --- Mobile fallback link --- */

.compare-link {
  display: block;
  max-width: 560px;
  margin-inline: auto;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-ink);
}

@media (min-width: 640px) {
  .compare-link {
    display: none;
  }
}

/* --- Trust elements --- */

.trust {
  display: grid;
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}

.guarantee-box {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.guarantee-box__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guarantee-box__head svg {
  flex: none;
  color: var(--accent);
}

.guarantee-box__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.guarantee-box__list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.guarantee-box__list li {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-2);
}

/* Founding offer banner — the one place accent fill is used at size */
.founding {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 32px;
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--accent-soft);
}

.founding svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent-ink);
}

.founding__title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.founding__body {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-2);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 2px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 580;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
}

.faq__icon {
  flex: none;
  margin-top: 3px;
  color: var(--ink-3);
  transition: transform 0.22s var(--ease);
}

.faq__q[aria-expanded='true'] .faq__icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s var(--ease);
}

.faq__q[aria-expanded='true'] + .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 44px 22px 2px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 68px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  text-align: center;
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: auto 0 -60% 0;
  height: 320px;
  background: radial-gradient(
    42% 60% at 50% 100%,
    rgba(109, 74, 255, 0.14),
    transparent 70%
  );
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
}

.cta-panel > * + * {
  margin-top: 18px;
}

.cta-panel .lede {
  max-width: 46ch;
  margin-inline: auto;
}

/* Signup form (placeholder) */
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 460px;
  margin-inline: auto;
}

.signup__field {
  flex: 1 1 220px;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.input::placeholder {
  color: var(--ink-3);
}

.input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-3);
  text-align: center;
}

.form-status {
  margin-top: 14px;
}

.form-status:empty {
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-block: clamp(40px, 5vw, 60px) 28px;
}

.footer__top {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.footer__blurb {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer__col-title {
  font-size: 0.78rem;
  font-weight: 640;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer__links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer__legal {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.legal-document {
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  color: var(--ink-2);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-document h1,
.legal-document h2,
.legal-document h3 {
  color: var(--ink);
  line-height: 1.25;
}

.legal-document h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.legal-document h2 {
  margin-block: 2rem 0.75rem;
  font-size: 1.35rem;
}

.legal-document h3 {
  margin-block: 1.5rem 0.5rem;
  font-size: 1.1rem;
}

.legal-document p,
.legal-document ul {
  margin-block: 0 1rem;
}

.legal-document ul {
  padding-inline-start: 1.5rem;
}

.legal-document a {
  text-decoration: underline;
}

.legal-document table,
.legal-document th,
.legal-document td {
  text-align: left;
}

.legal-document table:has(th:not(:empty), td:not(:empty)) {
  width: 100%;
  margin-block: 1.25rem;
  border-collapse: collapse;
}

.legal-document table:has(th:not(:empty), td:not(:empty)) th,
.legal-document table:has(th:not(:empty), td:not(:empty)) td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

.legal-document table:has(th:not(:empty), td:not(:empty)) th {
  font-weight: 600;
}

/* ==========================================================================
   Scroll reveal + motion preferences
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Small screens
   ========================================================================== */

@media (max-width: 480px) {
  :root {
    --row: 50px;
    --gutter: 16px;
  }

  .card {
    padding: 20px;
  }

  .plan {
    padding: 22px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
