/* ============================================================
   21 Days / Draw Near — COTLE Prayer & Fasting 2027
   "The Threshold": black night hero, warm stone reader,
   21 arched windows. Mobile first; desktop expands.
   ============================================================ */

:root {
  --stone: #F5F1E9;
  --stone-deep: #ECE5D8;
  --paper: #FFFDF8;
  --ink: #1F201D;
  --ink-soft: #48433B;
  --ink-faint: #7C7568;
  --rule: #E1D8C7;
  --night: #232421;
  --night-soft: #30322E;
  --cream-on-night: #F3EDE1;
  --muted-on-night: #A69E8F;

  /* COTLE 2027 brand: charcoal + orange (from the new logo) */
  --accent: #EE7F36;
  --accent-ink: #A44C12;   /* orange for text on light backgrounds (AA) */
  --accent-wash: #FCEADD;
  --charcoal: #282A27;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-bold: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Caveat', 'Segoe Print', cursive;
  --font-signature: 'Herr Von Muellerhoff', 'Segoe Script', cursive;

  --gutter: 20px;
  --measure: 640px;
  --tabbar-h: 64px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 19, 17, .05), 0 10px 28px rgba(20, 19, 17, .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: rgba(245, 241, 233, .95);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar__row { display: flex; align-items: center; gap: 12px; padding: 6px var(--gutter) 4px; }
.topbar__brand img { width: 30px; height: 30px; }

/* running day marker (every page) */
.daybar {
  display: grid; gap: 6px; padding: 2px var(--gutter) 10px; text-decoration: none; color: var(--ink);
}
.daybar__text { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daybar__text span { color: var(--ink-faint); font-weight: 600; }
.daybar__track { display: grid; grid-template-columns: repeat(21, 1fr); gap: 3px; align-items: center; }
.daybar__seg { height: 6px; border-radius: 3px; background: #DDD5C6; }
.daybar__seg[data-s="open"] { background: #C3BAA9; }
.daybar__seg[data-s="done"] { background: var(--accent); }
.daybar__seg[data-today="true"] { height: 12px; box-shadow: 0 0 0 2px var(--charcoal); }
.daybar__track i:nth-child(7), .daybar__track i:nth-child(14) { margin-right: 4px; }
.topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.topbar__title { border-left: 1px solid var(--rule); padding-left: 10px; }
.topbar__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.topbar__slash { color: var(--accent-ink); }
.topbar__title { white-space: nowrap; }
@media (max-width: 420px) { .topbar__more { display: none; } }
.topnav { display: none; }
.syncchip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 500;
}
.syncchip[data-state="on"] { color: var(--accent-ink); border-color: #F2C3A1; background: var(--accent-wash); }
.syncchip[data-state="error"] { color: #9A2B1E; }

/* ---------- bottom tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 253, 248, .97);
  border-top: 1px solid var(--rule);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--ink-faint); font-size: 11px; font-weight: 500; letter-spacing: .02em;
}
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] svg { stroke: var(--accent); }

/* ---------- layout ---------- */
.app { outline: none; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 36px 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 10px;
}
html { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.005em; }
h2.title { font-size: 32px; margin-bottom: 14px; }
p { margin: 0 0 1em; }
.lede { font-size: 18px; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--charcoal);
}
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: var(--cream-on-night); color: var(--night); }
.btn--line-light { background: transparent; color: var(--cream-on-night); box-shadow: inset 0 0 0 1.5px rgba(243, 237, 225, .45); }
.btn--block { width: 100%; }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.linkbtn { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--accent-ink); font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }

/* ---------- hero (home): bold charcoal banner ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: var(--cream-on-night);
  padding: 26px var(--gutter) 38px; text-align: center;
}
.hero__rings { position: absolute; z-index: -1; width: 150vw; max-width: 900px; top: 50%; left: 50%; transform: translate(-50%, -58%); opacity: .07; pointer-events: none; }
.hero__title { margin: 6px 0 0; font-family: var(--font-bold); display: grid; justify-items: center; }
.hero__21 { font-weight: 900; font-size: clamp(190px, 62vw, 360px); line-height: .8; letter-spacing: -.06em; margin-right: .06em; }
.hero__words { margin-top: 12px; font-weight: 800; font-size: clamp(25px, 8.4vw, 44px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.hero__words em { font-style: normal; color: var(--accent); }
.hero__wrap { display: block; }
.hero__sub { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(46px, 14vw, 68px); line-height: 1; color: #F4A066; margin: 16px 0 10px; }
.hero__dates { font-size: 15px; color: var(--cream-on-night); opacity: .85; margin: 0 0 22px; }
.hero__ctas { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }
.hero .btn--ghost, .kids__hero .btn--ghost { color: var(--cream-on-night); box-shadow: inset 0 0 0 1.5px rgba(243, 237, 225, .55); }
.hero__line { margin: 22px 0 0; font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--muted-on-night); }

/* ---------- letter ---------- */
.letter { padding-top: 34px; padding-bottom: 6px; }
.letter__greet { font-family: var(--font-script); font-size: 32px; line-height: 1.1; margin: 0 0 14px; }
.letter p:not([class]) { font-size: 17.5px; }
.letter__more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--accent-ink); }
.letter__pull { margin: 1.4em 0; padding-left: 16px; border-left: 3px solid var(--accent); font-family: var(--font-bold); font-weight: 800; font-size: 21px; line-height: 1.2; text-transform: uppercase; }
.letter__sign { font-family: var(--font-signature); font-size: clamp(34px, 12vw, 60px); line-height: 1.1; margin: 10px 0 2px; white-space: nowrap; color: var(--charcoal); }
.letter__names { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.letter__ps { font-family: var(--font-script); font-size: 24px; color: var(--accent-ink); margin-top: 18px; }

/* ---------- 21 marks ---------- */
.marks { padding: 30px 0 8px; }
.marks__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.marks__head h2 { font-size: 28px; }
.marks__count { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-faint); white-space: nowrap; }
.marks__row { margin-bottom: 14px; }
.marks__label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 6px; }
.marks__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 520px; }
.mark {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; min-height: 44px; text-decoration: none; border-radius: 50%;
  font-family: var(--font-bold); font-weight: 800; font-size: 17px; line-height: 1;
  color: var(--ink); background: var(--paper); border: 2.5px solid var(--charcoal);
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.mark:active { transform: scale(.94); }
.mark[data-state="upcoming"] { color: var(--ink-faint); border: 2px dashed #B9B1A2; background: transparent; }
.mark[data-state="done"] { background: var(--accent); border-color: var(--accent); color: var(--charcoal); }
.mark[data-today="true"] { box-shadow: 0 0 0 3px var(--stone), 0 0 0 5.5px var(--charcoal); }
.marks__caption { text-align: center; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--ink-soft); margin: 18px 0 6px; }
.marks__sync { text-align: center; font-size: 14px; color: var(--ink-faint); margin: 0; }

/* ---------- movements ---------- */
.moves { display: grid; gap: 12px; }
.move { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; text-decoration: none; color: inherit; }
.move__n { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: .9; color: var(--accent-ink); }
.move h3 { font-size: 25px; margin-bottom: 2px; }
.move p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.move__days { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

.howlist { list-style: none; margin: 0; padding: 0; counter-reset: how; }
.howlist li { counter-increment: how; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); }
.howlist li::before { content: counter(how); font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); padding-top: 4px; }
.howlist strong { display: block; }
.howlist span { color: var(--ink-soft); font-size: 16px; }

