/* Production landing (somresident.com). Loaded after style.css; everything
 * shared with the demo site is scoped under body.lp (added by landing.js on
 * production only), new pieces use the lp- prefix. Tokens come from style.css. */

:root {
  --lp-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --lp-max: 1280px;
}

.lp-hero[hidden],
.lp-ticker[hidden],
.lp-offers[hidden] {
  display: none !important;
}
.lp-only {
  display: none !important;
}
body.lp .lp-flogo {
  display: inline-flex !important;
}
body.lp .lp-only.lp-eyebrow {
  display: inline-flex !important;
}
body.lp ul.lp-only {
  display: grid !important;
}

.lp-wrap {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header: sun bar, like the app ---------- */

body.lp header.site {
  background: var(--sun);
  border-bottom: 0;
  padding: 22px max(var(--gutter), calc((100vw - var(--lp-max)) / 2 + var(--gutter))) 14px;
  /* stays on screen while scrolling */
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 0 var(--ink);
}

/* ---------- shared bits ---------- */

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--surface);
  color: var(--ink);
  font: 800 10px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lp-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  border: 1.5px solid var(--ink);
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 800 14px var(--font-body);
  background: var(--grape);
  color: var(--on-grape);
  border: 2px solid var(--ink);
  border-radius: 999px;
  gap: 14px;
  padding: 8px 8px 8px 22px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.5s var(--lp-ease), box-shadow 0.5s var(--lp-ease);
}
.lp-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.lp-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.lp-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
.lp-ar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: transform 0.5s var(--lp-ease);
}
.lp-btn:hover .lp-ar {
  transform: translate(3px, -2px) rotate(-8deg);
}
/* Submit buttons are plain text set by JS: add the arrow bubble with CSS. */
#residentSignupSubmit,
body.lp .venue-signup-form button[type='submit'] {
  padding-right: 52px;
  padding-left: 22px;
  position: relative;
}
#residentSignupSubmit::after,
body.lp .venue-signup-form button[type='submit']::after {
  content: '→';
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 15px;
}

/* ---------- hero ---------- */

.lp-hero {
  border-top: 0;
  border-bottom: 2px solid var(--ink);
  padding: 36px 0 84px;
  position: relative;
  overflow: hidden;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.lp-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
  font-size: clamp(36px, 4.4vw, 64px);
  margin: 18px 0;
}
.lp-st {
  display: inline-block;
  background: var(--tomato);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 0.02em 0.18em 0.08em;
  transform: rotate(-2.5deg);
  box-shadow: 6px 6px 0 var(--ink);
  margin-top: 0.12em;
}
.lp-lede {
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 500;
  max-width: 520px;
  margin: 0 0 22px;
}
.lp-bez {
  background: rgba(27, 20, 20, 0.08);
  border: 2px solid var(--ink);
  border-radius: 32px;
  padding: 8px;
  max-width: 640px;
}
.lp-wlc {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 26px;
  padding: 14px;
  color: var(--ink);
}
.lp-fi,
body.lp .venue-signup-form input,
body.lp .venue-signup-form textarea {
  width: 100%;
  font: 500 15px var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 12px 16px;
  outline: 0;
  transition: box-shadow 0.4s var(--lp-ease), transform 0.4s var(--lp-ease);
}
.lp-fi::placeholder,
body.lp .venue-signup-form ::placeholder {
  color: var(--mute);
  opacity: 0.8;
}
.lp-fi:focus,
body.lp .venue-signup-form input:focus,
body.lp .venue-signup-form textarea:focus {
  box-shadow: 4px 4px 0 var(--grape);
  transform: translate(-1px, -1px);
}
.lp-wl-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.lp-wl-row .lp-fi {
  flex: 1 1 200px;
  width: auto;
}
.lp-wl-il {
  margin-top: 14px;
}
.lp-lb {
  display: block;
  font: 800 10px var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
.lp-isl {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lp-isl .chip {
  font: 700 13px var(--font-body);
  padding: 6px 14px;
}
.lp-isl .chip.active {
  box-shadow: 2px 2px 0 var(--ink);
}
.lp-soon {
  font-size: 13px;
  color: var(--mute);
  margin: 8px 0 0;
}
.lp-cs {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--mute);
  cursor: pointer;
}
.lp-cs input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--grape);
  flex: 0 0 auto;
}
.lp-er {
  margin: 10px 0 0;
  font-weight: 700;
  font-size: 13px;
  color: #b3261e;
}
.lp-done {
  padding: 14px 10px;
}
.lp-done h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  margin: 0 0 8px;
}
.lp-done p {
  margin: 0;
  font-weight: 500;
}

/* ---------- phone with the app inside ---------- */

.lp-stage {
  display: grid;
  place-items: start center;
  min-height: 560px;
}
.lp-phone {
  width: 290px;
  background: var(--ink);
  border-radius: 44px;
  padding: 10px;
  transform: rotate(3deg) scale(0.94);
  box-shadow: 10px 10px 0 rgba(27, 20, 20, 0.25);
}
.lp-scr {
  background: var(--sun);
  border-radius: 35px;
  height: 580px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}
