/* =============================================================
   Hush — marketing site stylesheet
   Single file. CSS custom properties. Mobile-first.
   No frameworks, no resets beyond what's necessary.
   ============================================================= */

:root {
  /* Palette — sage on warm cream, graphite text. No bright primaries. */
  --sage-900: #3F574B;
  --sage-700: #4F6E5F;
  --sage:     #6B8E7F;
  --sage-300: #A9C0B6;
  --sage-100: #DEE8E2;
  --sage-050: #EEF3EF;

  --cream:    #FAF7F2;
  --cream-2:  #F2EDE4;
  --paper:    #FFFFFF;

  --ink:      #1F2622;
  --ink-2:    #2E3530;
  --muted:    #5D6862;
  --muted-2:  #8A938D;
  --hairline: #E4DED2;
  --hairline-2: #D6CFC0;

  --danger:   #B85C4A; /* used only for "0" callouts that need warmth, not red */

  /* Type */
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing */
  --pad: clamp(1.25rem, 4vw, 2rem);
  --gap: clamp(1rem, 2.5vw, 1.5rem);

  /* Layout */
  --col-narrow: 38rem;
  --col-wide:   64rem;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* -------- Base reset -------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--sage-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s var(--ease);
}
a:hover { color: var(--sage-900); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0 0 1em; }

::selection { background: var(--sage-100); color: var(--sage-900); }

/* -------- Layout helpers --------------------------------------------- */

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

.wrap--narrow { max-width: var(--col-narrow); }

section { padding-block: clamp(3.5rem, 9vw, 6rem); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-700);
  background: var(--sage-050);
  padding: .35rem .65rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(250, 247, 242, 0.95);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sage);
  display: grid;
  place-items: center;
  color: var(--cream);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover { color: var(--ink); }

@media (min-width: 720px) {
  .site-nav { display: inline-flex; }
}

/* -------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.25rem;
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s var(--ease), background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--sage-900);
  color: var(--cream);
  border-color: var(--sage-900);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -12px rgba(63, 87, 75, 0.45);
}
.btn--primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--sage-300);
  color: var(--ink);
}

.btn--play .btn__icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}

/* -------- Hero ------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 8rem) clamp(3.5rem, 9vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 0 0;
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(107, 142, 127, 0.18), transparent 60%),
    radial-gradient(50% 45% at 10% 20%, rgba(222, 232, 226, 0.55), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-050);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: .6em;
}
.hero h1 em {
  font-style: normal;
  color: var(--sage-700);
}

.hero__sub {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero__reassurance {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero__reassurance::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sage-300);
}

/* -------- "Why Hush" 3-column ---------------------------------------- */

.why {
  background: var(--cream);
  border-top: 1px solid var(--hairline);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 800px) {
  .why__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--sage-300); }

.card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sage-050);
  color: var(--sage-700);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* -------- Technical claim block -------------------------------------- */

.claim {
  background: var(--cream);
  border-top: 1px solid var(--hairline);
}

.claim__header {
  max-width: 38rem;
}

.claim__block {
  margin-top: 2.5rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 60px -30px rgba(31, 38, 34, 0.45);
}

.claim__filebar {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2c3531;
}
.claim__dots { display: inline-flex; gap: .35rem; margin-right: .25rem; }
.claim__dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #3a4540;
}

.claim__code {
  font-family: var(--f-mono);
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #E6E1D5;
}
.claim__code .tok-key  { color: #A9C0B6; }
.claim__code .tok-str  { color: #C8B88A; }
.claim__code .tok-comment { color: #6F7A74; font-style: italic; }

.claim__caption {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 40rem;
}
.claim__caption strong { color: var(--sage-900); font-weight: 600; }

/* -------- Pricing ---------------------------------------------------- */

.pricing {
  background: var(--cream-2);
  border-top: 1px solid var(--hairline);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 860px) {
  .pricing__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.plan {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--featured {
  border-color: var(--sage);
  box-shadow: 0 24px 48px -28px rgba(63, 87, 75, 0.35);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--sage-900);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: .4rem .65rem;
  border-radius: 999px;
}

.plan__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: .5rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-bottom: .25rem;
}
.plan__price-amount {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan__price-unit {
  font-size: 15px;
  color: var(--muted);
}

.plan__savings {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sage-700);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.plan__copy {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: 15px;
  color: var(--ink-2);
}
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
}
.plan__list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--sage-050);
  background-image:
    linear-gradient(45deg, transparent 45%, var(--sage-700) 45%, var(--sage-700) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--sage-700) 45%, var(--sage-700) 55%, transparent 55%);
  background-size: 8px 8px, 8px 8px;
  background-position: 4px 8px, 8px 4px;
  background-repeat: no-repeat;
}

/* -------- Privacy report --------------------------------------------- */

.report { background: var(--cream); border-top: 1px solid var(--hairline); }

.report__panel {
  margin-top: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}

.report__head {
  padding: 1.25rem 1.5rem;
  background: var(--sage-050);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-900);
}
.report__head span:last-child { color: var(--muted); }

.report__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.report__row:last-child { border-bottom: 0; }

.report__label {
  font-size: 16px;
  color: var(--ink-2);
}
.report__label small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.report__value {
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--sage-900);
  background: var(--sage-050);
  padding: .35rem .65rem;
  border-radius: 8px;
  white-space: nowrap;
}
.report__value--note {
  background: var(--cream-2);
  color: var(--ink-2);
}

/* -------- FAQ -------------------------------------------------------- */

.faq { background: var(--cream); border-top: 1px solid var(--hairline); }

.faq__list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0 1.25rem;
  transition: border-color .15s var(--ease);
}
.faq details[open] { border-color: var(--sage-300); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 500;
  font-size: 1.025rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq__body {
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq__body p { margin: 0 0 .75rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* -------- Footer ----------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream-2);
  padding-block: 3rem;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .site-footer .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer .brand { color: var(--cream); }
.site-footer .brand:hover { color: var(--cream); }
.site-footer .brand__mark {
  background: var(--sage-700);
  color: var(--cream);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 14px;
}
.footer-nav a {
  color: var(--cream-2);
  text-decoration: none;
  opacity: 0.8;
}
.footer-nav a:hover { opacity: 1; color: var(--cream); }

.footer-meta {
  font-size: 13px;
  color: var(--muted-2);
}

/* -------- Legal-page (privacy.html, terms.html) ---------------------- */

.legal {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.legal__nav {
  margin-bottom: 2rem;
  font-size: 14px;
  color: var(--muted);
}
.legal__nav a { color: var(--muted); text-decoration: none; }
.legal__nav a:hover { color: var(--ink); text-decoration: underline; }

.legal h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: .5rem;
}

.legal__meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.legal__meta strong { color: var(--ink-2); font-weight: 500; }

.legal__body { max-width: var(--col-narrow); }
.legal__body h2 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.legal__body h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.legal__body h3 {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  color: var(--ink-2);
}
.legal__body ul {
  padding-left: 1.2rem;
  margin: 0 0 1em;
}
.legal__body li { margin-bottom: .35rem; }

.legal__body code,
.legal__body kbd {
  font-family: var(--f-mono);
  font-size: 0.92em;
  background: var(--sage-050);
  padding: .1rem .35rem;
  border-radius: 4px;
  color: var(--sage-900);
}

.legal__callout {
  background: var(--sage-050);
  border-left: 3px solid var(--sage);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  color: var(--ink-2);
  font-size: 15.5px;
}
.legal__callout p:last-child { margin-bottom: 0; }

/* -------- Misc utilities --------------------------------------------- */

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

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