/* ==========================================
   Switchdays Design System
   Shared styles for all pages
   ========================================== */

/* ==========================================
   Self-hosted fonts (latin subset)
   ========================================== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dm-sans-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: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fraunces-600-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;
}

/* ==========================================
   Custom Properties
   ========================================== */
:root {
  /* Legacy aliases — now mapped onto the new design-system tokens (defined
     further down). They inherit light/dark automatically via var() resolution,
     so the per-theme overrides below only need to carry shadows. Inner pages
     still reference these names until they're migrated to the new tokens. */
  --color-bg: var(--bg);
  --color-hero-bg: var(--bg-2);
  --color-surface: var(--paper);
  --color-surface-raised: var(--bg-2);
  --color-text: var(--ink);
  --color-text-secondary: var(--ink-2);
  --color-text-muted: var(--ink-2);
  --color-muted: var(--ink-3);
  --color-accent: var(--coral);
  --color-accent-hover: var(--coral-dark);
  --color-accent-subtle: var(--coral-tint);
  --color-border: var(--line);
  --color-border-strong: var(--line-strong);
  --color-success: #059669;
  --color-calendar-yours: var(--coral);
  --color-calendar-yours-text: #ffffff;
  --color-calendar-yours-bg: var(--coral-tint);
  --color-calendar-theirs: var(--bg-3);
  --color-calendar-theirs-text: var(--ink-2);
  --color-calendar-theirs-bg: var(--bg-2);
  --color-neu-surface: var(--paper);
  --color-neu-panel: var(--bg-2);
  --color-neu-highlight: rgba(255, 255, 255, 0.5);
  --color-neu-shadow: rgba(20, 36, 53, 0.15);
  --color-neu-shadow-inset: rgba(20, 36, 53, 0.2);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --max-width: 64rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.3);
    /* Neumorphic grid (build page): the light defaults blow out to harsh white
       halos on the dark panel — use a faint light edge + deep shadow instead. */
    --color-neu-highlight: rgba(255, 255, 255, 0.06);
    --color-neu-shadow: rgba(0, 0, 0, 0.5);
    --color-neu-shadow-inset: rgba(0, 0, 0, 0.55);
  }
}

/* Theme override via data-theme attribute (set by theme toggle). Colours now
   flow from the new tokens via the --color-* mappings above; only shadows
   differ per theme here. */
html[data-theme="light"] {
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

html[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.3);
  --color-neu-highlight: rgba(255, 255, 255, 0.06);
  --color-neu-shadow: rgba(0, 0, 0, 0.5);
  --color-neu-shadow-inset: rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   Reset
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Prevent iOS double-tap zoom on interactive elements */
button, a, input, select, textarea, [role="button"], .month-grid__day, .pattern-grid__day {
  touch-action: manipulation;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer pattern */
  display: flex;
  flex-direction: column;
}

/* Main content grows to push footer to bottom */
main {
  flex-grow: 1;
}

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

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

/* Focus styles for a11y */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-accent);
  color: var(--on-coral);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 500;
}
.skip-link:focus {
  top: var(--space-md);
}

/* ==========================================
   Layout
   ========================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ==========================================
   Header
   ========================================== */
.header {
  padding: var(--space-lg) 0;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__link {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
}

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

.header__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--color-accent-subtle);
  text-decoration: none;
}

