:root {
  color-scheme: light dark;
  --accent: #007aff;
  --text: #000000;
  --secondary: rgba(60, 60, 67, 0.72);
  --tertiary: rgba(60, 60, 67, 0.48);
  --bg: #f2f2f7;
  --card: #ffffff;
  --sep: rgba(60, 60, 67, 0.29);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(0, 0, 0, 0.06);
  --card-border: rgba(0, 0, 0, 0.04);
  --bar: rgba(242, 242, 247, 0.82);
  --code-bg: rgba(120, 120, 128, 0.12);
  --screen: #f2f2f7;
  --txn: #ffffff;
  --glyph-blue: #007aff;
  --glyph-green: #34c759;
  --glyph-orange: #ff9500;
  --glyph-purple: #af52de;
  --glyph-teal: #5ac8fa;
  --debit: #ff3b30;
  --credit: #34c759;
  --store-bg: #000000;
  --store-fg: #ffffff;
  --glow: rgba(0, 122, 255, 0.22);
  --phone-shadow: 0 24px 50px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #0a84ff;
    --text: #ffffff;
    --secondary: rgba(235, 235, 245, 0.68);
    --tertiary: rgba(235, 235, 245, 0.42);
    --bg: #000000;
    --card: #1c1c1e;
    --sep: rgba(84, 84, 88, 0.65);
    --shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.06);
    --bar: rgba(0, 0, 0, 0.72);
    --code-bg: rgba(120, 120, 128, 0.28);
    --screen: #000000;
    --txn: #1c1c1e;
    --glyph-blue: #0a84ff;
    --glyph-green: #30d158;
    --glyph-orange: #ff9f0a;
    --glyph-purple: #bf5af2;
    --glyph-teal: #64d2ff;
    --debit: #ff453a;
    --credit: #30d158;
    --store-bg: #ffffff;
    --store-fg: #000000;
    --glow: rgba(10, 132, 255, 0.35);
    --phone-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-150%);
  background: var(--card);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 5;
}

.skip:focus { transform: none; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { text-decoration-thickness: 2px; }

.bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--sep);
  padding-top: env(safe-area-inset-top);
}

.bar-inner,
.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.bar-link {
  font-weight: 500;
  text-decoration: none;
  padding: 8px 2px;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px 48px;
  align-items: center;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  margin: 10px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.lede {
  margin: 16px 0 0;
  max-width: 18em;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.maker {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.45;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin: 28px 0 0;
  min-width: 178px;
  padding: 8px 16px 10px;
  border-radius: 10px;
  background: var(--store-bg);
  color: var(--store-fg);
  line-height: 1.05;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  cursor: default;
  user-select: none;
}

.store-top {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.82;
}

.store-bottom {
  margin-top: 2px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-device {
  margin: 0;
  justify-self: center;
  text-align: center;
  position: relative;
}

.hero-device::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  top: 12%;
  bottom: 12%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(6px);
}

.phone {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 508px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(165deg, #4a4a4e 0%, #1c1c1e 28%, #0a0a0c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), var(--phone-shadow);
}

.btn-vol,
.btn-power {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #6a6a6e;
}

.btn-vol {
  left: -2px;
  top: 112px;
  height: 26px;
  box-shadow: 0 40px 0 #6a6a6e, 0 76px 0 #6a6a6e;
}

.btn-power {
  right: -2px;
  top: 158px;
  height: 68px;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--screen);
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 20px;
  background: #000;
  z-index: 1;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 22px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.status-gap { width: 92px; }

.appbar { padding: 18px 18px 4px; }

.summary {
  margin: 8px 12px 0;
  padding: 12px 14px 14px;
  background: var(--txn);
  border-radius: 14px;
}

.sum-k {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
}

.sum-v {
  margin: 1px 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sum-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
}

.sum-row span { width: 34px; flex: none; }

.meter {
  display: block;
  height: 6px;
  width: 100%;
  border-radius: 6px;
  background: rgba(120, 120, 128, 0.16);
  position: relative;
  overflow: hidden;
}

.meter::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  background: var(--glyph-orange);
}

.m1::after { width: 72%; }
.m2::after { width: 40%; background: var(--glyph-blue); }

.appbar-title {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.appbar-sub {
  margin: 2px 0 0;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
}

.txns {
  margin: 8px 12px 0;
  background: var(--txn);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.txn {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.txn + .txn { box-shadow: inset 0 0.5px 0 var(--sep); }

.dot {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.dot-food { background: var(--glyph-orange); }
.dot-card { background: var(--glyph-blue); }
.dot-in { background: var(--glyph-green); }

.txn-copy { display: flex; flex-direction: column; min-width: 0; }

.txn-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.txn-meta {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
}

.tabs {
  margin-top: auto;
  display: flex;
  background: var(--txn);
  border-top: 0.5px solid var(--sep);
  padding: 7px 0 20px;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--tertiary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tab svg { width: 18px; height: 18px; display: block; }

.tab.on { color: var(--accent); }

.home-ind {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 104px;
  height: 5px;
  margin-left: -52px;
  border-radius: 5px;
  background: var(--text);
  opacity: 0.28;
}

figcaption {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: var(--tertiary);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.band,
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px 8px;
}

.band { padding-top: 36px; }

.band h2,
.doc h2 {
  margin: 0 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.group,
.card {
  background: var(--card);
  border: 0.5px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.group {
  list-style: none;
  margin: 0;
  padding: 0;
}

.group li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 16px;
}

.group li + li { position: relative; }

.group li + li::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: var(--sep);
}

.group p,
.card p { margin: 0; }

.group p + p,
.lead + .group,
.note { margin-top: 12px; }

.glyph {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
}

.glyph svg { width: 18px; height: 18px; display: block; }

.glyph-blue { background: var(--glyph-blue); }
.glyph-green { background: var(--glyph-green); }
.glyph-orange { background: var(--glyph-orange); }
.glyph-purple { background: var(--glyph-purple); }
.glyph-teal { background: var(--glyph-teal); }

.note {
  padding: 16px 18px;
  color: var(--text);
}

.doc { padding-top: 48px; padding-bottom: 12px; }

.doc-head { margin: 0 4px 8px; }

.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
}

.effective {
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 15px;
}

.block { margin-top: 32px; }

.card.prose { padding: 20px 22px; }

.card.prose p + p { margin-top: 12px; }

.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card li {
  margin: 0;
  padding: 16px 22px;
}

.card li + li { box-shadow: inset 0 0.5px 0 var(--sep); }

.card-lead {
  padding: 18px 22px 14px;
  box-shadow: inset 0 -0.5px 0 var(--sep);
}

.card.prose,
.card li { line-height: 1.5; }

code {
  font-family: ui-monospace, SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.08em 0.38em;
  border-radius: 6px;
}

.foot {
  margin-top: 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  color: var(--secondary);
  font-size: 14px;
}

.foot-inner {
  min-height: 64px;
  border-top: 0.5px solid var(--sep);
  justify-content: flex-start;
  gap: 0;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 20px 12px;
    gap: 28px;
  }

  h1 { font-size: clamp(40px, 11vw, 56px); }

  .lede { font-size: 19px; }

  .phone { width: 250px; height: 468px; }

  .hero-device { order: 2; }

  .band h2,
  .doc h2 { font-size: 24px; }

  .bar-inner,
  .foot-inner { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 360px) {
  .phone { width: 228px; height: 440px; }
  .appbar-title { font-size: 24px; }
  .txn-name { font-size: 13px; }
}