.lp-ph-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 12px;
}
.lp-ph-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 900 17px var(--font-display);
  letter-spacing: -0.05em;
}
.lp-ph-logo b {
  color: var(--tomato);
}
.lp-mk {
  width: 26px;
  height: 26px;
}
.lp-ph-i {
  display: flex;
  gap: 6px;
}
.lp-ph-p {
  width: 30px;
  height: 30px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
  display: grid;
  place-items: center;
}
.lp-ph-b {
  flex: 1;
  min-height: 0;
  background: var(--surface);
  border-top: 2px solid var(--ink);
  padding: 12px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
  cursor: grab;
}
.lp-ph-b::-webkit-scrollbar {
  width: 5px;
}
.lp-ph-b::-webkit-scrollbar-thumb {
  background: var(--ink);
  border-radius: 9px;
}
.lp-ph-t {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.lp-sg {
  display: flex;
  gap: 6px;
}
.lp-sc {
  font: 700 10.5px var(--font-body);
  font-style: normal;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.lp-sc em {
  font: 800 8px var(--font-body);
  font-style: normal;
}

/* card = the app's VenueCard */
.lp-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}
.lp-pi {
  aspect-ratio: 16 / 9;
  position: relative;
}
.lp-ct {
  padding: 10px 12px;
}
.lp-name {
  display: block;
  font: 900 18px var(--font-display);
  letter-spacing: -0.03em;
}
.lp-meta {
  font-size: 11.5px;
  color: var(--mute);
  margin-top: 3px;
}
.lp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
}
.lp-row span,
.lp-row i {
  font: 800 13px var(--font-body);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.lp-row u {
  text-decoration: none;
  font: 600 9px var(--font-body);
  color: var(--mute);
  margin-left: 3px;
}
.lp-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  background: var(--grape);
  border-top: 2px solid var(--ink);
  color: var(--on-grape);
  font: 800 13px var(--font-body);
}

/* offer badge — the app's signature sticker */
.lp-bd {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  transform: rotate(-7deg);
  background: var(--tomato);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 6px 11px 5px;
  text-align: center;
  min-width: 60px;
}
.lp-bd small {
  display: block;
  font: 700 8.5px var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.lp-bd b {
  display: block;
  font: 900 21px var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1;
}
.lp-bd.s {
  right: 8px;
  top: 8px;
  border-width: 2px;
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 5px 9px 6px;
  min-width: 0;
}
.lp-bd.s small {
  font-size: 8px;
}
.lp-bd.s b {
  font-size: 17px;
}
.lp-open {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  background: var(--mint);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font: 700 9.5px var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lp-open.s {
  font-size: 9px;
}

/* ---------- ticker + offers ---------- */

body.lp .content {
  padding: 0;
  gap: 0;
  border-top: 0;
}
.lp-ticker {
  order: 0;
  background: var(--ink);
  color: var(--surface);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.lp-ticker > div {
  display: inline-block;
  animation: lp-mq 34s linear infinite;
  font: 900 20px var(--font-display);
  letter-spacing: -0.02em;
}
.lp-ticker span {
  margin: 0 26px;
}
.lp-ticker em {
  color: var(--sun);
  font-style: normal;
}
@keyframes lp-mq {
  to {
    transform: translateX(-50%);
  }
}

.lp-offers {
  order: 1;
  padding: clamp(44px, 5vw, 68px) 0;
}
.lp-offers .lp-wrap,
body.lp .how-it-works > *,
body.lp .venue-signup-inner {
  max-width: 1040px;
}
.lp-sh {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.lp-sh h2,
body.lp .how-it-works h2,
body.lp .venue-signup-copy h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
  font-size: clamp(26px, 2.8vw, 38px);
  margin: 12px 0 0;
  max-width: 760px;
}
.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.lp-shell {
  background: rgba(27, 20, 20, 0.06);
  border: 2px solid var(--ink);
  border-radius: 26px;
  padding: 6px;
  transition: transform 0.6s var(--lp-ease);
}
.lp-shell:hover {
  transform: translateY(-6px) rotate(-0.6deg);
}
.lp-shell .lp-card {
  box-shadow: none;
  border-radius: 20px;
  margin: 0;
  height: 100%;
}
.lp-shell .lp-bd {
  right: 10px;
  top: 10px;
}
.lp-shell .lp-name {
  font-size: 17px;
}
.lp-shell .lp-ct {
  padding: 10px 14px;
}
.lp-shell .lp-row {
  margin-top: 8px;
}
.lp-shell .lp-row span,
.lp-shell .lp-row i {
  font-size: 13px;
}
.lp-shell .lp-bar {
  font-size: 12.5px;
  padding: 8px;
}
.lp-art {
  flex: 1;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
.lp-b1 {
  grid-column: span 7;
  grid-row: span 2;
}
.lp-b1 .lp-art {
  min-height: 230px;
}
.lp-b2,
.lp-b3 {
  grid-column: span 5;
}
.lp-b4,
.lp-b5,
.lp-b6 {
  grid-column: span 4;
}
.lp-art::before,
.lp-art::after {
  content: '';
  position: absolute;
}
.lp-art-sun {
  background: var(--sun);
}
.lp-art-sun::before {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--tomato);
  border: 3px solid var(--ink);
  left: -60px;
  top: -70px;
}
.lp-art-sun::after {
  left: 8%;
  bottom: -40px;
  width: 78%;
  height: 130px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 44px);
  border-radius: 40px 40px 0 0;
}
.lp-art-grape {
  background: var(--grape);
}
.lp-art-grape::before {
  right: -20px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--sun);
  border: 3px solid var(--ink);
}
.lp-art-mint {
  background: var(--mint);
}
.lp-art-mint::before {
  left: 24px;
  top: 24px;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: var(--surface);
  border: 3px solid var(--ink);
  transform: rotate(-10deg);
}
.lp-art-ink {
  background: var(--ink);
}
.lp-art-ink::before {
  left: 24px;
  top: 20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--sun);
  border: 3px solid var(--ink);
}
.lp-art-grape2 {
  background: var(--grape);
}
.lp-art-grape2::before {
  inset: 0;
  background: radial-gradient(circle at 30% 65%, var(--mint) 0 50px, transparent 51px),
    radial-gradient(circle at 75% 35%, var(--sun) 0 40px, transparent 41px);
}
.lp-art-stripes {
  background: var(--sun);
}
.lp-art-stripes::before {
  inset: 0;
  background: repeating-linear-gradient(45deg, var(--mint) 0 24px, transparent 24px 48px);
}