.header__logout {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.header__logout:hover {
  color: var(--color-text);
  background: var(--color-surface-elevated, transparent);
}

.header__logout:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.header__link {
  white-space: nowrap;
}

/* When the Log out button is visible (i.e. signed in), reverse the visual
   order so the primary CTA — Settings, Back to calendar, etc. — sits flush
   to the right edge of the header, where it's the natural target on both
   mouse and touch. DOM order is unchanged so tab order still goes primary
   CTA → log out. */
.header__actions:has(.header__logout:not([hidden])) {
  flex-direction: row-reverse;
}

/* Tighten the nav on narrow viewports so multi-word CTAs ("Back to calendar"
   + "Log out") fit on one line alongside the logo at iPhone-SE width. */
@media (max-width: 540px) {
  .header__actions {
    gap: var(--space-xs);
  }
  .header__cta,
  .header__link,
  .header__logout {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
  }
}

/* ==========================================
   Trial / subscription banner
   Sits ABOVE the sticky header so it scrolls away with the page on scroll.
   Two variants: --info (trial countdown) and --warn (expired / past_due).
   ========================================== */
.trial-banner {
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  background: var(--color-calendar-yours-bg);
  color: var(--ink);
}

.trial-banner--warn {
  background: color-mix(in srgb, #b8470d 12%, var(--color-bg));
  color: #6b2a06;
  border-bottom-color: color-mix(in srgb, #b8470d 30%, var(--color-border));
}

@media (prefers-color-scheme: dark) {
  .trial-banner--warn {
    background: color-mix(in srgb, #f97316 16%, var(--color-bg));
    color: #fed7aa;
  }
}

html[data-theme="dark"] .trial-banner--warn {
  background: color-mix(in srgb, #f97316 16%, var(--color-bg));
  color: #fed7aa;
}

html[data-theme="light"] .trial-banner--warn {
  background: color-mix(in srgb, #b8470d 12%, var(--color-bg));
  color: #6b2a06;
}

.trial-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.trial-banner__message {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.trial-banner__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.trial-banner__cta {
  flex-shrink: 0;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  background: transparent;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.trial-banner__cta:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
  text-decoration: none;
}

@media (max-width: 600px) {
  .trial-banner__inner {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }
  .trial-banner__message {
    font-size: 0.8125rem;
  }
  .trial-banner__cta {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
  }
}

/* ==========================================
   Hero
   ========================================== */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: 42rem;
  text-align: center;
  margin: 0 auto var(--space-sm);
}

.hero__credibility {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.6;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.hero__subhead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero__description {
  font-size: 1.0625rem;
  color: var(--color-text);
  opacity: 0.7;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero__tagline-secondary {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-2xl);
  margin-bottom: 0;
  text-align: center;
  font-style: italic;
  max-width: 30rem;
  margin-inline: auto;
}

/* ==========================================
   Signup Form
   ========================================== */
.signup-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 28rem;
  margin: 0 auto;
}

.signup-form__input {
  flex: 1 1 200px;
  padding: var(--space-md) var(--space-lg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.signup-form__input::placeholder {
  color: var(--color-text-secondary);
}
.signup-form__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
  outline: none;
}

.signup-form__button {
  padding: var(--space-md) var(--space-2xl);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-coral);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px -3px rgba(29, 78, 216, 0.4);
}
.signup-form__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -3px rgba(29, 78, 216, 0.5);
}
.signup-form__button:active {
  transform: translateY(0) scale(0.98);
}

.signup-form__note {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  text-align: center;
}

.signup-form--hero {
  margin-top: 0;
}

/* ==========================================
   Calendar Visual (Hero)
   ========================================== */
.calendar-demo {
  margin-top: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.calendar-demo__window {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.18),
    0 12px 24px -8px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-width: 56rem;
  width: 100%;
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .calendar-demo__window {
    box-shadow:
      0 25px 50px -12px rgba(0, 0, 0, 0.5),
      0 12px 24px -8px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 80px -20px rgba(245, 197, 66, 0.1);
  }
}

html[data-theme="dark"] .calendar-demo__window {
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 12px 24px -8px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px -20px rgba(245, 197, 66, 0.1);
}

html[data-theme="light"] .calendar-demo__window {
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.18),
    0 12px 24px -8px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.calendar-demo__window:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 35px 60px -15px rgba(0, 0, 0, 0.22),
    0 16px 32px -8px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  .calendar-demo__window:hover {
    box-shadow:
      0 35px 60px -15px rgba(0, 0, 0, 0.6),
      0 16px 32px -8px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 100px -20px rgba(245, 197, 66, 0.15);
  }
}

html[data-theme="dark"] .calendar-demo__window:hover {
  box-shadow:
    0 35px 60px -15px rgba(0, 0, 0, 0.6),
    0 16px 32px -8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 100px -20px rgba(245, 197, 66, 0.15);
}

html[data-theme="light"] .calendar-demo__window:hover {
  box-shadow:
    0 35px 60px -15px rgba(0, 0, 0, 0.22),
    0 16px 32px -8px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.calendar-demo__titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-border);
}

.calendar-demo__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border-strong);
}
.calendar-demo__dot--red { background: #ef4444; }
.calendar-demo__dot--yellow { background: #eab308; }
.calendar-demo__dot--green { background: #22c55e; }

.calendar-demo__title {
  flex: 1;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.calendar-demo__grid {
  display: grid;
  grid-template-columns: 4rem 1fr;
}

.calendar-demo__times {
  border-right: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

.calendar-demo__time {
  height: 3.5rem;
  padding: 0 var(--space-md);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
}

.calendar-demo__events {
  position: relative;
  padding: var(--space-md);
  min-height: 17.5rem;
}

.calendar-event {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  overflow: hidden;
}

.calendar-event--meeting {
  top: 0;
  height: 3rem;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-left: 3px solid var(--color-accent);
}

.calendar-event--switchdays {
  top: 3.5rem;
  height: 5.5rem;
  background: var(--color-calendar-yours);
  color: var(--color-calendar-yours-text);
  border-left: 3px solid #c9952a;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.calendar-event__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.calendar-event--blocked {
  top: 10rem;
  height: 3.5rem;
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
  border-left: 3px solid var(--color-border-strong);
  text-decoration: line-through;
  opacity: 0.6;
}

.calendar-event__conflict {
  font-size: 0.6875rem;
  color: #dc2626;
  font-weight: 600;
}

/* ==========================================
   Features
   ========================================== */
.features {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

.features__header {
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.features__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.features__subtitle {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 52rem;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

a.feature {
  cursor: pointer;
}

a.feature:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-raised);
  text-decoration: none;
}

a.feature:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.feature__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

.feature__more::after {
  content: '→';
  transition: transform 0.18s ease;
  display: inline-block;
}

a.feature:hover .feature__more::after,
a.feature:focus-visible .feature__more::after {
  transform: translateX(3px);
}

.feature__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

/* Distinct feature icon colors */
.feature--calendar .feature__icon {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #2563eb;
}

.feature--time .feature__icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  color: #d97706;
}

.feature--parents .feature__icon {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  color: #059669;
}

.feature--sync .feature__icon,
.feature--activity .feature__icon {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  color: #7c3aed;
}

.feature--appointment .feature__icon {
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
  color: #0d9488;
}

@media (prefers-color-scheme: dark) {
  .feature--calendar .feature__icon {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
    color: #60a5fa;
  }

  .feature--time .feature__icon {
    background: linear-gradient(135deg, #451a03 0%, #292524 100%);
    color: #fbbf24;
  }

  .feature--parents .feature__icon {
    background: linear-gradient(135deg, #064e3b 0%, #1c1917 100%);
    color: #34d399;
  }

  .feature--sync .feature__icon,
  .feature--activity .feature__icon {
    background: linear-gradient(135deg, #2e1065 0%, #1c1917 100%);
    color: #a78bfa;
  }

  .feature--appointment .feature__icon {
    background: linear-gradient(135deg, #134e4a 0%, #1c1917 100%);
    color: #2dd4bf;
  }
}

html[data-theme="dark"] .feature--calendar .feature__icon {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
  color: #60a5fa;
}

html[data-theme="dark"] .feature--time .feature__icon {
  background: linear-gradient(135deg, #451a03 0%, #292524 100%);
  color: #fbbf24;
}

html[data-theme="dark"] .feature--parents .feature__icon {
  background: linear-gradient(135deg, #064e3b 0%, #1c1917 100%);
  color: #34d399;
}

html[data-theme="dark"] .feature--sync .feature__icon,
html[data-theme="dark"] .feature--activity .feature__icon {
  background: linear-gradient(135deg, #2e1065 0%, #1c1917 100%);
  color: #a78bfa;
}

html[data-theme="dark"] .feature--appointment .feature__icon {
  background: linear-gradient(135deg, #134e4a 0%, #1c1917 100%);
  color: #2dd4bf;
}

html[data-theme="light"] .feature--calendar .feature__icon {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #2563eb;
}

html[data-theme="light"] .feature--time .feature__icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  color: #d97706;
}

html[data-theme="light"] .feature--parents .feature__icon {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  color: #059669;
}

html[data-theme="light"] .feature--sync .feature__icon,
html[data-theme="light"] .feature--activity .feature__icon {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  color: #7c3aed;
}

html[data-theme="light"] .feature--appointment .feature__icon {
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
  color: #0d9488;
}

.feature__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature__description {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==========================================
   How it Works
   ========================================== */
.how-it-works {
  padding: var(--space-4xl) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.how-it-works__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
  list-style: none;
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-calendar-yours) 100%);
  opacity: 0.3;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .steps::before {
    display: none;
  }
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.step {
  counter-increment: step;
  text-align: center;
  position: relative;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-lg);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-coral);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: 50%;
  box-shadow: 0 4px 14px -3px rgba(29, 78, 216, 0.4);
  position: relative;
  z-index: 1;
}
.step__number::before {
  content: counter(step);
}

.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step__description {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 18rem;
  margin: 0 auto;
}

/* ==========================================
   Schedule Pattern Visual
   ========================================== */
.pattern-demo {
  padding: var(--space-4xl) 0 var(--space-2xl);
  background: linear-gradient(180deg, #fefaf2 0%, #fef5dc 50%, #fefaf2 100%);
  position: relative;
}

@media (prefers-color-scheme: dark) {
  .pattern-demo {
    background: linear-gradient(180deg, #1c1917 0%, #292524 50%, #1c1917 100%);
  }
}

html[data-theme="dark"] .pattern-demo {
  background: linear-gradient(180deg, #1c1917 0%, #292524 50%, #1c1917 100%);
}

html[data-theme="light"] .pattern-demo {
  background: linear-gradient(180deg, #fefaf2 0%, #fef5dc 50%, #fefaf2 100%);
}

.pattern-demo__header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.pattern-demo__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.pattern-demo__subtitle {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  max-width: 36rem;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.pattern-grid__header {
  background: var(--color-surface);
  padding: var(--space-md) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.pattern-grid__day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  gap: var(--space-xs);
  border-radius: 4px;
  transition: transform 0.15s ease;
}

.pattern-grid__day:hover {
  transform: scale(1.05);
  z-index: 1;
}

.pattern-grid__day--yours {
  background: linear-gradient(135deg, var(--color-calendar-yours) 0%, #d4a832 100%);
  color: var(--color-calendar-yours-text);
}

.pattern-grid__day--theirs {
  background: var(--color-calendar-theirs);
  color: var(--color-calendar-theirs-text);
}

.pattern-grid__date {
  font-size: 1.125rem;
  font-weight: 700;
}

.pattern-grid__label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  font-weight: 600;
}

.pattern-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  font-size: 0.9375rem;
}

.pattern-legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pattern-legend__swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
}

.pattern-legend__swatch--yours {
  background: linear-gradient(135deg, var(--color-calendar-yours) 0%, #d4a832 100%);
  box-shadow:
    -2px -2px 4px var(--color-neu-highlight),
    2px 2px 4px var(--color-neu-shadow);
}

.pattern-legend__swatch--theirs {
  background: var(--color-calendar-theirs);
  box-shadow:
    inset 2px 2px 4px var(--color-neu-shadow),
    inset -2px -2px 4px var(--color-neu-highlight);
}

.pattern-demo .btn {
  display: block;
  width: fit-content;
  margin: var(--space-2xl) auto 0;
}

/* ==========================================
   Plans
   ========================================== */
.plans {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

.plans__header {
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.plans__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.plans__subtitle {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.plans__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 52rem;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .plans__grid {
    grid-template-columns: 1fr;
  }
}

.plan {
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}

.plan--premium {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.plan__badge {
  position: absolute;
  top: -0.65rem;
  right: var(--space-xl);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.plan__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.plan__tagline {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

.plan__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan__features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
}

.plan__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.plans__small-print {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-top: var(--space-2xl);
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.5;
}

.plans__details-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.plans__details-link:hover {
  color: var(--color-accent-hover);
}

/* ==========================================
   Final CTA
   ========================================== */
.final-cta {
  padding: var(--space-4xl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-raised) 50%, var(--color-bg) 100%);
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, var(--color-accent-subtle) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  max-width: 38rem;
  margin-inline: auto;
}

.final-cta__description {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .signup-form {
  justify-content: center;
  max-width: 32rem;
}

.final-cta__personal {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-xl);
  opacity: 0.7;
  font-style: italic;
  max-width: 18rem;
  margin-inline: auto;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

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

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}
.footer__link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Theme toggle button */
.footer__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.footer__theme-toggle:hover {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.footer__theme-icon {
  width: 18px;
  height: 18px;
}

/* Show sun icon in dark mode, moon icon in light mode */
.footer__theme-icon--sun { display: none; }
.footer__theme-icon--moon { display: block; }

@media (prefers-color-scheme: dark) {
  .footer__theme-icon--sun { display: block; }
  .footer__theme-icon--moon { display: none; }
}

/* Override icon visibility when data-theme is set */
html[data-theme="light"] .footer__theme-icon--sun { display: none; }
html[data-theme="light"] .footer__theme-icon--moon { display: block; }
html[data-theme="dark"] .footer__theme-icon--sun { display: block; }
html[data-theme="dark"] .footer__theme-icon--moon { display: none; }

/* ==========================================
   Utilities
   ========================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   Button loading spinner
   ========================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1em;
  height: 1em;
  margin: -0.5em 0 0 -0.5em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  /* Restore visibility for the spinner itself */
  color: var(--color-text-secondary);
}

/* Accent-colored spinner for primary buttons */
.day-panel__save-btn.btn-loading::after,
.day-panel__switch-link.btn-loading::after {
  color: var(--color-accent);
}

/* ==========================================
   Day panel inline error
   ========================================== */
.day-panel__error {
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8125rem;
  color: #dc2626;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.day-panel__error[hidden] {
  display: none;
}

.day-panel__error--fading {
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  .day-panel__error {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
  }
}

html[data-theme="dark"] .day-panel__error {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}

html[data-theme="light"] .day-panel__error {
  background: #fef2f2;
  color: #dc2626;
}

/* ==========================================
   Time hint saving pulse
   ========================================== */
@keyframes pulse-opacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.day-panel__time-hint--saving {
  animation: pulse-opacity 1.2s ease-in-out infinite;
}

/* ==========================================
   Buttons (generic)
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn:active {
  transform: scale(0.98);
}

/* ==========================================
   Action Card Component (shared)
   Base class for calendar-card and settings-section
   ========================================== */
.action-card {
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.action-card__header {
  margin-bottom: var(--space-md);
}

.action-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.action-card__description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.action-card__body {
  margin-top: var(--space-md);
}

.action-card__actions {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.action-card__save-btn {
  padding: var(--space-sm) var(--space-lg);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--color-accent);
  color: var(--on-coral);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.action-card__save-btn:hover {
  background: var(--color-accent-hover);
}

.action-card__save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-card__feedback {
  font-size: 0.875rem;
  color: var(--color-success);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.action-card__feedback--visible {
  opacity: 1;
}

/* ==========================================
   Modal Overlay (shared)
   ========================================== */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  touch-action: none;
}

/* ==========================================
   Feed URL Component (shared)
   ========================================== */
.feed-url {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ==========================================
   Email Dialog (shared across pages)
   ========================================== */
.email-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.email-dialog--open {
  pointer-events: auto;
  opacity: 1;
}

.email-dialog__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  touch-action: none;
}

.email-dialog__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70vh;
  max-height: 70svh;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.email-dialog--open .email-dialog__content {
  transform: translateY(0);
}

/* Desktop: centered modal instead of bottom sheet */
@media (min-width: 768px) {
  .email-dialog__content {
    position: absolute;
    bottom: auto;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 24rem;
    width: 90%;
    max-height: 80vh;
    max-height: 80svh;
    border-radius: var(--radius-lg);
  }

  .email-dialog--open .email-dialog__content {
    transform: translate(-50%, -50%) scale(1);
  }
}

.email-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.email-dialog__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.email-dialog__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  margin-right: calc(-1 * var(--space-sm));
}

.email-dialog__close:hover {
  background: var(--color-surface-raised);
}

.email-dialog__body {
  padding: var(--space-lg);
}

.email-dialog__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}

.email-dialog__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.email-dialog__input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-dialog__input::placeholder {
  color: var(--color-text-secondary);
}

.email-dialog__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
  outline: none;
}

.email-dialog__input--invalid {
  border-color: #dc2626;
}

.email-dialog__input--invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.email-dialog__error {
  font-size: 0.8125rem;
  color: #dc2626;
  min-height: 1.25rem;
  margin: 0;
}

.email-dialog__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-sm);
}

.email-dialog__cancel {
  padding: var(--space-sm) var(--space-lg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  background: none;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.email-dialog__cancel:hover {
  background: var(--color-surface-raised);
}

.email-dialog__submit {
  padding: var(--space-sm) var(--space-lg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--color-accent);
  color: var(--on-coral);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.email-dialog__submit:hover {
  background: var(--color-accent-hover);
}

.email-dialog__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-dialog__note {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: var(--space-lg);
  margin-bottom: 0;
}

/* ==========================================
   Features detail page
   ========================================== */
.features-page-hero {
  padding: var(--space-4xl) 0 var(--space-2xl);
  background: var(--color-bg);
  text-align: center;
}

.features-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  line-height: 1.15;
}

.features-page-hero__lead {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 38rem;
  margin: 0 auto;
}

/* Long-form prose blocks (used on /features.html) */
.deep-dive {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
  scroll-margin-top: var(--space-lg);
}

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

.deep-dive__container {
  max-width: 44rem;
}

.deep-dive__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.deep-dive__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  line-height: 1.2;
  scroll-margin-top: var(--space-2xl);
}

.deep-dive__lead {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 36rem;
  margin: 0 auto;
}

.deep-dive__sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.deep-dive__section {
  position: relative;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--color-accent-subtle);
}

.deep-dive__section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.deep-dive__section p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-sm);
}

.deep-dive__section p:last-child {
  margin-bottom: 0;
}

.deep-dive__section strong {
  color: var(--color-text);
  font-weight: 600;
}



.feed-url__input-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}

.feed-url__input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  padding-right: 36px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.8125rem;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  user-select: all;
}

.feed-url__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.feed-url__toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}

.feed-url__toggle:hover {
  color: var(--color-text);
}

/* Show/hide eye icons based on state */
.feed-url__toggle .feed-url__icon-hide { display: none; }
.feed-url__toggle--revealed .feed-url__icon-show { display: none; }
.feed-url__toggle--revealed .feed-url__icon-hide { display: block; }

.feed-url__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feed-url__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--color-accent);
  color: var(--on-coral);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.feed-url__copy:hover {
  background: var(--color-accent-hover);
}

.feed-url__copy svg {
  flex-shrink: 0;
}

.feed-url__open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.feed-url__open:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-raised);
  text-decoration: none;
}

.feed-url__hint {
  margin-top: var(--space-xs);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* Waitlist confirm landing page */
.waitlist-confirm {
  max-width: 540px;
  margin: 80px auto;
  padding: 24px;
  text-align: center;
}

.waitlist-confirm__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.waitlist-confirm__body {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* ==========================================================================
   Homepage refresh — Direction C ("confident brand")
   New design tokens are defined globally (additive — they don't clash with
   the legacy --color-* set). All component rules are scoped under
   htmlso the rest of the site keeps its current styling until
   each inner page gets its own refresh pass.
   ========================================================================== */

/* --- Tokens: light defaults --- */
:root {
  /* Fixed navy text for use ON coral fills (buttons / nav CTA / badge). Stays
     the same in light and dark so it keeps WCAG AA contrast on the coral
     background — white text on coral fails (3.4:1 light, 2.6:1 dark). */
  --on-coral: #142435;
  --bg: #f5ecdc;
  --bg-2: #efe3cc;
  --bg-3: #e7d8bb;
  --paper: #fbf6ec;
  --panel: #142435;
  --panel-soft: #1d3349;
  --ink: #142435;
  --ink-2: #475a72;
  --ink-3: #758699;
  --on-panel: #f5ecdc;
  --on-panel-2: rgba(245,236,220,0.7);
  --on-panel-3: rgba(245,236,220,0.65);
  --coral: #dc6a4a;
  --coral-dark: #b8482b;
  --coral-soft: #f4b5a0;
  --coral-tint: rgba(220,106,74,0.12);
  --gold: #d9a648;
  --gold-soft: #f0d896;
  --line: rgba(20,36,53,0.12);
  --line-strong: rgba(20,36,53,0.22);
  --panel-line: rgba(245,236,220,0.18);
  --panel-line-soft: rgba(245,236,220,0.10);
  --card-bg: #fbf6ec;
  --card-border: rgba(20,36,53,0.22);
  --card-shadow: 0 30px 60px -25px rgba(20,36,53,0.30), 0 12px 24px -10px rgba(20,36,53,0.15);
  --ev-meet-bg: rgba(20,36,53,0.08);
  --ev-meet-fg: #1d3349;
  --ev-blk-bg: #efe3cc;
  --ev-blk-fg: #758699;
  --ev-blk-border: #e7d8bb;
}

/* --- Tokens: dark (system preference, when no explicit theme is set) --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1924;
    --bg-2: #15212e;
    --bg-3: #1b2939;
    --paper: #16222f;
    --panel: #08111c;
    --panel-soft: #0e1c2b;
    --ink: #f0e5d0;
    --ink-2: #b9b1a1;
    --ink-3: #7b7768;
    --on-panel: #f0e5d0;
    --on-panel-2: rgba(240,229,208,0.7);
    --on-panel-3: rgba(240,229,208,0.62);
    --coral: #e8896b;
    --coral-dark: #c6694b;
    --coral-soft: rgba(232,137,107,0.20);
    --coral-tint: rgba(232,137,107,0.18);
    --gold: #e6c068;
    --gold-soft: rgba(230,192,104,0.18);
    --line: rgba(240,229,208,0.10);
    --line-strong: rgba(240,229,208,0.20);
    --panel-line: rgba(240,229,208,0.16);
    --panel-line-soft: rgba(240,229,208,0.08);
    --card-bg: #1b2939;
    --card-border: rgba(240,229,208,0.16);
    --card-shadow: 0 30px 60px -25px rgba(0,0,0,0.65), 0 12px 24px -10px rgba(0,0,0,0.40);
    --ev-meet-bg: rgba(170,195,225,0.12);
    --ev-meet-fg: #c3d3e6;
    --ev-blk-bg: #15212e;
    --ev-blk-fg: #7b7768;
    --ev-blk-border: rgba(240,229,208,0.10);
  }
}

/* --- Tokens: explicit light (beats the system-dark media query) --- */
html[data-theme="light"] {
  --bg: #f5ecdc;
  --bg-2: #efe3cc;
  --bg-3: #e7d8bb;
  --paper: #fbf6ec;
  --panel: #142435;
  --panel-soft: #1d3349;
  --ink: #142435;
  --ink-2: #475a72;
  --ink-3: #758699;
  --on-panel: #f5ecdc;
  --on-panel-2: rgba(245,236,220,0.7);
  --on-panel-3: rgba(245,236,220,0.65);
  --coral: #dc6a4a;
  --coral-dark: #b8482b;
  --coral-soft: #f4b5a0;
  --coral-tint: rgba(220,106,74,0.12);
  --gold: #d9a648;
  --gold-soft: #f0d896;
  --line: rgba(20,36,53,0.12);
  --line-strong: rgba(20,36,53,0.22);
  --panel-line: rgba(245,236,220,0.18);
  --panel-line-soft: rgba(245,236,220,0.10);
  --card-bg: #fbf6ec;
  --card-border: rgba(20,36,53,0.22);
  --card-shadow: 0 30px 60px -25px rgba(20,36,53,0.30), 0 12px 24px -10px rgba(20,36,53,0.15);
  --ev-meet-bg: rgba(20,36,53,0.08);
  --ev-meet-fg: #1d3349;
  --ev-blk-bg: #efe3cc;
  --ev-blk-fg: #758699;
  --ev-blk-border: #e7d8bb;
}

/* --- Tokens: explicit dark --- */
html[data-theme="dark"] {
  --bg: #0e1924;
  --bg-2: #15212e;
  --bg-3: #1b2939;
  --paper: #16222f;
  --panel: #08111c;
  --panel-soft: #0e1c2b;
  --ink: #f0e5d0;
  --ink-2: #b9b1a1;
  --ink-3: #7b7768;
  --on-panel: #f0e5d0;
  --on-panel-2: rgba(240,229,208,0.7);
  --on-panel-3: rgba(240,229,208,0.62);
  --coral: #e8896b;
  --coral-dark: #c6694b;
  --coral-soft: rgba(232,137,107,0.20);
  --coral-tint: rgba(232,137,107,0.18);
  --gold: #e6c068;
  --gold-soft: rgba(230,192,104,0.18);
  --line: rgba(240,229,208,0.10);
  --line-strong: rgba(240,229,208,0.20);
  --panel-line: rgba(240,229,208,0.16);
  --panel-line-soft: rgba(240,229,208,0.08);
  --card-bg: #1b2939;
  --card-border: rgba(240,229,208,0.16);
  --card-shadow: 0 30px 60px -25px rgba(0,0,0,0.65), 0 12px 24px -10px rgba(0,0,0,0.40);
  --ev-meet-bg: rgba(170,195,225,0.12);
  --ev-meet-fg: #c3d3e6;
  --ev-blk-bg: #15212e;
  --ev-blk-fg: #7b7768;
  --ev-blk-border: rgba(240,229,208,0.10);
}

/* --- Page shell --- */
body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}

/* --- Nav --- */
.nav {
  padding: 24px 0;
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: none;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  transition: color .15s ease;
}
.logo__mark {
  width: 22px; height: 22px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.logo__mark::before,
.logo__mark::after {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
}
.logo__mark::before { left: 0; top: 0; background: var(--coral); }
.logo__mark::after { right: 0; bottom: 0; background: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a:not(.nav__cta),
.nav__logout {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
}
.nav__links a:not(.nav__cta):hover,
.nav__logout:hover { color: var(--ink); text-decoration: none; }
.nav__cta {
  font-size: 14px; font-weight: 600;
  background: var(--coral);
  color: var(--on-coral);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: box-shadow 0.15s, transform 0.15s;
}
/* Hover keeps the coral fill (darkening to --coral-dark drops the navy text
   below AA) — lift + shadow provide the affordance instead. */
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px var(--coral-dark); text-decoration: none; }
.nav__cta::after { content: '\2192'; font-family: 'Fraunces', serif; font-style: italic; }
/* Subdued outlined variant for app-page utility actions (Settings, Back to …) */
.nav__cta--ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); }
.nav__cta--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-2); transform: none; }
.nav__cta--ghost::after { content: none; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-2); }
.theme-toggle svg { width: 16px; height: 16px; }
/* robust default: light/absent shows moon, dark shows sun */
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  .theme-toggle .sun { display: block; }
  .theme-toggle .moon { display: none; }
}
html[data-theme="light"] .theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .moon { display: block; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Mobile menu button — hidden until ≤780 */
.nav__menu-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* --- Hero --- */
.hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero::before { content: none; display: none; } /* neutralise legacy glow */
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 84px;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 .scribble {
  font-style: italic;
  color: var(--coral);
  position: relative;
  display: inline-block;
}
.hero h1 .scribble::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: 4px;
  height: 8px;
  background: var(--gold-soft);
  z-index: -1;
  border-radius: 2px;
  transform: skewY(-1deg);
}
.hero__subhead {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 600;
}
.hero__desc {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 30ch;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__secondary {
  margin-top: 28px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 36ch;
}

/* Buttons (homepage) */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  border: 1.5px solid transparent;
  text-align: center;
}
.btn--p { background: var(--coral); color: var(--on-coral); }
.btn--p:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--coral-dark); text-decoration: none; }
.btn--s { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--s:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn--p::after { content: '\2192'; font-family: 'Fraunces', serif; font-style: italic; }

/* Hero artifact stack */
.stack { position: relative; height: 560px; }
.stack__card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: transform .3s ease;
}
.stack__cal {
  left: 0; top: 48px;
  width: 86%;
  z-index: 1;
}
.stack__cal:hover { transform: translateY(-4px); }
.cal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
}
html[data-theme="dark"] .cal__bar { background: var(--bg-3); border-bottom-color: var(--line-strong); }
.cal__bar .d { width: 10px; height: 10px; border-radius: 50%; }
.cal__bar .d:nth-child(1) { background: #e2745d; }
.cal__bar .d:nth-child(2) { background: #d9a648; }
.cal__bar .d:nth-child(3) { background: #6ca47b; }
.cal__bar span:last-child { flex: 1; text-align: center; font-size: 12px; color: var(--ink-2); margin-right: 30px; }
.cal__grid { display: grid; grid-template-columns: 56px 1fr; }
.cal__times { border-right: 1px solid var(--line); padding: 14px 0; }
.cal__time { height: 56px; padding: 0 12px; font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.cal__ev-wrap { position: relative; padding: 14px; min-height: 290px; }
.cev {
  position: absolute;
  left: 14px; right: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid;
}
.cev--meet {
  top: 0; height: 48px;
  background: var(--ev-meet-bg);
  color: var(--ev-meet-fg);
  border-color: var(--panel-soft);
}
html[data-theme="dark"] .cev--meet { border-color: #6ca0d6; }
.cev--swd {
  top: 56px; height: 96px;
  background: var(--coral);
  color: #fff;
  border-color: var(--coral-dark);
  display: flex; flex-direction: column; gap: 4px;
}
.cev--swd .lbl {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.95;
  font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.cev--swd .lbl svg { width: 11px; height: 11px; }
.cev--blk {
  top: 168px; height: 56px;
  background: var(--ev-blk-bg);
  color: var(--ev-blk-fg);
  text-decoration: line-through;
  border-color: var(--ev-blk-border);
}
.cev--blk .x {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-dark);
  text-decoration: none;
  display: block;
  font-weight: 700;
}
html[data-theme="dark"] .cev--blk .x { color: var(--coral); }

/* Invite card */
.stack__invite {
  right: 0; top: 0;
  width: 248px;
  background: var(--panel);
  color: var(--on-panel);
  border-radius: 14px;
  padding: 18px;
  z-index: 3;
  border: 1px solid var(--panel-soft);
}
.stack__invite .from {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.stack__invite .from::before { content: '\25C7'; }
.stack__invite h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.stack__invite .meta {
  font-size: 12px;
  color: var(--on-panel-2);
  line-height: 1.55;
  border-top: 1px solid var(--panel-line);
  padding-top: 10px;
}
.stack__invite .meta div { display: flex; align-items: center; gap: 6px; }
.stack__invite .meta div::before { content: '\00B7'; color: var(--gold); }
.stack__invite .actions { display: flex; gap: 6px; margin-top: 12px; }
.stack__invite .actions span {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 99px;
  font-weight: 600;
  background: var(--coral);
  color: #fff;
}
.stack__invite .actions span:last-child {
  background: transparent;
  border: 1px solid var(--panel-line);
  color: var(--on-panel);
}

/* ICS feed badge */
.stack__feed {
  left: 48px; bottom: 96px;
  width: 224px;
  padding: 16px 18px;
  z-index: 2;
  background: var(--bg);
  border: 1.5px solid var(--ink);
}
html[data-theme="dark"] .stack__feed { background: var(--bg-2); border-color: var(--ink-2); }
.stack__feed .label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.stack__feed .label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.stack__feed .url {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.4;
}
.stack__feed .meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
}

/* --- Integrations band --- */
.integrations {
  background: var(--panel);
  color: var(--on-panel);
  padding: 28px 0;
}
.integrations__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.integrations__label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0;
  flex-shrink: 0;
}
.integrations__list {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.integrations__list li { display: flex; align-items: center; gap: 18px; }
.integrations__list li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
}
.integrations__list svg { width: 16px; height: 16px; color: var(--gold); margin-right: 8px; flex-shrink: 0; }
.integrations__list .item { display: inline-flex; align-items: center; }

/* --- Page hero (inner marketing/content pages: features, billing, guide) --- */
.phero { padding: 88px 0 16px; }
.phero__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral-dark); display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
html[data-theme="dark"] .phero__kicker { color: var(--coral); }
.phero__kicker::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.phero h1 {
  font-family: 'Fraunces', serif; font-size: 64px; line-height: 1.0; letter-spacing: -0.035em;
  font-weight: 600; color: var(--ink); max-width: 18ch; margin: 0 0 20px;
}
.phero h1 em { font-style: italic; color: var(--coral); }
.phero__lead {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; color: var(--ink-2);
  line-height: 1.4; max-width: 48ch;
}

/* --- Inner-page prose (billing details, etc.) --- */
.copy { max-width: 64ch; margin: 0 auto; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.copy h2 {
  font-family: 'Fraunces', serif; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); font-weight: 600; margin: 48px 0 14px;
}
.copy h2:first-child { margin-top: 0; }
.copy h2 em { font-style: italic; color: var(--coral); }
.copy p { margin-bottom: 16px; }
.copy ul { margin: 0 0 16px; padding-left: 22px; }
.copy li { margin-bottom: 8px; }
.copy strong { color: var(--ink); font-weight: 600; }
.copy a { color: var(--coral-dark); border-bottom: 1px solid currentColor; text-decoration: none; }
.copy a:hover { color: var(--coral); text-decoration: none; }
html[data-theme="dark"] .copy a { color: var(--coral); }

/* --- Sections --- */
.sec { padding: 110px 0; position: relative; }
.sec--bg2 { background: var(--bg-2); }
.sec__head { margin-bottom: 64px; display: grid; grid-template-columns: auto 1fr; gap: 60px; align-items: end; }
.sec__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-dark);
  display: flex; align-items: center; gap: 12px;
}
html[data-theme="dark"] .sec__kicker { color: var(--coral); }
.sec__kicker::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.sec__head h2 {
  font-family: 'Fraunces', serif;
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  max-width: 20ch;
}
.sec__head h2 em { font-style: italic; color: var(--coral-dark); }
.sec__head .sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink-2);
  margin-top: 14px;
  max-width: 40ch;
  line-height: 1.4;
}