.linkrows { display: grid; gap: 10px; }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 14px 18px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.linkrow strong { display: block; font-size: 16.5px; }
.linkrow span { color: var(--ink-faint); font-size: 14px; }
.linkrow::after { content: '→'; color: var(--accent-ink); font-size: 18px; }
.linkrow--download { background: var(--accent-wash); border-color: #F2C3A1; }
.linkrow--download::after { content: '↓'; font-weight: 700; }

/* ---------- day reader ---------- */
.dayhead { padding: 26px 0 8px; }
.dayhead__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.dayhead__meta b { color: var(--accent-ink); font-weight: 700; }
.dayhead h1 { font-size: clamp(38px, 11vw, 56px); line-height: 1.02; margin-bottom: 8px; }
.dayhead__focus { font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--ink-soft); margin: 0; line-height: 1.35; }

.passage { margin: 22px 0 6px; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.passage__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--accent); color: var(--charcoal); }
.passage__sub { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .78; }
.passage__ref { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; margin: 2px 0 0; }
.passage__nasb { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--charcoal); color: #FFF8F0; font-weight: 700; font-size: 14px; text-decoration: none; }
.passage__body { position: relative; padding: 18px 18px 6px; }
.passage__body p { margin: 0; font-family: var(--font-display); font-size: 21px; line-height: 1.55; font-weight: 500; }
.passage__body sup { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--accent-ink); margin-right: 3px; vertical-align: .55em; letter-spacing: 0; }
.passage--long .verse--more { display: none; }
.passage--long .passage__body p { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.passage__more { display: block; width: 100%; min-height: 48px; margin: 6px 0 8px; border-radius: 999px; border: 1.5px solid var(--charcoal); background: transparent; color: var(--charcoal); font-weight: 700; font-size: 15px; cursor: pointer; }
.passage__note { margin: 0; padding: 8px 18px 16px; font-size: 13px; color: var(--ink-faint); }

.devotional { padding: 18px 0 6px; font-size: 18px; line-height: 1.72; }
.devotional p { margin: 0 0 1.05em; }
.devotional strong { font-weight: 700; background: linear-gradient(transparent 60%, #F9D6BD 60%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 1px; }
.aha {
  margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.28; color: var(--ink);
}

.ancient {
  margin: 10px 0 28px; padding: 20px 20px 18px; border-radius: 0 0 var(--radius) var(--radius);
  background: #EEE5D4; border-top: 4px solid var(--charcoal);
}
.ancient__label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.ancient__label::before { content: ''; width: 22px; height: 2px; background: var(--accent); }
.ancient__who { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.1; }
.ancient__who span { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-left: 6px; white-space: nowrap; }
.ancient__text { margin: 0 0 12px; font-family: var(--font-display); font-size: 21px; line-height: 1.45; font-weight: 500; }
.ancient__src { margin: 0; padding-top: 10px; border-top: 1px solid #D6CAB3; font-size: 13.5px; color: var(--ink-soft); }

.block { margin: 26px 0; }
.block__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 8px; font-weight: 700; }
.block__q { font-family: var(--font-display); font-size: 25px; line-height: 1.25; font-weight: 600; margin: 0 0 14px; }

.notes label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); margin: 12px 0 6px; }
.notes input, .notes textarea {
  width: 100%; border: 1.5px solid var(--rule); background: var(--paper); border-radius: 10px;
  padding: 12px 14px; font-size: 17px; line-height: 1.5;
}
.notes input:focus, .notes textarea:focus { border-color: var(--accent); outline: none; }
.notes textarea { min-height: 110px; resize: vertical; }
.notes__privacy { font-size: 13.5px; color: var(--ink-faint); margin: 8px 0 0; }

.prayer { background: var(--night); color: var(--cream-on-night); border-radius: var(--radius); padding: 26px 22px; margin: 30px 0; }
.prayer .block__label { color: #F4A066; }
.prayer p:not(.block__label) { font-family: var(--font-display); font-size: 23px; line-height: 1.45; font-weight: 500; margin: 0; }

.practice { border-left: 3px solid var(--ink); padding-left: 16px; }
.practice p:not(.block__label) { margin: 0; font-size: 17.5px; }

.carry { text-align: center; padding: 30px 6px 10px; border-top: 1px solid var(--rule); margin-top: 32px; }
.carry p:not(.block__label) { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 28px; line-height: 1.25; margin: 0; }

.complete { margin: 26px 0 8px; }
.complete .btn[aria-pressed="true"] { background: var(--paper); color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent); }
.complete__note { text-align: center; font-size: 13.5px; color: var(--ink-faint); margin: 8px 0 0; }

.daynav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 10px; }
.daynav a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); }
.daynav a:last-child { text-align: right; }
.daynav small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.daynav span { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.15; }
.dayactions { display: flex; justify-content: center; gap: 18px; margin-bottom: 30px; }