/* reveal on scroll */
.lp-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--lp-ease), transform 0.9s var(--lp-ease);
}
.lp-reveal.lp-in {
  opacity: 1;
  transform: none;
}

/* ---------- how it works ---------- */

body.lp .how-it-works {
  order: 2;
  background: var(--sun);
  border-block: 2px solid var(--ink);
  padding: clamp(44px, 5vw, 68px) 0;
  gap: 24px;
  align-items: center;
}
body.lp .how-it-works > * {
  width: 100%;
  padding-inline: var(--gutter);
}
body.lp .how-it-works .slider-header {
  display: block;
}
body.lp .steps-grid {
  gap: 18px;
}
body.lp .step-card.sticker {
  background: var(--surface);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  gap: 6px;
  transition: transform 0.6s var(--lp-ease);
}
body.lp .step-card.sticker::after {
  display: none;
}
body.lp .step-card:nth-child(odd) {
  transform: rotate(-1.2deg);
}
body.lp .step-card:nth-child(even) {
  transform: translateY(14px) rotate(0.9deg);
}
body.lp .step-card:hover {
  transform: translateY(-6px) rotate(0);
}
body.lp .step-num {
  position: static;
  width: auto;
  height: auto;
  background: none;
  border: 0;
  box-shadow: none;
  font: 900 48px/0.8 var(--font-display);
  letter-spacing: -0.06em;
  color: var(--grape);
}
body.lp .step-card:nth-child(2) .step-num {
  color: var(--tomato);
}
body.lp .step-card:nth-child(3) .step-num {
  color: var(--mint);
  -webkit-text-stroke: 2px var(--ink);
}
body.lp .step-icon {
  display: none;
}
body.lp .step-card h3 {
  font: 900 18px var(--font-display);
  letter-spacing: -0.03em;
  margin: 10px 0 0;
}
body.lp .step-card p {
  font-size: 14px;
}

/* ---------- venues: dark section + form ---------- */

body.lp .venue-signup {
  order: 3;
  background: var(--ink);
  padding: clamp(44px, 5vw, 68px) 0;
}
body.lp .venue-signup-inner.sticker {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 40px;
  align-items: center;
}
body.lp .venue-signup-inner.sticker::after {
  display: none;
}
body.lp .venue-signup-copy h2 {
  color: var(--surface);
  margin-top: 14px;
}
body.lp .venue-signup-copy p {
  color: rgba(255, 251, 240, 0.85);
  font-size: 15px;
  max-width: 44ch;
  margin: 12px 0 18px;
}
body.lp .venue-signup-copy .lp-eyebrow {
  background: var(--sun);
}
.lp-points {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}
.lp-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--surface);
  border-radius: 20px;
  padding: 11px 16px;
  font: 900 16px var(--font-display);
  letter-spacing: -0.02em;
  color: var(--surface);
}
.lp-points i {
  font: 800 10px var(--font-body);
  font-style: normal;
  background: var(--sun);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.1em;
}
body.lp .venue-signup-form {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 20px;
  gap: 10px;
  box-shadow: 0 0 0 6px rgba(255, 251, 240, 0.14);
}
body.lp .venue-signup-form input,
body.lp .venue-signup-form textarea {
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  width: 100%;
}
body.lp .venue-signup-form button[type='submit'] {
  background: var(--sun);
  color: var(--ink);
}
body.lp .venue-signup-form .error {
  color: #b3261e;
}
body.lp .signup-success {
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
}

/* ---------- app band + footer ---------- */

