/* Kiri's site. Colours and type come from the app's design tokens (eod/design/atelier/tokens.json):
   washi paper, aged brass, dusk blue. Fraunces for display, Source Sans 3 for text. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff") format("woff"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F2EBDF;
  --surface: #FAF5EC;
  --raised: #E8DFCF;
  --text: #2B2520;
  --muted: #6F6558;
  --outline: #DDD2BF;
  --accent: #8A5A1E;
  --on-accent: #FFF6E3;
  --accent-soft: #EFDDB3;
  --on-accent-soft: #4A2E08;
  --button-top: #9E6A24;
  --button-bottom: #7E5218;
  --success: #4C7A4A;
  --mist: #8C9DAE;
  --dusk: #1C2436;
  --on-dusk: #EEE6D6;
  --on-dusk-muted: #A69D8E;
  --dusk-accent: #D8A850;
  --rail: linear-gradient(90deg, #A5782C, #E6C577 50%, #C99F4C);
  --shadow: rgba(70, 45, 10, 0.16);
  --bezel: #1C2436;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141A28;
    --surface: #1C2334;
    --raised: #27304A;
    --text: #EEE6D6;
    --muted: #A69D8E;
    --outline: #313B52;
    --accent: #D8A850;
    --on-accent: #1F1505;
    --accent-soft: #3A2E14;
    --on-accent-soft: #F0D08A;
    --button-top: #E3B45A;
    --button-bottom: #B9852C;
    --success: #8EC297;
    --mist: #9FB2C4;
    --dusk: #0F1420;
    --shadow: rgba(0, 0, 0, 0.35);
    --bezel: #3A4560;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 36em; }
.eyebrow { display: block; font: italic 500 1.0625rem/1.3 var(--display); color: var(--muted); margin-bottom: 0.6rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.925rem; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 44rem); margin-inline: auto; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--outline); }
.section-dusk { background: var(--dusk); color: var(--on-dusk); }
.section-dusk .lede, .section-dusk .muted, .section-dusk .eyebrow { color: var(--on-dusk-muted); }
.section-dusk a { color: var(--dusk-accent); }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.rail { height: 2px; background: var(--rail); opacity: 0.85; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font: 600 1.6rem/1 var(--display); letter-spacing: -0.03em; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.975rem; padding: 0.4rem 0; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[aria-current] { box-shadow: 0 2px 0 var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.65rem 1.4rem; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); color: var(--text); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-primary { border-color: transparent; color: var(--on-accent); background: linear-gradient(180deg, var(--button-top), var(--button-bottom)); box-shadow: inset 0 1px 0 rgba(255, 235, 190, 0.45), 0 2px 6px var(--shadow); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-small { min-height: 2.5rem; padding: 0.4rem 1.1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.btn small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.85; line-height: 1.1; }
.btn-store { text-align: left; padding-inline: 1.2rem 1.5rem; }
.btn-store span { display: block; line-height: 1.15; }
html[data-platform="ios"] .btn-store[data-store="ios"],
html[data-platform="android"] .btn-store[data-store="android"],
html[data-platform="mac"] .btn-store[data-store="mac"] { order: -1; }
html[data-platform] .btn-store.btn-primary { background: var(--surface); color: var(--text); border-color: var(--outline); box-shadow: none; }
html[data-platform="ios"] .btn-store[data-store="ios"].btn-primary,
html[data-platform="android"] .btn-store[data-store="android"].btn-primary,
html[data-platform="mac"] .btn-store[data-store="mac"].btn-primary { border-color: transparent; color: var(--on-accent); background: linear-gradient(180deg, var(--button-top), var(--button-bottom)); box-shadow: inset 0 1px 0 rgba(255, 235, 190, 0.45), 0 2px 6px var(--shadow); }

/* Hero */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero-meta { color: var(--muted); font-size: 0.95rem; }

