/*
  Conviq: a realtor's to-do list, getting shorter.
  - Ballpoint navy (#14204a): text, outlines, the dark bands.
  - Highlighter yellow (#ffe94a): buttons and the one phrase per section that matters.
  - Pen blue (#2a4bd7): strike-throughs, ticks, answer bubbles.
  - Margin red (#e5484d): only the notebook margin on the to-do list.
  Type: Archivo (OFL), wide for headings, normal width for reading.
  No JavaScript. The strike-through draws on scroll with CSS where supported, and is simply shown elsewhere.
*/

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #14204a;
  --ink-soft: #46506f;     /* 7.9:1 on white */
  --pen: #2a4bd7;          /* 6.3:1 with white text */
  --yellow: #ffe94a;
  --margin: #e5484d;
  --rule: #d9e1f2;
  --wash: #f2f5fc;
  --night: #0e1735;

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: 20px;
  --max: 1120px;
  --measure: 34em;
  --section: 72px;
  --radius: 18px;
  --pop: 6px;
}

@media (min-width: 760px) {
  :root {
    --gutter: 40px;
    --section: 112px;
    --pop: 8px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, dl, dd, dt, ol {
  margin: 0;
}

h1, h2 {
  font-weight: 800;
  font-stretch: 116%;
  text-wrap: balance;
}

p, dd {
  text-wrap: pretty;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure {
  max-width: var(--measure);
}

/* Highlighter: a slightly uneven yellow swipe behind text, like a real marker */
.hl-mark {
  background: linear-gradient(100deg, transparent 0 0.4%, var(--yellow) 0.4% 99%, transparent 99%) no-repeat;
  background-size: 100% 58%;
  background-position: 0 82%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.06em;
}

.hl-mark-dark {
  color: var(--yellow);
}

/* Buttons: highlighter yellow on a hard navy shadow, so they look pressable */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 28px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 12px;
}

.band-ink .button {
  border-color: var(--yellow);
  box-shadow: 4px 4px 0 var(--yellow);
  background: var(--yellow);
}

.band-ink .button:hover {
  box-shadow: 6px 6px 0 var(--yellow);
}

.band-ink .button:focus-visible {
  outline-color: var(--yellow);
}

.button-sm {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.9375rem;
}

@media (max-width: 479px) {
  .hero .button,
  .final .button {
    width: 100%;
  }

  .button-sm {
    font-size: 0.875rem;
    padding: 8px 12px;
  }
}

/* Intro: "Save time like easyyyy", each y wider than the last, then the page slides in.
   Runs once per load, about 2.5 seconds. The Loom video loads behind it, so it's ready when the intro ends. */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  pointer-events: none;
  animation: intro-out 650ms var(--ease) 2.05s forwards;
}

.intro-line {
  text-align: center;
  color: var(--ink);
  font-size: clamp(3.25rem, 14vw, 9rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.intro-a {
  display: block;
  margin-bottom: 0.18em;
  color: var(--pen);
  font-size: 0.34em;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: intro-in 450ms var(--ease) 100ms forwards;
}

.intro-b {
  display: inline-block;
  padding-inline: 0.06em;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 86% / 0% 52%;
  opacity: 0;
  animation:
    intro-in 400ms var(--ease) 300ms forwards,
    intro-swipe 450ms var(--ease) 1.25s forwards;
}

/* each y lands a beat later and wider, like the word being dragged out */
.y {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.25em) scale(0.6);
  animation: y-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.y:nth-child(1) { animation-delay: 0.55s; font-stretch: 112%; }
.y:nth-child(2) { animation-delay: 0.7s; font-stretch: 117%; }
.y:nth-child(3) { animation-delay: 0.85s; font-stretch: 121%; }
.y:nth-child(4) { animation-delay: 1s; font-stretch: 125%; transform-origin: bottom left; }

@keyframes intro-in {
  from { opacity: 0; transform: translateY(0.3em); }
  to { opacity: 1; transform: none; }
}

@keyframes y-pop {
  to { opacity: 1; transform: none; }
}

@keyframes intro-swipe {
  to { background-size: 100% 52%; }
}

@keyframes intro-out {
  to { transform: translateY(-100%); visibility: hidden; }
}

/* the hero arrives as the intro lifts away */
.hero {
  animation: hero-in 700ms var(--ease) 2.2s both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none;
  }
}

/* Header */

.site-header {
  padding-block: 16px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Top section: a navy band, everything centred, the video hanging over its bottom edge onto the white page. */

.top {
  --overlap: clamp(56px, 13vw, 170px);
}

.hero {
  position: relative;
  z-index: 1;
  padding-top: 28px;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero h1 {
  margin-top: 24px;
  max-width: 16em;
  font-size: 2.25rem;
  font-stretch: 108%;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

/* "For business owners who want to" reads as the label on top, not a second headline */
.kicker {
  display: block;
  margin-bottom: 12px;
  color: #c4cce6;
  font-size: 0.5em;
  font-stretch: 112%;
  letter-spacing: 0;
}

.lead {
  margin-top: 20px;
  max-width: 32em;
  color: #dfe4f5;
  font-size: 1.125rem;
  line-height: 1.5;
}

.lead strong {
  color: var(--paper);
  font-weight: 800;
}

.video-stage {
  width: 100%;
  max-width: 880px;
  margin-top: 32px;
  margin-bottom: calc(-1 * var(--overlap));
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: var(--pop) var(--pop) 0 var(--pen);
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.band-ink a:focus-visible {
  outline-color: var(--yellow);
}

/* The call to action sits right under the video */

.after-video {
  --overlap: clamp(56px, 13vw, 170px);
  padding-top: calc(var(--overlap) + 36px);
}

.after-video-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.after-video .text-lg {
  margin-top: 0;
  max-width: 30em;
  font-weight: 600;
}

.after-video .button {
  margin-top: 24px;
}

.after-video .cta-note {
  max-width: none;
  font-weight: 700;
}

@media (min-width: 760px) {
  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 3.5rem;
    font-stretch: 112%;
  }

  .lead {
    font-size: 1.3125rem;
  }

  .video-stage {
    margin-top: 44px;
  }
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: 4rem;
  }
}

/* Sections */

.section {
  padding-block: var(--section);
}

.section-tight {
  padding-top: 0;
}

.section h2,
.band h2 {
  font-size: 1.875rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 18em;
}

.text-lg {
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.6;
}

@media (min-width: 760px) {
  .section h2,
  .band h2 {
    font-size: 2.5rem;
  }

  .text-lg {
    margin-top: 24px;
    font-size: 1.3125rem;
  }
}


/* Ticks, used in the "with the system" list */

.tick {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
}

.tick svg {
  width: 18px;
  height: 18px;
}

.tick path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The system in three moves */

.steps {
  list-style: none;
  margin-top: 40px;
  padding: 0;
  display: grid;
  gap: 20px;
}

.step {
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}

.step-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pen);
  color: var(--paper);
  font-weight: 800;
  font-stretch: 120%;
  line-height: 1;
}

.step-title {
  margin-top: 16px;
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.2;
}

.step-title + p {
  margin-top: 6px;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .step {
    padding: 32px;
  }
}

/* Same inquiry, two endings */

.section-wash {
  background: var(--wash);
}

.compare {
  margin-top: 40px;
  display: grid;
  gap: 28px;
}

.ending {
  padding: 24px;
  border-radius: var(--radius);
}

.ending-before {
  border: 2px dashed #9aa6c9;
  color: var(--ink-soft);
}

.ending-after {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--pop) var(--pop) 0 var(--ink);
}

.ending-label {
  font-size: 0.875rem;
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ending-after .ending-label {
  color: var(--pen);
}

.timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.timeline li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.45;
}

.time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ending-before .time {
  flex: none;
  width: 5.2em;
}

.ending-after .time {
  color: var(--ink);
  margin-right: 4px;
}

.ending-result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed var(--rule);
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 106%;
  line-height: 1.35;
}