body.lp .showcase {
  order: 4;
  background: var(--grape);
  border: 2px solid var(--ink);
  border-radius: 32px;
  box-shadow: 6px 6px 0 var(--ink);
  height: auto;
  margin: clamp(44px, 5vw, 68px) auto;
  max-width: 1040px;
  width: calc(100% - 2 * var(--gutter));
  padding: clamp(24px, 3vw, 36px);
  overflow: visible;
  display: block;
}
body.lp .showcase .resident-signup-visual {
  display: none;
}
body.lp .showcase-overlay {
  position: static;
  background: none;
  padding: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
body.lp .showcase-overlay h2 {
  font: 900 clamp(24px, 2.8vw, 36px) / 1 var(--font-display);
  letter-spacing: -0.035em;
  max-width: 560px;
}
body.lp .showcase-overlay p {
  flex-basis: 100%;
  order: 3;
}
body.lp .showcase-overlay .store-badges {
  margin: 0;
}

body.lp footer.site {
  background: var(--sun);
  border-top: 2px solid var(--ink);
  color: var(--ink);
  padding: 24px max(var(--gutter), calc((100vw - 1040px) / 2 + var(--gutter)));
}
body.lp .footer-links a {
  color: var(--ink);
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
  }
  .lp-stage {
    min-height: 600px;
  }
  .lp-b1,
  .lp-b2,
  .lp-b3,
  .lp-b4,
  .lp-b5,
  .lp-b6 {
    grid-column: 1 / -1;
  }
  body.lp .step-card:nth-child(n) {
    transform: none;
  }
  body.lp .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .lp-hero {
    padding-top: 24px;
  }
  .lp-hero h1 {
    font-size: clamp(32px, 9.5vw, 44px);
  }
  .lp-wl-row .lp-btn {
    width: 100%;
    justify-content: space-between;
  }
  .lp-stage {
    min-height: 560px;
  }
  .lp-b1 .lp-art {
    min-height: 200px;
  }
  body.lp .steps-grid {
    grid-template-columns: 1fr;
  }
  body.lp .venue-signup-inner.sticker {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-ticker > div {
    animation: none;
  }
  .lp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* footer logo */
.lp-flogo {
  align-items: center;
  gap: 8px;
  font: 900 22px var(--font-display);
  letter-spacing: -0.05em;
  color: var(--ink);
}
.lp-flogo strong {
  font-weight: 900;
}
.lp-flogo .tomato {
  color: var(--tomato);
}
.lp-flogo .lp-mk {
  width: 30px;
  height: 30px;
}

/* app band: smaller, one tidy row */
body.lp .showcase {
  max-width: 1040px;
  border-radius: 22px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 20px 24px;
  margin: 40px auto;
}
body.lp .showcase-overlay {
  gap: 8px 24px;
}
body.lp .showcase-overlay > div,
body.lp .showcase-overlay h2 {
  margin: 0;
}
body.lp .showcase-overlay h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  max-width: 460px;
}
body.lp .showcase-overlay p {
  flex-basis: auto;
  order: 0;
  flex: 1 1 100%;
  font-size: 13.5px;
  max-width: 560px;
}
body.lp .store-badge {
  padding: 7px 14px;
  font-size: 12px;
  color: var(--surface);
  border-color: rgba(255, 251, 240, 0.6);
}

/* app band, final layout: text left, store badges right */
body.lp .showcase-overlay {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 24px;
}
body.lp .showcase-overlay h2 {
  grid-column: 1;
  color: var(--surface);
}
body.lp .showcase-overlay p {
  grid-column: 1;
  flex: none;
  margin: 0;
  color: rgba(255, 251, 240, 0.85);
}
body.lp .showcase-overlay .store-badges {
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 8px;
}
body.lp .store-badge {
  background: transparent;
  color: var(--surface);
  border: 2px solid var(--surface);
  border-radius: 12px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
}
body.lp .store-badge .soon {
  color: var(--sun);
  margin-top: 2px;
}
@media (max-width: 640px) {
  body.lp .showcase-overlay {
    grid-template-columns: 1fr;
  }
  body.lp .showcase-overlay .store-badges {
    grid-column: 1;
    grid-row: auto;
  }
}
body.lp .showcase { min-height: 0 !important; height: auto !important; }

/* header logo: same size as the design (28px wordmark, 38px mark) */
body.lp header.site .logo {
  font-size: 28px;
  gap: 10px;
}
body.lp header.site .logo svg {
  width: 38px;
  height: 38px;
}
@media (max-width: 640px) {
  body.lp header.site .logo {
    font-size: 24px;
  }
  body.lp header.site .logo svg {
    width: 32px;
    height: 32px;
  }
}
.lp-flogo {
  font-size: 24px;
}
.lp-flogo .lp-mk {
  width: 32px;
  height: 32px;
}

/* header anchors */
body.lp .lp-nav {
  display: flex !important;
  gap: 6px;
  margin-left: auto;
  margin-right: 12px;
  font: 600 14px var(--font-body);
}
body.lp .lp-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.4s var(--lp-ease);
}
body.lp .lp-nav a:hover {
  background: var(--surface);
}
@media (max-width: 900px) {
  body.lp .lp-nav {
    display: none !important;
  }
}
html {
  scroll-behavior: smooth;
}
/* stage: fixed height like the design, so the copy column stays level with the phone */
.lp-stage {
  height: 560px;
  min-height: 0;
}
@media (max-width: 900px) {
  .lp-stage {
    height: 600px;
  }
}
@media (max-width: 640px) {
  .lp-stage {
    height: 560px;
  }
}

