/* TableBot — site styles */

/* ---------- Tokens ---------- */
:root {
  --brown: #992a14;
  --brown-ink: #6b1e0e;
  --brown-soft: #b8503c;
  --off-white: #fffdf3;
  --cream: #f7eedb;
  --beige: #efe9df;
  --beige-deep: #e4dccb;
  --ink: #2a1f1a;
  --ink-soft: #5a4a42;
  --ink-mute: #8a7a70;
  --line: rgba(42, 31, 26, 0.12);
  --line-soft: rgba(42, 31, 26, 0.06);

  --radius: 14px;
  --radius-lg: 22px;

  --f-display: 'Instrument Serif', 'Fraunces', Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(42, 31, 26, 0.04), 0 1px 0 rgba(42, 31, 26, 0.04);
  --shadow-md: 0 4px 16px rgba(153, 42, 20, 0.08), 0 1px 2px rgba(42, 31, 26, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(153, 42, 20, 0.25), 0 8px 24px -8px rgba(42, 31, 26, 0.1);
}

/* Font pairings via Tweaks */
html[data-fonts="modern"] {
  --f-display: 'General Sans', 'Inter', sans-serif;
  --f-body: 'Inter', sans-serif;
}
html[data-fonts="classic"] {
  --f-display: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --f-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--brown); color: var(--off-white); }

/* ---------- Layout ---------- */
.app { position: relative; }

.section {
  padding: 140px 48px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.section__head {
  max-width: 880px;
  margin: 0 auto 72px;
  text-align: center;
}

@media (max-width: 800px) {
  .section { padding: 90px 24px; }
  .section__head { margin-bottom: 48px; }
}

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 24px 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.display__line { display: block; }
.display__line--italic { font-style: italic; color: var(--ink-soft); }
.display__line--accent { color: var(--brown); }

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--brown); }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brown);
  padding: 7px 14px 7px 12px;
  border: 1px solid color-mix(in oklch, var(--brown) 25%, transparent);
  background: color-mix(in oklch, var(--brown) 5%, transparent);
  border-radius: 999px;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brown);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brown) 15%, transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--brown) 30%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--brown) 0%, transparent); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--primary {
  background: var(--brown);
  color: var(--off-white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 2px 8px rgba(153,42,20,0.25);
}
.btn--primary:hover {
  background: var(--brown-ink);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 16px rgba(153,42,20,0.3);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--brown); color: var(--brown); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { color: var(--brown); }
.btn--link {
  background: transparent;
  color: var(--ink-soft);
  padding: 12px 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.btn--link:hover { color: var(--brown); border-bottom-color: var(--brown); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 24px;
  transition: padding .25s ease;
}
.nav--scrolled { padding: 8px 24px; }
.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 14px 10px 18px;
  background: color-mix(in oklch, var(--off-white) 85%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav--scrolled .nav__inner {
  background: color-mix(in oklch, var(--off-white) 92%, transparent);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 28px; height: 28px; }
.nav__wordmark {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--ink-soft); }
.nav__links a { transition: color .15s ease; }
.nav__links a:hover { color: var(--brown); }
.nav__cta { display: flex; align-items: center; gap: 6px; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 48px 48px;
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in oklch, var(--brown) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--off-white));
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: 88px 100%;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
  min-height: 78vh;
}
.hero__copy { max-width: 720px; }
.hero__sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero__ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.hero__meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 520px;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-item strong {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.hero__meta-item span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.hero__meta-divider {
  width: 1px; height: 36px; background: var(--line);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero layout variants */
.hero--centered .hero__inner {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hero--centered .hero__copy { max-width: 900px; }
.hero--centered .hero__sub { margin-left: auto; margin-right: auto; }
.hero--centered .hero__ctas { justify-content: center; }
.hero--centered .hero__meta { margin-left: auto; margin-right: auto; justify-content: center; }
.hero--centered .hero__visual { margin-top: 48px; max-width: 640px; width: 100%; }

.hero--stacked .hero__inner {
  grid-template-columns: 1fr;
  text-align: left;
}
.hero--stacked .hero__visual { margin-top: 64px; }

@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 120px 24px 24px; }
}

/* ---------- Hero marquee ---------- */
.hero__marquee {
  margin-top: 64px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--cream) 60%, var(--off-white));
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--f-mono);
}
.marquee__track span { flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Phone card (hero visual) ---------- */
.phone {
  width: 100%;
  max-width: 480px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.2);
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }

