:root {
  --ink: #000000;
  --muted: #71717a;
  --quiet: #a1a1aa;
  --line: #eeeeef;
  --line-strong: #dedee1;
  --soft: #fafafa;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  background: #fff;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font: 15px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.page-container {
  width: min(1200px, calc(100% - 96px));
  margin: 0 auto;
}

/* Header */
.site-header {
  width: 100%;
  background: #fff;
}

.nav-shell {
  display: flex;
  width: min(1200px, calc(100% - 96px));
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.nav-left,
.nav-links,
.nav-actions,
.brand-lockup {
  display: flex;
  align-items: center;
}

.nav-left { gap: clamp(34px, 5vw, 64px); }

.brand-lockup {
  gap: 9px;
  color: var(--ink);
  line-height: 1;
}

.brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 5.5px solid currentColor;
  border-radius: 50%;
  color: var(--ink);
}

.brand-mark > * { display: none; }

.brand-word {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.nav-links { gap: 30px; }
.nav-links a,
.nav-actions a { font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.nav-links a { color: var(--muted); transition: color 140ms ease; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { gap: 24px; }
.login-link { color: var(--ink); transition: opacity 140ms ease, transform 140ms var(--ease-out); }

.nav-cta,
.primary-cta,
.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: opacity 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out);
}

.nav-cta { min-height: 40px; padding: 0 18px; }

.nav-cta:active,
.login-link:active,
.primary-cta:active,
.plan-cta:active { transform: scale(.97); }

/* Legal pages */
.legal-main,
.pricing-main { padding-top: 0; }

.legal-hero {
  padding-top: 76px;
  padding-bottom: 68px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-hero h1,
.pricing-hero h1,
.pricing-details h2,
.closing-cta h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.legal-hero h1 {
  max-width: 860px;
  font-size: clamp(44px, 5vw, 62px);
  line-height: 1.06;
}

.document-meta { margin: 22px 0 0; color: var(--quiet); font-size: 12px; }

.policy-callout {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.65;
}

.document-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px);
  justify-content: center;
  gap: clamp(72px, 10vw, 150px);
  padding-top: 84px;
  padding-bottom: 140px;
}

.document-nav {
  position: sticky;
  top: 28px;
  align-self: start;
}