/* submit buttons: same height as the design (bubble in flow => 50px) */
#residentSignupSubmit,
body.lp .venue-signup-form button[type='submit'] {
  min-height: 50px;
}
.lp-fi {
  padding: 13px 16px;
}

/* first screen spacing (as in the design) */
.lp-hero {
  padding: 36px 0 84px;
}
.lp-stage {
  height: 560px;
}
.lp-phone {
  transform: rotate(3deg) scale(0.94);
  transform-origin: center;
}
@media (max-width: 900px) {
  .lp-stage {
    height: 600px;
  }
}
@media (max-width: 640px) {
  .lp-stage {
    height: 560px;
  }
}

/* same text rendering as the design */
body.lp {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* scroll cue: sits right under the ticker */
.lp-cue {
  order: 0;
  display: flex;
  justify-content: center;
  padding: 22px 0 6px;
}
.lp-cue[hidden] {
  display: none !important;
}
.lp-down {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  padding: 0;
  animation: lp-bounce 1.6s var(--lp-ease) infinite;
}
.lp-down:hover {
  background: var(--sun);
}
@keyframes lp-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-down {
    animation: none;
  }
}

/* ---- real catalogue cards (phase 2 / demo) ---- */
a.lp-card {
  color: inherit;
  text-decoration: none;
}
.lp-photo {
  background-size: cover;
  background-position: center;
}
.lp-flat {
  display: grid;
  place-items: center;
}
.lp-flat-grape {
  background: var(--grape);
}
.lp-flat-mint {
  background: var(--mint);
}
.lp-flat::before,
.lp-flat::after {
  display: none;
}
.lp-initial {
  font: 900 96px var(--font-display);
  color: var(--ink);
  opacity: 0.15;
  line-height: 1;
}
.lp-pi .lp-initial {
  font-size: 64px;
}
.lp-bd-count b {
  font-size: 15px;
  white-space: nowrap;
}
.lp-bd-count.s b {
  font-size: 12px;
}
/* fewer than six venues: plain grid instead of the bento */
.lp-bento-flat .lp-shell {
  grid-column: span 4;
}
@media (max-width: 900px) {
  .lp-bento-flat .lp-shell {
    grid-column: 1 / -1;
  }
}
/* signed-in catalogue keeps its own spacing inside the landing shell */
body.lp .content > .slider-section {
  padding: 32px var(--gutter);
}

/* ---- store buttons (phase 2) ---- */
.lp-apps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.lp-apps[hidden] {
  display: none !important;
}
.lp-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--surface);
  padding: 10px 20px 10px 16px;
  text-decoration: none;
  font: 800 17px/1.1 var(--font-display);
  letter-spacing: -0.02em;
  transition: transform 0.5s var(--lp-ease), box-shadow 0.5s var(--lp-ease);
}
.lp-store small {
  display: block;
  font: 700 10px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 2px;
}
.lp-store:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--surface);
}
/* on the sun hero the shadow must be dark, not cream */
.lp-hero .lp-store {
  box-shadow: 4px 4px 0 rgba(27, 20, 20, 0.35);
}
.lp-hero .lp-store:hover {
  box-shadow: 6px 6px 0 rgba(27, 20, 20, 0.35);
}
.lp-store-band {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
body.lp .showcase .lp-store-band:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

/* =====================================================================
   MOBILE (<= 640px): app-like layout — phone peeks out of the hero,
   offers become a swipeable carousel, steps a 2x2 grid, sticky CTA.
   ===================================================================== */
@media (max-width: 640px) {
  /* hero */
  body.lp header.site {
    padding-top: 16px;
    padding-bottom: 8px;
  }
  .lp-hero {
    padding: 14px 0 0;
    border-bottom: 0;
  }
  .lp-hero-grid {
    gap: 0;
  }
  .lp-hero h1 {
    font-size: clamp(34px, 10.4vw, 44px);
    margin: 14px 0 12px;
  }
  .lp-lede {
    font-size: 15px;
    margin-bottom: 16px;
  }
  .lp-bez {
    border-radius: 26px;
    padding: 6px;
  }
  .lp-wlc {
    border-radius: 21px;
    padding: 12px;
  }
  .lp-wl-il {
    margin-top: 12px;
  }
  .lp-isl {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -12px;
    padding: 2px 12px 8px;
  }
  .lp-isl::-webkit-scrollbar {
    display: none;
  }
  .lp-isl .chip {
    flex: 0 0 auto;
    padding: 6px 13px;
  }
  .lp-cs {
    font-size: 11.5px;
    margin-top: 8px;
  }
  .lp-apps {
    flex-direction: column;
  }
  .lp-apps .lp-store {
    width: 100%;
  }

  /* phone emerges from the bottom of the hero */
  .lp-stage {
    height: 330px;
    overflow: hidden;
    margin-top: 22px;
    place-items: start center;
  }
  .lp-phone {
    transform: rotate(-3deg) translateY(8px);
    transform-origin: top center;
    box-shadow: none;
  }
  .lp-cue {
    display: none !important;
  }

  /* ticker */
  .lp-ticker {
    padding: 11px 0;
  }
  .lp-ticker > div {
    font-size: 17px;
  }
  .lp-ticker span {
    margin: 0 18px;
  }

  /* offers: swipeable cards */
  .lp-offers {
    padding: 34px 0 30px;
  }
  .lp-sh {
    gap: 14px;
    margin-bottom: 16px;
  }
  .lp-sh .lp-btn {
    width: 100%;
    justify-content: space-between;
  }
  .lp-bento,
  .lp-bento-flat {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 16px;
    scroll-padding-inline: var(--gutter);
  }
  .lp-bento::-webkit-scrollbar {
    display: none;
  }
  .lp-bento .lp-shell {
    flex: 0 0 80%;
    scroll-snap-align: start;
    grid-column: auto;
    grid-row: auto;
  }
  .lp-shell:hover {
    transform: none;
  }
  .lp-b1 .lp-art,
  .lp-art {
    flex: none;
    height: 170px;
    min-height: 0;
  }
  .lp-art-sun::before {
    width: 220px;
    height: 220px;
    top: -50px;
  }
  .lp-art-sun::after {
    height: 90px;
  }

  /* how it works: 2x2 */
  body.lp .how-it-works {
    padding: 34px 0 40px;
  }
  body.lp .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    row-gap: 14px;
  }
  body.lp .step-card.sticker {
    padding: 14px 12px;
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--ink);
    transform: none !important;
  }
  body.lp .step-num {
    font-size: 34px;
  }
  body.lp .step-card h3 {
    font-size: 15px;
    margin-top: 6px;
  }
  body.lp .step-card p {
    font-size: 12.5px;
    line-height: 1.4;
  }

  /* venues */
  body.lp .venue-signup {
    padding: 36px 0 40px;
  }
  body.lp .venue-signup-inner.sticker {
    gap: 22px;
  }
  .lp-points {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  .lp-points li {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 14px;
  }
  body.lp .venue-signup-form {
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 0 0 4px rgba(255, 251, 240, 0.14);
  }

  /* app band */
  body.lp .showcase {
    margin: 30px auto;
    border-radius: 20px;
    padding: 18px;
  }
  body.lp .showcase-overlay .store-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  body.lp .store-badge {
    text-align: center;
  }
  .lp-store-band {
    width: 100%;
    justify-content: center;
    padding: 9px 10px;
    font-size: 15px;
  }

  /* footer */
  body.lp footer.site {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 88px;
  }
  body.lp .footer-links {
    gap: 8px 16px;
  }
}