/* The demo: a phone, a timer, mist you wipe away */
.demo { display: grid; justify-items: center; gap: 0.9rem; --sand-top: #F1CB63; --sand-bottom: #B9842A; --stream: #D9A83E; --glass: rgba(233, 240, 246, 0.72); }
.picker { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--outline); }
.picker button { font: 600 0.9rem/1 var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 0.5rem 0.9rem; cursor: pointer; }
.picker button:hover { color: var(--text); }
.picker button[aria-pressed="true"] { background: var(--accent-soft); color: var(--on-accent-soft); }
.timer-label { font: italic 500 0.95rem/1.4 var(--display); color: var(--muted); margin: 0; text-align: center; min-height: 1.75rem; display: grid; align-items: center; }
.swatches[hidden], .timer-label[hidden] { display: none; }
/* The controls sit above the phone, so on a small screen the timer you pick is in view. */
.picker, .swatches, .timer-label { order: -1; }
.swatches { display: flex; align-items: center; gap: 0.6rem; }
.swatch { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--bg); outline: 1px solid var(--outline); background: radial-gradient(circle at 35% 30%, var(--a), var(--b) 55%, var(--c)); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--accent); }
.swatch-name { font: italic 500 0.95rem var(--display); color: var(--muted); margin-left: 0.3rem; min-width: 11rem; }
.phone { position: relative; width: min(100%, 19rem); aspect-ratio: 9 / 18.5; border-radius: 2.6rem; background: var(--bezel); padding: 0.55rem; box-shadow: 0 30px 60px -20px var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 2.1rem; overflow: hidden; background: #fff; isolation: isolate; }
.feed { position: absolute; inset: 0; padding: 3.4rem 0.9rem 0; display: grid; gap: 0.9rem; align-content: start; animation: feed 14s linear infinite; }
.feed-post { display: grid; gap: 0.45rem; }
.feed-head { display: flex; align-items: center; gap: 0.5rem; }
.feed-head i { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #d9d4cc; }
.feed-head b { height: 0.45rem; width: 5rem; border-radius: 1rem; background: #dedad3; }
.feed-pic { height: 11rem; border-radius: 0.9rem; }
.feed-pic.a { background: linear-gradient(135deg, #f0a35e, #e0607a 55%, #8b6fd1); }
.feed-pic.b { background: linear-gradient(135deg, #6fb7d9, #9bd4a5 55%, #f2d86a); }
.feed-pic.c { background: linear-gradient(135deg, #b98be0, #f08fa8 55%, #f6c177); }
.feed-line { height: 0.45rem; border-radius: 1rem; background: #e6e2db; width: 80%; }
.feed-line.short { width: 45%; }
@keyframes feed { from { transform: translateY(0); } to { transform: translateY(-28rem); } }
.phone-bar { position: absolute; inset: 0 0 auto 0; height: 2.6rem; background: linear-gradient(#fff 70%, transparent); z-index: 1; }

.timer { position: absolute; top: 0; left: 50%; width: 3.1rem; margin-left: -1.55rem; z-index: 2; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(20, 14, 4, 0.28)); }
@keyframes sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
.timer { display: none; }
.demo[data-timer="hourglass"] .timer-hourglass, .demo[data-timer="lantern"] .timer-lantern, .demo[data-timer="coil"] .timer-coil { display: block; }
.timer .sand-top, .timer .sand-bottom { transform-origin: 50% 100%; transform-box: fill-box; }
.timer .sand-bottom { transform: scaleY(0.12); }
.timer .stream { opacity: 0; }
.demo[data-state="run"] .sand-top { animation: drain 9s linear forwards; }
.demo[data-state="run"] .sand-bottom { animation: fill 9s linear forwards; }
.demo[data-state="run"] .stream { animation: stream 9s linear forwards; }
.demo[data-state="mist"] .sand-top, .demo[data-state="clear"] .sand-top { transform: scaleY(0); }
.demo[data-state="mist"] .sand-bottom, .demo[data-state="clear"] .sand-bottom { transform: scaleY(1); }
@keyframes drain { to { transform: scaleY(0); } }
@keyframes fill { to { transform: scaleY(1); } }
@keyframes stream { 0%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* Lantern: the candle burns down and the flame sinks with it, then goes out. */
.timer .candle { transform-origin: 50% 100%; transform-box: fill-box; }
.timer .flame { transform-origin: 50% 100%; transform-box: fill-box; animation: flicker 0.9s ease-in-out infinite alternate; }
.timer .flame-wrap { transition: opacity 0.8s; }
.demo[data-state="run"] .candle { animation: burn 9s linear forwards; }
.demo[data-state="run"] .flame-wrap { animation: sink 9s linear forwards; }
.demo[data-state="mist"] .candle, .demo[data-state="clear"] .candle { transform: scaleY(0.15); }
.demo[data-state="mist"] .flame-wrap, .demo[data-state="clear"] .flame-wrap { transform: translateY(25.5px); opacity: 0; }
@keyframes burn { to { transform: scaleY(0.15); } }
@keyframes sink { to { transform: translateY(25.5px); } }
@keyframes flicker { from { transform: scale(0.94, 1.04); } to { transform: scale(1.05, 0.95); } }

/* Incense coil: it burns from the outer end to the middle, and the ember travels with it. */
.timer .coil-live { stroke-dasharray: 100 100; }
.timer .ember { offset-distance: 100%; offset-rotate: 0deg; }
.demo[data-state="run"] .coil-live { animation: coil 9s linear forwards; }
.demo[data-state="run"] .ember { animation: ember 9s linear forwards; }
.demo[data-state="mist"] .coil-live, .demo[data-state="clear"] .coil-live { stroke-dasharray: 5 100; }
.demo[data-state="mist"] .ember, .demo[data-state="clear"] .ember { offset-distance: 5%; opacity: 0.35; }
@keyframes coil { to { stroke-dasharray: 5 100; } }
@keyframes ember { to { offset-distance: 5%; } }
@supports not (offset-path: path("M0 0")) { .timer .ember { display: none; } }

.mist { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1); touch-action: pan-y; pointer-events: none; }
.demo[data-state="mist"] .mist { opacity: 1; pointer-events: auto; }
.demo[data-state="mist"] .feed, .demo[data-state="clear"] .feed { animation-play-state: paused; }
.demo[data-state="mist"] .timer, .demo[data-state="clear"] .timer { animation-play-state: paused; }
.wipe-card { position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.9rem; z-index: 4; background: var(--dusk); color: var(--on-dusk); border-radius: 1rem; padding: 0.8rem 1rem; text-align: center; opacity: 0; transform: translateY(0.5rem); transition: opacity 0.6s, transform 0.6s; pointer-events: none; }
.wipe-card b { display: block; font: 600 0.95rem/1.3 var(--sans); }
.wipe-card span { display: block; font-size: 0.8rem; line-height: 1.35; color: var(--on-dusk-muted); }
.wipe-card i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); margin-top: 0.55rem; overflow: hidden; }
.wipe-card i::after { content: ""; display: block; height: 3px; width: calc(var(--wiped, 0) * 100%); background: var(--dusk-accent); transition: width 0.2s; }
.demo[data-state="mist"] .wipe-card { opacity: 1; transform: none; }

.breath { position: absolute; inset: 0; z-index: 5; background: #141A28; color: #EEE6D6; display: grid; align-content: center; justify-items: center; gap: 0.5rem; padding: 1.5rem; text-align: center; opacity: 0; visibility: hidden; transition: opacity 0.8s, visibility 0.8s; }
.demo[data-state="clear"] .breath { opacity: 1; visibility: visible; }
.breath-circle { width: 6.5rem; height: 6.5rem; border-radius: 50%; background: radial-gradient(circle, #8E8876 0 18%, #2A3142 19% 100%); margin-bottom: 1rem; animation: breathe 5.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.82); } 43% { transform: scale(1.08); } }
.breath b { font: 500 1.25rem/1.25 var(--display); }
.breath span { font-size: 0.85rem; color: #A69D8E; }
.breath button { margin-top: 1.1rem; }
.demo-note { text-align: center; font-size: 0.9rem; color: var(--muted); max-width: 22rem; margin: 0; }
.demo-note button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 1.4rem; }
.section-alt .steps li { background: var(--bg); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); font: 600 1rem var(--display); margin-bottom: 0.9rem; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.25rem; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 1.5rem; }
.section-alt .card { background: var(--bg); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card .tag { display: inline-block; font: italic 500 0.95rem var(--display); color: var(--accent); margin-bottom: 0.5rem; }
.card.is-yours { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card ul { padding-left: 1.1rem; color: var(--muted); }
.card li { margin-bottom: 0.35rem; }
.way { border-left: 3px solid var(--outline); }
.way.ours { border-left-color: var(--accent); }
.way h3 small { display: block; font: 400 0.9rem var(--sans); color: var(--muted); letter-spacing: 0; margin-top: 0.25rem; }

/* Screens */
.screens { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 1.25rem 1.5rem; margin: 2rem 0 0; scrollbar-width: thin; }
.screens figure { flex: 0 0 min(64vw, 15.5rem); margin: 0; scroll-snap-align: center; }
.screens.mac figure { flex-basis: min(86vw, 34rem); }
.screens img { border-radius: 14px; border: 1px solid var(--outline); width: 100%; }
.screens:focus-visible { outline-offset: -2px; }
.video-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--outline); background: #000; margin-top: 2rem; }
.video-frame video { width: 100%; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--outline); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--outline); }
tr:last-child > td { border-bottom: 0; }
thead th { font: 600 0.9rem var(--sans); color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }
tr.ours > * { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
td.yes { color: var(--success); font-weight: 600; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.25rem; }
.plan { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 1.75rem; }
.plan.pro { border-color: var(--accent); }
.plan .price { font: 500 2.6rem/1 var(--display); margin: 0.4rem 0 0.2rem; }
.plan .price small { font: 400 1rem var(--sans); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.plan li { padding: 0.5rem 0 0.5rem 1.6rem; border-top: 1px solid var(--outline); position: relative; }
.plan li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }

/* Articles (guides, privacy, press) */
.article { padding-top: clamp(2rem, 5vw, 3.5rem); }
.article h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.article h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 2.2em; }
.article h3 { margin-top: 1.6em; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: 0.45rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.answer { background: var(--surface); border: 1px solid var(--outline); border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.answer p:last-child { margin: 0; }
.note { background: var(--accent-soft); color: var(--on-accent-soft); border-radius: 14px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.note a { color: inherit; }
.note p:last-child { margin: 0; }
.path { font-weight: 600; }
.checked { font-size: 0.9rem; color: var(--muted); }
.kiri-box { background: var(--dusk); color: var(--on-dusk); border-radius: 18px; padding: 1.75rem; margin: 2.5rem 0; }
.kiri-box h2, .kiri-box h3 { margin-top: 0; font-size: 1.5rem; }
.kiri-box p { color: var(--on-dusk-muted); }
.kiri-box .btn-row { margin-bottom: 0; }
.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--outline); }
.related h2 { font-size: 1.2rem; margin-top: 0; }
.related ul { list-style: none; padding: 0; }

/* Guide lists */
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0 3rem; padding: 0; list-style: none; }
.guide-list a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--text); }
.guide-list a:hover { border-color: var(--accent); }
.guide-list b { display: block; font: 500 1.15rem/1.3 var(--display); margin-bottom: 0.3rem; }
.guide-list span { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
details { border-top: 1px solid var(--outline); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--outline); }
summary { cursor: pointer; font: 500 1.15rem/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-family: var(--sans); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0.75rem 0 0; max-width: 40em; }

/* Final call */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--outline); background: var(--surface); padding: 3rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2 { font: 600 0.9rem var(--sans); letter-spacing: 0; color: var(--muted); margin-bottom: 0.75rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid > div:not(.footer-brand) a { display: block; padding: 0.25rem 0; }
.footer-brand p { color: var(--muted); margin: 0.9rem 0 0; max-width: 18rem; }
.footer-kanji span { font-size: 1.3rem; margin-right: 0.3rem; color: var(--text); }
.footer-more, .footer-legal { color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }
.footer-more { padding-top: 1.5rem; border-top: 1px solid var(--outline); }
.footer-more a { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 0.9rem; }

/* Lists and headings that sit inside an article but aren't prose */
.article .guide-list, .article .plan ul, .article .related ul { padding-left: 0; }
.article .plan h2, .article .kiri-box h2, .article .related h2 { margin-top: 0; }
.article .plan li { margin-bottom: 0; }

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.9rem; }
  .header-cta { display: none; }
  .brand span { font-size: 1.4rem; }
  .steps, .grid-2, .plans, .guide-list { grid-template-columns: 1fr; }
  .btn-row .btn-store { flex: 1 1 100%; justify-content: flex-start; }
  /* On a phone, show only that phone's store. The other devices are in the section below and the footer. */
  html[data-platform="ios"] .btn-store:not([data-store="ios"]), html[data-platform="android"] .btn-store:not([data-store="android"]) { display: none; }
}
@media (max-width: 24rem) {
  .nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed, .timer, .timer .flame, .breath-circle { animation: none; }
  .mist, .wipe-card, .breath { transition: none; }
}
