/* ==========================================================================
   Tricycle - landing page. A delrut studio engine.
   One linear page. Warm paper, Newsreader serif, mono-caps labels, indigo.
   ========================================================================== */

:root {
  --paper:      #f5f1ea;   /* warm off-white background        */
  --paper-2:    #ece6da;   /* slightly deeper paper for bands  */
  --ink:        #221f1a;   /* near-black body                  */
  --navy:       #14203f;   /* headings / dark band             */
  --body:       #4a463f;   /* dense body copy                  */
  --muted:      #5c574e;   /* secondary copy                   */
  --label:      #6b665c;   /* mono labels - AA 5.0:1 on paper  */
  --faint:      #6f6a5f;   /* captions - AA 4.8:1 on paper     */
  --accent:     #2f55e0;   /* the single strong accent         */
  --hairline:   rgba(20,32,63,0.12);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  --container: 1160px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Sticky header never covers the scroll target */
#cta { scroll-margin-top: 90px; }

/* ---- Shared type primitives --------------------------------------------- */

.overline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 24px;
}
.overline--accent { color: var(--accent); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 24px;
  text-wrap: balance;
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
  max-width: 680px;
  text-wrap: pretty;
}

.body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
  text-wrap: pretty;
}

.measure { max-width: 760px; }
.measure--wide { max-width: 820px; }
.measure .lead, .measure .body { max-width: 62ch; }

.rule-top {
  border-top: 1px solid var(--hairline);
  padding-top: 48px;
}

.i { font-style: italic; }

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