/* sticky call to action (mobile only) */
.lp-sticky {
  display: none;
}
@media (max-width: 640px) {
  .lp-sticky {
    display: inline-flex;
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    translate: -50% 0;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s var(--lp-ease), transform 0.5s var(--lp-ease), visibility 0.4s;
    white-space: nowrap;
  }
  .lp-sticky.lp-show {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 900px) {
  .lp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-hero-copy,
  .lp-bez,
  .lp-wlc {
    min-width: 0;
  }
}
@media (max-width: 640px) {
  body.lp .step-card {
    align-items: flex-start;
    text-align: left;
  }
  body.lp .step-num {
    text-align: left;
  }
}

/* MOBILE hero v2: the phone is the visual, the form sits on top of it like a sheet */
@media (max-width: 640px) {
  .lp-hero-copy {
    display: contents;
  }
  .lp-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .lp-hero-copy > .lp-eyebrow {
    order: 1;
    align-self: flex-start;
  }
  .lp-hero-copy > h1 {
    order: 2;
  }
  .lp-hero-copy > .lp-lede {
    order: 3;
  }
  .lp-stage {
    order: 4;
    height: 400px;
    margin-top: 6px;
  }
  .lp-hero-copy > .lp-bez,
  .lp-hero-copy > .lp-apps {
    order: 5;
    position: relative;
    z-index: 3;
    margin-top: -104px;
  }
  .lp-hero-copy > .lp-apps {
    margin-top: -60px;
    margin-bottom: 26px;
  }
  .lp-bez {
    margin-bottom: 26px;
    background: var(--sun);
    box-shadow: 0 -10px 24px rgba(255, 201, 60, 0.9);
  }
  /* button after the checkbox */
  .lp-form {
    display: flex;
    flex-direction: column;
  }
  .lp-wl-row {
    display: contents;
  }
  .lp-wl-row .lp-fi {
    order: 1;
    flex: none;
    width: 100%;
  }
  .lp-wl-il {
    order: 2;
  }
  .lp-cs {
    order: 3;
  }
  .lp-wl-row .lp-btn {
    order: 4;
    margin-top: 12px;
    width: 100%;
    justify-content: space-between;
  }
  .lp-er {
    order: 5;
  }
  .lp-wl-il {
    margin-top: 10px;
  }
}

/* MOBILE footer: drop the slogan (already the headline), keep logo, © and links */
@media (max-width: 640px) {
  body.lp #footerTagline {
    display: none;
  }
  body.lp footer.site {
    gap: 8px;
    padding-top: 20px;
  }
  body.lp footer.site #footerRights {
    font-size: 12.5px;
    opacity: 0.8;
  }
  body.lp .footer-links {
    font-size: 13px;
  }
}

