/* Sermon Studio portal. Layout: a quiet sticky nav, a two column hero (promise left, a living sample week right),
   then promise, week and inside bands, a closing line and a footer that names who looks after it.
   Theme (Rik, 2026-11-28): every Equippers screen opens dark, Apple charcoal, with a switch to light; the same palette
   and the same stored choice (sermon-studio:mode) as the Sermon Studio app, so the portal and the app feel like one. */
:root {
  --bg: #1c1c1e; --bg-2: #19191b; --surface: #2c2c2e; --raised: #3a3a3c; --line: #3a3a3c; --hair: rgba(255, 255, 255, .07);
  --ink: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73;
  --accent: #ff6b78; --accent-fill: #c8102e; --accent-press: #9e0b22; --accent-soft: rgba(255, 107, 120, .12);
  --glow-a: rgba(200, 16, 46, .38); --glow-b: rgba(255, 107, 120, .12);
  --ok: #30d158; --ok-soft: rgba(48, 209, 88, .14); --wait: #ffd60a; --wait-soft: rgba(255, 214, 10, .12);
  --card: rgba(44, 44, 46, .78); --card-line: rgba(255, 255, 255, .09);
  --field: #232325; --on-accent: #ffffff; --google-bg: #ffffff; --google-ink: #1f1f1f;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px rgba(0, 0, 0, .35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", "New York", Georgia, "Times New Roman", serif;
  --label: "Oswald", "Arial Narrow", Arial, sans-serif;
  --r: 20px; --r-sm: 12px; --wrap: 1160px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f2f7; --bg-2: #ebebf0; --surface: #ffffff; --raised: #ececf1; --line: #c6c6c8; --hair: rgba(0, 0, 0, .06);
  --ink: #1c1c1e; --muted: #6c6c70; --faint: #8e8e93;
  --accent: #c8102e; --accent-fill: #c8102e; --accent-press: #9e0b22; --accent-soft: rgba(200, 16, 46, .07);
  --glow-a: rgba(200, 16, 46, .16); --glow-b: rgba(200, 16, 46, .06);
  --ok: #248a3d; --ok-soft: rgba(36, 138, 61, .1); --wait: #8a6a12; --wait-soft: rgba(176, 132, 0, .12);
  --card: rgba(255, 255, 255, .86); --card-line: rgba(0, 0, 0, .07);
  --field: #ffffff; --google-bg: #ffffff; --google-ink: #1f1f1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 60px rgba(28, 28, 30, .1);
  color-scheme: light;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden }
a { color: inherit }
img, svg { max-width: 100% }
h1, h2, h3 { margin: 0; text-wrap: balance }
p { margin: 0 }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 10px }
.skip:focus { left: 16px }
.muted { color: var(--muted) }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.eyebrow, .label { font: 500 12.5px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--accent) }
em { font-style: italic }
svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }

/* Logo: the original Equippers artwork, one file per theme. */
.eqlogo { display: inline-flex; align-items: center }
.eqlogo img { height: 22px; width: auto; display: block }
.eqlogo.small img { height: 18px }
.eqlogo .on-light, :root[data-theme="light"] .eqlogo .on-dark { display: none }
:root[data-theme="light"] .eqlogo .on-light { display: block }
.when-light, :root[data-theme="light"] .when-dark { display: none }
:root[data-theme="light"] .when-light { display: inline }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s cubic-bezier(.19, 1, .22, 1), background-color .2s, border-color .2s, box-shadow .25s }
.btn svg { width: 18px; height: 18px; transition: transform .25s cubic-bezier(.19, 1, .22, 1) }
.btn:hover { transform: translateY(-2px) }
.btn:hover svg { transform: translateX(3px) }
.btn:active { transform: scale(.97) }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); box-shadow: 0 10px 30px -10px var(--glow-a) }
.btn.primary:hover { background: #d8193a; box-shadow: 0 16px 40px -12px var(--glow-a) }
.btn.ghost { border-color: var(--line); background: color-mix(in srgb, var(--surface) 40%, transparent) }
.btn.ghost:hover { border-color: var(--muted) }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px }
.btn.wide { width: 100% }
.iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none }
.iconbtn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent) }
.iconbtn svg { width: 19px; height: 19px }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font: 600 14px var(--font); cursor: pointer }
.linkbtn:hover { text-decoration: underline }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: background-color .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent }
.nav.scrolled, .nav.solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--hair) }
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0 }
.brand .bar { width: 1px; height: 22px; background: var(--line) }
.brand .prod { font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap }
.links { display: flex; gap: 4px; margin-left: auto }
.links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px }
.links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent) }
.nav-act { display: flex; align-items: center; gap: 8px; margin-left: auto }
.links + .nav-act { margin-left: 8px }
.nav-act form { margin: 0 }
.who { color: var(--muted); font-size: 13.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px }
.glow { position: absolute; pointer-events: none; inset: -20% -10% auto; height: 820px;
  background: radial-gradient(48% 52% at 72% 38%, var(--glow-a), transparent 70%), radial-gradient(40% 40% at 18% 8%, var(--glow-b), transparent 70%) }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%) }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center }
.hero-copy { display: grid; gap: 24px; min-width: 0 }
h1 { font: 400 clamp(52px, 7.4vw, 96px)/.98 var(--serif); letter-spacing: -.02em }
h1 em, h2 em, .side-quote em { color: var(--accent) }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); max-width: 34em }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px }
.cta-row.center { justify-content: center }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px }
.ticks li { display: inline-flex; align-items: center; gap: 8px }
.ticks svg { width: 17px; height: 17px; color: var(--ok); stroke-width: 2.4 }
.ticks.col { flex-direction: column; gap: 12px }

/* The sample week */
.stage { position: relative; height: 540px; min-width: 0 }
.card { position: absolute; display: grid; gap: 10px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--card-line);
  box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px) }
.card strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em }
.card .muted { font-size: 13px }
.c-top { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.tag { font: 500 11.5px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--raised); color: var(--ink) }
.tag.red { background: var(--accent-soft); color: var(--accent) }
.s-sunday { top: 6px; left: 0; width: min(330px, 78%); animation: float 9s ease-in-out infinite }
.s-monday { top: 150px; right: 0; width: min(360px, 84%); animation: float 10s ease-in-out -3s infinite }
.s-approved { bottom: 34px; left: 6%; display: flex; align-items: center; gap: 14px; padding: 16px 20px 16px 16px; animation: float 8s ease-in-out -5s infinite }
.s-approved div { display: grid; gap: 2px }
.s-approved strong { font-size: 15px }
.seal { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); flex: none }
.seal svg { width: 22px; height: 22px; stroke-width: 2.6 }
.seal.big { width: 56px; height: 56px; margin-bottom: 4px }
.seal.big svg { width: 28px; height: 28px }
.seal.lock { background: var(--accent-soft); color: var(--accent) }
.sample-note { position: absolute; right: 4px; bottom: 6px; font: 500 11px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--faint) }
.wave { display: flex; align-items: center; gap: 3px; height: 44px; margin-top: 4px }
.wave i { flex: 1; border-radius: 2px; background: color-mix(in srgb, var(--accent) 70%, transparent); transform-origin: center; animation: speak 1.6s ease-in-out infinite }
.wave .w0 { height: 30%; animation-delay: -.2s } .wave .w1 { height: 62%; animation-delay: -.5s } .wave .w2 { height: 88%; animation-delay: -.9s }
.wave .w3 { height: 46%; animation-delay: -1.1s } .wave .w4 { height: 74%; animation-delay: -.3s } .wave .w5 { height: 38%; animation-delay: -1.4s } .wave .w6 { height: 56%; animation-delay: -.7s }
.drafts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px }
.drafts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--raised) 55%, transparent); font-size: 14px }
.drafts b { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 999px; font-size: 12px; font-weight: 600 }
.drafts b svg { width: 15px; height: 15px; stroke-width: 2.6 }
.drafts .ok { background: var(--ok-soft); color: var(--ok) }
.drafts .wait { padding: 0 10px; background: var(--wait-soft); color: var(--wait) }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes speak { 0%, 100% { transform: scaleY(1) } 50% { transform: scaleY(.45) } }
.hero-copy > * { animation: rise .9s cubic-bezier(.19, 1, .22, 1) both }
.hero-copy > :nth-child(2) { animation-delay: .06s } .hero-copy > :nth-child(3) { animation-delay: .12s }
.hero-copy > :nth-child(4) { animation-delay: .18s } .hero-copy > :nth-child(5) { animation-delay: .24s }
@keyframes rise { from { transform: translateY(14px) } to { transform: none } }

/* Bands */
.band { padding: 104px 0; border-top: 1px solid var(--hair) }
.band.alt { background: var(--bg-2) }
.band .wrap { display: grid; gap: 16px }
h2 { font: 400 clamp(36px, 4.6vw, 58px)/1.04 var(--serif); letter-spacing: -.015em; max-width: 18em }
.sub { color: var(--muted); font-size: 17px; max-width: 40em }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px }
.promise, .room { display: grid; align-content: start; gap: 12px; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--card-line); min-width: 0;
  transition: transform .3s cubic-bezier(.19, 1, .22, 1), border-color .3s }
.promise:hover, .room:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--card-line)) }
.promise p, .room p, .step p { color: var(--muted); font-size: 15px }
.pi { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex: none }
.pi svg { width: 23px; height: 23px }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s }
.step { position: relative; display: grid; align-content: start; gap: 10px; padding: 28px 26px 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--card-line); min-width: 0 }
.step .num { font: 400 64px/1 var(--serif); color: var(--accent) }
.step .when { font: 500 12px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.step:not(:last-child)::after { content: ""; position: absolute; top: 58px; right: -17px; width: 18px; height: 2px; background: var(--line) }
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px }
.room { grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start }
.room div { display: grid; gap: 6px }
.closing { position: relative; overflow: hidden; padding: 120px 0; border-top: 1px solid var(--hair);
  background: radial-gradient(60% 80% at 50% 120%, var(--glow-a), transparent 70%) }
