:root {
  --primary: #6c4fd9;
  --primary-dark: #5638c7;
  --accent: #f9b800;
  --tint: #eeeafd;
  --bg: #ffffff;
  --surface: #f6f5f9;
  --ink: #1d1a2d;
  --text: #1D1A2D;
  --text-muted: #4a5560;
  --border: #e7e4f0;
  --radius: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Nunito', system-ui, sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Promo bar ---------- */

.promo-bar {
  background: var(--ink);
  color: #ffffff;
}

.promo-bar .container {
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  row-gap: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.promo-bar a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
}

.brand-lockup {
  display: block;
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.current {
  color: var(--primary-dark);
}

/* Anchor targets sit below the sticky promo bar + header. */
section[id] {
  scroll-margin-top: 128px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Six languages: one compact menu, each written in itself, instead of a
   row of pills that crowded the header. Kept on phones too. */
.lang-select {
  padding: 8px 32px 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Nunito', system-ui, sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--surface);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 64px;
  background: var(--surface);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

.hero p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 480px;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pricing-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-note a {
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Hero: the team's dashboard with a member's phone in front of it */
.hero-visual {
  padding: 0 0 40px 70px;
}

.hero-browser {
  width: 100%;
  align-self: flex-start;
}

.header-actions .btn {
  white-space: nowrap;
}

/* The QR link is for members; it gives way first when the header is tight
   (it stays in the footer). */
.site-header .container {
  max-width: 1240px;
}

@media (max-width: 1560px) {
  .site-nav .nav-qr {
    display: none;
  }
}

@media (max-width: 1200px) {
  .site-nav {
    display: none;
  }
}

.hero-visual .hero-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 170px;
  border-radius: 26px;
  padding: 6px;
}

.hero-phone .phone-screen {
  border-radius: 21px;
}

.sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: 480px;
  height: 480px;
  pointer-events: none;
}

.skyline {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.skyline svg {
  display: block;
}

/* ---------- Phone frame (real app screenshots) ---------- */

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  border-radius: 40px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(22, 35, 58, 0.35);
  flex-shrink: 0;
}

.phone-screen {
  border-radius: 31px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 390 / 844;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-sm {
  width: 236px;
  border-radius: 32px;
  padding: 8px;
  box-shadow: 0 18px 36px -18px rgba(22, 35, 58, 0.35);
}

.phone-sm .phone-screen {
  border-radius: 25px;
}

.modules-more {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
  margin: 32px auto 0;
}

.modules-more a {
  font-weight: 800;
  color: var(--primary-dark);
}

/* ---------- App gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 236px);
  justify-content: center;
  gap: 48px;
}

.shot {
  margin: 0;
}

.shot figcaption {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.4;
}

/* ---------- Admin screenshot in a browser frame ---------- */

.browser {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px -24px rgba(22, 35, 58, 0.3);
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--ink);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.browser img {
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-header .eyebrow {
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 900;
  margin: 0 0 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

#features .feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  #features .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 26px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon.tone-a {
  background: var(--primary);
}

.feature-icon.tone-b {
  background: var(--accent);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.price-tag.free {
  background: var(--primary-dark);
  color: #ffffff;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Split section (for churches / for congregants) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-reverse .split-media {
  order: 1;
}

.split-reverse .split-copy {
  order: 2;
}

.split h2 {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 900;
  margin: 10px 0 0;
}

.split p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.split ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.split li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.check {
  flex: none;
  color: var(--primary-dark);
  font-weight: 900;
}

.split .btn {
  margin-top: 22px;
}

.split-media {
  display: flex;
  justify-content: center;
}

.bg-surface {
  background: var(--surface);
}

/* ---------- Benefits, steps, dashboard rows ---------- */

.why-grid {
  grid-template-columns: repeat(3, 1fr);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: none;
}

.steps li {
  text-align: center;
  padding: 0 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 14px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.dash-row + .dash-row {
  margin-top: 64px;
}

.dash-row {
  grid-template-columns: 0.8fr 1.2fr;
}

.dash-row.split-reverse {
  grid-template-columns: 1.2fr 0.8fr;
}

.dash-row h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.find-row {
  margin-bottom: 72px;
}

.find-phones {
  gap: 32px;
}

.find-phones .phone {
  width: 236px;
}

.app-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 40px auto 0;
}

/* ---------- FAQ: one white box, one row per question ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 28px;
}

.faq details + details {
  border-top: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  position: relative;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: -6px 0 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 30px;
}

.price-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.price {
  margin: 10px 0 4px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.1;
}

.price small {
  font-size: 17px;
  font-weight: 800;
}

.price-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.pricing-example {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  margin: 28px auto 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 900;
}

.cta-band p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.cta-band .btn-primary {
  background: #ffffff;
  color: var(--primary-dark);
}

.cta-band .btn-primary:hover {
  background: var(--tint);
}

.cta-band .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .brand {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
}

.footer-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin: 0;
}

/* ---------- Join page ---------- */

.join-card {
  max-width: 480px;
  margin: 96px auto;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.join-card h1 {
  font-size: 26px;
  margin: 0 0 12px;
}

.join-card p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 24px;
}

.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.store-badge {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
}

.token-box {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
  word-break: break-all;
}

/* ---------- Pricing page ---------- */

.pricing-hero {
  text-align: center;
  padding: 96px 0 64px;
  background: var(--surface);
}

.pricing-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  margin: 16px 0 0;
}

.pricing-hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 14px auto 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding-left: 48px;
  }

  .hero-visual .hero-phone {
    width: 130px;
  }
}

@media (max-width: 960px) {
  .why-grid,
  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .dash-row,
  .dash-row.split-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dash-row.split-reverse .split-media {
    order: 2;
  }

  .dash-row.split-reverse .split-copy {
    order: 1;
  }

  .gallery {
    grid-template-columns: 236px;
  }

  .find-phones {
    gap: 16px;
  }

  .find-phones .phone {
    width: 46%;
    max-width: 220px;
  }

  #features .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  #features .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  /* The language menu keeps the header's room on phones; contact stays
     reachable from the call-to-action further down the page. */
  .header-actions .btn {
    display: none;
  }

  .split,
  .split-reverse .split-media,
  .split-reverse .split-copy {
    order: initial;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .faq {
    padding: 4px 18px;
  }

  .cta-band {
    margin: 0 16px;
    padding: 40px 24px;
  }
}

/* Feature cards on a beige section turn white, keeping one box on the beige. */
.bg-surface .feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
}

.bg-surface .price-tag:not(.free) {
  background: var(--tint);
}

.bg-surface .price-card {
  background: #ffffff;
  border: 1px solid var(--border);
}

/* Three plans (29 Oct 2026): Essentials is the one we recommend. */
.price-card.price-card-featured,
.bg-surface .price-card.price-card-featured {
  border: 2px solid var(--primary);
}

.price-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f9b800;
  color: #1d1a2d;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.price-plus {
  margin: 14px 0 0;
  font-weight: 800;
}

.price-card li.price-push {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--primary);
  background: var(--tint);
  font-weight: 700;
}

.pricing-foot {
  max-width: 820px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.price-save {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Plan buttons and the CTA band's demo link (Seb, 30 Oct 2026) ---------- */

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card .price-cta {
  margin-top: auto;
  align-self: stretch;
}

.price-card ul + .price-cta {
  margin-top: 24px;
}

.cta-band .cta-demo {
  margin: 18px 0 0;
  font-size: 15px;
}

.cta-band .cta-demo a {
  color: #ffffff;
  font-weight: 700;
}

/* ---------- Register your place (register.html) ---------- */

.register {
  background: var(--surface);
  padding: 40px 0 72px;
  min-height: 70vh;
}

.register .container {
  max-width: 760px;
}

.register h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  margin: 8px 0 8px;
}

.register-lede {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Numbered circles joined by a line (Seb chose A, 30 Oct 2026). */
.reg-progress {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.reg-progress li {
  flex: 1;
  position: relative;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 0;
}

.reg-progress li::before {
  content: attr(data-n);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d6d1e6;
  color: var(--text-muted);
  font-weight: 800;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.reg-progress li::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(-50% + 16px);
  right: calc(50% + 16px);
  height: 3px;
  border-radius: 2px;
  background: #d6d1e6;
}

.reg-progress li:first-child::after {
  display: none;
}

.reg-progress li.done::before {
  content: "\2713";
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.reg-progress li.done::after,
.reg-progress li.on::after {
  background: var(--primary);
}

.reg-progress li.on::before {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 5px var(--tint);
}

.reg-progress li.on {
  color: var(--ink);
  font-weight: 800;
}

.reg-privacy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.reg-privacy a,
.reg-precontract a {
  color: var(--primary-dark);
}

.reg-precontract {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.reg-precontract ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.reg-precontract li + li {
  margin-top: 4px;
}

.reg-step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.reg-step h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
}

.reg-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.reg-box > .reg-field:first-child,
.reg-box > .reg-pair:first-child .reg-field {
  border-top: 0;
}

.reg-field > span:first-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.reg-field em {
  font-style: normal;
  font-weight: 600;
}

.reg-field input,
.reg-field select {
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  outline: none;
  min-width: 0;
  width: 100%;
}

.reg-field:focus-within {
  box-shadow: inset 3px 0 0 var(--primary);
}

.reg-field input[type="file"] {
  font-size: 15px;
}

.reg-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  border-top: 1px solid var(--border);
}

.reg-pair .reg-field {
  border-top: 0;
}

.reg-pair .reg-field + .reg-field {
  border-left: 1px solid var(--border);
}

.reg-pair-even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.reg-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.reg-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.reg-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reg-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  min-width: 0;
}

.reg-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reg-choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--tint);
}

.reg-choice:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.reg-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
}