/* sentence under the headline: on desktop it stays there; on mobile it moves into the sheet */
.lp-sheet-lede,
.lp-apps-lede {
  display: none;
}
@media (max-width: 640px) {
  .lp-hero-copy > .lp-lede {
    display: none;
  }
  .lp-sheet-lede {
    display: block;
    font: 800 15px/1.3 var(--font-display);
    letter-spacing: -0.01em;
    margin: 2px 2px 12px;
  }
  .lp-apps-lede {
    display: block;
    flex-basis: 100%;
    margin: 0 0 4px;
    font: 800 15px/1.3 var(--font-display);
  }
  .lp-stage {
    margin-top: 2px;
  }
  .lp-hero-copy > .lp-bez {
    margin-top: -96px;
  }

  /* header: smaller logo, keep CA/ES + login visible */
  body.lp header.site {
    flex-wrap: nowrap;
    gap: 8px;
  }
  body.lp header.site .logo {
    font-size: 22px;
    gap: 7px;
  }
  body.lp header.site .logo svg {
    width: 30px;
    height: 30px;
  }
  body.lp .header-actions-desktop {
    display: flex;
    gap: 6px;
  }
  body.lp .account-menu {
    display: none;
  }
  body.lp .header-actions-desktop .lang-switch {
    gap: 4px;
  }
  body.lp .lang-switch a {
    padding: 4px 8px;
    font-size: 11.5px;
  }
  body.lp .header-actions-desktop .btn {
    padding: 7px 11px;
    font-size: 12.5px;
    box-shadow: 3px 3px 0 var(--ink);
    white-space: nowrap;
  }
}
/* very narrow phones: back to the compact account menu */
@media (max-width: 350px) {
  body.lp .header-actions-desktop {
    display: none;
  }
  body.lp .account-menu {
    display: block;
  }
}

/* MOBILE round 2: smaller headline (no ugly break), roomier header */
@media (max-width: 640px) {
  .lp-hero h1 {
    font-size: clamp(29px, 8.7vw, 38px);
    line-height: 1;
  }
  .lp-st {
    border-width: 2.5px;
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--ink);
  }
}
@media (max-width: 440px) {
  /* login as a profile icon (like the app) so the header can breathe */
  body.lp #authAreaDesktop > .btn-ghost {
    font-size: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    position: relative;
    box-shadow: 2px 2px 0 var(--ink);
  }
  body.lp #authAreaDesktop > .btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: center / 18px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1414' stroke-width='2.2' stroke-linecap='round'><circle cx='12' cy='8' r='3.6'/><path d='M4.5 20c0-3.6 3.4-5.6 7.5-5.6s7.5 2 7.5 5.6'/></svg>");
  }
  body.lp header.site {
    gap: 12px;
  }
  body.lp .header-actions-desktop {
    gap: 8px;
  }
}

/* MOBILE round 3: tighter phone header, whole form visible, islands in 2x2 */
@media (max-width: 640px) {
  .lp-ph-h {
    padding: 12px 14px 8px;
  }
  .lp-hero-copy > .lp-eyebrow {
    display: none;
  }
  .lp-hero h1 {
    margin: 6px 0 8px;
  }
  .lp-stage {
    height: 300px;
  }
  .lp-hero-copy > .lp-bez {
    margin-top: -78px;
    margin-bottom: 20px;
  }
  .lp-wlc {
    padding: 10px;
  }
  .lp-sheet-lede {
    font-size: 14px;
    margin: 0 2px 9px;
  }
  .lp-wl-row .lp-fi,
  .lp-fi {
    padding: 10px 14px;
    font-size: 14.5px;
  }
  .lp-wl-il {
    margin-top: 9px;
  }
  .lp-lb {
    margin-bottom: 6px;
  }
  .lp-isl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .lp-isl .chip {
    justify-content: center;
    padding: 6px 8px;
    font-size: 12.5px;
  }
  .lp-cs {
    font-size: 11px;
    margin-top: 8px;
    gap: 8px;
  }
  .lp-cs input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
  }
  #residentSignupSubmit {
    min-height: 46px;
    margin-top: 8px;
  }
}

