/* ============================================================
   Landing page · address capture
   ============================================================ */

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 120px;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.topbar__nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.topbar__nav a {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.topbar__nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 40px;
  text-align: center;
}
.hero .kicker {
  margin-bottom: 22px;
}
.headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(48px, 7.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  text-wrap: balance;
  color: var(--ink);
}
.headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}
.headline.f-instrument {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
}
.headline em.acc-hi {
  font-style: normal;
  color: var(--ink);
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent 15%,
    var(--hi) 15%,
    var(--hi) 85%,
    transparent 85%,
    transparent 100%
  );
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- sublede (feature trio + tagline) ---------- */
.sublede {
  font-family: var(--opt-font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 auto 52px;
  text-wrap: balance;
}
.sublede b { color: var(--ink); font-weight: 500; }
.sublede .sub-feat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 4px;
  white-space: nowrap;
}
.sublede .sub-feat svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}
.sublede .sub-feat b { color: var(--ink); font-weight: 600; }
.sublede .sub-dot {
  color: var(--ink-3);
  margin: 0 2px;
}
.sublede .sub-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--opt-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.sublede .sub-tagline svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}
.sublede .sub-tagline b { color: var(--ink); font-weight: 600; }

/* ---------- address card ---------- */
.address-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 6px 6px 0 var(--ink);
  text-align: left;
}
.address-card__label {
  font-family: var(--opt-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.address-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
}
.address-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.address-row__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--paper);
}
.address-row__field svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}
.address-row__field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--opt-font-body);
  font-size: 17px;
  color: var(--ink);
}
.address-row__field input::placeholder { color: var(--ink-3); }
.address-row__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  font-family: var(--opt-font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.address-row__go:hover { background: var(--brand); }

.address-hint {
  font-family: var(--opt-font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.address-hint b { color: var(--ink-2); font-weight: 500; }

/* ---------- address autocomplete ---------- */
.address-combobox { position: relative; }
.address-combobox input { caret-color: var(--brand); }

.ac-status {
  font-family: var(--opt-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding: 0 4px;
  white-space: nowrap;
}
.ac-status[hidden] { display: none; }

.ac-listbox {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 8px);
  left: -1.5px;
  right: -1.5px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
}
.ac-listbox[hidden] { display: none; }
.ac-listbox:empty { display: none; }

.ac-option {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--opt-font-body);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.3;
}
.ac-option .street { font-weight: 500; }
.ac-option .locality {
  font-family: var(--opt-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.ac-option mark {
  background: transparent;
  color: inherit;
  font-weight: 600;
}
.ac-option[aria-selected="true"],
.ac-option:hover {
  background: var(--brand-2);
  color: var(--ink);
}
.ac-option[aria-selected="true"] .locality,
.ac-option:hover .locality { color: var(--brand); }

.ac-empty {
  padding: 12px 14px;
  font-family: var(--opt-font-body);
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: left;
}
.ac-empty .hint {
  display: block;
  margin-top: 4px;
  font-family: var(--opt-font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* ============================================================
   Mobile (≤720px) — single comprehensive override block.
   Goals: usable header on a 360px viewport, no caption-wrap,
   no chip-wrap; hero that doesn't dominate the fold; stacked
   feature/tagline that reads top-to-bottom; full-width Continue
   button with the label kept (icon-only on mobile is too thin
   for a primary action).
   ============================================================ */
@media (max-width: 720px) {
  .shell { padding: 16px 16px 64px; }

  /* topbar — wraps gracefully: lockup + auth on row 1, nav on
     row 2 if needed. min-width:0 lets the wordmark shrink. */
  .topbar {
    gap: 8px 12px;
    padding-bottom: 14px;
    flex-wrap: wrap;
  }
  .topbar > * { min-width: 0; }
  .topbar .lockup { gap: 9px; flex: 1 1 auto; }
  .topbar .lockup__mark {
    width: 30px; height: 30px;
    border-width: 1.4px;
    border-radius: 7px;
  }
  .topbar .lockup__mark svg { width: 18px; height: 18px; }
  .topbar .lockup__wm {
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar .lockup__by { display: none; }
  .topbar .lockup__pill {
    font-size: 8.5px;
    padding: 2px 6px;
    margin-left: 6px;
  }
  .topbar__nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    gap: 22px;
    padding-top: 4px;
  }
  .topbar__nav a { font-size: 13.5px; }
  .auth-chip { flex: 0 0 auto; }

  /* hero — tighter space, smaller headline floor so a 375px
     viewport doesn't get steamrolled by 48px display type. */
  .hero { padding: 32px 0 24px; }
  .hero .kicker { margin-bottom: 16px; font-size: 10.5px; }
  .headline {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.05;
    margin-bottom: 18px;
  }

  /* sublede — convert from inline-flex-with-br to a flex column.
     Each feature gets its own line, separator dots are dropped,
     and the tagline becomes a centered uppercase block beneath. */
  .sublede {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    line-height: 1.5;
    margin: 0 auto 28px;
    max-width: 32ch;
  }
  .sublede br { display: none; }
  .sublede .sub-dot { display: none; }
  .sublede .sub-feat { margin: 0; }
  .sublede .sub-tagline {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.5;
  }

  /* address card — softer shadow, tighter padding, stacked
     input/button so Continue stays full-width and tappable. */
  .address-card {
    padding: 20px 18px 18px;
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .address-row {
    flex-direction: column;
    gap: 10px;
  }
  .address-row__field {
    padding: 13px 14px;
    border-radius: 10px;
  }
  .address-row__field input { font-size: 16px; }  /* prevents iOS auto-zoom on focus */
  .address-row__go {
    padding: 14px 18px;
    border-radius: 10px;
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }
  .address-row__go .label { display: inline; }
  .address-hint { margin-top: 10px; font-size: 10px; }

  /* listbox spans the stacked input column; no negative offset
     needed once the row is column-stacked. */
  .ac-listbox { left: 0; right: 0; }
}

/* Narrow phones (iPhone SE 1st-gen, fold-style devices). */
@media (max-width: 360px) {
  .topbar__nav { gap: 16px; }
  .topbar__nav a { font-size: 12.5px; }
  .topbar .lockup__wm { font-size: 16px; }
  .headline { font-size: 30px; line-height: 1.06; }
}
