/* Cache — marketing site
   Simple, elegant: warm paper background, deep emerald, serif display headings. */

:root {
  --emerald-950: hsl(160 60% 9%);
  --emerald-900: hsl(160 55% 14%);
  --emerald-800: hsl(159 52% 20%);
  --emerald-700: hsl(158 50% 28%);
  --emerald-600: hsl(158 42% 36%);
  --emerald-100: hsl(156 38% 93%);
  --emerald-50: hsl(154 40% 97%);
  --amber-500: hsl(38 92% 50%);
  --amber-400: hsl(40 94% 62%);
  --ink: hsl(160 25% 10%);
  --ink-soft: hsl(160 10% 32%);
  --ink-faint: hsl(160 6% 48%);
  --paper: hsl(45 40% 98%);
  --paper-warm: hsl(44 35% 96%);
  --card: hsl(0 0% 100%);
  --line: hsl(160 12% 90%);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px hsl(160 30% 10% / 0.04), 0 8px 24px -8px hsl(160 30% 10% / 0.08);
  --shadow-lift: 0 2px 4px hsl(160 30% 10% / 0.05), 0 20px 48px -16px hsl(160 40% 12% / 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--emerald-900);
}

/* Rebrand notice */
.rebrand-banner {
  background: var(--emerald-950);
  color: hsl(156 25% 86%);
  padding: 11px 24px;
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.rebrand-banner a {
  color: var(--amber-400);
  font-weight: 600;
  text-decoration: none;
}

.rebrand-banner a:hover {
  text-decoration: underline;
  color: var(--amber-500);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(45 40% 98% / 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--emerald-900);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--emerald-900);
  background: var(--emerald-100);
}

.site-nav a[aria-current="page"] {
  color: var(--emerald-900);
  background: var(--emerald-100);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--emerald-900);
  color: hsl(45 40% 98%);
  box-shadow: 0 2px 10px hsl(160 55% 14% / 0.28);
}

.btn-primary:hover {
  background: var(--emerald-800);
  color: hsl(45 40% 98%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px hsl(160 55% 14% / 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--emerald-900);
  box-shadow: inset 0 0 0 1.5px hsl(158 30% 78%);
}

.btn-secondary:hover {
  background: var(--emerald-100);
  color: var(--emerald-950);
  box-shadow: inset 0 0 0 1.5px hsl(158 35% 62%);
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 70% 55% at 18% -8%, hsl(158 50% 40% / 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 90% 8%, hsl(38 92% 60% / 0.09), transparent);
  padding: 88px 24px 96px;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emerald-700);
  background: var(--emerald-100);
  border: 1px solid hsl(158 30% 84%);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 5.2vw, 3.625rem);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--emerald-950);
}

.hero-lead {
  margin: 0 0 36px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lift);
}

.hero-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--emerald-900);
}

.hero-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

.hero-card ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 0.9375rem;
  color: var(--ink);
  border-bottom: 1px solid hsl(160 12% 94%);
}

.hero-card li:last-child {
  border-bottom: none;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
}

/* Sections */
section {
  padding: 88px 24px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--emerald-600);
  margin-bottom: 10px;
}

section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.375rem);
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--emerald-950);
}

.section-intro {
  margin: 0 0 48px;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-block {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--emerald-50);
  border: 1px solid hsl(156 30% 90%);
}

.about-block h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--emerald-900);
}

.about-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.features {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--emerald-950);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, hsl(158 45% 30% / 0.5), transparent),
    var(--emerald-950);
  color: var(--paper);
  text-align: center;
  padding: 88px 24px;
}

.cta-band h2 {
  color: var(--paper);
  margin-bottom: 14px;
}

.cta-band p {
  margin: 0 auto 32px;
  max-width: 32rem;
  color: hsl(156 20% 78%);
  font-size: 1.0625rem;
}