.ending-before .ending-result {
  border-top-color: #c3cbe3;
}

.ending-result s {
  text-decoration-color: var(--margin);
  text-decoration-thickness: 3px;
}

@media (min-width: 900px) {
  .compare {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
  }

  .ending {
    padding: 36px;
    display: flex;
    flex-direction: column;
  }

  .ending-result {
    margin-top: auto;
  }

  .timeline {
    margin-bottom: 28px;
  }
}

/* Questions: plain details/summary, so they open and close with no JavaScript */

.faq-row {
  display: grid;
  gap: 32px;
}

.faqs {
  border-top: 2px solid var(--ink);
}

.faq {
  border-bottom: 2px solid var(--ink);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 1.1875rem;
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.3;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 2px;
  border-radius: 6px;
}

.faq-mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  transition: transform 200ms var(--ease);
}

.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 3px;
  margin: -1.5px 0 0 -7px;
  border-radius: 2px;
  background: var(--ink);
}

.faq-mark::after {
  transform: rotate(90deg);
}

.faq[open] .faq-mark {
  transform: rotate(45deg);
}

.faq > p {
  padding-bottom: 24px;
  max-width: 36em;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .faq-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 64px;
    align-items: start;
  }

  .faq-intro {
    position: sticky;
    top: 32px;
  }

  .faq summary {
    font-size: 1.3125rem;
    padding-block: 24px;
  }
}

