/* Keepwise.co umbrella landing — brand tokens from keepwise-brand/BRAND.md */
:root {
  --cream: #FAF6F0;
  --copper: #BC7D4C;
  --copper-100: #EFE7DC;
  --copper-200: #E2CCB8;
  --copper-300: #D6B294;
  --copper-400: #C99770;
  --copper-600: #96643D;
  --copper-700: #714B2E;
  --copper-800: #4B321E;
  --copper-950: #130D08;
  --navy: #2E3547;
  --deep-ink: #171B24;
  --sage: #7E8E5B;
  --sage-600: #657249;
  --sage-700: #4C5537;
  --green-100: #E7EBDF;
  --green-400: #9DAD80;
  --gray-200: #D1D2D6;
  --gray-500: #8B8F99;
  --gray-600: #6C717E;
  --gray-700: #4D5362;
  --white: #FFFFFF;
  --shadow-copper: 0 4px 8px rgba(150, 100, 61, 0.2);
  --shadow-card: 0 8px 28px rgba(46, 53, 71, 0.08);
  --radius: 8px;
  --radius-lg: 16px;
  --max: 1120px;
  --font-serif: Literata, Georgia, serif;
  --font-sans: "Work Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--cream);
  color: var(--navy);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.625;
  background: var(--cream);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--copper-200);
  box-shadow: 0 1px 0 rgba(226, 204, 184, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo-link {
  color: var(--navy);
  flex-shrink: 0;
}
.logo-link:hover { color: var(--gray-700); }
.logo-link img,
.logo-link svg {
  width: 180px;
  height: auto;
}
@media (min-width: 768px) {
  .logo-link img,
  .logo-link svg { width: 220px; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-nav a.nav-text {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: none;
}
.header-nav a.nav-text:hover { color: var(--copper-700); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--copper);
  color: var(--deep-ink);
  box-shadow: var(--shadow-copper);
}
.btn-primary:hover {
  background: var(--copper-400);
  color: var(--copper-950);
}
.btn-primary .btn-divider {
  width: 1px;
  align-self: stretch;
  background: var(--copper-600);
  opacity: 0.55;
  margin: -0.15rem 0;
}
.btn-primary .btn-icon {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
}

.btn-secondary {
  background: var(--cream);
  color: var(--copper-700);
  border-color: var(--copper-200);
}
.btn-secondary:hover {
  border-color: var(--copper-300);
  color: var(--copper-800);
}

.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 246, 240, 0.35);
}
.btn-ghost-light:hover {
  background: rgba(250, 246, 240, 0.08);
  border-color: rgba(250, 246, 240, 0.55);
  color: var(--white);
}

.btn-block { width: 100%; }

/* —— Overlines & type —— */
.overline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.75rem;
}

h1, h2, .h1, .h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
}
h1, .h1 {
  font-size: clamp(2rem, 4.5vw, 3.125rem);
}
h2, .h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
}
h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0;
  color: var(--navy);
}
em.key {
  font-style: italic;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 1rem 0 0;
  max-width: 38rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4rem);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  top: -2rem;
  right: -1rem;
  width: min(48vw, 420px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }
}

.hero-seal {
  display: none;
  justify-content: center;
}
@media (min-width: 900px) {
  .hero-seal { display: flex; }
}
.hero-seal img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(46, 53, 71, 0.12));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Choice cards —— */
.choices {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}
.choices-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .choices-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.choice-card {
  background: var(--white);
  border: 1px solid var(--copper-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.choice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--copper);
}
.choice-card--books::before { background: var(--sage); }
.choice-card:hover {
  border-color: var(--copper-300);
  box-shadow: 0 12px 36px rgba(46, 53, 71, 0.12);
  transform: translateY(-2px);
}

.choice-card__label {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0;
}
.choice-card--partners .choice-card__label { color: var(--copper-700); }

.choice-card__brand {
  color: var(--navy);
  width: min(100%, 240px);
}
.choice-card--partners .choice-card__brand { width: min(100%, 200px); }

.choice-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.3;
  margin: 0;
  color: var(--navy);
}
.choice-card__body {
  margin: 0;
  color: var(--gray-700);
  font-size: 1rem;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
  font-weight: 500;
}
.service-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  border-radius: 1px;
  background: var(--copper);
  flex-shrink: 0;
  transform: rotate(45deg);
}
.choice-card--books .service-list li::before { background: var(--sage); }

.choice-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
@media (min-width: 480px) {
  .choice-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .choice-card__actions .btn { flex: 1 1 auto; }
}

.tagline {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0;
}

/* —— Helper —— */
.helper {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--copper-100);
  border-block: 1px solid var(--copper-200);
}
.helper-inner {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) {
  .helper-inner {
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
  }
}
.helper-intro .lead { margin-top: 0.75rem; max-width: none; }

