/* Dana Ryan · bridge page. Palette and type from the persona (section 6). */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/courier-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/courier-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --plum: #1E1630;
  --ivory: #F8F1E7;
  --pink: #FF8FAB;
  --cream: #FBF5EC;
  --deep-pink: #B4235C;
  --grid: rgba(248, 241, 231, 0.10);
  --line: rgba(30, 22, 48, 0.12);
  --line-strong: rgba(30, 22, 48, 0.22);
  --muted: rgba(30, 22, 48, 0.72);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Top: plum with the notebook grid ---------- */

.top {
  background-color: var(--plum);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  color: var(--ivory);
  padding: 28px 16px 88px;
  text-align: center;
}

.wrap { max-width: 560px; margin: 0 auto; }

.who { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid var(--ivory);
  box-shadow: 0 0 0 5px rgba(255, 143, 171, 0.35);
  overflow: hidden; position: relative;
  background: #2C2245;
  display: grid; place-items: center;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.avatar .monogram {
  font-family: var(--serif); font-weight: 700; font-size: 32px;
  letter-spacing: 0.02em; color: var(--ivory);
}
.avatar.has-photo .monogram { display: none; }

.name { font-size: 20px; font-weight: 700; line-height: 1.1; margin: 4px 0 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid rgba(248, 241, 231, 0.55);
  border-radius: 999px; padding: 4px 11px 4px 9px;
}
.badge .icon { width: 15px; height: 15px; opacity: 0.8; }

.handle { font-family: var(--mono); font-size: 14px; opacity: 0.75; margin: 0; }

.hook { margin-top: 26px; }

.hook-math {
  display: block; width: fit-content; margin: 0 auto 14px;
  font-family: var(--mono); font-weight: 700; font-size: 24px; letter-spacing: 0;
  background: var(--cream); color: var(--deep-pink);
  border-radius: 10px; padding: 6px 14px;
}

h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 7.6vw, 40px);
  line-height: 1.12; letter-spacing: -0.012em;
  margin: 0; text-wrap: balance;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 72;
}
h1 em { font-style: normal; color: var(--pink); }

.sub {
  margin: 14px auto 0; max-width: 30em;
  font-size: 17px; color: rgba(248, 241, 231, 0.86);
}

.countdown {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 8px 14px; border-radius: 10px;
  background: var(--pink); color: var(--plum);
  font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.countdown[hidden] { display: none; }

/* ---------- Main column ---------- */

main { padding: 0 16px 40px; }
main .wrap { margin-top: -64px; }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(30, 22, 48, 0.45), 0 2px 6px rgba(30, 22, 48, 0.08);
  padding: 22px 18px 20px;
}

.bridge {
  background: #fff8ee;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 14px 16px; margin: 0 0 18px;
}
.bridge[hidden] { display: none; }
.bridge .math {
  font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--deep-pink);
  margin: 0 0 4px;
}
.bridge p { margin: 0; font-size: 16px; }

.card-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.card-head .icon { width: 22px; height: 22px; color: var(--deep-pink); }
h2 { font-size: 23px; font-weight: 700; line-height: 1.2; margin: 0; }
.card-sub { margin: 0 0 18px; color: var(--muted); font-size: 16px; }

fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend {
  font-weight: 700; font-size: 17px; padding: 0; margin: 0 0 8px;
  display: flex; align-items: center; gap: 8px;
}
legend .icon { color: var(--deep-pink); }

.date-row { display: grid; grid-template-columns: 1.45fr 0.85fr 1fr; gap: 8px; }

.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 52px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: var(--plum);
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  padding: 0 28px 0 11px;
}
.select select:focus-visible { outline: 3px solid var(--pink); outline-offset: 1px; border-color: var(--plum); }
.select .icon {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: 0.7; pointer-events: none;
}
.select select.invalid { border-color: var(--deep-pink); }

.add-him {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px 0; margin: 0 0 14px;
  font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--deep-pink);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  text-align: left; line-height: 1.3;
}
.add-him[hidden] { display: none; }
#him-fields[hidden] { display: none; }
.optional { font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--muted); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; border-radius: 14px;
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  text-decoration: none; cursor: pointer; border: 0;
  padding: 12px 18px; text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.btn-calc { background: var(--plum); color: var(--ivory); }
.btn-calc:active { transform: translateY(1px); }

.error {
  color: var(--deep-pink); font-family: var(--mono); font-weight: 700;
  font-size: 15px; margin: 10px 0 0; min-height: 0;
}
.error:empty { display: none; }