/* --- Feature objects --- */
.obj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}
.obj {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.obj:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(20,36,53,0.30); text-decoration: none; }
html[data-theme="dark"] .obj { border-color: var(--line-strong); background: var(--paper); }
html[data-theme="dark"] .obj:hover { box-shadow: 0 18px 36px -16px rgba(0,0,0,0.55); }
.obj__num {
  position: absolute;
  top: 28px; right: 32px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--coral);
  font-weight: 600;
  opacity: 0.4;
}
.obj__title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 14px;
  max-width: 16ch;
}
.obj__d { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 38ch; }
.obj__more {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html[data-theme="dark"] .obj__more { color: var(--coral); }
.obj--7 { grid-column: span 7; }
.obj--5 { grid-column: span 5; }
.obj--6 { grid-column: span 6; }
.obj--12 { grid-column: span 12; }
.obj__art {
  margin-top: 28px;
  border-top: 1px dashed var(--line-strong);
  padding-top: 22px;
}
.mini-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.mini-day {
  aspect-ratio: 1;
  border-radius: 8px;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--bg-2);
}
.mini-day--you { background: var(--coral); color: #fff; border-color: var(--coral-dark); }
.mini-day--them { background: var(--bg-3); color: var(--ink-2); border-color: var(--line-strong); }

/* --- How it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  list-style: none;
}
.steps::before { content: none; display: none; } /* neutralise legacy connector line */
html[data-theme="dark"] .steps { border-color: var(--line-strong); }
.step {
  padding: 44px 36px 48px;
  border-right: 1px solid var(--line-strong);
  position: relative;
  text-align: left;
  counter-increment: none;
}
html[data-theme="dark"] .step { border-right-color: var(--line); }
.step:last-child { border-right: 0; }
.step__n {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral-dark);
  letter-spacing: 0.02em;
  margin-bottom: 80px;
  display: inline-block;
  background: var(--coral-tint);
  padding: 6px 14px;
  border-radius: 99px;
}
html[data-theme="dark"] .step__n { color: var(--coral); }
.step__t {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  max-width: 14ch;
}
.step__d { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* --- Pattern showcase --- */
.showcase {
  background: var(--panel);
  color: var(--on-panel);
  border-radius: 32px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.showcase::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(217,166,72,0.18), transparent 70%);
  pointer-events: none;
}
.showcase h3 {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--on-panel);
}
.showcase h3 em { color: var(--gold); font-style: italic; }
.showcase p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--on-panel-2);
  font-size: 18px;
  line-height: 1.45;
  max-width: 32ch;
}
.showcase__legend {
  display: flex; gap: 22px; margin-top: 32px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  color: var(--on-panel-2);
}
.showcase__legend > div { display: flex; align-items: center; gap: 8px; }
.showcase__legend .sw { width: 16px; height: 16px; border-radius: 4px; }
.pcal {
  background: rgba(245,236,220,0.04);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  overflow: hidden;
}
html[data-theme="dark"] .pcal { background: rgba(240,229,208,0.04); }
.pcal__head { display: grid; grid-template-columns: 48px repeat(7, 1fr); border-bottom: 1px solid var(--panel-line); }
.pcal__head > div { padding: 12px 0; text-align: center; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-panel-2); border-right: 1px solid var(--panel-line-soft); font-weight: 600; }
.pcal__head > div:last-child { border-right: 0; }
.pcal__row { display: grid; grid-template-columns: 48px repeat(7, 1fr); border-bottom: 1px solid var(--panel-line-soft); }
.pcal__row:last-child { border-bottom: 0; }
.pcal__wk { font-family: 'Fraunces', serif; font-style: italic; font-size: 13px; color: var(--gold); display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--panel-line-soft); }
.pcal__d {
  padding: 14px 12px;
  border-right: 1px solid var(--panel-line-soft);
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pcal__d:last-child { border-right: 0; }
.pcal__d--y { background: rgba(220,106,74,0.78); color: #fff; }
html[data-theme="dark"] .pcal__d--y { background: rgba(232,137,107,0.68); }
.pcal__d--t { background: rgba(245,236,220,0.06); color: var(--on-panel-2); }
html[data-theme="dark"] .pcal__d--t { background: rgba(240,229,208,0.05); }
.pcal__date { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; }
.pcal__lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; opacity: 0.85; }

/* --- Plans --- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0; background: none; }
.plan {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  box-shadow: none;
}
html[data-theme="dark"] .plan { border-color: var(--line-strong); }
.plan--p {
  background: var(--panel);
  color: var(--on-panel);
  border-color: var(--panel);
}
.plan--p::before {
  content: 'Recommended';
  position: absolute;
  top: -14px; right: 32px;
  background: var(--coral);
  color: var(--on-coral);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.plan__name {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.plan__line {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 32ch;
  line-height: 1.4;
}
.plan--p .plan__line { color: var(--on-panel-2); }
.plan__list { list-style: none; padding: 0; margin: 0; }
.plan__list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink);
}
.plan--p .plan__list li { border-top-color: var(--panel-line); color: var(--on-panel); }
.plan__list li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 4px;
  flex-shrink: 0;
}
.plan--p .plan__list li::before { background: var(--gold); }
.plans__smallprint {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.plans__smallprint a { color: var(--coral-dark); text-decoration: none; border-bottom: 1px solid currentColor; }
html[data-theme="dark"] .plans__smallprint a { color: var(--coral); }

/* --- Final CTA --- */
.final {
  padding: 140px 0 160px;
  text-align: center;
  background: var(--panel);
  color: var(--on-panel);
  position: relative;
  overflow: hidden;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(220,106,74,0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(217,166,72,0.16), transparent 60%);
  pointer-events: none;
}
html[data-theme="dark"] .final::before {
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(232,137,107,0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(230,192,104,0.14), transparent 60%);
}
.final h2 {
  font-family: 'Fraunces', serif;
  font-size: 84px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 20ch;
  margin: 0 auto 28px;
  position: relative;
  color: var(--on-panel);
}
.final h2 em { color: var(--coral-soft); font-style: italic; }
html[data-theme="dark"] .final h2 em { color: var(--coral); }
.final p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--on-panel-2);
  margin-bottom: 48px;
  position: relative;
}
.final .btn { position: relative; padding: 20px 36px; font-size: 16px; }