.helper-table {
  display: grid;
  gap: 0.75rem;
}
.helper-row {
  display: grid;
  gap: 0.5rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--copper-200);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
@media (min-width: 640px) {
  .helper-row {
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }
}
.helper-q {
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  font-size: 0.975rem;
}
.helper-a {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-700);
  align-self: start;
}
.helper-a strong {
  display: block;
  font-weight: 600;
  color: var(--copper-700);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.helper-a--books strong { color: var(--sage-700); }
.helper-headers {
  display: none;
}
@media (min-width: 640px) {
  .helper-headers {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 1rem;
    padding: 0 1.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
  }
}



/* —— Founder —— */
.founder {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--cream);
}
.founder-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .founder-inner {
    grid-template-columns: auto 1fr;
    gap: 3.25rem;
  }
}
.founder-photo {
  display: flex;
  justify-content: center;
}
@media (min-width: 800px) {
  .founder-photo { justify-content: flex-start; }
}
.founder-avatar {
  position: relative;
  width: min(220px, 56vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--copper-100);
  border: 3px solid var(--copper-200);
  box-shadow: 0 10px 28px rgba(46, 53, 71, 0.1);
  display: grid;
  place-items: center;
}
.founder-avatar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
.founder-avatar picture {
  display: contents;
}
.founder-avatar__photo[hidden] { display: none !important; }
.founder-avatar__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 35% 30%, var(--copper-100), var(--cream) 55%, var(--copper-200));
}
.founder-avatar__placeholder img {
  width: 42%;
  height: auto;
  opacity: 0.95;
}
.founder-avatar.has-photo .founder-avatar__placeholder { display: none; }
.founder-copy .lead,
.founder-body {
  max-width: 38rem;
}
.founder-body {
  margin: 1.1rem 0 0;
  color: var(--gray-700);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
}
.founder-body p { margin: 0 0 0.85rem; }
.founder-body p:last-child { margin-bottom: 0; }
.founder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.5rem;
}
.founder-x {
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--copper-700);
  text-decoration: none;
  border-bottom: 1px solid var(--copper-200);
  padding-bottom: 0.1rem;
}
.founder-x:hover {
  color: var(--copper-800);
  border-bottom-color: var(--copper-400);
}

/* —— Values —— */
.values {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.values::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: url("assets/web/treeline-foreground.png") center bottom / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.values .container { position: relative; z-index: 1; }
.values .overline { color: var(--green-400); }
.values h2 { color: var(--cream); max-width: 28ch; }
.values-lead {
  color: var(--gray-200);
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  font-weight: 500;
}
.values-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.value-card {
  background: rgba(250, 246, 240, 0.05);
  border: 1px solid rgba(209, 210, 214, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.5rem;
}
.value-card h3 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.value-card p {
  margin: 0;
  color: var(--gray-200);
  font-size: 0.975rem;
}

/* —— CTA band —— */
.cta-band {
  background: var(--sage);
  color: var(--cream);
  padding: clamp(2rem, 4vw, 2.75rem) 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.cta-inner h2 {
  color: var(--cream);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  max-width: 22ch;
}
.cta-inner p {
  margin: 0.4rem 0 0;
  color: rgba(250, 246, 240, 0.9);
  font-weight: 500;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: var(--gray-200);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.footer-brand img,
.footer-brand svg {
  width: 180px;
  color: var(--cream);
}
.footer-brand p {
  margin: 1rem 0 0;
  max-width: 28ch;
  color: var(--gray-500);
  font-size: 0.9375rem;
}
.footer-col h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 0.85rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-col a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
}
.footer-col a:hover { color: var(--copper-200); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(209, 210, 214, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); text-decoration: none; }
.footer-bottom a:hover { color: var(--copper-200); }

/* —— 404 —— */
.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
.page-404 .lead { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .choice-card, .btn { transition: none; }
  .choice-card:hover { transform: none; }
}


/* —— Polish refinements —— */
@media (max-width: 720px) {
  .header-nav a.nav-text { display: none; }
  .header-inner { padding: 0.85rem 0; }
  .logo-link img,
  .logo-link svg { width: 160px; }
  .header-nav .btn-primary {
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
  }
}

.choice-card__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.choice-card {
  min-height: 100%;
}

.hero-actions .btn-secondary {
  background: var(--white);
}

/* Soften helper row on very small screens */
@media (max-width: 480px) {
  .helper-a strong { margin-bottom: 0.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* Ensure sticky header doesn't cover anchors awkwardly */
section[id] { scroll-margin-top: 5.5rem; }

/* Slightly richer card top accents */
.choice-card::before {
  height: 5px;
  background: linear-gradient(90deg, var(--copper), var(--copper-400));
}
.choice-card--books::before {
  background: linear-gradient(90deg, var(--sage), var(--green-400));
}

/* Values treeline less muddy */
.values::after {
  height: 96px;
  opacity: 0.28;
}
