/* Decorous site. Mobile first, no web fonts, no frameworks. */
:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --ink: #211a17;
  --muted: #6b5f58;
  --line: #e7ddd3;
  --accent: #d9541a;
  --accent-ink: #b8430f;
  --dark: #211a17;
  --radius: 16px;
  --wrap: 1120px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55em 0.6em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; }
.table-scroll { overflow-x: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
main { padding: 28px 0 56px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.6em; }

/* Header and footer */
.site-header { background: var(--dark); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 8px; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.nav a { color: #e9e0d8; text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }

/* Buttons and badge */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 1.2em 0 0.6em; }
.appstore-badge { display: inline-block; line-height: 0; }
.appstore-badge img { width: 150px; height: 50px; }
.btn-ghost { display: inline-block; padding: 11px 18px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { display: grid; gap: 24px; align-items: center; margin-bottom: 8px; }
.hero h1 { margin-top: 0.2em; }
.eyebrow { display: inline-block; color: var(--accent-ink); font-weight: 650; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.4em; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.15fr; gap: 48px; }
  main { padding-top: 44px; }
}

/* Before/after slider */
.ba { margin: 0 0 1.5em; --pos: 50%; }
.ba-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #ddd; box-shadow: 0 10px 30px rgba(33, 26, 23, 0.14); touch-action: pan-y; }
.ba-img { width: 100%; user-select: none; -webkit-user-drag: none; }
.ba-before { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); }
.ba-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-image: linear-gradient(135deg, transparent 45%, var(--ink) 45%, var(--ink) 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--ink) 45%, var(--ink) 55%, transparent 55%); background-size: 10px 10px; background-repeat: no-repeat; background-position: 8px 15px, 22px 15px; }
.ba-tag { position: absolute; top: 12px; padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; pointer-events: none; }
.ba-tag-before { left: 12px; background: rgba(33, 26, 23, 0.85); }
.ba-tag-after { right: 12px; background: var(--accent); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.ba-range:focus-visible + .ba-tag, .ba-frame:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .ba-wide .ba-img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; } .ba-wide .ba-before { height: 100%; } }
.wrap > .ba:not(.ba-wide) { max-width: 820px; }
.ba figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6em; }

/* Cards and grids */
.cards { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; }

.split { display: grid; gap: 20px 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split h2 { margin-top: 0.4em; }
.section { margin-top: 3.2em; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps strong { display: block; }

.shots { list-style: none; padding: 0 0 8px; margin: 0 -20px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-left: 20px; padding-right: 20px; }
.shots li { flex: 0 0 62%; max-width: 260px; scroll-snap-align: start; margin: 0; }
.shots img { border-radius: 14px; }
@media (min-width: 980px) { .shots { margin: 0; padding: 0; overflow: visible; display: grid; grid-template-columns: repeat(7, 1fr); } .shots li { max-width: none; } }

.link-cards { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .link-cards { grid-template-columns: 1fr 1fr; } }
.link-cards li { margin: 0; }
.link-cards a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.link-cards a:hover { border-color: var(--accent); }
.link-cards strong { display: block; margin-bottom: 4px; }
.link-cards span { color: var(--muted); font-size: 0.95rem; }

.callout { background: #fff3ea; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { margin-top: 3em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details > div { padding-bottom: 6px; }

/* App CTA */
.app-cta { display: grid; grid-template-columns: 64px 1fr; gap: 14px 16px; align-items: center; background: var(--dark); color: #f3ebe4; border-radius: var(--radius); padding: 20px; margin-top: 3em; }
.app-cta img:first-child { border-radius: 14px; }
.app-cta strong { display: block; color: #fff; font-size: 1.1rem; }
.app-cta span { font-size: 0.95rem; }
.app-cta .appstore-badge { grid-column: 1 / -1; }
@media (min-width: 720px) { .app-cta { grid-template-columns: 64px 1fr auto; } .app-cta .appstore-badge { grid-column: auto; } }

/* Article */
.article h2 { font-size: 1.5rem; }
.article figure { margin: 1.4em 0; }
