/* Trillium Sites — marketing page.
   Palette: white + slate ink + red-trillium burgundy. Type: Bricolage Grotesque (display), Figtree (text).
   Mobile first; breakpoints at 640, 900 and 1100px. No JavaScript. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --mist: #f3f5f7;
  --line: #dfe3e8;
  --line-strong: #c3cbd4;
  --ui-border: #848f9b; /* 3.3:1 on white, for button outlines (WCAG 1.4.11) */
  --ink: #1b2129;
  --ink-2: #27303b;
  --muted: #4f5a66;
  --burg: #7d1734;
  --burg-deep: #5f1027;
  --burg-soft: #8f2445;
  --blush: #fbeff2;
  --petal: #f0a9bd;
  --on-dark-muted: #c5ccd4;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif;
  --text: "Figtree", "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 10px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); margin: 0; color: inherit; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--burg); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--burg-deep); }
:focus-visible { outline: 3px solid var(--burg); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Shared pieces ---------- */

.kicker {
  margin-bottom: 14px;
  color: var(--burg);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker-light { color: var(--petal); }

h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
}
h3 { font-size: 1.25rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
.section-lead { margin-top: 18px; max-width: 34em; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 2px solid var(--burg); border-radius: var(--radius);
  background: var(--burg); color: #fff;
  font: 650 1.0625rem/1.2 var(--text);
  text-decoration: none; text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--burg-deep); border-color: var(--burg-deep); color: #fff; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn-ghost { background: transparent; border-color: var(--ui-border); color: var(--ink); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; border-color: #fff; color: var(--burg); }
.btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--burg-deep); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; color: #fff; }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 519px) { .actions .btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: none; }
.top .btn { margin-left: auto; white-space: nowrap; }
.label-lg { display: none; }
@media (min-width: 480px) { .label-lg { display: inline; } .label-sm { display: none; } }
@media (min-width: 900px) {
  .nav { display: flex; gap: 28px; margin-left: auto; }
  .nav a { color: var(--ink); font-weight: 550; text-decoration: none; padding: 10px 0; }
  .nav a:hover { color: var(--burg); }
  .top .btn { margin-left: 12px; }
}

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

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: 40px; }
.hero h1 {
  font-size: clamp(2.75rem, 1.55rem + 5.4vw, 5.5rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.028em;
}
.accent { color: var(--burg); }
.lead { margin-top: 24px; max-width: 32em; color: var(--muted); font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem); line-height: 1.55; }
.hero .actions { margin-top: 32px; }
.fine { margin-top: 18px; max-width: 34em; color: var(--muted); font-size: 0.9375rem; }

.showcase { margin: 0; }
.panel {
  position: relative;
  height: 430px;
  margin: 0 calc(-1 * var(--pad));
  overflow: hidden;
  background: var(--burg);
}
.phone {
  position: relative;
  width: 262px; margin: 40px auto 0;
  padding: 9px;
  border-radius: 42px;
  background: #11161c;
  box-shadow: 0 30px 60px -12px rgba(20, 4, 10, 0.55);
}
.phone img { width: 100%; border-radius: 34px; }
.showcase figcaption { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }

@media (min-width: 640px) {
  .panel { margin: 0; border-radius: var(--radius-lg); height: 500px; }
  .phone { width: 290px; margin-top: 52px; }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
  .panel { height: 600px; }
  .phone { width: 300px; margin-top: 64px; }
}

/* ---------- Trades strip ---------- */

.trades { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--mist); }
.trades p {
  padding: clamp(28px, 4vw, 44px) 0;
  max-width: 54em;
  font-family: var(--display);
  font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.012em;
}
.trades-lead { color: var(--burg); font-weight: 700; }

/* ---------- How it works ---------- */

.how { padding: var(--section) 0; }
.how-grid { display: grid; gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  font-family: var(--display); font-size: 2.75rem; font-weight: 750; line-height: 0.9;
  color: var(--burg); letter-spacing: -0.04em;
}
.steps p { margin-top: 8px; color: var(--muted); }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .how-head { position: sticky; top: 108px; }
  .steps li { grid-template-columns: 88px minmax(0, 1fr); padding: 36px 0; }
  .step-n { font-size: 4rem; }
  .steps h3 { font-size: 1.5rem; }
}

/* ---------- Editing ---------- */

