/* HalfNav sign-up and log-in: the "Mingle" look of halfnav.com.
   White page, grey lined panel, pink accent, Outfit, pill buttons. */
:root {
  --bg: #ffffff;
  --grey: #f0f0f0;
  --grey-2: #e6e3e4;
  --ink: #121111;
  --body: #5f6363;
  --faint: #7b7f7f;
  --line: rgba(18, 17, 17, 0.08);
  --line-strong: rgba(18, 17, 17, 0.18);
  --pink: #ff1979;
  --pink-dark: #d1005a;
  --pink-soft: #ffc2db;
  --pink-tint: #ffe9f2;
  --yellow: #ffe49a;
  --lavender: #e3daff;
  --mint: #a8ecd9;
  --ok: #1e6b43;
  --ok-bg: #dff3e6;
  --bad: #b42318;
  --bad-bg: #fbe4e1;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; overflow-x: clip; }
a { color: var(--ink); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--pink-soft); }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; height: 84px; }
.brand { display: inline-flex; }
.brand img { display: block; width: 40px; height: 40px; }
.topbar .link { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 15px; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.topbar .link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.topbar .link .muted { color: var(--body); }
.topbar .link:hover .muted { color: rgba(255, 255, 255, 0.7); }

/* Panel and layout */
.panel { position: relative; overflow: hidden; margin: 0 12px 12px; border-radius: 30px; background: var(--grey); }
.panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 6 - 1px), currentColor calc(100% / 6 - 1px), currentColor calc(100% / 6)); }
.layout { position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 30px 72px; display: grid; gap: 48px; grid-template-columns: 1fr minmax(0, 460px); align-items: center; }
.layout > * { min-width: 0; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; padding: 36px 18px 40px; gap: 28px; } .pitch { order: 2; } }

/* Pitch column */
.tag { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 100px; background: #fff; font-size: 14px; line-height: 1.2; }
.tag::before, .tag::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pitch h1 { margin-top: 22px; font-size: clamp(34px, 4.4vw, 58px); font-weight: 600; line-height: 1.1; }
.pitch h1 em { font-style: normal; color: var(--pink); }
.lede { margin: 18px 0 0; max-width: 520px; font-size: 18px; line-height: 1.7; color: var(--body); }
.hl { display: inline-block; padding: 0 8px; border-radius: 8px; color: var(--ink); }
.hl-pk { background: var(--pink-soft); } .hl-ye { background: var(--yellow); } .hl-lv { background: var(--lavender); }
.perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; font-size: 16px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff1979' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.rates { margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.rate { border-radius: 18px; padding: 14px 14px 12px; }
.rate b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rate span { display: block; font-size: 13px; line-height: 1.3; color: rgba(18, 17, 17, 0.7); }
.rate-pk { background: var(--pink-soft); } .rate-ye { background: var(--yellow); } .rate-lv { background: var(--lavender); } .rate-mt { background: var(--mint); }
@media (max-width: 520px) { .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { margin-top: 30px; max-width: 520px; padding: 20px 22px; border-radius: 22px; background: #fff; font-size: 16px; }
.quote .url { display: block; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--grey); font: 12.5px var(--mono); color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Form card */
.card { position: relative; width: 100%; background: #fff; border-radius: 28px; padding: 32px 30px 28px; box-shadow: 0 30px 60px -24px rgba(18, 17, 17, 0.22); }
@media (max-width: 480px) { .card { padding: 24px 18px 22px; border-radius: 24px; } }
.card h2 { font-size: 28px; font-weight: 600; line-height: 1.15; }
.card h2 em { font-style: normal; color: var(--pink); }
.card .sub { margin: 8px 0 22px; color: var(--body); font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; padding: 0 22px; border-radius: 100px; border: 1px solid transparent;
  font: 500 16px var(--font); cursor: pointer; text-decoration: none; transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-primary { justify-content: space-between; padding: 0 6px 0 24px; background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5); }
.btn-primary .a { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; }
.btn-primary .a svg { width: 16px; height: 16px; }
.btn-primary:disabled { justify-content: center; padding: 0 22px; }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-google:hover { border-color: var(--ink); }

/* Fields */
.field { display: block; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.field input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid transparent; background: var(--grey); color: var(--ink); font: 16px var(--font); transition: border-color 0.2s, background 0.2s; }
.field input::placeholder { color: var(--faint); }
.field input:focus { border-color: var(--ink); background: #fff; outline: none; }
.row { display: flex; justify-content: flex-end; margin: -4px 0 18px; font-size: 14px; }
.row a { color: var(--body); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.row a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Messages */
.msg { display: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.msg.show { display: block; }
.msg.error { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }

.legal { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--faint); text-align: center; }
.legal a, .foot a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot { margin: 18px 0 0; font-size: 15px; color: var(--body); text-align: center; }

@media (max-width: 640px) { .topbar { padding: 0 16px; height: 72px; } .topbar .link { height: 42px; padding: 0 16px; font-size: 14px; } .topbar .link .muted { display: none; } .panel { margin: 0 8px 8px; border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- smooth transitions */
@view-transition { navigation: auto; }
@keyframes authIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.layout { animation: authIn 0.4s var(--ease) both; }
body { transition: opacity 0.22s var(--ease); }
body.leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .layout { animation: none; } body { transition: none; } }

/* ---------- HalfNav wordmark next to the mark */
.brand { align-items: center; gap: 10px; text-decoration: none; font-size: 23px; letter-spacing: -0.03em; color: var(--ink); }
.brand b { font-weight: 700; }
.rate s { color: rgba(18, 17, 17, 0.5); font-weight: 500; font-size: 16px; margin-right: 4px; }
.field .hint { display: block; margin: 6px 2px 0; font-size: 13px; font-weight: 400; color: var(--faint); }
.field input.bad { border-color: var(--bad); background: #fff; }