/* One line under the main button: why the call is worth five minutes */
.cta-note {
  margin-top: 12px;
  max-width: 26em;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* Privacy and terms pages */
.legal {
  max-width: 44em;
  padding-block: 32px 80px;
}

.legal h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal h2 {
  margin-top: 36px;
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 106%;
}

.legal p,
.legal li {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.65;
}

.legal ul {
  padding-left: 1.2em;
}

.legal-date {
  margin-top: 8px;
  color: var(--ink-soft);
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  font-weight: 700;
}

/* Bands */

.band {
  padding-block: var(--section);
}

.band-ink {
  background: var(--ink);
  color: var(--paper);
}

/* Price as a receipt, guarantee as a stamped note */

.price-row {
  display: grid;
  gap: 48px;
  align-items: start;
}

.receipt {
  position: relative;
  padding: 28px 24px 40px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--paper);
}

/* torn edge */
.receipt::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -12px;
  height: 14px;
  background:
    linear-gradient(135deg, var(--ink) 25%, transparent 25%) 0 0 / 16px 14px repeat-x,
    linear-gradient(225deg, var(--ink) 25%, transparent 25%) 0 0 / 16px 14px repeat-x;
}

.receipt::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 12px;
  z-index: 1;
  background:
    linear-gradient(135deg, var(--paper) 25%, transparent 25%) 0 -2px / 16px 14px repeat-x,
    linear-gradient(225deg, var(--paper) 25%, transparent 25%) 0 -2px / 16px 14px repeat-x;
}

.price {
  margin-top: 20px;
  padding-block: 16px;
  border-block: 2px dashed var(--rule);
  font-size: 3.5rem;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price span {
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0;
}

.receipt-text {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.55;
}

.guarantee {
  position: relative;
  margin-top: 16px;
  padding: 56px 24px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  box-shadow: var(--pop) var(--pop) 0 var(--ink);
  transform: rotate(-1.2deg);
}

.guarantee p {
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 106%;
  line-height: 1.3;
}

.stamp {
  position: absolute;
  top: -30px;
  right: 16px;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 3px solid var(--pen);
  border-radius: 50%;
  background: var(--paper);
  color: var(--pen);
  transform: rotate(12deg);
  font-size: 0.875rem;
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1;
  text-align: center;
}

.stamp span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1.5px solid var(--pen);
  border-radius: 50%;
}

@media (min-width: 760px) {
  .receipt {
    padding: 40px 40px 48px;
  }

  .price {
    font-size: 4.75rem;
  }

  .receipt-text {
    font-size: 1.25rem;
  }

  .guarantee {
    margin-top: 0;
    padding: 56px 40px 40px;
  }

  .guarantee p {
    font-size: 1.75rem;
  }
}

@media (min-width: 960px) {
  .price-row {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

/* Final */

.final-band {
  padding-bottom: calc(var(--section) * 0.9);
}

.final h2 {
  font-size: 2.125rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 15em;
}

.final .button {
  margin-top: 36px;
}

@media (min-width: 760px) {
  .final h2 {
    font-size: 3.25rem;
  }
}

/* Footer */

.site-footer {
  padding-block: 28px;
  background: var(--night);
  color: #c4cce6;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


a.wordmark {
  text-decoration: none;
}