.phone__header {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--beige) 60%, var(--off-white));
}
.phone__status {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.phone__live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brown);
  font-weight: 600;
}
.phone__live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brown);
  animation: pulse 1.4s ease-in-out infinite;
}
.phone__caller {
  display: flex; align-items: center; gap: 12px;
}
.phone__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--off-white);
  font-family: var(--f-mono);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.05em;
}
.phone__name {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink);
}
.phone__sub {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.wave {
  margin-left: auto;
  display: flex; align-items: center; gap: 2px;
  height: 20px;
}
.wave span {
  width: 2px;
  background: var(--brown);
  border-radius: 1px;
  height: 4px;
  opacity: 0.3;
}
.wave.is-active span {
  animation: waveBar 1s ease-in-out infinite;
  opacity: 1;
}
@keyframes waveBar {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.phone__transcript {
  padding: 18px 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 380px;
}
.bubble {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
  max-width: 86%;
}
.bubble.is-show { opacity: 1; transform: none; }
.bubble--bot { align-self: flex-start; }
.bubble--caller { align-self: flex-end; text-align: right; }
.bubble__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 5px;
}
.bubble__body {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.bubble--bot .bubble__body {
  background: var(--beige);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble--caller .bubble__body {
  background: var(--brown);
  color: var(--off-white);
  border-bottom-right-radius: 4px;
}

.phone__log {
  margin-top: 6px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: color-mix(in oklch, var(--brown) 6%, var(--off-white));
  border: 1px dashed color-mix(in oklch, var(--brown) 20%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.phone__log.is-show { opacity: 1; transform: none; }
.phone__log-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--brown-ink);
  font-family: var(--f-mono);
  padding: 3px 0;
}

/* ---------- Calculator ---------- */
.calc {
  background: var(--beige);
  border-radius: 32px;
  margin: 80px auto;
  padding: 100px 64px;
  max-width: 1400px;
}
.calc__inner { max-width: 1240px; margin: 0 auto; }
.calc__head { max-width: 780px; margin: 0 auto 56px; text-align: center; }

.calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .calc { padding: 60px 24px; margin: 40px auto; }
  .calc__grid { grid-template-columns: 1fr; gap: 40px; }
}

.calc__controls {
  display: flex; flex-direction: column; gap: 28px;
  padding: 36px;
  background: var(--off-white);
  border-radius: 20px;
  border: 1px solid var(--line-soft);
}

.slider__top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.slider__top label {
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.slider__val {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--brown);
  font-weight: 400;
  line-height: 1;
}
.slider__track-wrap { padding: 4px 0; }
.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brown) var(--pct, 0%), var(--beige-deep) var(--pct, 0%));
  border-radius: 999px;
  outline: none;
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--brown);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(153,42,20,0.25);
  transition: transform .15s ease;
}
.slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--brown);
  cursor: pointer;
}

.calc__readout {
  display: flex; flex-direction: column; gap: 14px;
  padding: 36px;
  background: var(--brown);
  color: var(--off-white);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.calc__readout::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,253,243,0.04) 1px, transparent 1px);
  background-size: 48px 100%;
  pointer-events: none;
}
.calc__readout-row {
  position: relative;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,253,243,0.12);
}
.calc__readout-label {
  font-size: 13px;
  color: rgba(255,253,243,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.calc__readout-val {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 500;
}
.calc__readout-row--hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 0 18px;
  border-bottom: none;
  margin-top: 8px;
}
.calc__readout-val--hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
}
.calc__money {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  font-weight: 400;
  color: var(--off-white);
}
.calc__per {
  font-size: 14px;
  color: rgba(255,253,243,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.calc__readout-footnote {
  font-family: var(--f-mono);
  font-size: 13px;
  color: rgba(255,253,243,0.7);
}
.calc__cta { align-self: stretch; margin-top: 20px; background: var(--off-white); color: var(--brown); }
.calc__cta:hover { background: var(--cream); color: var(--brown); }
.calc__fine {
  position: relative;
  font-size: 11px;
  color: rgba(255,253,243,0.55);
  margin-top: 8px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- How it works ---------- */
.how {}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .how__grid { grid-template-columns: 1fr; gap: 24px; } }
.step {
  padding: 40px 32px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklch, var(--brown) 20%, var(--line));
}
.step__n {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--brown);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.step__n::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.step__title {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.step__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Integrations ---------- */
.int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .int-grid { grid-template-columns: 1fr; } }

.int {
  padding: 32px 28px 28px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
  transition: all .22s ease;
  overflow: hidden;
}
.int::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in oklch, var(--brown) 8%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .22s ease;
}
.int:hover {
  border-color: var(--brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.int:hover::before { opacity: 1; }
.int > * { position: relative; }
.int--featured { border-color: color-mix(in oklch, var(--brown) 40%, var(--line)); background: color-mix(in oklch, var(--brown) 3%, var(--off-white)); }

.int__tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--brown);
  color: var(--off-white);
  border-radius: 999px;
  margin-bottom: 16px;
}
.int__name {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.int__status {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}
.int__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.int__hover {
  position: absolute !important;
  bottom: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .22s ease, transform .22s ease;
}
.int:hover .int__hover { opacity: 1; transform: none; }

/* ---------- Proof / case studies ---------- */
.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .proof__grid { grid-template-columns: 1fr; } }