/* --- Footer --- */
.foot {
  background: var(--panel);
  color: var(--on-panel-3);
  padding: 56px 0 40px;
  border-top: 1px solid var(--panel-line-soft);
  font-size: 13px;
}
.foot__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot__brand { color: var(--on-panel); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; }
.foot__tag { max-width: 32ch; font-style: italic; font-family: 'Fraunces', serif; color: var(--gold); margin-top: 10px; }
.foot__copy { margin-top: 24px; font-size: 12px; }
.foot__t { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold); font-size: 14px; margin-bottom: 12px; }
.foot a { color: var(--on-panel-2); text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: var(--on-panel); text-decoration: none; }

/* Slim footer variant — app pages (copyright + Privacy/Terms) */
.foot--slim { padding: 32px 0; }
.foot__inner--slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot__mini { display: flex; gap: 24px; }
.foot__mini a { display: inline; padding: 0; }
.foot__mini a[aria-current="page"] { color: var(--gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .wrap { padding: 0 40px; }
  .hero h1 { font-size: 68px; }
  .sec__head h2 { font-size: 48px; }
  .final h2 { font-size: 64px; }
  .showcase { padding: 56px; }
  .showcase h3 { font-size: 42px; }
}

@media (max-width: 960px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 40px 0 60px; }
  .hero__layout { gap: 44px; }
  .hero h1 { font-size: 56px; }
  .stack { height: 500px; }
  .stack__cal { width: 92%; top: 50px; }
  .stack__invite { width: 200px; top: 0; }
  .stack__feed { width: 190px; bottom: 70px; }
  .cal__time { height: 48px; }
  .cal__times { padding: 12px 0; }
  .cal__ev-wrap { min-height: 250px; }
  .cev--meet { height: 40px; }
  .cev--swd { top: 48px; height: 84px; }
  .cev--blk { top: 144px; height: 48px; }
  .obj { padding: 28px; }
  .obj__title { font-size: 24px; }
  .obj__num { font-size: 48px; top: 22px; right: 24px; }
  .sec__head h2 { font-size: 44px; }
  .integrations__inner { gap: 18px; }
  .integrations__list { gap: 16px; font-size: 14px; }
  .integrations__list li { gap: 16px; }
}