.btn {
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn--primary {
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 15px 28px;
  border-radius: 11px;
  transition: filter .16s ease, transform .16s ease;
}
.btn--primary:hover { filter: brightness(1.07); }
.btn--primary:active { transform: translateY(1px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  background: rgba(245,241,234,0.9);
  border-bottom: 1px solid rgba(20,32,63,0.09);
}
.header__inner { display: flex; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.header__brand { display: inline-flex; line-height: 0; }
.header__logo { height: 42px; width: auto; display: block; }

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

.hero { position: relative; overflow: hidden; }
.hero__inner {
  padding-top: 76px;
  padding-bottom: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__col { max-width: 620px; }

/* Hero signature: the real Content Tree admin - the product's core idea */
.hero__art { position: relative; justify-self: end; width: 100%; max-width: 472px; }

.hero__art-tag {
  display: block;
  margin-top: 14px;
  padding-left: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__art { animation: tcRise .9s cubic-bezier(.2,.7,.2,1) both .12s; }
}
@keyframes tcRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 28px;
  max-width: 1040px;
  text-wrap: balance;
}
.hero__lede {
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ---- Frame (hero screenshot chrome) ------------------------------------- */

.frame {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(20,32,63,0.4);
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(20,32,63,0.08);
  background: #fafafa;
}
.frame__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #e0ddd6; display: block; }
.frame__tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.frame img { width: 100%; height: auto; display: block; }

/* ---- Sections (text blocks) --------------------------------------------- */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter);
}
.section--narrow { padding: 96px var(--gutter) 16px; }

/* Two-column block: text beside a framed product screenshot */
.split { display: grid; grid-template-columns: 1fr 1.08fr; gap: 52px; align-items: center; }
.frame-fig { margin: 0; }

.narrative { padding-top: 32px; padding-bottom: 96px; }
.narrative__block { margin-top: 56px; }

/* The signature line that closes the objection-handling */
.builder-turn {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 26px 0 0;
}
.triad { margin: 22px 0 0; }
.triad-rule { display: block; width: 48px; height: 2px; background: var(--accent); margin: 0 0 18px; }
.triad-line {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

/* ---- What you can build (real client builds) ---------------------------- */

.builds { background: var(--paper-2); padding: 100px var(--gutter); }
.builds__head { max-width: 680px; margin-bottom: 48px; }
.builds__intro { font-size: 18px; line-height: 1.55; color: var(--body); margin: 0; max-width: 62ch; }

.builds__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 44px -32px rgba(20,32,63,0.45);
  display: flex;
  flex-direction: column;
}
.card__shot {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(20,32,63,0.10);
  background: #f0ebe2;
}
.card__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.card__body { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card__title {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.card__since {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
  white-space: nowrap;
}
.builds__closer {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--navy);
  margin: 48px 0 0;
  max-width: 680px;
  line-height: 1.3;
}

/* ---- How a project goes ------------------------------------------------- */

.process { padding: 110px 0; }
.process__head { max-width: 680px; margin-bottom: 64px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step { border-top: 2px solid rgba(20,32,63,0.16); padding-top: 30px; }
.step--first { border-top-color: var(--accent); }
.step__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 5vw, 76px);
  line-height: 0.9;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.step h4 { margin: 0 0 12px; font-size: 23px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.step p  { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* Small unlabeled supporting visuals - reference designs, never client work */
.demos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.demo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: #fff;
  opacity: 0.6;
  transition: opacity .2s ease;
}
.demo:hover { opacity: 1; }
.demo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.underhood { margin-top: 60px; }
.underhood__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.underhood__more { margin: 20px 0 0; }
.underhood__more a {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(47,85,224,0.35);
  padding-bottom: 1px;
  transition: border-color .16s ease;
}
.underhood__more a:hover { border-bottom-color: var(--accent); }

/* ---- Proven ------------------------------------------------------------- */

.proven { background: var(--navy); color: #eef1f7; padding: 92px var(--gutter); }
.proven__inner { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.proven__copy { max-width: 640px; }
.proven__year {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(78px, 12vw, 152px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}
.proven__since {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5b86ff;
  margin-bottom: 12px;
}
.proven__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff;
  text-wrap: balance;
}
.proven__p { font-size: 19px; line-height: 1.6; color: #b6bdcf; margin: 0 0 26px; max-width: 60ch; text-wrap: pretty; }
.proven__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #cfd6e8;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ---- CTA ---------------------------------------------------------------- */

.cta { background: var(--paper-2); padding: 100px var(--gutter); }
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 12px;
  text-align: center;
  text-wrap: balance;
}
.cta__sub { font-size: 20px; color: var(--muted); margin: 0 0 44px; text-align: center; }
.cta__note { font-size: 14.5px; line-height: 1.6; color: var(--label); margin: 20px 4px 0; text-align: center; }
.cta__note a { color: var(--accent); }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(20,32,63,0.10);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 40px 80px -52px rgba(20,32,63,0.55);
}
.form[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(20,32,63,0.16);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,85,224,0.14);
}
.form__submit { align-self: flex-start; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180,35,24,0.12);
}
.field__error { font-size: 13px; line-height: 1.4; color: #b42318; }
.field__error[hidden] { display: none; }
.form__status { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 2px 0 0; }
.form__status[hidden] { display: none; }
.form__status a { color: var(--accent); }

/* Spam honeypot - hidden from people, present for bots */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Success state (replaces the form once the message is sent) */
.form-success {
  background: #fff;
  border: 1px solid rgba(20,32,63,0.10);
  border-radius: 18px;
  padding: 44px 36px;
  box-shadow: 0 40px 80px -52px rgba(20,32,63,0.55);
  text-align: center;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__mark { display: block; margin: 0 auto 18px; }
.form-success__mark circle { fill: var(--accent); }
.form-success__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 10px;
}
.form-success__p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto;
  max-width: 46ch;
}

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

.site-footer { background: var(--paper); border-top: 1px solid rgba(20,32,63,0.10); padding: 48px var(--gutter); }
.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__logo { height: 28px; width: auto; display: block; margin-bottom: 16px; }
.footer__inner .overline { margin: 0; font-size: 11px; letter-spacing: 0.16em; }
.footer__right { text-align: right; }
.footer__email {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}
.footer__email:hover { text-decoration: underline; }
.footer__meta { color: var(--faint); margin-bottom: 6px !important; }
.footer__meta a { color: inherit; text-decoration: none; transition: color .16s ease; }
.footer__meta a:hover { color: var(--accent); }
.footer__tagline { font-size: 13px; color: var(--label); font-style: italic; margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .hero__col { max-width: 640px; }
  .hero__art { justify-self: start; max-width: 460px; }

  .split { grid-template-columns: 1fr; gap: 32px; }

  .builds__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 40px; }

  .proven__inner { grid-template-columns: 1fr; gap: 24px; }
  .proven__year { align-items: flex-start; line-height: 0.9; }

  .process { padding: 92px 0; }
  .process__head { margin-bottom: 48px; }
  .section--narrow { padding-top: 72px; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }

  .header__logo { height: 38px; }

  .hero__inner { padding-top: 48px; padding-bottom: 52px; gap: 34px; }
  .hero__art { max-width: none; }
  .hero__actions .btn--primary { width: 100%; }

  .section { padding-top: 56px; padding-bottom: 56px; }
  .section--narrow { padding-top: 64px; padding-bottom: 8px; }
  .narrative { padding-bottom: 72px; }
  .narrative__block { margin-top: 44px; }

  .builds { padding: 72px var(--gutter); }
  .builds__grid { grid-template-columns: 1fr; gap: 20px; }
  .builds__head { margin-bottom: 36px; }

  .proven { padding: 64px var(--gutter); }

  .process { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-top: 24px; padding-bottom: 24px; }
  .step__num { margin-bottom: 16px; }
  .demos { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .underhood { margin-top: 44px; }

  .cta { padding: 72px var(--gutter); }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__right { text-align: left; }
}