.document-nav > span {
  display: block;
  margin-bottom: 18px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.document-nav ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-nav a {
  color: #8a8a91;
  font-size: 12.5px;
  line-height: 1.45;
  transition: color 140ms ease;
}

.legal-article { min-width: 0; }

.article-section {
  margin: 0 0 38px;
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.article-section:last-child { margin-bottom: 0; }

.article-section h2 {
  margin: 0 0 16px;
  font-family: "Inter", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.article-section p {
  margin: 0 0 14px;
  color: #5f5f67;
  font-size: 15.5px;
  line-height: 1.82;
}

.article-section p:last-child { margin-bottom: 0; }

.article-section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #c7c7cc;
  text-underline-offset: 3px;
}

/* Pricing */
.pricing-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 76px;
  text-align: left;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.availability-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.pricing-hero h1 { max-width: 820px; font-size: clamp(44px, 5vw, 62px); line-height: 1.06; }
.pricing-lead { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  width: min(1260px, calc(100% - 64px));
  margin: 62px auto 0;
}

.plan {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 620px;
  flex-direction: column;
  padding: 30px 27px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}

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

.recommended {
  position: absolute;
  top: 27px;
  right: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.plan-name { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.price { display: flex; align-items: baseline; gap: 7px; margin-top: 24px; }
.price strong { font-size: 42px; font-weight: 600; letter-spacing: -.055em; }
.price span { color: var(--quiet); font-size: 12px; }
.plan-description { min-height: 74px; margin: 17px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.plan-divider { height: 1px; margin: 24px 0 18px; background: var(--line); }
.feature-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

.feature-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 0;
  color: #52525b;
  font-size: 12px;
  line-height: 1.45;
}

.feature-list svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.feature-list li.unavailable { color: #aaaab0; }
.feature-list li.unavailable svg { stroke: #b9b9be; }
.feature-list strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.feature-list li.unavailable strong { color: #9a9aa1; }
.feature-list small { display: block; margin-top: 3px; color: var(--quiet); font-size: 10.5px; }

.plan-cta {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.featured .plan-cta { border-color: var(--ink); background: var(--ink); color: #fff; }
.tier-note { min-height: 38px; margin: 13px 0 0; color: var(--quiet); font-size: 10.5px; line-height: 1.5; text-align: center; }

.pricing-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  width: min(780px, calc(100% - 64px));
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.pricing-note svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.pricing-details {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  gap: clamp(60px, 9vw, 125px);
  padding-top: 132px;
  padding-bottom: 132px;
}

.pricing-details h2 { font-size: clamp(36px, 4vw, 50px); line-height: 1.08; }
.pricing-details-copy > p { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--quiet); font-size: 18px; font-weight: 400; transition: transform 160ms var(--ease-out); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 620px; margin: -5px 0 24px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.faq-list details a { text-decoration: underline; text-underline-offset: 3px; }

.closing-cta {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 28px;
  padding: 94px 0 108px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing-cta > div { display: flex; align-items: center; flex-direction: column; }
.closing-cta h2 { max-width: 700px; font-size: clamp(36px, 5vw, 58px); line-height: 1.06; }
.closing-cta p { max-width: 530px; margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.primary-cta { min-height: 46px; padding: 0 22px; }

/* Shared footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(560px, 1.18fr);
  align-items: start;
  gap: clamp(64px, 9vw, 130px);
  padding-top: 64px;
  padding-bottom: 56px;
}

.footer-brand .brand-lockup { display: inline-flex; }
.footer-brand p { max-width: 390px; margin: 18px 0 22px; color: var(--ink); font-size: 13px; line-height: 1.75; }
.footer-brand p span { display: block; color: var(--muted); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.footer-status i { width: 6px; height: 6px; border-radius: 50%; background: #24a46d; box-shadow: 0 0 0 4px rgba(36, 164, 109, .10); }

.footer-trust-list { display: flex; align-items: start; gap: 22px; margin-top: 28px; }
.footer-trust-group { display: grid; grid-template-columns: repeat(2, 36px); gap: 8px; }
.footer-trust-label { grid-column: 1 / -1; margin-bottom: 2px; color: var(--quiet); font-size: 8px; font-weight: 600; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; }
.footer-trust-icons { display: contents; }
.footer-trust-mark { position: relative; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--soft); color: #696970; transition: border-color 150ms ease, color 150ms ease, transform 150ms var(--ease-out); }
.footer-trust-mark svg { width: 20px; height: 20px; }
.footer-trust-mark span { display: none; }
.footer-trust-group.is-roadmap .footer-trust-mark { border-style: dashed; background: #fff; color: #9a9aa1; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  align-items: start;
  gap: 34px;
  padding-top: 4px;
}

.footer-column { display: block; }
.footer-column strong { display: block; margin-bottom: 19px; color: var(--quiet); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-column div { display: grid; gap: 11px; }
.footer-column a { color: var(--muted); font-size: 12px; transition: color 140ms ease; }
.footer-column a[aria-current="page"] { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover,
  .login-link:hover,
  .document-nav a:hover,
  .footer-column a:hover { color: var(--ink); }
  .nav-cta:hover,
  .featured .plan-cta:hover,
  .primary-cta:hover { opacity: .84; }
  .plan:not(.featured) .plan-cta:hover { border-color: var(--ink); }
  .plan:hover { border-color: #c9c9cd; }
  .plan.featured:hover { border-color: var(--ink); }
  .footer-trust-mark:hover { border-color: #bdbdc2; color: var(--ink); transform: translateY(-1px); }
}

@media (max-width: 1160px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(900px, calc(100% - 64px)); gap: 18px; }
  .plan { min-height: 570px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { max-width: 720px; }
}

@media (max-width: 860px) {
  .legal-hero { grid-template-columns: 1fr; align-items: start; }
  .policy-callout { max-width: 640px; }
  .document-layout { grid-template-columns: 1fr; gap: 56px; }
  .document-nav { position: static; }
  .document-nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .pricing-details { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .page-container,
  .nav-shell { width: calc(100% - 40px); }
  .nav-shell { min-height: 76px; }
  .nav-left { gap: 0; }
  .nav-links { display: none; }
  .nav-actions { gap: 18px; }
  .nav-cta { min-height: 38px; padding: 0 15px; }
  .legal-main,
  .pricing-main { padding-top: 12px; }
  .legal-hero { padding-top: 44px; padding-bottom: 52px; }
  .legal-hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .document-layout { padding-top: 58px; padding-bottom: 96px; }
  .document-nav ol { grid-template-columns: 1fr; }
  .article-section h2 { font-size: 20px; }
  .article-section p { font-size: 15px; }
  .pricing-hero { padding-top: 44px; }
  .pricing-hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .pricing-lead { font-size: 14.5px; }
  .pricing-grid { grid-template-columns: 1fr; width: calc(100% - 40px); margin-top: 54px; }
  .plan { min-height: auto; padding: 28px 24px 24px; }
  .plan-description { min-height: 0; }
  .plan-cta { margin-top: 34px; }
  .pricing-note { width: calc(100% - 40px); }
  .pricing-details { padding-top: 98px; padding-bottom: 98px; }
  .closing-cta { padding: 76px 0 86px; }
  .footer-inner { gap: 48px; padding-top: 52px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 26px; }
  .footer-trust-list { flex-wrap: wrap; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .brand-word { display: none; }
  .login-link { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-cta,
  .login-link,
  .primary-cta,
  .plan,
  .plan-cta,
  .footer-trust-mark,
  .faq-list summary span { transition-duration: .01ms; }
}
