/* Pretty Bird — shared base
   Display face: Superclarendon via Adobe Fonts when the kit is linked
   (see README), otherwise Besley, an open-source Clarendon revival. */

@font-face {
  font-family: "Besley PB";
  src: url("../fonts/besley.woff2") format("woff2-variations"),
       url("../fonts/besley.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley PB";
  src: url("../fonts/besley-italic.woff2") format("woff2-variations"),
       url("../fonts/besley-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin PB";
  src: url("../fonts/libre-franklin.woff2") format("woff2-variations"),
       url("../fonts/libre-franklin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #f4b80f;
  --yellow-deep: #d9a000;
  --ink: #231f20;          /* the logo's black */
  --navy: #14234b;
  --navy-deep: #0d1834;
  --paper: #ffffff;
  --mist: #eef1f7;         /* cool off-white for quiet panels */
  --display: "superclarendon", "Besley PB", "Rockwell", Georgia, serif;
  --text: "Libre Franklin PB", "Franklin Gothic", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05; }
p { margin: 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--yellow); color: var(--ink); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Browser frame for screenshots ---------- */
.frame {
  position: relative;
  border: 2px solid var(--frame-line, var(--ink));
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.frame__bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-bottom: 2px solid var(--frame-line, var(--ink));
  background: var(--paper);
  font: 500 0.75rem/1 var(--text);
  color: #5d5a5b;
}
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--frame-line, var(--ink)); }
.frame__bar span { margin-left: 10px; }

.phone {
  border: 2px solid var(--frame-line, var(--ink));
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
}

/* ---------- Before / after slider ---------- */
.ba { position: relative; --pos: 50%; aspect-ratio: 1389 / 868; overflow: hidden; background: var(--mist); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: var(--yellow);
  pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: var(--pos);
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
  display: grid; place-items: center; pointer-events: none;
}
.ba__knob svg { width: 22px; height: 22px; }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}
.ba input[type="range"]:focus-visible ~ .ba__knob { outline: 3px solid var(--focus, var(--navy)); outline-offset: 3px; }
.ba__tag {
  position: absolute; top: 12px; padding: 4px 10px;
  font: 700 0.8125rem/1.2 var(--text); background: var(--ink); color: var(--paper);
  pointer-events: none;
}
/* Switched off (data-before="off" on a wrapper): show only the after image. */
[data-before="off"] .ba__before,
[data-before="off"] .ba__line,
[data-before="off"] .ba__knob,
[data-before="off"] .ba__tag,
[data-before="off"] .ba input[type="range"],
[data-before="off"] .ba-caption { display: none; }
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; background: var(--yellow); color: var(--ink); }

/* ---------- Before / after toggle ---------- */
.swap { position: relative; aspect-ratio: 1389 / 868; overflow: hidden; }
.swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s ease; }
.swap[data-show="after"] .swap__before { opacity: 0; }
.swap[data-show="before"] .swap__after { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .swap img { transition: none; } }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; }
.field .opt { font-weight: 400; opacity: .75; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px;
  border: 2px solid var(--field-line, var(--ink));
  border-radius: 6px;
  background: var(--paper);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check span {
  display: inline-block; padding: 9px 16px;
  border: 2px solid var(--field-line, var(--ink)); border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem; background: var(--paper); color: var(--ink);
}
.check input:checked + span { background: var(--yellow); border-color: var(--ink); }
.check input:focus-visible + span { outline: 3px solid var(--focus, var(--navy)); outline-offset: 2px; }
.honey { display: none !important; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.0625rem/1 var(--text);
  padding: 17px 28px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.button:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.button[disabled] { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

.form__status { font-weight: 600; min-height: 1.6em; }
.form__status[data-kind="error"] { color: var(--error, #b3261e); }
.form__done { display: none; }
.form-sent .form { display: none; }
.form-sent .form__done { display: block; }

@media (max-width: 680px) {
  .form { grid-template-columns: 1fr; }
}