.closing-in { display: grid; gap: 36px; justify-items: center; text-align: center }
h2.big { font-size: clamp(42px, 6vw, 80px); max-width: 14em }

/* Footer */
.foot { border-top: 1px solid var(--hair); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)) }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px }
.foot-brand { display: grid; gap: 10px }
.foot-credit { font-size: 13.5px }
.foot p { font-size: 13.5px }

/* Sign in */
.auth { min-height: 100vh }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh }
.auth-side { position: relative; overflow: hidden; background: var(--bg-2); border-right: 1px solid var(--hair); display: flex; align-items: flex-end; padding: 56px }
.auth-side .glow { inset: auto -20% -30% -20%; height: 80% ; background: radial-gradient(50% 50% at 40% 60%, var(--glow-a), transparent 70%) }
.side-in { position: relative; display: grid; gap: 28px; align-self: stretch; align-content: space-between; width: 100% }
.side-quote { font: 400 clamp(48px, 5.4vw, 76px)/1 var(--serif); letter-spacing: -.02em }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)) }
.auth-top { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.auth-top .back { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px }
.auth-top .back:hover { color: var(--ink) }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 14px }
.auth-card h1 { font: 400 46px/1.02 var(--serif); letter-spacing: -.015em }
.phone-logo { display: none }
.btn.google { height: 50px; background: var(--google-bg); color: var(--google-ink); border-color: #dadce0; gap: 12px; margin-top: 6px }
.btn.google:hover { background: #f8f9fa }
.btn.google .g { width: 20px; height: 20px }
.or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.form { display: grid; gap: 8px }
.form label { font-size: 13.5px; font-weight: 600; margin-top: 6px }
.form input { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: 16px var(--font);
  transition: border-color .2s, box-shadow .2s }
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft) }
.form .btn.primary { margin-top: 12px; height: 50px }
.pw { position: relative }
.pw input { padding-right: 52px }
.pw .iconbtn { position: absolute; right: 5px; top: 5px }
.pw .iconbtn[aria-pressed="true"] { color: var(--accent) }
.hint { font-size: 13px; color: var(--muted) }
.small-links { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); margin-top: 4px }
.small-links a { color: var(--ink); font-weight: 500 }
.note { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45 }
.note.err { background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent) }
.note.ok { background: var(--ok-soft); color: var(--ink) }
.auth-foot { font-size: 12.5px }
.simple-main { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)) }
.simple-main .glow { inset: -30% -20% auto; height: 70% ; background: radial-gradient(40% 50% at 50% 40%, var(--glow-a), transparent 70%); opacity: .7 }
.simple-main > * { position: relative }
.simple .auth-card { padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px) }
.simple .auth-card h1 { font-size: 40px }

/* Portal home */
.portal-main { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 88px }
.hello { display: grid; gap: 14px }
.hello h1 { font-size: clamp(46px, 6vw, 76px) }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px }
.tile { position: relative; overflow: hidden; display: grid; align-content: start; gap: 12px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--card-line); min-width: 0 }
.tile h2 { font: 600 21px/1.2 var(--font); letter-spacing: -.01em }
.tile p { color: var(--muted) }
.tile > * { position: relative }
.main-tile { text-decoration: none; min-height: 280px; align-content: end; background: var(--bg-2); transition: transform .3s cubic-bezier(.19, 1, .22, 1), border-color .3s }
.main-tile .glow { position: absolute; inset: -40% -30% auto auto; width: 120%; height: 140%; background: radial-gradient(45% 45% at 70% 40%, var(--glow-a), transparent 70%) }
.main-tile h2 { font: 400 44px/1 var(--serif) }
.main-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--card-line)) }
.main-tile .pi { position: absolute; top: 28px; left: 28px }
.go { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600 }
.go svg { width: 18px; height: 18px; transition: transform .25s }
.main-tile:hover .go svg { transform: translateX(4px) }
.care-strip { display: grid; gap: 18px; padding: 28px; border-radius: 24px; border: 1px dashed var(--line) }
.care-strip h2 { font: 600 18px var(--font) }

/* Narrow screens */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) }
  .stage { height: 520px; max-width: 520px; width: 100%; justify-self: center }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .portal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .main-tile { grid-column: 1 / -1 }
}
@media (max-width: 860px) {
  .links { display: none }
  .auth-grid { grid-template-columns: minmax(0, 1fr) }
  .auth-side { display: none }
  .phone-logo { display: block; margin-bottom: 8px }
}
@media (max-width: 680px) {
  .hero { padding: 40px 0 64px }
  .band { padding: 72px 0 }
  .steps, .rooms, .promises, .portal-grid { grid-template-columns: minmax(0, 1fr) }
  .step:not(:last-child)::after { display: none }
  .stage { height: 500px }
  .s-sunday { width: 82% } .s-monday { width: 88%; top: 140px } .s-approved { left: 0 }
  .brand .bar, .brand .prod { display: none }
  .who { display: none }
  .cta-row .btn { flex: 1 1 auto }
  .simple .auth-card { padding: 24px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}
