:root {
  color-scheme: dark;
  --ink: #0f0e0c;
  --panel: #1b1916;
  --rule: #3a352d;
  --text: #f2ebdd;
  --muted: #bdb4a4;
  --warm: #ffb347;
  --cold: #8ed4ec;
  --mono: ui-monospace, "JetBrains Mono", "Liberation Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Iowan Old Style", "Noto Serif", "Times New Roman", serif;
  --callbar: 4.5rem;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0 auto;
  max-width: 46rem;
  padding-inline: max(1.125rem, env(safe-area-inset-left)) max(1.125rem, env(safe-area-inset-right));
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
}

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

a { color: var(--warm); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cold);
  outline-offset: 3px;
}

/* Name and phone */
.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .25rem 1rem;
  padding-block: .75rem;
  background: #fff;
  /* White band across the full screen width: the logo's colours need a white ground */
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
  font-family: var(--mono);
}

.mark { display: block; width: 13rem; }

.top-phone { color: var(--ink); font-weight: 700; text-decoration: none; }

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

@media (min-width: 45rem) {
  .mark { width: 16rem; }
}

/* First screen */
.hero { padding-block: 1.25rem 1.5rem; }

h1 {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.4;
}

.hook {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: clamp(1.625rem, 6.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.hook span { display: block; }
.cold { color: var(--cold); }
.warm { color: var(--warm); }

.price p { margin: 0; }

.price-figure {
  color: var(--warm);
  font-family: var(--mono);
  font-size: clamp(4.25rem, 21vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
}

.price-terms {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
}

.price-pitch { margin-top: .5rem !important; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.25rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: .5rem 1.125rem;
  border: 2px solid var(--warm);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.btn-main { flex: 1 1 16rem; background: var(--warm); color: var(--ink); }
.btn-alt { flex: 0 1 auto; background: transparent; color: var(--warm); }

.btn-main:hover { background: #ffc873; border-color: #ffc873; }
.btn-alt:hover { background: var(--panel); }

.note {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.45;
}

/* Sections */
section:not(.hero) {
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 .75rem;
  color: var(--warm);
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1.3;
}

h3 {
  margin: 1.25rem 0 .25rem;
  font-family: var(--mono);
  font-size: 1rem;
}

section p { margin-block: 0 .875rem; }
section p:last-child { margin-bottom: 0; }

figure { margin: 0 0 1rem; }

figcaption {
  margin-top: .625rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.who {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}

.oftec { flex: none; width: 5.25rem; }

.rate {
  margin-bottom: 0 !important;
  font-family: var(--mono);
  font-weight: 700;
}

.rate { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

.rate b {
  color: var(--warm);
  font-size: 1.75rem;
}

.rate-label {
  margin-bottom: 0 !important;
  font-family: var(--mono);
  font-size: 1rem;
}

.rate + .rate-label { margin-top: .75rem; }

.rate + .rate-terms { margin-top: .5rem; }

.rate-terms {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1rem;
}

.plain { margin: 0; padding: 0; list-style: none; }
.plain li + li { margin-top: .5rem; }

.ticks {
  margin: -.375rem 0 1rem;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.5rem;
}

.ticks li + li { margin-top: .25rem; }

.ticks li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--warm);
  font-family: var(--mono);
  font-weight: 700;
}

blockquote { margin: 0 0 1.25rem; }
blockquote:last-child { margin-bottom: 0; }
blockquote p { margin-bottom: .25rem; font-style: italic; }

cite {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .9375rem;
  font-style: normal;
}

.places { font-size: 1.0625rem; line-height: 1.55; }

.close h2 { font-size: 1.5rem; }

/* Footer */
.foot {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.5;
}

.foot p { margin: 0 0 .5rem; }

.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--warm);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Call bar, phones only */
.callbar { display: none; }

@media (max-width: 44rem) {
  body { padding-bottom: calc(var(--callbar) + env(safe-area-inset-bottom)); }

  /* The call bar is always on screen, so the first screen doesn't need a second copy */
  .hero .actions,
  .top-phone { display: none; }

  .callbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: flex;
    gap: .5rem;
    padding: .5rem max(.75rem, env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    background: var(--ink);
    border-top: 1px solid var(--rule);
  }

  .callbar .btn-main { flex: 1 1 auto; }
  .callbar .btn-alt { flex: none; }
  .callbar .btn { padding-inline: .75rem; }
}

/* Cookie choice */
.cookies {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .375rem 1rem;
  padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom));
  background: var(--panel);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .875rem;
  line-height: 1.35;
}

.cookies p { margin: 0; }

.cookies-actions { display: flex; gap: .5rem; }

.cookies button {
  min-height: 2.5rem;
  padding: .25rem .875rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 44rem) {
  .cookies { bottom: calc(var(--callbar) + env(safe-area-inset-bottom)); padding-bottom: .625rem; }
}

/* Privacy page */
.page { padding-block: 1.5rem 2.5rem; }
.page h1 { color: var(--warm); font-size: 1.5rem; font-weight: 700; }
.page h2 { margin-top: 1.5rem; font-size: 1.0625rem; }
.page p { margin-block: 0 .875rem; }
