:root {
  color-scheme: light;
  --ink: #10213b;
  --muted: #607086;
  --paper: #fffdf8;
  --cream: #f5efe2;
  --line: #ded7c8;
  --accent: #ec623b;
  --accent-dark: #bd3d20;
  --teal: #137a73;
  --success: #166d4c;
  --danger: #a33028;
  --shadow: 0 22px 60px rgb(33 43 54 / 12%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgb(236 98 59 / 14%), transparent 32rem),
    radial-gradient(circle at 100% 25%, rgb(19 122 115 / 12%), transparent 30rem),
    var(--cream);
}

button, input { font: inherit; }
a { color: inherit; }

.shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: var(--ink); }
.brand-mark svg { width: 21px; }
nav { display: flex; gap: 8px; }
nav a { padding: 9px 13px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 700; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / 65%); }

main { padding: 46px 0 84px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 68px; min-height: 570px; }
.eyebrow { margin: 0 0 16px; color: var(--accent-dark); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 500; letter-spacing: -.065em; line-height: .92; }
.page-title { font-size: clamp(2.7rem, 6vw, 5.2rem); }
.lede { max-width: 610px; margin: 24px 0 0; color: var(--muted); font-size: 1.13rem; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: white;
  background: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgb(16 33 59 / 18%); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button.secondary { border-color: var(--line); color: var(--ink); background: rgb(255 255 255 / 65%); }

.demo-card, .panel {
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 28px;
  background: rgb(255 253 248 / 88%);
  box-shadow: var(--shadow);
}
.demo-card { position: relative; padding: 28px; transform: rotate(1.5deg); }
.demo-card::before { position: absolute; inset: 12px; z-index: -1; border: 1px dashed var(--line); border-radius: 21px; content: ""; }
.fake-qr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: min(280px, 80%); aspect-ratio: 1; margin: 24px auto; padding: 18px; border-radius: 18px; background: white; }
.fake-qr i { border-radius: 2px; background: var(--ink); opacity: .08; }
.fake-qr i:nth-child(3n), .fake-qr i:nth-child(5n + 1), .fake-qr i:nth-child(7n + 2) { opacity: 1; }
.card-note { margin: 6px 0 0; color: var(--muted); text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.step { padding: 24px; border-top: 1px solid var(--line); }
.step strong { display: block; margin-bottom: 8px; color: var(--teal); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); line-height: 1.55; }

.page-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(380px, 1.15fr); gap: 54px; align-items: start; }
.panel { min-height: 470px; padding: clamp(24px, 5vw, 42px); }
.panel h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; letter-spacing: -.03em; }
.helper { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
label { display: block; margin: 18px 0 8px; font-size: .86rem; font-weight: 800; }
input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: white;
}
input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(19 122 115 / 13%); }
form .button { width: 100%; margin-top: 24px; }
.notice { margin-top: 20px; padding: 13px 15px; border-radius: 11px; color: var(--danger); background: rgb(163 48 40 / 9%); line-height: 1.5; }
.notice.success { color: var(--success); background: rgb(22 109 76 / 10%); }
.notice[hidden] { display: none; }

.qr-view { text-align: center; }
.qr-view img { display: block; width: min(280px, 100%); margin: 10px auto 18px; border: 10px solid white; border-radius: 17px; box-shadow: 0 10px 32px rgb(16 33 59 / 12%); }
.status-line { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 700; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgb(236 98 59 / 45%); animation: pulse 1.5s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } }
.link-row { display: flex; justify-content: center; gap: 16px; margin-top: 17px; font-size: .85rem; font-weight: 750; }
.link-row a, .link-row button { padding: 0; border: 0; color: var(--teal); background: none; cursor: pointer; }

.phone { width: min(500px, calc(100% - 28px)); margin: 40px auto; }
.phone .panel { min-height: auto; text-align: center; }
.phone-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 22px; color: white; background: var(--teal); }
.phone-icon svg { width: 33px; }
.phone .button { width: 100%; margin-top: 20px; }
.security-note { margin-top: 22px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.success-mark { color: var(--success); font-size: 3.5rem; line-height: 1; }

footer { padding: 24px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 780px) {
  header { align-items: flex-start; }
  nav { flex-direction: column; align-items: flex-end; }
  main { padding-top: 25px; }
  .hero, .page-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: 0; }
  .demo-card { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: minmax(0, 1fr); }
}
