/* housedeals.net — tokens from the design handoff. Square corners, no shadows. */
:root {
  --bg: #ffffff;
  --neutral-100: #f8f4f4;
  --neutral-200: #eae7e7;
  --neutral-300: #d7d3d3;
  --neutral-400: #bab6b6;
  --neutral-700: #605d5d;
  --neutral-800: #444141;
  --ink: #201e1d;
  --divider: rgba(32, 30, 29, .4);
  --accent: #1f5eff;
  --accent-600: #1a4fe0;
  --accent-100: #eef3ff;
  --accent-200: #dce6ff;
  --gutter: clamp(20px, 4vw, 48px);
  --font: "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3 { font-weight: 800; margin: 0; }
p { margin: 0; }
button, input { font-family: var(--font); border-radius: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(31, 94, 255, .3); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wordmark { font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.wordmark .net { color: var(--accent); }
.wordmark-30 { font-size: 30px; }
.wordmark-28 { font-size: 28px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.err { font-size: 14px; font-weight: 600; color: var(--accent); }

/* ── Landing (2b) ─────────────────────────────────────────── */
.landing { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.landing-header { display: flex; justify-content: center; padding: 28px; }
.hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 24px clamp(20px, 9vw, 120px); text-align: center;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag { font-size: 13px; font-weight: 600; line-height: 1.55; padding: 6px 12px; border: 2px solid var(--ink); }
.hero h1 {
  font-size: clamp(44px, 9vw, 96px); line-height: .95; letter-spacing: -.04em; text-wrap: balance;
}
.hero-sub { font-size: 20px; color: var(--neutral-800); max-width: 640px; }
.email-bar {
  display: flex; width: 600px; max-width: 100%;
  border: 2px solid var(--ink); background: #fff; text-align: left;
}
.email-bar:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.email-bar input[type="email"] {
  flex: 1; min-width: 0; font-size: 20px; padding: 18px; border: 0; background: #fff; color: var(--ink); outline: none;
}
.email-bar button {
  font-size: 17px; font-weight: 600; padding: 18px 26px; border: 0; text-align: left;
  background: var(--accent); color: #fff;
}
.email-bar button:hover { background: var(--accent-600); }
.email-bar button:disabled { opacity: .6; cursor: default; }
.hero .err { margin-top: -12px; }
.micro { font-size: 14px; color: var(--neutral-700); }
.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--divider); text-align: center;
}
.benefits > div { padding: 22px; font-size: 16px; font-weight: 800; }
.benefits > div + div { border-left: 2px solid var(--divider); }

/* ── Inner pages ──────────────────────────────────────────── */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 84px; padding: 0 var(--gutter);
  border-bottom: 2px solid var(--divider);
  position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.lockup { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.app-footer {
  border-top: 2px solid var(--divider); padding: 24px var(--gutter);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--neutral-700);
}

.btn { font-size: 16px; font-weight: 600; padding: 15px 20px; border: 2px solid var(--ink); text-align: left; color: var(--ink); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--neutral-200); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; padding-inline: 22px; }
.btn-primary:hover { background: var(--accent-600); border-color: var(--accent-600); }
.btn-wide { min-width: 240px; }
.btn:disabled { opacity: .6; cursor: default; }

/* ── Buy box ──────────────────────────────────────────────── */
.signup { flex: 1; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
.side { background: var(--accent); color: #fff; padding: 40px 32px; display: flex; flex-direction: column; gap: 28px; }
.side-eyebrow { color: var(--accent-200); }
.step-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid rgba(255, 255, 255, .4); }
.step-nav li {
  padding: 16px 0; border-bottom: 2px solid rgba(255, 255, 255, .25);
  display: flex; gap: 14px; align-items: baseline; opacity: .55;
}
.step-nav li.is-done, .step-nav li.is-current { opacity: 1; }
.step-nav .n { font-weight: 800; font-size: 14px; width: 24px; }
.step-nav .label { font-size: 18px; }
.step-nav li.is-current .label { font-weight: 800; }
.step-nav .mark { margin-left: auto; font-weight: 800; }
.side-foot { margin-top: auto; font-size: 14px; line-height: 1.5; color: var(--accent-100); }

.signup-main {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 64px);
  display: flex; flex-direction: column; gap: 28px; max-width: 860px; min-width: 0;
}
.progress { height: 6px; background: var(--neutral-300); }
.progress > div { height: 6px; background: var(--accent); width: 0; }
.step-body { display: flex; flex-direction: column; gap: 28px; }
.step-body h1, .done-plain h1 { font-size: clamp(36px, 4vw, 52px); margin-top: 6px; letter-spacing: -.03em; line-height: 1.02; }
.step-sub { margin-top: 10px; font-size: 16px; color: var(--neutral-800); }
.step-sub b { overflow-wrap: anywhere; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field input { font-size: 16px; padding: 13px; border: 2px solid var(--ink); background: #fff; color: var(--ink); width: 100%; }
.field-narrow { max-width: 420px; margin-top: 6px; }

.group { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.group-label { font-size: 15px; font-weight: 800; padding: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  white-space: nowrap; font-size: 14px; font-weight: 600; padding: 9px 14px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile {
  padding: 24px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px; min-height: 170px; text-align: left;
}
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-label { font-size: 26px; font-weight: 800; }
.tile-mark {
  width: 24px; height: 24px; border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.tile-sub { font-size: 15px; line-height: 1.45; }
.tile[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.step-foot { display: flex; gap: 8px; flex-wrap: wrap; border-top: 2px solid var(--divider); padding-top: 24px; }

/* ── Confirmation ─────────────────────────────────────────── */
.done { flex: 1; }
.done-plain {
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  display: flex; flex-direction: column; gap: 24px; max-width: 860px;
}
.done-body { font-size: 19px; color: var(--neutral-800); max-width: 640px; }
.done-body b { color: var(--ink); overflow-wrap: anywhere; }
.done-box { border-top: 2px solid var(--divider); }
.done-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--neutral-400); }
.done-row b { font-size: 14px; }
.done-row span { font-size: 15px; color: var(--neutral-800); }

/* ── Deal: shared pieces ──────────────────────────────────── */
.status {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 8px; background: var(--accent); color: #fff;
}
/* The 2px gaps show the grid's own colour, which draws the rules between tiles. */
.nums {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px; background: #a6a5a5; border-top: 2px solid #a6a5a5;
}
.teaser .nums { grid-template-columns: repeat(2, 1fr); }
.teaser .nums .num:last-child:nth-child(odd) { grid-column: span 2; }
.num { padding: 18px 24px; background: #fff; }
.num-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--neutral-700); }
.num-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.num-value.is-spread { color: var(--accent); }
.num-note { font-size: 13px; color: var(--neutral-700); }

/* ── Public teaser (landing) ──────────────────────────────── */
.teaser { border-top: 2px solid var(--divider); padding: 40px var(--gutter) 56px; }
.teaser-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.teaser-head h2 { font-size: 36px; margin-top: 4px; letter-spacing: -.02em; line-height: 1.1; }
.teaser-note { font-size: 14px; color: var(--neutral-700); }
.teaser-card {
  margin-top: 24px; border: 2px solid var(--ink); background: #fff;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}
.teaser-photo { position: relative; min-height: 320px; overflow: hidden; background: var(--neutral-300); border-right: 2px solid var(--ink); }
.teaser-photo img { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(14px); }
.teaser-shade {
  position: absolute; inset: 0; background: rgba(18, 36, 90, .45);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.teaser-lock { align-self: flex-start; background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; padding: 8px 12px; }
.teaser-body { display: flex; flex-direction: column; }
.teaser-info { padding: 24px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.teaser-city { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: 4px; }
.teaser-sub { font-size: 16px; color: var(--neutral-800); }
.teaser-hidden { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; font-weight: 600; margin-top: 4px; color: var(--neutral-700); }
.redact { padding: 2px 8px; background: var(--ink); color: var(--ink); user-select: none; letter-spacing: .05em; }
.teaser-btn {
  margin-top: auto; font-size: 16px; font-weight: 600; padding: 18px 24px; border: 0; text-align: left;
  background: var(--accent); color: #fff;
}
.teaser-btn:hover { background: var(--accent-600); }

/* ── Unlocked deal page ───────────────────────────────────── */
.banner {
  background: var(--accent); color: #fff; padding: 16px var(--gutter); font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.banner button { background: none; border: 0; color: #fff; font-weight: 600; font-size: 15px; opacity: .85; padding: 0; }
.deal-title {
  padding: 32px var(--gutter); display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--divider);
}
.deal-title > div:first-child { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.deal-title h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.035em; line-height: 1; }
.deal-loc { font-size: 19px; }
a.btn { text-decoration: none; display: inline-block; }
.btn-sm { font-size: 14px; padding: 12px 16px; }
.deal-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 8px; padding: 8px var(--gutter) 0; }
.deal-photos figure { margin: 0; }
.deal-photos img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--neutral-300); }
.deal-photos figcaption { font-size: 13px; color: var(--neutral-700); padding: 8px 0 0; }
.deal-more { padding: 20px var(--gutter) 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.deal-more span { font-size: 14px; color: var(--neutral-700); }
.deal-nums { margin-top: 32px; border-bottom: 2px solid var(--divider); }
.deal-nums .num { padding: 24px clamp(20px, 3vw, 32px); }
.deal-nums .num-value { font-size: 38px; }
.deal-section { padding: 32px var(--gutter); border-bottom: 2px solid var(--divider); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 100%; }
.deal-section h2 { font-size: 28px; letter-spacing: -.02em; }
.deal-section p { font-size: 17px; line-height: 1.6; max-width: 720px; color: var(--neutral-800); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 32px; width: 100%; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--neutral-400); }
.fact span { color: var(--neutral-700); }
.confirm { padding: 14px 16px; background: var(--accent); color: #fff; font-weight: 600; }
.deal-box { padding: 32px var(--gutter) 48px; max-width: 860px; }
.deal-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; }
.deal-box-head span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--neutral-700); }
.link-btn { background: none; border: 0; border-bottom: 2px solid var(--ink); padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .signup { grid-template-columns: 1fr; }
  .side { padding: 14px var(--gutter); gap: 10px; }
  .side-foot { display: none; }
  .step-nav { flex-direction: row; gap: 16px; border-top: 0; flex-wrap: wrap; }
  .step-nav li { padding: 0; border: 0; gap: 6px; }
  .step-nav li:not(.is-current) .label { display: none; }
  .step-nav .n { width: auto; }
  .step-nav .label { font-size: 14px; }
  .step-nav .mark { margin-left: 0; }
  .app-header { height: 68px; }
}
@media (max-width: 720px) {
  .teaser-photo { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 220px; }
  .benefits { grid-template-columns: 1fr; }
  .benefits > div { padding: 16px; }
  .benefits > div + div { border-left: 0; border-top: 2px solid var(--divider); }
}
@media (max-width: 560px) {
  .landing-header { padding: 20px; }
  .hero { gap: 22px; }
  .tags { gap: 6px; flex-wrap: nowrap; }
  .tag { font-size: 12px; padding: 5px 8px; white-space: nowrap; }
  .hero-sub { font-size: 18px; }
  .email-bar { flex-direction: column; }
  .email-bar input[type="email"] { width: 100%; }
  .email-bar button { width: 100%; }
  .btn-wide { min-width: 0; flex: 1; }
}