.reg-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reg-results li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.reg-results li:first-child {
  border-top: 0;
}

.reg-results strong {
  display: block;
}

.reg-results small {
  color: var(--text-muted);
}

.reg-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

.reg-claim {
  background: var(--tint);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reg-code-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.reg-code-row .reg-box {
  flex: 1 1 180px;
}

.reg-ok {
  color: #1f8a5b;
  font-weight: 800;
}

.reg-toggle {
  display: inline-flex;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: #ffffff;
  align-self: flex-start;
}

.reg-toggle label {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.reg-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reg-toggle label:has(input:checked) {
  background: var(--primary);
  color: #ffffff;
}

.reg-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reg-plan {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
}

.reg-plan .reg-price {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-dark);
}

.reg-plan .reg-price small {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.reg-plan ul {
  margin: 4px 0 0;
  padding-left: 18px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
}

.reg-reco {
  position: absolute;
  top: -11px;
  right: 10px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.reg-summary {
  background: var(--tint);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reg-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reg-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  cursor: pointer;
}

.reg-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
  flex: none;
}

.reg-check a {
  color: var(--primary-dark);
  font-weight: 700;
}

.reg-sign input {
  font-style: italic;
  font-size: 19px;
}

.reg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.reg-actions .btn {
  padding: 11px 22px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.reg-error {
  color: #b42318;
  font-weight: 700;
  margin: 0;
}

.reg-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-timeline li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}

.reg-timeline .reg-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9e6f2;
  color: var(--text-muted);
  font-weight: 800;
}

.reg-timeline .reg-num.done {
  background: var(--primary);
  color: #ffffff;
}

.reg-timeline p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.reg-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .reg-kinds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reg-plans,
  .reg-pair,
  .reg-pair-even {
    grid-template-columns: minmax(0, 1fr);
  }

  .reg-pair .reg-field + .reg-field {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

.reg-field.invalid {
  box-shadow: inset 3px 0 0 #b42318;
}

/* The steps and notes set their own display; hidden must still win. */
.register [hidden] {
  display: none !important;
}