/* ---------- adults / families toggle ---------- */
.tracktoggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 18px 0 2px; padding: 4px; border-radius: 999px; background: var(--stone-deep); }
.tracktoggle a { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 14.5px; }
.tracktoggle a[aria-current="page"] { background: var(--charcoal); color: #FFF8F0; }

/* ---------- KOTLE family track ---------- */
.kids__adult { margin: 0 0 4px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.notice { margin: 22px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-wash); border: 2px dashed #F0B48A; }
.notice__label { margin: 0 0 6px; font-family: var(--font-bold); font-weight: 800; font-size: 19px; color: var(--accent-ink); }
.notice p:not(.notice__label) { margin: 0; font-size: 17.5px; line-height: 1.6; }
.talk .block__q { margin-bottom: 0; }
.checkin { margin: 26px 0 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); }
.checkin .block__q { margin-bottom: 6px; }
.checkin__help { margin: 0; font-size: 15px; color: var(--ink-soft); }
.kids__hero { background: var(--night); color: var(--cream-on-night); padding: 34px 0 38px; }
.kids__brand { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--font-bold); font-weight: 800; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: #F4A066; }
.kids__brand img { width: 34px; height: auto; }
.kids__hero h1 { font-family: var(--font-bold); font-weight: 900; font-size: clamp(36px, 10.5vw, 60px); line-height: 1; letter-spacing: -.02em; margin: 0 0 12px; }
.kids__sub { font-size: 17px; color: var(--cream-on-night); opacity: .85; margin: 0 0 22px; }
.kids__hero .hero__ctas { margin: 0; }
.kids__sec h2 { font-size: 27px; margin: 30px 0 8px; }
.kids__list { padding-left: 1.2em; margin: 0 0 1em; }
.kids__list li { margin-bottom: .55em; }


.dlist { list-style: none; margin: 0 0 28px; padding: 0; }
.dlist li + li { border-top: 1px solid var(--rule); }
.dlist a { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; min-height: 64px; text-decoration: none; color: var(--ink); }
.dlist .mark { font-size: 15px; min-height: 0; width: 40px; }
.dlist strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.15; }
.dlist small { color: var(--ink-faint); font-size: 13.5px; }
.dlist__date { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-faint); text-transform: uppercase; text-align: right; }
.movehead { padding-top: 22px; margin-bottom: 4px; }
.movehead h2 { font-size: 30px; }
.movehead p { color: var(--ink-faint); font-size: 14.5px; margin: 2px 0 0; }