.case {
  padding: 36px 32px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.case__top {
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 24px;
}
.case__stat {
  font-family: var(--f-display);
  font-size: 96px;
  line-height: 0.9;
  color: var(--brown);
  letter-spacing: -0.03em;
}
.case__stat-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
}
.case__quote {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.case__foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: baseline;
}
.case__venue {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.case__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing__grid { grid-template-columns: 1fr; } }

.tier {
  padding: 40px 36px 36px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier--highlight {
  background: var(--brown);
  color: var(--off-white);
  border-color: var(--brown);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -24px rgba(153,42,20,0.5);
}
.tier--highlight:hover { transform: translateY(-12px); }

.tier__ribbon {
  position: absolute;
  top: -12px; left: 36px;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--brown) 20%, transparent);
}

.tier__head { padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); margin-bottom: 24px; }
.tier--highlight .tier__head { border-bottom-color: rgba(255,253,243,0.15); }

.tier__name {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 18px;
}
.tier--highlight .tier__name { color: var(--cream); }

.tier__price-wrap {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.tier__tag {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 4px;
}
.tier--highlight .tier__tag { color: rgba(255,253,243,0.6); }
.tier__price {
  font-family: var(--f-display);
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.tier__per {
  font-size: 14px;
  color: var(--ink-mute);
  margin-left: 2px;
}
.tier--highlight .tier__per { color: rgba(255,253,243,0.6); }

.tier__blurb {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.tier--highlight .tier__blurb { color: rgba(255,253,243,0.8); }

.tier__list {
  list-style: none; padding: 0; margin: 0 0 28px;
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.tier__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.tier--highlight .tier__list li { color: var(--off-white); }
.tier__list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brown);
}
.tier--highlight .tier__list li svg { color: var(--cream); }

.tier--highlight .btn--primary { background: var(--off-white); color: var(--brown); }
.tier--highlight .btn--primary:hover { background: var(--cream); color: var(--brown-ink); }

.pricing__fine {
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 32px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--cream);
  border-radius: 32px;
  margin: 80px auto;
  padding: 100px 64px;
  max-width: 1400px;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 920px) {
  .contact { padding: 60px 28px; margin: 40px auto; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}
.contact__copy .h2 { margin-top: 16px; }

.contact__list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.contact__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
  color: var(--ink);
}
.contact__list li svg { color: var(--brown); }

.contact__alt {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.contact__alt a { color: var(--brown); font-weight: 500; }
.contact__alt a:hover { text-decoration: underline; }

.contact__form, .contact__form-wrap {
  background: var(--off-white);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px;
}
.contact__iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 12px;
  background: var(--off-white);
}
.contact__iframe-fallback {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  padding: 4px 0 8px;
}
.contact__iframe-fallback a { color: var(--brown); font-weight: 500; }
.contact__iframe-fallback a:hover { text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.field__opt { color: var(--ink-mute); font-weight: 400; }
.field input, .field textarea {
  font-family: var(--f-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--off-white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brown) 15%, transparent);
}
.contact__fine {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
}

.contact__success {
  text-align: center;
  padding: 40px 20px;
}
.contact__success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.contact__success-icon svg { width: 24px; height: 24px; }
.contact__success h3 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 8px;
}
.contact__success p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 48px 32px;
  margin-top: 40px;
}
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,253,243,0.12);
}
@media (max-width: 820px) {
  .footer { padding: 60px 24px 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { width: 44px; height: 44px; background: var(--cream); border-radius: 10px; padding: 4px; }
.footer__name {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--off-white);
}
.footer__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,253,243,0.5);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 560px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__heading {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,253,243,0.4);
  margin-bottom: 6px;
}
.footer__col a {
  font-size: 14px;
  color: rgba(255,253,243,0.8);
  transition: color .15s ease;
}
.footer__col a:hover { color: var(--off-white); }

.footer__bar {
  max-width: 1400px;
  margin: 32px auto 0;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,253,243,0.5);
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 280px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  z-index: 1000;
  font-family: var(--f-body);
}
.tweaks__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.tweaks__head strong { font-family: var(--f-display); font-size: 18px; font-weight: 400; }
.tweaks__head span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.tweaks__group { margin-bottom: 14px; }
.tweaks__group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.tweaks__row { display: flex; gap: 6px; }
.tweaks__row--col { flex-direction: column; }
.tweaks__row button {
  flex: 1;
  background: var(--off-white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  text-transform: capitalize;
  transition: all .15s ease;
}
.tweaks__row button:hover { border-color: var(--brown); }
.tweaks__row button.is-on { background: var(--brown); color: var(--off-white); border-color: var(--brown); }

/* Scroll reveal */
.section, .calc, .contact, .footer {
  view-timeline-name: --reveal;
  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