.cta-band .btn-primary {
  background: var(--amber-500);
  color: var(--emerald-950);
  box-shadow: 0 4px 20px hsl(38 92% 50% / 0.35);
}

.cta-band .btn-primary:hover {
  background: var(--amber-400);
  color: var(--emerald-950);
}

/* Footer */
.site-footer {
  background: var(--paper);
  color: var(--ink-faint);
  padding: 48px 24px;
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-inner strong {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--emerald-900);
}

.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--emerald-900);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

/* Pricing page */
.page-hero {
  background:
    radial-gradient(ellipse 60% 70% at 50% -20%, hsl(158 50% 40% / 0.1), transparent);
  padding: 72px 24px 40px;
  text-align: center;
}

.page-hero .section-inner {
  max-width: 42rem;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--emerald-950);
}

.page-hero .section-intro {
  margin: 0 auto;
}

.pricing-section {
  padding: 48px 24px 88px;
  background: var(--paper);
}

/* Bay Area limited-offer callout */
.promo-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 40px;
  padding: 26px 28px;
  background: var(--emerald-950);
  color: hsl(156 25% 88%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.promo-callout .promo-body {
  flex: 1 1 20rem;
}

.promo-callout h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  color: var(--paper);
}

.promo-callout p {
  margin: 0;
  font-size: 0.95rem;
}

.promo-callout strong {
  color: var(--amber-400);
  font-weight: 600;
}

.promo-badge {
  align-self: flex-start;
  background: var(--amber-400);
  color: var(--emerald-950);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.promo-callout .btn {
  flex-shrink: 0;
}

.pricing-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 28px;
  height: 100%;
  box-shadow: var(--shadow-soft);
}

.plan-card.featured {
  border-color: hsl(158 35% 60%);
  box-shadow: var(--shadow-lift);
}

.plan-card.unavailable {
  background: var(--paper-warm);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-900);
  color: var(--paper);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-badge.soon {
  background: hsl(38 70% 38%);
}

.plan-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--emerald-950);
}

.plan-price {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: 2.375rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--emerald-900);
  line-height: 1;
}

.plan-price span {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.plan-desc {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  min-height: 3rem;
}

.plan-meta {
  margin: 0 0 18px;
  padding: 14px 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-faint);
  border-top: 1px solid hsl(160 12% 93%);
  border-bottom: 1px solid hsl(160 12% 93%);
}

.plan-meta li {
  margin-bottom: 6px;
}

.plan-meta li:last-child {
  margin-bottom: 0;
}

.plan-meta strong {
  color: var(--ink);
}

.plan-features {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--ink);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-600);
  font-weight: 700;
}

.plan-features li.muted {
  color: var(--ink-faint);
}

.plan-features li.muted::before {
  content: "—";
  color: hsl(160 8% 72%);
}

.plan-card .btn {
  width: 100%;
  margin-top: auto;
}

.btn-disabled {
  background: hsl(160 10% 92%);
  color: var(--ink-faint);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover {
  transform: none;
  background: hsl(160 10% 92%);
  color: var(--ink-faint);
  box-shadow: none;
}

.billing-notes {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.note-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.note-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--emerald-900);
}

.note-card p,
.note-card ul {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.note-card ul {
  padding-left: 1.25rem;
}

.note-card li {
  margin-bottom: 6px;
}

.pricing-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease;
}

.pricing-faq details[open] {
  box-shadow: var(--shadow-lift);
}

.pricing-faq summary {
  font-weight: 600;
  color: var(--emerald-950);
  cursor: pointer;
}

.pricing-faq summary:hover {
  color: var(--emerald-700);
}

.pricing-faq p {
  margin: 14px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* Legal pages (terms) */
.legal {
  background: var(--paper);
  padding: 40px 24px 88px;
}

.legal-inner {
  max-width: 46rem;
}

.legal h2 {
  font-size: 1.375rem;
  margin: 44px 0 12px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal ul {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.35rem;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--ink);
}