/* ---------- info pages ---------- */
.page { padding-top: 28px; padding-bottom: 40px; }
.page h1 { font-size: clamp(38px, 10vw, 52px); margin-bottom: 12px; }
.page h2 { font-size: 27px; margin: 30px 0 8px; }
.page ul { padding-left: 1.1em; margin: 0 0 1em; }
.page li { margin-bottom: .5em; }
.steps { display: grid; gap: 12px; margin: 18px 0; }
.step { padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.step strong { display: block; font-family: var(--font-display); font-size: 22px; margin-bottom: 2px; }
.step p { margin: 0; color: var(--ink-soft); }
.emailbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: var(--radius); background: var(--night); color: var(--cream-on-night); margin: 18px 0; }
.emailbox a { color: var(--cream-on-night); font-weight: 700; font-size: 18px; word-break: break-all; }
.callout { padding: 16px 18px; border-radius: var(--radius); background: var(--stone-deep); color: var(--ink-soft); margin: 18px 0; }
.callout strong { color: var(--ink); }

/* ---------- sync page ---------- */
.syncpanel { margin: 18px 0; }
.syncpanel h2 { font-size: 26px; margin: 0 0 6px; }
.syncpanel p { color: var(--ink-soft); }
.field { display: grid; gap: 8px; margin: 12px 0; }
.field input { width: 100%; min-height: 52px; border: 1.5px solid var(--rule); background: var(--paper); border-radius: 12px; padding: 0 16px; font-size: 18px; }
.field input:focus { border-color: var(--accent); outline: none; }
.field input.code { font-family: var(--font-mono); font-size: 26px; letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.err { color: #9A2B1E; font-size: 14.5px; min-height: 1.2em; margin: 4px 0 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 26px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.qr { display: grid; justify-items: center; gap: 10px; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--rule); text-align: center; }
.qr img { width: 200px; height: 200px; image-rendering: pixelated; }
.qr__code { font-family: var(--font-mono); font-size: 30px; font-weight: 700; letter-spacing: .25em; padding-left: .25em; }
.qr__help { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.status { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--accent-wash); color: var(--ink); margin: 16px 0; }
.status svg { flex: none; color: var(--accent-ink); }
.dangerzone { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.sitefoot { text-align: center; padding: 34px var(--gutter) 30px; border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: 13.5px; }
.sitefoot__logo { margin: 0 auto 14px; width: 84px; height: auto; }
.sitefoot__name { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.sitefoot__links a { color: var(--ink-soft); }

/* ---------- desktop expands ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 17.5px; }
  .tabbar { display: none; }
  .toast { bottom: 28px; }
  .topbar__row, .daybar { padding-left: 32px; padding-right: 32px; }
  .daybar { grid-template-columns: auto minmax(0, 520px); justify-content: space-between; align-items: center; gap: 24px; }
  .topnav { display: flex; gap: 4px; margin-left: auto; }
  .topnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
  .topnav a[aria-current="page"] { color: var(--ink); background: var(--stone-deep); }
  .syncchip { margin-left: 8px; }
  .hero { padding: 56px 40px 64px; text-align: left; }
  .hero__inner { display: grid; grid-template-columns: auto minmax(0, 500px); grid-template-areas: "title body"; column-gap: 64px; row-gap: 8px; align-items: center; justify-content: center; max-width: 1120px; margin: 0 auto; }
  .hero__title { grid-area: title; justify-items: start; margin: 0; }
  .hero__21 { font-size: clamp(260px, 26vw, 380px); }
  .hero__words { font-size: clamp(34px, 3.4vw, 48px); }
  .hero__body { grid-area: body; }
  .hero__sub { margin-top: 0; font-size: 72px; }
  .hero__rings { width: 900px; left: auto; right: -160px; transform: translateY(-50%); }
  .hero__ctas { grid-template-columns: 1fr 1fr; max-width: 500px; margin: 0; }
  .hero__ctas > .btn:first-child { grid-column: 1 / -1; }
  .hero__wrap { display: inline; }
  .home {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start;
    grid-template-areas: "marks moves" "how how" "links links";
    max-width: 1120px; margin: 0 auto; padding: 8px 40px 24px;
  }
  .home > .wrap { padding-left: 0; padding-right: 0; max-width: none; margin: 0; }
  .home__marks { grid-area: marks; } .home__moves { grid-area: moves; }
  .home__how { grid-area: how; padding-top: 12px; }
  .home__how .howlist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .home__how .howlist li { grid-template-columns: 1fr; align-content: start; gap: 4px; border-top: 2px solid var(--charcoal); padding-top: 12px; }
  .home__moves { padding-top: 30px; }
  .home__links { grid-area: links; padding-top: 8px; }
  .home__links .linkrows { grid-template-columns: repeat(4, 1fr); }
  .home__links .linkrow { align-items: flex-start; min-height: 96px; }
  .marks__grid { gap: 10px; }
  .mark { font-size: 20px; }
  .moves { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- hover motion (mouse and trackpad only, so taps never stick) ---------- */
.btn, .linkrow, .linkrow::after, .daynav a, .passage__nasb, .passage__more, .syncchip, .topnav a, .tabbar a,
.mark, .move__n, .move h3, .dlist strong, .linkbtn, .letter__more {
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .tracktoggle a:not([aria-current]):hover { background: var(--paper); color: var(--ink); }
  .btn:hover { transform: translateY(-2px); background: #F39050; box-shadow: 0 10px 22px rgba(238, 127, 54, .32); }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 22px rgba(20, 19, 17, .14); }
  .hero .btn--ghost:hover, .kids__hero .btn--ghost:hover { background: var(--cream-on-night); color: var(--night); box-shadow: inset 0 0 0 1.5px var(--cream-on-night), 0 10px 22px rgba(0, 0, 0, .3); }
  .complete .btn[aria-pressed="true"]:hover { background: var(--accent-wash); color: var(--accent-ink); }
  .linkrow:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
  .linkrow:hover::after { transform: translateX(4px); }
  .linkrow--download:hover::after { transform: translateY(3px); }
  .daynav a:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
  .passage__nasb:hover { background: var(--paper); color: var(--charcoal); transform: translateY(-1px); }
  .passage__more:hover { background: var(--charcoal); color: #FFF8F0; }
  .syncchip:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
  .topnav a:hover { background: var(--stone-deep); color: var(--ink); }
  .tabbar a:hover { color: var(--ink); }
  .mark:hover { transform: scale(1.08); }
  .mark[data-state="upcoming"]:hover { border-color: var(--charcoal); color: var(--ink); }
  .move:hover .move__n { transform: translateX(4px); }
  .move:hover h3, .dlist a:hover strong { color: var(--accent-ink); }
  .dlist a:hover .mark { transform: scale(1.08); }
  .linkbtn:hover, .letter__more:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; padding: 0; font-size: 12pt; }
  .topbar, .tabbar, .sitefoot, .complete, .daynav, .dayactions, .notes, .toast, .skip, .syncchip { display: none !important; }
  .passage__head, .prayer { background: #fff !important; color: #000 !important; border: 1px solid #999; }
  .passage__nasb, .passage__more { display: none !important; }
  .passage--long .verse--more { display: inline !important; }
  .passage--long .passage__body p { -webkit-mask-image: none; mask-image: none; }
  .prayer .block__label { color: #444 !important; }
  .ancient { background: #fff !important; border: 1px solid #999; border-top: 3px solid #000; }
  a { color: #000; text-decoration: none; }
}
