/* ═══════════════════════════════════════════════════════════════
   PIRRA — stylesheet
   ───────────────────────────────────────────────────────────────
   Palette taken directly from the logo artwork.
   Navy carries the structure; terracotta is used sparingly, as a
   line — the same way it works in the mark.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand — sampled from the logo */
  --navy:       #1A2A45;   /* letterform navy — text, buttons, dark bands */
  --navy-deep:  #101C31;   /* hover / deeper ground */
  --terra:      #BE5238;   /* the routed line — accents only, never fills */
  --terra-soft: #D98A72;   /* terracotta on dark grounds */
  --stone:      #A79C94;   /* the terminal dots */
  --paper:      #F7F4EF;   /* page ground */
  --paper-lift: #FCFAF7;   /* cards sitting on the ground */

  --body-txt: #46505F;
  --rule:     #E2DCD3;
  --white:    #FFFFFF;

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Rhythm */
  --gut:  clamp(1.25rem, 4vw, 2rem);
  --band: clamp(4rem, 10vw, 7.5rem);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body-txt);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terra); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ── Type ────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 100;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 144; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.75rem); }
h3 {
  font-family: var(--body);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.34;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.06rem, 1.9vw, 1.24rem); line-height: 1.58; color: var(--body-txt); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* ── Header ──────────────────────────────────────────────── */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 88px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand span {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 100;
  font-weight: 600;
  font-size: 1.78rem;
  letter-spacing: 0.005em;
  color: var(--navy);
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  font-size: 0.93rem; color: var(--navy); text-decoration: none;
  padding: 0.35rem 0; border-bottom: 1.5px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--terra); color: var(--navy); }
.nav .nav-cta {
  background: var(--navy); color: var(--paper);
  padding: 0.58rem 1.15rem; border-radius: 2px; border-bottom: none;
}
.nav .nav-cta:hover { background: var(--navy-deep); color: var(--paper); border-bottom-color: transparent; }

