/* buddhireview.com — one stylesheet, no external fonts, no CDN, light + dark. */

:root {
  color-scheme: light dark;

  --bg:        #fbfbfa;
  --bg-raised: #ffffff;
  --bg-sunken: #f2f2f0;
  --text:      #1b1b19;
  --text-dim:  #5c5c56;
  --line:      #e1e1dc;
  --accent:    #7a4b1e;
  --accent-bg: #fdf6ee;
  /* Brand tokens. Flat gold is a small brand-chrome accent only; the
     metallic gradient is never painted on the light ground. */
  --brand-gold: #C6A06C;
  --brand-ink:  #0B0B0D;
  --shadow:    0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);

  --max: 68rem;
  --pad: clamp(1rem, 4vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14140f;
    --bg-raised: #1d1d18;
    --bg-sunken: #100f0c;
    --text:      #eeeee6;
    --text-dim:  #a3a399;
    --line:      #33332c;
    --accent:    #e2a860;
    --accent-bg: #241c11;
    --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* The header is sticky, so anchor targets must clear it. */
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--pad);
  top: .5rem;
  z-index: 10;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: .375rem;
  padding: .5rem .75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- links ---- */

a {
  color: var(--accent);
  text-underline-offset: .18em;
  text-decoration-thickness: from-font;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: .125rem;
}

/* ---- header ---- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding-block: .9rem;
}

/* Brand lockup: the ink wordmark (gold in dark mode, where the header is a dark
   ground) + an optional plain-text page label, divided by a hairline. */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-right: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  display: block;
  height: 1.375rem;
  width: auto;
}
.brand-label {
  padding-left: .55rem;
  border-left: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
  font-size: .9375rem;
}
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding-block: .1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--brand-gold);
}

/* On narrow phones the padded content area drops to ~288px (viewport 320px,
   --pad clamped to 1rem), but the nowrap lockup — fixed ~121px wordmark plus
   the nowrap label and its hairline divider — is wider, forcing horizontal
   overflow on the sticky header. Drop the page label below 25rem so only the
   wordmark shows; desktop layout is unchanged. */
@media (max-width: 25rem) {
  .brand-label { display: none; }
}

/* ---- hero ---- */

.hero {
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 9vw, 6rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  max-width: 20ch;
  font-weight: 700;
}

.lede {
  margin-top: 1.4rem;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  color: var(--text-dim);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn {
  display: inline-block;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.btn:hover { border-color: var(--accent); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-raised);
}
.btn-primary:hover { filter: brightness(1.08); }

/* ---- sections ---- */

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }

h2 {
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 0 0 .5rem;
  letter-spacing: -.005em;
}

p { margin: 0 0 1rem; max-width: 68ch; }

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

.cards {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--text-dim); font-size: .9375rem; }

/* ---- feature list ---- */

.features, .links {
  max-width: 68ch;
  padding-left: 1.15rem;
}
.features li, .links li { margin-bottom: .5rem; }

/* ---- pricing ---- */

.plans {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  align-items: start;
}

.plan {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: .875rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.plan-featured { border-color: var(--accent); }
.plan p { font-size: .9375rem; color: var(--text-dim); }

.price { margin: .5rem 0 .25rem; }
.amount {
  font-size: clamp(2.1rem, 1.6rem + 2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
}
.amount-sm { font-weight: 700; color: var(--text); }
.per { color: var(--text-dim); font-size: .9375rem; }
.price-annual { margin: 0 0 .25rem; }

.price-pending {
  display: inline-block;
  margin: .35rem 0 .75rem;
  padding: .2rem .55rem;
  border: 1px dashed var(--accent);
  border-radius: .375rem;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 600;
}

.plan-note { font-weight: 600; color: var(--text) !important; }

.guarantee-badge {
  margin: 1rem 0 0;
  padding: .6rem .75rem;
  border-radius: .5rem;
  background: var(--accent-bg);
  color: var(--text) !important;
  font-weight: 600;
  font-size: .875rem !important;
}

.fineprint {
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--text-dim);
}

/* ---- checkout (/buy) ---- */

.checkout {
  margin-top: 2rem;
  max-width: 34rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: .875rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.billing {
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: .75rem 1rem 1rem;
  margin: 0 0 1.25rem;
}
.billing legend {
  padding: 0 .35rem;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
}
.billing-option {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .35rem 0;
  cursor: pointer;
}
.billing-option span { color: var(--text); font-size: .9375rem; }

.seats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .75rem;
  margin-bottom: 1.25rem;
}
.seats label { font-weight: 600; color: var(--text); }
.seats input {
  width: 5.5rem;
  padding: .5rem .6rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: .5rem;
}
.seats input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.seats-help {
  flex-basis: 100%;
  margin: 0;
  font-size: .8125rem;
  color: var(--text-dim);
}

.checkout-total { margin: .25rem 0 0; }
.checkout-breakdown { margin: 0 0 1.25rem; font-size: .875rem; color: var(--text-dim); }

.checkout .btn-primary { font-size: 1rem; padding: .7rem 1.3rem; }
.checkout .btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: none;
}

.checkout-unavailable {
  margin: 1rem 0 0;
  padding: .6rem .75rem;
  border-radius: .5rem;
  background: var(--accent-bg);
  color: var(--text);
  font-size: .875rem;
}

/* ---- comparison table ---- */

.table-scroll {
  margin-top: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--bg-raised);
}

.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 46rem;
  font-size: .9375rem;
}

.compare th, .compare td {
  text-align: left;
  vertical-align: top;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  position: sticky;
  top: 0;
  background: var(--bg-sunken);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
}
.compare tbody th {
  font-weight: 700;
  width: 12rem;
  color: var(--text);
}
.compare td { color: var(--text-dim); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td,
.compare tbody tr:hover th { background: var(--bg-sunken); }

/* ---- legal pages ---- */

.legal { padding-block: clamp(2.5rem, 6vw, 4rem); max-width: 48rem; }
.legal h1 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  letter-spacing: -.025em;
  margin: 0 0 .35rem;
}
.legal h2 { font-size: 1.25rem; margin-top: 2.5rem; }
.legal section:first-of-type h2 { margin-top: 2rem; }
.legal ol, .legal ul { padding-left: 1.15rem; max-width: 68ch; }
.legal li { margin-bottom: .5rem; }

.updated { color: var(--text-dim); font-size: .875rem; margin-bottom: 2rem; }

.seller-line,
.reseller-line,
.guarantee {
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  padding: .85rem 1rem;
  border-radius: 0 .5rem .5rem 0;
}

.contact { font-style: normal; }
.contact p { margin: 0 0 .35rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
  padding-block: 2.5rem;
  font-size: .875rem;
  color: var(--text-dim);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-bottom: 1.25rem;
}
.site-footer nav a { color: var(--text); }
.reseller-note { max-width: 70ch; margin-bottom: 1rem; }
.copyright { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