.safe {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 14px 0 0; font-family: var(--mono); font-size: 14px; color: var(--muted);
}
.safe .icon { width: 16px; height: 16px; margin-top: 2px; }

/* ---------- Results ---------- */

#results { margin-top: 22px; display: grid; gap: 14px; }
#results:empty { display: none; }

.result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  scroll-margin-top: 16px;
}
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; margin: 0;
}
.result-label .icon { color: var(--deep-pink); }
.result-number {
  font-family: var(--serif); font-weight: 700; font-size: 52px; line-height: 1;
  color: var(--deep-pink); font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 72;
}
.chip {
  display: inline-block; margin-top: 6px;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--pink); color: var(--plum);
  border-radius: 999px; padding: 3px 10px;
}

.steps {
  margin: 12px 0 0; padding: 0; list-style: none;
  font-family: var(--mono); font-weight: 700; font-size: 16px; line-height: 1.35;
  border-top: 1px solid var(--line);
}
.steps li {
  display: grid; grid-template-columns: 4.6em 1fr; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.steps .k {
  font-weight: 400; font-size: 13px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); padding-top: 2px;
}
.steps .v { overflow-wrap: anywhere; }
.steps .seg { display: block; }
.steps .seg + .seg { margin-top: 2px; }
.steps li.total .v { color: var(--deep-pink); }

.note {
  margin: 10px 0 0; font-family: var(--mono); font-size: 14px; color: var(--muted);
}
.meaning { margin: 12px 0 0; font-size: 17px; }

/* ---------- Call to action ---------- */

.cta { margin-top: 26px; text-align: center; }
.cta h2 { font-size: 24px; }
.cta-lead { margin: 6px 0 16px; font-size: 17px; }

.btn-main { background: var(--pink); color: var(--plum); box-shadow: 0 10px 24px -12px rgba(180, 35, 92, 0.75); }
.btn-main .icon { width: 20px; height: 20px; stroke-width: 2; }
.btn-main[hidden], .btn-amazon[hidden] { display: none; }

.price-line { margin: 10px 4px 0; font-size: 16px; font-weight: 600; color: var(--plum); }
.price-line[hidden] { display: none; }

.disclosure {
  margin: 10px 4px 0; font-family: var(--mono); font-size: 14px; line-height: 1.4;
  color: var(--plum);
}
.disclosure[hidden] { display: none; }

.soon {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px;
  margin: 0;
}
.soon[hidden] { display: none; }

.next {
  text-align: left; margin: 18px 0 0; padding: 14px 16px;
  border-radius: 14px; background: #fff8ee; border: 1px solid var(--line);
}
.next[hidden] { display: none; }
.next h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.next ul { margin: 0; padding: 0; list-style: none; }
.next li { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; padding: 4px 0; }
.next li .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--deep-pink); }

.backup { margin-top: 18px; }
.backup[hidden] { display: none; }
.btn-amazon {
  background: transparent; color: var(--plum);
  border: 1.5px solid var(--plum); min-height: 52px; font-size: 17px;
}

/* ---------- Footer ---------- */

footer {
  background: var(--plum); color: var(--ivory);
  padding: 26px 16px 34px; text-align: center;
  font-family: var(--mono); font-size: 14px; line-height: 1.5;
}
footer p { margin: 0 0 8px; }
footer .ai { font-family: var(--serif); font-weight: 700; font-size: 16px; }
footer nav { display: flex; justify-content: center; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
footer a { color: var(--pink); text-underline-offset: 3px; }
footer .fine { opacity: 0.78; }

/* ---------- Privacy page ---------- */

.doc { padding: 28px 16px 48px; }
.doc .wrap { max-width: 680px; margin-top: 0; }
.doc h1 { color: var(--plum); font-size: clamp(30px, 7vw, 40px); text-align: left; }
.doc .updated { font-family: var(--mono); font-size: 14px; color: var(--muted); margin: 8px 0 22px; }
.doc h2 { font-size: 21px; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--deep-pink); text-underline-offset: 3px; }
.top.slim { padding: 18px 16px; text-align: left; }
.top.slim .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 680px; }
.top.slim a { color: var(--ivory); text-decoration: none; font-weight: 700; font-size: 18px; }

@media (min-width: 720px) {
  .top { padding: 40px 24px 104px; }
  main .wrap { margin-top: -76px; }
  .card { padding: 30px 30px 26px; }
  .result { padding: 18px 20px 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