@media (max-width: 640px) {
  .nav { gap: 1rem; }
  .nav a { font-size: 0.86rem; }
  .nav .nav-hide { display: none; }
  .brand span { font-size: 1.42rem; }
  .masthead .wrap { min-height: 74px; }
  .brand img { height: 34px; }
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-block; font-family: var(--body); font-size: 1rem; font-weight: 500;
  padding: 0.9rem 1.7rem; border-radius: 2px;
  border: 1.5px solid var(--navy); background: var(--navy); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.band-dark .btn { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.band-dark .btn:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

/* ── Hero ────────────────────────────────────────────────── */

.hero { padding: clamp(3.2rem, 8vw, 5.4rem) 0 var(--band); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy p.lede { margin: 1.6rem 0 2.2rem; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note {
  font-family: var(--mono); font-size: 0.75rem; color: var(--stone);
  margin-top: 1.9rem; letter-spacing: 0.02em; max-width: 25rem; line-height: 1.75;
}
.sheet-cap {
  font-family: var(--mono); font-size: 0.69rem; letter-spacing: 0.05em;
  color: var(--stone); margin-top: 0.9rem; text-align: right; line-height: 1.5;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { max-width: 30rem; }
  .hero-copy p.lede { max-width: none; }
  .sheet-cap { text-align: left; }
}

/* ── Signature: the quote sheet facsimile ────────────────── */

.sheet {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(26,42,69,0.05), 0 20px 46px -24px rgba(26,42,69,0.35);
  font-family: Arial, Helvetica, sans-serif;  /* deliberate: mimics the real .xlsx */
  font-size: 12px; line-height: 1.42; color: #000;
  overflow: hidden;
}
.sheet-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 11px; background: #F0EDE8;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; color: var(--stone);
}
.sheet-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #D6CFC6; display: inline-block; }
.sheet-chrome span { margin-left: auto; }
.sheet-body { padding: 18px 20px 22px; }

.sheet-row { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; }
.sheet-row .val { font-variant-numeric: tabular-nums; white-space: nowrap; }

.sheet-hd { background: #8EAADB; font-weight: bold; padding: 3px 7px; margin: 14px -7px 8px; }
.sheet-hd:first-child { margin-top: 0; }
.sheet-sub { font-weight: bold; text-decoration: underline; margin: 9px 0 3px; }
.sheet-note { color: #E00; font-style: italic; margin: 7px 0 3px; }
.sheet-tot { background: #FFD966; font-weight: bold; padding: 3px 7px; margin: 10px -7px 0; }
.sheet-meta { color: #333; }
.sheet-rule { height: 1px; background: #E6E6E1; margin: 13px 0; }

.sheet [data-step] { opacity: 0; transform: translateY(7px); }
.sheet.is-live [data-step] {
  animation: sheetIn 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 105ms);
}
@keyframes sheetIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet [data-step] { opacity: 1; transform: none; }
  .sheet.is-live [data-step] { animation: none; }
}

/* ── Bands ───────────────────────────────────────────────── */

.band { padding: var(--band) 0; border-top: 1px solid var(--rule); }
.band-dark { background: var(--navy); color: rgba(247,244,239,0.72); border-top: none; }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark .eyebrow { color: var(--terra-soft); }
.band-dark .eyebrow::after { background: rgba(247,244,239,0.18); }
.band-dark .lede { color: rgba(247,244,239,0.72); }

.band-head { max-width: 40rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.band-head .lede { margin-top: 1.1rem; }

/* ── Route: the four steps, threaded like the mark ───────── */

.route { position: relative; }
.route::before {
  content: '';
  position: absolute; left: 8px; right: calc(25% - 1.65rem - 8px); top: 13px;
  height: 2px; background: var(--terra); opacity: 0.32;
}
.route-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem; }
.rstep { position: relative; padding-top: 2.9rem; }
.rstep::before {
  content: '';
  position: absolute; top: 6px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--stone); box-shadow: 0 0 0 5px var(--paper);
}
.rstep:first-child::before, .rstep:last-child::before { background: var(--terra); }
.rstep .n {
  font-family: var(--mono); font-size: 0.69rem; letter-spacing: 0.12em;
  color: var(--stone); display: block; margin-bottom: 0.5rem;
}
.rstep h3 { margin-bottom: 0.5rem; }
.rstep p { font-size: 0.94rem; }

@media (max-width: 860px) {
  .route::before { display: none; }
  .route-steps { grid-template-columns: 1fr; gap: 0; }
  .rstep {
    padding: 1.4rem 0 1.4rem 2.4rem;
    /* drawn as a background so it can be trimmed at the first and last dots */
    background-image: linear-gradient(rgba(190,82,56,0.3), rgba(190,82,56,0.3));
    background-repeat: no-repeat;
    background-size: 2px 100%;
    background-position: 0 0;
  }
  .rstep::before { top: 1.7rem; left: -6px; width: 14px; height: 14px; box-shadow: 0 0 0 4px var(--paper); }
  .rstep:first-child { padding-top: 0.3rem; }
  .rstep:first-child::before { top: 0.6rem; }
  .rstep:first-child { background-size: 2px calc(100% - 0.9rem); background-position: 0 0.9rem; }
  .rstep:last-child { background-size: 2px 2rem; }
}

/* ── Points ──────────────────────────────────────────────── */

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 2.4rem; }
.point { border-top: 2px solid rgba(217,138,114,0.45); padding-top: 1.3rem; }
.point h3 { margin-bottom: 0.6rem; }
.point p { font-size: 0.95rem; }

@media (max-width: 860px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }

/* ── Video ───────────────────────────────────────────────── */

.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.video-slot img { width: 100%; height: 100%; object-fit: cover; }
.video-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,42,69,0.28), rgba(26,42,69,0.58));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem; text-align: center; padding: 2rem;
}
.video-slot .mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(247,244,239,0.94);
  border: none; display: grid; place-items: center;
  box-shadow: 0 6px 22px -8px rgba(0,0,0,0.5);
}
.video-slot .mark::after {
  content: ''; width: 0; height: 0;
  border-left: 13px solid var(--terra);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  margin-left: 3px;
}
.video-slot p {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(247,244,239,0.9);
}
#demo iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ── Checklist ───────────────────────────────────────────── */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.checklist li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding-bottom: 0.9rem; border-bottom: 1px solid rgba(247,244,239,0.12);
}
.checklist li:last-child { border-bottom: none; }
.checklist .tick {
  font-family: var(--mono); font-size: 0.69rem; color: var(--terra-soft);
  padding-top: 0.32rem; flex: none; letter-spacing: 0.06em;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ── Form ────────────────────────────────────────────────── */

.form { display: grid; gap: 1.15rem; max-width: 34rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.87rem; font-weight: 500; color: var(--navy); }
.field .hint { font-size: 0.8rem; color: var(--stone); font-weight: 400; }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem; color: var(--navy);
  background: var(--paper-lift); border: 1px solid var(--rule);
  border-radius: 2px; padding: 0.75rem 0.85rem; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--terra);
  outline: 2px solid rgba(190,82,56,0.2); outline-offset: 0;
}
.field textarea { min-height: 118px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ── Blog ────────────────────────────────────────────────── */

.posts { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.post {
  display: grid; grid-template-columns: 8rem 1fr; gap: 2rem;
  padding: 1.9rem 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
}
.post:hover h3 { color: var(--terra); }
.post time { font-family: var(--mono); font-size: 0.76rem; color: var(--stone); letter-spacing: 0.05em; }
.post p { font-size: 0.94rem; margin: 0.45rem 0 0; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; gap: 0.5rem; } }

.empty { border: 1px dashed var(--rule); padding: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.empty p { max-width: 32rem; margin-inline: auto; }

/* ── Prose ───────────────────────────────────────────────── */

.prose { max-width: 36rem; }
.prose h2 { font-size: clamp(1.35rem, 2.5vw, 1.72rem); margin: 2.6rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }

/* ── Footer ──────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--rule); padding: 3rem 0 3.5rem; font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.foot a { color: var(--navy); text-decoration: none; }
.foot a:hover { color: var(--terra); }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot .brand img { height: 34px; }
.foot .brand span { font-size: 1.5rem; }
.foot small { color: var(--stone); font-size: 0.81rem; display: block; margin-top: 0.55rem; line-height: 1.6; }

/* ── Thanks ──────────────────────────────────────────────── */

.centred { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: var(--band) 0; }
.centred .eyebrow { justify-content: center; }
.centred .eyebrow::after { display: none; }
.centred .lede { margin: 1.3rem auto 2rem; max-width: 30rem; }

/* ── Anchored sections clear the sticky header ───────────── */
#how, #demo, #contact { scroll-margin-top: 100px; }

/* ── Testimonial: a real message, shown as one ───────────── */

.testimonial {
  display: grid;
  grid-template-columns: minmax(0, 30rem) 1fr;
  gap: clamp(1.6rem, 5vw, 3.5rem);
  align-items: end;
}
.bubble {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px 14px 14px 3px;
  padding: 1.35rem 1.5rem 1.9rem;
  box-shadow: 0 1px 2px rgba(26,42,69,0.05), 0 16px 38px -22px rgba(26,42,69,0.3);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--navy);
}
.bubble p { margin: 0 0 0.55rem; }
.bubble p:last-of-type { margin-bottom: 0; }
.bubble-emoji { font-size: 1.35rem; line-height: 1.2; margin-top: 0.7rem !important; }
.bubble-time {
  position: absolute; right: 1.4rem; bottom: 0.9rem;
  font-family: var(--mono); font-size: 0.7rem; color: var(--stone);
}
.attrib {
  font-size: 0.95rem; color: var(--navy); font-weight: 500;
  padding-bottom: 0.4rem; line-height: 1.55;
}
.attrib span { color: var(--stone); font-weight: 400; }

@media (max-width: 760px) {
  .testimonial { grid-template-columns: 1fr; align-items: start; }
  .attrib { padding-bottom: 0; }
}
