:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --panel: rgba(255,255,255,.88);
  --accent: #111827;
  --accent-2: #f1c27d;
  --accent-3: #8b5cf6;
  --radius: 28px;
  --shadow: 0 24px 80px rgba(17,24,39,.16);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #f7f3ee; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(241,194,125,.45), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(139,92,246,.16), transparent 30rem),
    linear-gradient(135deg, #fffaf4 0%, #f6f7fb 55%, #eee7dc 100%);
}
button, a { font: inherit; }
.gateway-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 0 40px; }
.install-hero {
  min-height: min(760px, 100svh - 32px);
  display: grid;
  grid-template-columns: 1.05fr .85fr;
  gap: 44px;
  align-items: center;
}
.install-copy { order: 1; }
.style-preview { order: 2; display: flex; justify-content: center; }
.eyebrow { margin: 0 0 14px; color: #7c3aed; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; font-size: .75rem; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand-mark { border-radius: 14px; box-shadow: 0 12px 32px rgba(17,24,39,.14); }
.brand-name { font-size: clamp(1.65rem, 4vw, 2.35rem); font-weight: 900; letter-spacing: -.055em; }
h1 { font-size: clamp(2.45rem, 8vw, 5.6rem); line-height: .92; letter-spacing: -.08em; margin: 0 0 22px; max-width: 760px; }
.subhead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.6; color: #4b5563; max-width: 650px; margin: 0 0 22px; }
.gateway-actions { width: min(100%, 550px); display: grid; gap: 12px; }
.install-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:focus-visible, .open-link:focus-visible, .close:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 3px; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: #111827; box-shadow: 0 14px 36px rgba(17,24,39,.22); }
.btn.share { width: 100%; color: #111827; background: rgba(255,255,255,.78); border: 1px solid rgba(17,24,39,.12); }
.btn.full { width: 100%; margin-top: 16px; }
.privacy-note { margin: 14px 0 0; color: #596273; font-weight: 650; font-size: .93rem; }
.style-photo-frame {
  width: min(520px, 92vw);
  aspect-ratio: 4 / 3;
  border-radius: 42px;
  background: #111827;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(17,24,39,.12);
}
.style-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f8fafc;
}
.style-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(17,24,39,.48));
  pointer-events: none;
}
.photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17,24,39,.72);
  backdrop-filter: blur(10px);
  font-weight: 900;
  letter-spacing: -.02em;
}
.how-card {
  background: var(--panel);
  border: 1px solid rgba(17,24,39,.09);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 36px);
  box-shadow: 0 18px 60px rgba(17,24,39,.1);
  margin-bottom: 30px;
}
.how-card h2 { margin: 0 0 18px; font-size: clamp(1.55rem, 4vw, 2.25rem); letter-spacing: -.04em; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps-grid article { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.steps-grid span { width: 34px; height: 34px; border-radius: 999px; display: inline-grid; place-items: center; background: #111827; color: #fff; font-weight: 900; margin-bottom: 14px; }
.steps-grid h3 { margin: 0 0 8px; font-size: 1.05rem; }
.steps-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.open-link { display: inline-flex; margin-top: 18px; color: #111827; font-weight: 850; }
.install-dialog {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(17,24,39,.52);
  display: grid; place-items: center;
  padding: 18px;
}
.install-dialog[hidden] { display: none; }
.install-dialog-card {
  width: min(520px, 100%);
  border-radius: 28px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.install-dialog-card h2 { margin: 0 36px 12px 0; font-size: 1.7rem; letter-spacing: -.04em; }
.install-dialog-card p { color: var(--muted); line-height: 1.55; }
.install-dialog-card ol { padding-left: 22px; line-height: 1.75; color: #374151; }
.close { position: absolute; top: 14px; right: 16px; border: 0; background: #f3f4f6; width: 38px; height: 38px; border-radius: 999px; font-size: 1.4rem; cursor: pointer; }
@media (max-width: 760px) {
  .gateway-shell { width: min(100% - 20px, 520px); padding-top: max(10px, env(safe-area-inset-top)); }
  .install-hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; align-items: start; padding-top: 4px; }
  .install-copy { order: 1; text-align: center; display: grid; justify-items: center; }
  .style-preview { order: 2; }
  .brand-row { margin-bottom: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  h1 { margin-bottom: 12px; }
  .subhead { font-size: .98rem; margin-bottom: 16px; line-height: 1.45; }
  .gateway-actions { gap: 10px; }
  .install-pair { gap: 8px; }
  .btn { min-height: 48px; padding: 0 12px; font-size: .9rem; }
  .privacy-note { margin-top: 10px; font-size: .86rem; }
  .style-photo-frame { width: min(380px, 92vw); border-radius: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-height: 620px) and (max-width: 760px) {
  .eyebrow { margin-bottom: 8px; font-size: .68rem; }
  .brand-row { margin-bottom: 8px; }
  h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .subhead { display: none; }
  .style-photo-frame { width: min(330px, 88vw); }
}
