:root {
  color-scheme: light;
  --badge-bg: #000;
  --badge-line: #000;
  --mark-bg: var(--ink);
  --yellow: #ffc800;
  --ink: #0e1116;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #0e1116;
  --muted: #5a606c;
  --line: #e4e2da;
  --link: #0e1116;
  --frame: #0e1116;
  --shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 12px 32px rgba(14, 17, 22, .08);
  --phone-shadow: 0 24px 60px rgba(14, 17, 22, .22);
}

/* Dark: the system setting, unless the visitor chose light; or the visitor chose dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --surface: #181c24;
    --text: #f3f4f6;
    --muted: #a0a7b4;
    --line: #272c37;
    --link: #f3f4f6;
    --frame: #2b313d;
    --shadow: none;
    --phone-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    --badge-bg: #000;
    --badge-line: #6b7280;
    --mark-bg: transparent;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116;
  --surface: #181c24;
  --text: #f3f4f6;
  --muted: #a0a7b4;
  --line: #272c37;
  --link: #f3f4f6;
  --frame: #2b313d;
  --shadow: none;
  --phone-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --badge-bg: #000;
  --badge-line: #6b7280;
  --mark-bg: transparent;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 23px; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; display: block; }
.theme-btn {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-btn[hidden] { display: none; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }

/* Type */
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* Hero */
.hero { display: grid; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero .lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--muted); margin: 20px 0 28px; max-width: 30em; }
/* Brand yellow on ink in both themes: light mode adds the ink block, dark mode already has an ink page. */
.mark {
  color: var(--yellow); background: var(--mark-bg);
  display: inline-block; margin-top: .12em; padding: .04em .2em .1em; margin-left: -.2em; border-radius: .14em;
}
.hero-phone { justify-self: center; position: relative; }
.hero-phone::before {
  content: ""; position: absolute; inset: 8% -14% 8% -14%;
  background: var(--yellow); border-radius: 40px; transform: rotate(-4deg);
}
.phone {
  position: relative; display: block; width: 100%;
  border: 7px solid var(--frame); border-radius: 38px; background: var(--frame);
  box-shadow: var(--phone-shadow);
}
.hero-phone .phone { width: min(280px, 64vw); }

.stores { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.store {
  display: inline-flex; align-items: center; gap: 11px; height: 56px; padding: 0 18px 0 14px; min-width: 176px;
  background: var(--badge-bg); color: #fff; border: 1px solid var(--badge-line); border-radius: 10px;
  font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; cursor: default;
}
a.store { text-decoration: none; cursor: pointer; transition: transform .15s, border-color .15s; }
a.store:hover { transform: translateY(-1px); border-color: currentColor; }
a.store:focus-visible { outline: 2px solid var(--badge-line); outline-offset: 3px; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .01em; margin-bottom: 2px; }
.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding: 64px 0 104px; }
  .hero-phone .phone { width: 300px; }
}

/* Sections */
.section { padding: 0 0 88px; }
.section-head { margin-bottom: 28px; max-width: 34em; }
.section-head p { color: var(--muted); margin: 12px 0 0; font-size: 18px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }

.role { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); margin-bottom: 14px; }

.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--text); border-bottom: 2.5px solid var(--text); transform: rotate(-45deg) scale(.8);
}

/* Screenshots */
.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 14px; font-size: 15px; }
.shots figcaption strong { display: block; }
.shots figcaption span { color: var(--muted); }
@media (max-width: 719px) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -24px; padding: 0 24px 12px; scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { scroll-snap-align: center; }
}

/* Prose pages */
.page-head { padding: 40px 0 36px; }
.page-head h1 { font-size: clamp(36px, 6vw, 52px); }
.page-head p { color: var(--muted); font-size: 19px; margin: 16px 0 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: 14px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.btn:hover { filter: brightness(.95); }
.btn svg { width: 18px; height: 18px; }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact p { margin: 0; }
.contact div { max-width: 26em; }

.faq { display: grid; gap: 14px; margin-top: 20px; }
.faq .card { padding: 24px 26px; }
.faq h3 { margin-bottom: 12px; }

.steps { list-style: none; counter-reset: s; margin: 0 0 14px; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 5px 0 5px 40px; color: var(--text); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 4px; width: 27px; height: 27px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ui { font-weight: 700; color: var(--text); white-space: nowrap; }

.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--muted); }
.summary h3 { font-size: 16px; margin-bottom: 6px; }
.summary .card { padding: 20px; }
.summary p { font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 28px 0 44px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }
.foot-links { display: inline-flex; gap: 18px; }
.foot-links .here { color: var(--text); font-weight: 600; }