.edit { padding: var(--section) 0; background: var(--mist); }
.edit-grid { display: grid; gap: 20px; margin-top: 44px; }
.demo {
  margin: 0; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper);
}
.demo-label {
  margin-bottom: 18px;
  color: var(--ink); font-family: var(--display); font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em;
}
.demo { display: flex; flex-direction: column; }
.chat { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.composer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding: 8px 8px 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); font-size: 0.9375rem;
}
.send { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--burg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / 18px no-repeat; }
.bubble { max-width: 88%; padding: 12px 16px; font-size: 1rem; line-height: 1.5; }
.bubble.you { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--burg); color: #fff; }
.bubble.ai { align-self: flex-start; border-radius: 18px 18px 18px 4px; background: var(--mist); color: var(--ink); }
.form-demo { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field-label { color: var(--muted); font-size: 0.875rem; font-weight: 650; }
.field-row {
  padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 1rem; line-height: 1.4;
}
.field-row.is-new { border: 2px solid var(--burg); background: var(--blush); padding: 9px 13px; }
.fake-btn {
  justify-self: start;
  padding: 10px 18px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 0.9375rem; font-weight: 650;
}
.edit-note { margin-top: 24px; color: var(--muted); }
@media (min-width: 800px) {
  .edit-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .demo { padding: 32px; }
}

/* ---------- Included ---------- */

.included { padding: var(--section) 0; }
.included-grid { display: grid; gap: 40px; }
.list { display: grid; margin: 0; }
.list > div { padding: 24px 0; border-top: 1px solid var(--line); }
.list dt { font-family: var(--display); font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
.list dd { margin: 8px 0 0; color: var(--muted); }
@media (min-width: 700px) {
  .list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1100px) {
  .included-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; }
  .list { column-gap: 56px; }
}

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

.pricing { padding: var(--section) 0; background: var(--ink); color: #fff; }
.pricing .section-lead { color: var(--on-dark-muted); }
.pricing :focus-visible { outline-color: var(--petal); }
.pricing-grid { display: grid; gap: 40px; }
.plans { display: grid; gap: 16px; }
.plan {
  display: grid; align-content: start; gap: 6px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-lg);
  background: var(--ink-2);
}
.plan-main { background: #fff; color: var(--ink); border-color: #fff; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.plan h3 { font-size: 1.375rem; }
.badge {
  padding: 4px 12px; border-radius: 999px;
  background: var(--blush); color: var(--burg);
  font-size: 0.875rem; font-weight: 700; white-space: nowrap;
}
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; }
.amount { font-family: var(--display); font-size: clamp(3.25rem, 2.6rem + 2.4vw, 4.25rem); font-weight: 750; line-height: 1; letter-spacing: -0.04em; }
.per { font-size: 1.125rem; font-weight: 600; }
.billing { color: var(--on-dark-muted); }
.plan-main .billing { color: var(--muted); }
.plan .btn { margin-top: 18px; }
.plan-main .btn:focus-visible { outline-color: var(--burg); }
.pricing-note { margin-top: 18px; max-width: 34em; color: var(--on-dark-muted); font-size: 0.9375rem; }
@media (min-width: 720px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 20px; }
  .plan { padding: 36px 32px; }
  .billing { min-height: 3.2em; }
}
@media (min-width: 1100px) {
  .pricing-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: center; }
}

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

.faq { padding: var(--section) 0; }
.faq-grid { display: grid; gap: 40px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 0;
  cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 1.1875rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--burg), var(--burg)) center / 14px 2px no-repeat,
    linear-gradient(var(--burg), var(--burg)) center / 2px 14px no-repeat;
}
.qa details[open] summary::after { background: linear-gradient(var(--burg), var(--burg)) center / 14px 2px no-repeat; }
.qa summary:hover { color: var(--burg); }
.qa details p { padding: 0 32px 22px 0; color: var(--muted); max-width: 40em; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
}

/* ---------- Closing ---------- */

.closing { padding: clamp(64px, 9vw, 120px) 0; background: var(--burg); color: #fff; }
.closing-inner { display: grid; gap: 32px; }
.closing h2 { max-width: 16ch; font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); }
.closing :focus-visible { outline-color: #fff; }
.closing .btn-outline-light { overflow-wrap: anywhere; }
@media (min-width: 1000px) {
  .closing-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 56px; }
  .closing .actions { justify-content: flex-end; }
}

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

.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand-foot { font-size: 1.0625rem; }
.brand-foot img { width: 24px; height: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-links a { display: inline-block; padding: 10px 0; color: var(--ink); font-weight: 550; text-decoration: none; }
.foot-links a:hover { color: var(--burg); text-decoration: underline; }
.copy { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 800px) { .copy { margin-left: auto; } }

/* ---------- 404 ---------- */

.notfound { padding: clamp(72px, 12vw, 160px) 0; }
.notfound h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); font-weight: 750; line-height: 1; letter-spacing: -0.03em; }
.notfound p { margin-top: 20px; color: var(--muted); font-size: 1.1875rem; }
.notfound .actions { margin-top: 32px; }