/* island select: mobile only */
.lp-select {
  display: none;
}
@media (max-width: 640px) {
  .lp-isl {
    display: none;
  }
  .lp-wl-il {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .lp-lb {
    margin: 0;
  }
  .lp-select {
    display: block;
    flex: 1 1 0;
    max-width: 200px;
    appearance: none;
    -webkit-appearance: none;
    font: 700 13.5px var(--font-body);
    color: var(--ink);
    background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B1414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center;
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 7px 32px 7px 14px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .lp-soon {
    flex-basis: 100%;
    margin: 2px 0 0;
    font-size: 12px;
  }
  .lp-sheet-lede {
    margin-bottom: 8px;
  }
  .lp-stage {
    height: 320px;
  }
  .lp-hero-copy > .lp-bez {
    margin-top: -60px;
  }
}

/* MOBILE form v3: islands as one compact row of chips (no native select) */
@media (max-width: 640px) {
  .lp-select {
    display: none !important;
  }
  .lp-wl-il {
    display: block;
    margin-top: 10px;
  }
  .lp-lb {
    display: block;
    margin: 0 0 6px 2px;
  }
  .lp-isl {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: space-between;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .lp-isl .chip {
    flex: 1 1 auto;
    justify-content: center;
    padding: 7px 4px;
    font-size: 11.5px;
    letter-spacing: -0.01em;
  }
  .lp-isl .chip.active {
    box-shadow: 2px 2px 0 var(--ink);
  }
  .lp-soon {
    margin: 6px 2px 0;
  }
}

/* MOBILE phone: smaller, with room above it */
@media (max-width: 640px) {
  .lp-hero h1 {
    margin-bottom: 4px;
  }
  .lp-stage {
    margin-top: 22px;
    height: 330px;
  }
  .lp-phone {
    transform: rotate(-3deg) scale(0.8);
    transform-origin: top center;
  }
}

/* the sentence lives in the form card / app block on every screen size */
.lp-lede {
  display: none;
}
.lp-sheet-lede {
  display: block;
  font: 800 17px/1.3 var(--font-display);
  letter-spacing: -0.01em;
  margin: 2px 2px 12px;
}
.lp-sheet-lede .lp-short {
  display: none;
}
.lp-apps-lede {
  display: block;
  flex-basis: 100%;
  margin: 0 0 4px;
  font: 800 17px/1.3 var(--font-display);
  max-width: 460px;
}
.lp-hero h1 {
  margin-bottom: 22px;
}
@media (max-width: 640px) {
  .lp-sheet-lede .lp-long {
    display: none;
  }
  .lp-sheet-lede .lp-short {
    display: inline;
  }
  .lp-sheet-lede,
  .lp-apps-lede {
    font-size: 14px;
  }
  .lp-hero h1 {
    margin-bottom: 4px;
  }
}

/* space between the headline sticker and the form card (desktop/tablet) */
@media (min-width: 641px) {
  .lp-hero h1 {
    margin-bottom: 40px;
  }
}

/* phase 2: the sentence takes its own row so both store buttons stay together below it */
.lp-apps-lede {
  flex: 0 0 100%;
  max-width: none;
}

/* consent line: single short sentence with a link */
.lp-cs a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-cs {
  align-items: center;
  font-size: 12.5px;
}
.lp-cs input {
  margin-top: 0;
}
@media (max-width: 640px) {
  /* 16px inputs: iOS Safari zooms the page on focus below that */
  .lp-wl-row .lp-fi,
  .lp-fi {
    font-size: 16px;
    padding: 11px 14px;
  }
  .lp-isl .chip {
    padding: 9px 4px;
  }
  .lp-cs {
    font-size: 12px;
    align-items: flex-start;
  }
  .lp-cs input {
    margin-top: 1px;
  }
}
.lp-cs a { white-space: nowrap; }

/* desktop/tablet hero spacing: level the copy with the phone, keep headline and form as one block */
@media (min-width: 641px) {
  .lp-hero-copy {
    margin-top: 44px;
  }
  .lp-hero-copy > .lp-bez {
    margin-top: 56px;
  }
}

/* MOBILE: the tilted phone must not be clipped by the stage box at the top */
@media (max-width: 640px) {
  .lp-stage {
    box-sizing: border-box;
    padding-top: 14px;
    height: 344px;
    margin-top: 12px;
  }
}

/* MOBILE footer v2: logo + © on one row, links on a second row, no extra bottom space */
@media (max-width: 640px) {
  body.lp footer.site {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 10px;
    padding: 18px var(--gutter) max(20px, env(safe-area-inset-bottom));
  }
  body.lp .lp-flogo {
    order: 1;
    font-size: 21px;
  }
  body.lp .lp-flogo .lp-mk {
    width: 28px;
    height: 28px;
  }
  body.lp footer.site #footerRights {
    order: 2;
    font-size: 12px;
    margin: 0;
  }
  body.lp .footer-links {
    order: 3;
    flex: 0 0 100%;
    justify-content: space-between;
    gap: 6px 12px;
    padding-top: 12px;
    border-top: 1.5px solid rgba(27, 20, 20, 0.25);
    font-size: 12.5px;
  }
}

/* success state ("Fet!") must really replace the form on every screen size */
.lp-form[hidden],
.lp-sheet-lede[hidden],
.lp-done[hidden] {
  display: none !important;
}
.lp-done {
  padding: 8px 6px 6px;
}
.lp-done h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
}
.lp-done h3::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
  font: 900 20px var(--font-display);
}
.lp-done p {
  font-weight: 600;
  line-height: 1.4;
}

/* Signed in: the header keeps its shape. The chip becomes a round avatar with
   the person's initial; name + sign out move into a small popover. On wide
   screens (and inside the account dropdown) the old inline chip is unchanged. */
.user-chip .avatar { display: none; }
.user-chip .user-chip-pop { display: contents; }
@media (max-width: 640px) {
  body.lp #authAreaDesktop .user-chip { position: relative; }
  body.lp #authAreaDesktop .user-chip .avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font: 800 15px var(--font-body);
    text-transform: uppercase;
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
  }
  body.lp #authAreaDesktop .user-chip .user-chip-pop {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 2000;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 180px;
    max-width: 240px;
    padding: 14px 16px;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  body.lp #authAreaDesktop .user-chip.open .user-chip-pop { display: flex; }
  body.lp #authAreaDesktop .user-chip .name { overflow-wrap: anywhere; }
}
