:root {
  --paper: #ffffff;
  --ink: #102d48;
  --text: #1d2a37;
  --muted: #5a6878;
  --panel: #173e64;
  --rule: #dce3ea;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 19px/1.6 var(--sans);
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Left column */
.copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
  padding: 48px clamp(24px, 6vw, 96px);
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  text-decoration: none;
  color: var(--ink);
  font: 600 1.6rem/1 var(--serif);
  letter-spacing: -0.01em;
}
.brand img { width: auto; height: 46px; }

.pitch { align-self: center; max-width: 560px; }

h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font: 600 clamp(2.75rem, 5vw, 4.5rem)/1.02 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede { margin: 0 0 32px; max-width: 34em; color: var(--text); }

.signup { min-height: 64px; max-width: 520px; }
.signup iframe { display: block; max-width: 100%; }
/* Beehiiv collapses the form until it reports its size, which it doesn't always do.
   Keep it visible at the form's natural height; once it does report, its own size wins. */
.signup div { height: auto !important; overflow: visible !important; }
.signup iframe:not([data-bhv-sized]) { height: 64px !important; }
.form-note { margin: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 4px; color: var(--text); font-size: 0.9rem; }
.form-note strong { color: var(--ink); }
.link-button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.link-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* Onboarding and thank-you pages */
.step-note { margin: 0 0 12px; color: #4a7095; font-weight: 600; font-size: 0.9rem; }

.onboard { display: grid; gap: 20px; max-width: 520px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field span { color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #9aa8b6;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: 400 1rem/1.3 var(--sans);
}
.field select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23102d48' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field select:invalid { color: #6b7886; }
.field input::placeholder { color: #8593a1; }
.field input:focus, .field select:focus { outline: 3px solid rgba(16, 45, 72, .25); outline-offset: 0; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.actions button {
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font: 600 1rem/1 var(--sans);
  cursor: pointer;
}
.actions button:hover { background: #1b4470; }
.actions button:focus-visible { outline: 3px solid rgba(16, 45, 72, .35); outline-offset: 3px; }
.actions button:disabled { opacity: .7; cursor: progress; }
.actions a { color: var(--muted); font-size: 0.9rem; }
.form-error { margin: 0; color: #a2271c; font-size: 0.9rem; }
.form-error[hidden] { display: none; }

.tip { max-width: 520px; padding: 18px 22px; border-left: 3px solid #c4a052; background: #f3f6f9; }
.tip h2 { margin: 0 0 6px; color: var(--ink); font: 600 1.35rem/1.2 var(--serif); }
.tip p { margin: 0; }

.fine { margin: 14px 0 0; color: var(--muted); font-size: 0.84rem; }
.fine a { color: inherit; }

.colophon { margin: 0; color: var(--muted); font-size: 0.8rem; }
.colophon a { color: inherit; }

/* Right panel: the phone */
.visual {
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--panel);
  overflow: hidden;
}

.showcase { margin: 0; display: grid; justify-items: center; gap: 36px; width: 100%; }
.showcase picture { display: grid; place-items: center; width: 100%; }

/* Sized by height so the whole phone and caption fit on short laptop screens. */
.phone {
  display: block;
  --ph: max(320px, min(calc(600px * var(--s, 1)), calc(100vh - 224px)));
  --ph: max(320px, min(calc(600px * var(--s, 1)), calc(100svh - 224px)));
  height: var(--ph);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: rotate(-4deg);
  filter: drop-shadow(0 34px 34px rgba(4, 16, 30, .45)) drop-shadow(0 8px 10px rgba(4, 16, 30, .25));
}

.showcase figcaption {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: #fff;
  font: 500 1.6rem/1.2 var(--serif);
  text-align: center;
}
.showcase figcaption::after { content: ""; width: 56px; height: 1.5px; background: #c4a052; }

/* Keep the phone and caption on the same centre line, with room for the tilt. */
@media (min-width: 901px) {
  .phone { transform: rotate(-7deg); }

  /* An oversized diagonal phone bridges the two hero columns. The page clips
     the outer edges while the panel lets the phone extend onto the white. */
  .page--landing .visual {
    position: relative;
    container-type: inline-size;
    overflow: visible;
    padding: 0;
  }
  .page--landing .showcase { position: absolute; inset: 0; }
  .page--landing .showcase picture { position: absolute; inset: 0; }
  .page--landing .phone {
    --ph: min(102svh, 160cqw);
    max-width: none;
    transform: translate(4cqw, 10svh) rotate(-32deg);
  }
  .page--landing .showcase figcaption { display: none; }
}
@media (min-width: 901px) and (max-width: 1180px) { .visual { --s: .82; } }
@media (min-width: 901px) and (max-width: 1399px) {
  .page--landing .phone {
    --ph: min(840px, 102svh, 145cqw);
    transform: translate(8cqw, 8svh) rotate(-27deg);
  }
}
@media (min-width: 1680px) {
  .visual { --s: 1.2; }
  body { font-size: 21px; }
  h1 { font-size: 5.25rem; }
  .pitch { max-width: 640px; }
  .signup { max-width: 560px; }
}

/* Narrow screens: one column, no panel */
@media (max-width: 900px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .copy { gap: 40px; padding: 28px 20px 40px; }
  .brand { font-size: 1.35rem; gap: 12px; }
  .brand img { height: 40px; }
  .visual { --s: .72; padding: 56px 20px 64px; }
  .phone { --ph: calc(640px * var(--s)); }
  .showcase { gap: 40px; }
  .showcase figcaption { font-size: 1.35rem; }
  .page--step .visual { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  body { font-size: 18px; }
  h1 { font-size: 2.6rem; }
}

/* Privacy page */
.prose { max-width: 680px; margin: 0 auto; padding: 48px 20px 80px; }
.prose .brand { margin-bottom: 64px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-bottom: 8px; }
.prose h2 { margin: 40px 0 8px; color: var(--ink); font: 600 1.45rem/1.2 var(--serif); }
.prose p { margin: 0 0 16px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }
