:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --surface: #ffffff;
  --canvas: #f5f5f7;
  --blue: #1674ea;
  --blue-hover: #0865d1;
  --green: #23834b;
  --red: #e84f3d;
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(29, 29, 31, 0.06);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; }

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); color: #424245; font-size: 14px; }
nav a { transition: color 150ms ease; }
nav a:hover { color: var(--blue); }
.nav-install { padding: 8px 14px; color: white; background: var(--blue); border-radius: 999px; }
.nav-install:hover { color: white; background: var(--blue-hover); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 0.78fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  min-height: calc(100svh - 64px);
  padding: 76px max(5vw, calc((100vw - 1320px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 30%, rgba(22, 116, 234, 0.09), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
}

.eyebrow, .section-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.14em;
}

.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(35, 131, 75, 0.1); }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 5.3vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 720;
}

.hero-lede {
  max-width: 650px;
  margin: 30px 0 0;
  color: #515154;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.7;
}

.hero-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 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:active { transform: scale(0.97); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 10px 30px rgba(22, 116, 234, 0.19); }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 13px 32px rgba(22, 116, 234, 0.24); transform: translateY(-1px); }
.button-secondary { color: var(--ink); background: rgba(29, 29, 31, 0.06); }
.button-secondary:hover { background: rgba(29, 29, 31, 0.1); }

.trust-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.trust-line span::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 760; }

.receipt-stage { position: relative; width: min(100%, 540px); justify-self: center; padding: 12px 0 24px; }
.receipt-shadow { position: absolute; inset: 10% 3% 0; background: rgba(29, 29, 31, 0.2); filter: blur(40px); transform: translateY(34px) scale(0.93); opacity: 0.35; }

.receipt {
  position: relative;
  padding: 40px 36px 36px;
  background: #fffefd;
  border: 1px solid rgba(29, 29, 31, 0.07);
  box-shadow: 0 2px 8px rgba(29, 29, 31, 0.03);
  transform: rotate(0.8deg);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "PingFang SC", monospace;
}

.receipt-status { padding: 9px 12px; border-radius: 9px; color: var(--muted); background: #f2f2f1; text-align: center; font-size: 11px; }
.receipt-kicker { margin-top: 26px; color: #8a8a87; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: 0.24em; }
.receipt h2 { margin: 5px 0 0; text-align: center; font-family: inherit; font-size: clamp(21px, 2.1vw, 29px); letter-spacing: -0.06em; }
.receipt-subtitle { margin: 5px 0 25px; color: #888884; text-align: center; font-size: 11px; }
.receipt-meta { margin: 0; padding: 20px 0; border-block: 1px solid #e6e5e2; }
.receipt-meta div { display: flex; justify-content: space-between; gap: 18px; margin: 6px 0; font-size: 11px; }
.receipt-meta dt { color: #8c8c88; }
.receipt-meta dd { margin: 0; text-align: right; font-weight: 700; }

.receipt-table-head { display: grid; grid-template-columns: 42px 1fr 58px; gap: 8px; padding: 16px 0 8px; color: #999994; font-size: 9px; }
.receipt-table-head span:last-child { text-align: right; }
.outcome-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #e6e5e2; }
.outcome-list li { display: grid; grid-template-columns: 34px 1fr 58px; gap: 8px; padding: 15px 0; border-top: 1px solid #ecebe8; }
.outcome-list .qty { color: #989893; font-size: 10px; }
.outcome-list div { min-width: 0; }
.outcome-list b { display: block; margin-bottom: 4px; color: var(--blue); font-size: 9px; }
.outcome-list strong { display: block; font-size: 12px; line-height: 1.45; }
.outcome-list small { display: block; margin-top: 4px; color: #858580; font-size: 9px; line-height: 1.5; }
.outcome-list em { color: var(--green); text-align: right; font-size: 9px; font-style: normal; font-weight: 760; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid #e6e5e2; font-size: 10px; }
.receipt-total strong { max-width: 66%; text-align: right; font-size: 14px; }
.receipt-stamp { width: fit-content; margin: 26px auto 22px; padding: 7px 15px; border: 2px solid var(--red); border-radius: 7px; color: var(--red); transform: rotate(-3deg); font-size: 18px; font-weight: 850; letter-spacing: 0.08em; }
.receipt-foot { margin: 0; color: #666663; text-align: center; font-size: 10px; line-height: 1.6; }

.principle-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.principle-strip div { padding: 32px max(28px, 5vw); background: white; }
.principle-strip strong, .principle-strip span { display: block; }
.principle-strip strong { margin-bottom: 6px; font-size: 16px; }
.principle-strip span { color: var(--muted); font-size: 14px; }

.section { padding: clamp(88px, 11vw, 150px) max(5vw, calc((100vw - 1180px) / 2)); }
.section-heading { max-width: 790px; }
.section-label { margin-bottom: 16px; color: var(--blue); }
.section h2 { margin: 0; font-size: clamp(2.25rem, 4.6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.048em; }
.section-heading > p:last-child, .install-copy > p { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.steps article { min-height: 230px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fbfbfc; }
.steps span { color: var(--blue); font-size: 12px; font-weight: 760; letter-spacing: 0.08em; }
.steps h3 { margin: 48px 0 10px; font-size: 20px; letter-spacing: -0.025em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.privacy-section { background: var(--canvas); }
.privacy-card { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; padding: clamp(32px, 5vw, 66px); border-radius: var(--radius); background: white; box-shadow: 0 26px 80px rgba(29, 29, 31, 0.06); }
.privacy-card h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.privacy-copy p { margin: 0 0 18px; color: #515154; font-size: 17px; line-height: 1.8; }

.install-section { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(46px, 8vw, 110px); }
.install-copy .button { margin-top: 30px; }
.install-panel { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f7f9; }
.install-step { display: flex; align-items: flex-start; gap: 13px; margin: 12px 0; }
.install-step span { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-size: 11px; font-weight: 700; }
.install-step p { margin: 1px 0 0; font-size: 15px; }
.code-block { display: flex; align-items: center; gap: 14px; margin: 12px 0 22px 37px; padding: 15px 16px; border: 1px solid rgba(29, 29, 31, 0.08); border-radius: 13px; background: white; }
.code-block code { min-width: 0; overflow-x: auto; color: #3a3a3c; font: 12px/1.6 ui-monospace, "SFMono-Regular", Menlo, monospace; white-space: nowrap; scrollbar-width: thin; }
.code-block button { flex: 0 0 auto; margin-left: auto; padding: 7px 10px; border: 0; border-radius: 8px; color: var(--blue); background: #edf5ff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.install-note { margin: 24px 0 0 37px; color: var(--muted); font-size: 13px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 5vw; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { color: var(--ink); }
footer p { margin: 0; font-size: 13px; }

:focus-visible { outline: 3px solid rgba(22, 116, 234, 0.35); outline-offset: 3px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 88px; }
  .hero-copy { max-width: 800px; }
  .receipt-stage { width: min(100%, 560px); }
  .principle-strip { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .privacy-card, .install-section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 18px; }
  .site-header nav a:not(.nav-install) { display: none; }
  .hero { min-height: auto; padding: 70px 20px 72px; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .hero-lede { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .receipt { padding: 30px 22px 28px; transform: none; }
  .receipt-table-head { grid-template-columns: 34px 1fr 52px; }
  .outcome-list li { grid-template-columns: 27px 1fr 52px; }
  .section { padding: 80px 20px; }
  .steps { grid-template-columns: 1fr; margin-top: 42px; }
  .steps article { min-height: 190px; }
  .steps h3 { margin-top: 34px; }
  .privacy-card, .install-panel { padding: 28px 22px; border-radius: 22px; }
  .code-block { align-items: flex-start; margin-left: 0; }
  .install-note { margin-left: 0; }
  footer { align-items: flex-start; flex-direction: column; padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #48484a; --line: rgba(0, 0, 0, 0.25); }
}