@media (max-width: 780px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 18px 32px 24px;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    box-shadow: 0 16px 28px -18px rgba(0,0,0,0.22);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.nav__cta),
  .nav__logout {
    font-size: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    text-align: left;
  }
  .nav__links .nav__cta {
    align-self: flex-start;
    margin-top: 16px;
    padding: 12px 22px;
    font-size: 15px;
  }
  .nav__menu-btn { display: inline-flex; }

  .hero { padding: 32px 0 56px; }
  .hero__layout { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { font-size: 60px; line-height: 0.98; }
  .hero__subhead { font-size: 22px; }
  .hero__desc { font-size: 17px; }
  .hero__secondary { font-size: 15px; }

  .stack { height: 380px; display: block; position: relative; padding-top: 0; gap: 0; }
  .stack__card { position: absolute; width: auto; }
  .stack__cal { left: 0; right: 0; top: 44px; width: auto; max-width: none; }
  .stack__invite { width: 208px; right: 0; top: 0; bottom: auto; }
  .stack__invite .meta div:nth-child(2) { display: none; }
  .stack__feed { width: 188px; left: 0; bottom: 24px; top: auto; }
  .cal__time { height: 44px; }
  .cal__ev-wrap { min-height: 220px; }
  .cev--meet { height: 36px; padding: 6px 12px; font-size: 12px; }
  .cev--swd { top: 44px; height: 80px; padding: 6px 12px; font-size: 12px; }
  .cev--blk { top: 132px; height: 44px; padding: 6px 12px; font-size: 12px; }

  .integrations { padding: 24px 0; }
  .integrations__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .integrations__label { font-size: 16px; }
  .integrations__list { gap: 10px 18px; row-gap: 10px; font-size: 14px; }
  .integrations__list li { gap: 18px; }

  .phero { padding: 56px 0 8px; }
  .phero h1 { font-size: 42px; }
  .phero__lead { font-size: 18px; }

  .sec { padding: 72px 0; }
  .sec__head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .sec__head h2 { font-size: 38px; max-width: none; }
  .sec__head .sub { font-size: 17px; margin-top: 10px; }

  .obj-grid { gap: 18px; }
  .obj--7, .obj--5, .obj--6 { grid-column: span 12; }
  .obj { padding: 28px 26px; }
  .obj__title { font-size: 22px; max-width: none; padding-right: 64px; }
  .obj__num { font-size: 40px; top: 20px; right: 24px; }
  .obj__d { font-size: 15px; }

  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-strong); padding: 32px 28px; }
  html[data-theme="dark"] .step { border-bottom-color: var(--line); }
  .step:last-child { border-bottom: 0; }
  .step__n { margin-bottom: 22px; }
  .step__t { font-size: 26px; }

  .showcase { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; border-radius: 24px; }
  .showcase h3 { font-size: 36px; }
  .showcase p { font-size: 17px; max-width: none; }
  .pcal__head > div { font-size: 10px; padding: 8px 0; letter-spacing: 0.06em; }
  .pcal__head, .pcal__row { grid-template-columns: 32px repeat(7, 1fr); }
  .pcal__d { min-height: 56px; padding: 8px 6px; }
  .pcal__date { font-size: 14px; }
  .pcal__lbl { font-size: 9px; letter-spacing: 0.08em; }

  .plans { grid-template-columns: 1fr; gap: 18px; }
  .plan { padding: 32px 28px; }
  .plan__name { font-size: 36px; }
  .plans__smallprint { margin-top: 28px; font-size: 12.5px; padding: 0 4px; }

  .final { padding: 96px 0 104px; }
  .final h2 { font-size: 48px; max-width: 22ch; }
  .final p { font-size: 18px; }

  .foot { padding: 48px 0 32px; }
  .foot__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 0; }
  .nav__inner { gap: 8px; }
  .logo { font-size: 19px; }
  .nav__links { padding: 16px 20px 22px; }

  .hero { padding: 20px 0 44px; }
  .hero h1 { font-size: 46px; line-height: 0.98; }
  .hero__subhead { font-size: 19px; }
  .hero__desc { font-size: 15.5px; }
  .hero__secondary { font-size: 14.5px; margin-top: 24px; }

  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; padding: 14px 22px; font-size: 14.5px; }

  .stack { height: 320px; gap: 0; padding-top: 0; }
  .stack__cal { top: 34px; }
  .stack__invite { width: 168px; right: 0; top: 0; max-width: none; padding: 12px 14px; }
  .stack__invite .meta div:nth-child(2),
  .stack__invite .meta div:nth-child(3) { display: none; }
  .stack__invite .actions { display: none; }
  .stack__feed { width: 156px; left: 0; bottom: 18px; max-width: none; padding: 12px 14px; }
  .stack__invite .from { font-size: 10px; margin-bottom: 6px; }
  .stack__invite h4 { font-size: 14px; line-height: 1.18; margin-bottom: 8px; }
  .stack__invite .meta { font-size: 10.5px; padding-top: 8px; line-height: 1.4; }
  .stack__feed .label { font-size: 9px; margin-bottom: 6px; }
  .stack__feed .url { font-size: 10px; }
  .stack__feed .meta { font-size: 10px; }
  .cal__time { font-size: 10px; height: 38px; }
  .cal__times { padding: 8px 0; }
  .cal__ev-wrap { min-height: 200px; padding: 10px; }
  .cev--meet { height: 32px; font-size: 11px; padding: 4px 10px; }
  .cev--swd { top: 38px; height: 68px; font-size: 11px; padding: 4px 10px; }
  .cev--swd .lbl { font-size: 9px; }
  .cev--blk { top: 114px; height: 36px; font-size: 11px; padding: 4px 10px; }

  .integrations { padding: 22px 0; }
  .integrations__inner { gap: 12px; }
  .integrations__label { font-size: 15px; }
  .integrations__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    width: 100%;
    font-size: 13.5px;
  }
  .integrations__list li { gap: 0; }
  .integrations__list li:not(:last-child)::after { display: none; }
  .integrations__list svg { width: 14px; height: 14px; margin-right: 6px; }

  .phero { padding: 40px 0 4px; }
  .phero h1 { font-size: 32px; }
  .phero__lead { font-size: 16px; }

  .sec { padding: 56px 0; }
  .sec__head { margin-bottom: 32px; gap: 12px; }
  .sec__kicker { font-size: 11px; }
  .sec__head h2 { font-size: 30px; }
  .sec__head .sub { font-size: 15px; }

  .obj { padding: 24px 22px; border-radius: 18px; }
  .obj__title { font-size: 20px; padding-right: 48px; }
  .obj__num { font-size: 32px; top: 18px; right: 18px; }
  .obj__d { font-size: 14px; }
  .obj__more { font-size: 12px; margin-top: 18px; }

  .step { padding: 28px 22px; }
  .step__t { font-size: 23px; }

  .showcase { padding: 32px 20px; border-radius: 20px; gap: 28px; }
  .showcase h3 { font-size: 28px; }
  .showcase p { font-size: 16px; }
  .showcase__legend { gap: 14px; font-size: 12px; flex-wrap: wrap; margin-top: 22px; }

  .pcal__head, .pcal__row { grid-template-columns: 26px repeat(7, 1fr); }
  .pcal__head > div { font-size: 9px; padding: 6px 0; letter-spacing: 0.04em; }
  .pcal__d { padding: 0; min-height: 44px; justify-content: center; align-items: center; gap: 0; }
  .pcal__date { font-size: 13px; }
  .pcal__wk { font-size: 10px; }
  .pcal__lbl { display: none; }

  .plan { padding: 24px 20px; border-radius: 20px; }
  .plan__name { font-size: 30px; }
  .plan__line { font-size: 15.5px; margin-bottom: 22px; }
  .plan--p::before { right: 20px; top: -12px; padding: 5px 12px; font-size: 11px; }
  .plans__smallprint { font-size: 12px; margin-top: 24px; }

  .final { padding: 64px 0 72px; }
  .final h2 { font-size: 36px; line-height: 1.02; }
  .final p { font-size: 15.5px; margin-bottom: 36px; }
  .final .btn { padding: 16px 28px; font-size: 14.5px; }

  .foot { padding: 40px 0 28px; }
  .foot__inner { grid-template-columns: 1fr; gap: 24px; }
  .foot__brand { font-size: 18px; }
  .foot__tag { font-size: 15px; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 40px; }
  .sec__head h2 { font-size: 26px; }
  .final h2 { font-size: 30px; }
  .integrations__list { font-size: 12.5px; }
  .obj__title { font-size: 18px; padding-right: 40px; }
  .obj__num { font-size: 28px; }
}
