/* ============================================================
   Chonk marketing site — brand stylesheet
   Palette pulled straight from the chonky-cat logo (terracotta
   fur on cream) + the portal's cream theme.
   ============================================================ */

:root {
  /* brand */
  --cream:      #F9F6EC;  /* page background (portal cream) */
  --cream-deep: #F4EAD6;  /* alt section background */
  --logo-bg:    #F9E8CF;  /* logo field cream */
  --paper:      #ffffff;
  --orange:     #E39464;  /* mid fur */
  --terracotta: #CB734D;  /* PRIMARY */
  --terra-600:  #B65F3A;
  --clay:       #913F27;  /* deep fur / headings on cream */
  --clay-deep:  #6E2F1D;
  --gold:       #F2C472;  /* highlight / belly */
  --gold-soft:  #FBE7BE;

  /* ink + neutrals */
  --ink:    #2A1A12;
  --body:   #43362E;
  --muted:  #857468;
  --line:   #EADFCB;
  --line-2: #E4D6BE;

  --shadow-sm: 0 1px 2px rgba(42,26,18,.06), 0 8px 24px -14px rgba(42,26,18,.18);
  --shadow-md: 0 2px 6px rgba(42,26,18,.08), 0 24px 48px -24px rgba(42,26,18,.28);
  --radius:    1rem;
  --radius-lg: 1.5rem;
  --maxw: 1120px;

  --font-display: "Baloo 2", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background:
    radial-gradient(1200px 520px at 100% -8%, rgba(242,196,114,.28), transparent 60%),
    radial-gradient(1000px 620px at -10% 108%, rgba(203,115,77,.14), transparent 60%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--terra-600); text-decoration: none; }
a:hover { color: var(--clay); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .72rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terra-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--clay); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; color: var(--clay); border-color: var(--terracotta); }
.btn-lg { font-size: 1.08rem; padding: .85rem 1.7rem; }

/* ---------- top nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249,246,236,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.nav__logo img { height: 34px; display: block; }
.nav__links { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; }
.nav__links a { color: var(--body); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--clay); }
.nav__cta { margin-left: .5rem; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--clay); cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 7vw, 6.5rem) 0 3rem; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--clay); background: var(--gold-soft);
  padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-2);
}
.hero h1 { margin-top: 1.1rem; }
.hero__lead { font-size: 1.22rem; color: var(--body); max-width: 34ch; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.hero__art {
  background: var(--logo-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem; display: grid; place-items: center;
  aspect-ratio: 4 / 3;
}
.hero__art img { width: 78%; max-width: 360px; }

/* ---------- generic sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--cream-deep); border-block: 1px solid var(--line); }
.section--clay { background: linear-gradient(160deg, var(--clay), var(--clay-deep)); color: #F7E9DA; }
.section--clay h2, .section--clay h3 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--clay .section-head p { color: #E9C9B4; }
.kicker { font-family: var(--font-display); font-weight: 600; color: var(--terracotta); text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; }

/* ---------- feature firehose grid ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  display: block; color: inherit;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); color: inherit; }
.card__icon { font-size: 1.9rem; line-height: 1; margin-bottom: .75rem; display: block; }
.card h3 { color: var(--ink); margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card__more { display: inline-block; margin-top: .9rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--terra-600); }

/* ---------- stats band ---------- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--gold); line-height: 1; }
.stat__label { font-size: .9rem; color: #E9C9B4; margin-top: .3rem; }

/* ---------- split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 1.5rem; }
.split--flip .split__media { order: 2; }
.split__media {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); aspect-ratio: 16/10; display: grid; place-items: center;
  color: var(--muted); font-size: .9rem; overflow: hidden;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.split li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.split li::before { content: "🐾"; position: absolute; left: 0; font-size: .85rem; }

/* ---------- comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.compare th, .compare td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); background: var(--cream-deep); color: var(--ink); }
.compare th.col-chonk { color: var(--clay); background: var(--gold-soft); }
.compare td.col-chonk { font-weight: 500; color: var(--ink); }
.compare tr:last-child td { border-bottom: 0; }
.compare .civi { color: var(--muted); }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.price-card--featured { border: 2px solid var(--terracotta); box-shadow: var(--shadow-md); position: relative; }
.price-card--featured::before { content: "Most popular"; position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--terracotta); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .8rem; border-radius: 999px; }
.price-card h3 { font-size: 1.25rem; }
.price-card .price { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--ink); margin: .3rem 0 .1rem; }
.price-card .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card .blurb { color: var(--muted); font-size: .95rem; min-height: 2.6em; }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0; flex: 1; }
.price-card li { padding-left: 1.5rem; position: relative; margin-bottom: .55rem; font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }

/* ---------- prose pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; color: var(--clay); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose code { background: var(--cream-deep); padding: .12em .4em; border-radius: .35rem; font-size: .9em; color: var(--clay-deep); }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.5rem 0; padding: .3rem 0 .3rem 1.2rem; color: var(--body); font-style: italic; }
.page-hero { text-align: center; padding: clamp(3rem,6vw,4.5rem) 0 1rem; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero p { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* ---------- video / demo ---------- */
.video-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line-2); background: #1c110b; aspect-ratio: 16/9; }
.video-wrap video, .video-wrap iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-placeholder { display: grid; place-items: center; height: 100%; color: var(--gold); text-align: center; gap: .5rem; padding: 2rem; }
.video-placeholder .play { font-size: 3rem; }
.video-caption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: .8rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); color:#fff; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9C8BB; padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer a { color: #E9C9B4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; font-size: .92rem; }
.footer__brand img { height: 30px; margin-bottom: .8rem; }
.footer__brand p { font-size: .9rem; color: #B49C8D; max-width: 30ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #9C8578; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- misc ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.pill { background: #fff; border: 1px solid var(--line-2); color: var(--body); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 500; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; aspect-ratio: 16/10; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .split--flip .split__media { grid-template-columns: 1fr; order: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--line); padding: 1rem 1.5rem; gap: 1rem; }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__cta { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
