/* ============================================================
   Rapi.id, design tokens
   ============================================================ */
:root{
  --paper:        #FAF6EC;
  --paper-raised: #FFFFFF;
  --paper-line:   #E6DFC9;
  --ink:          #14213B;
  --ink-soft:     #4B5670;
  --ink-faint:    #8188A0;
  --navy:         #0E2340;
  --navy-deep:    #081527;
  --navy-tint:    #122A4D;
  --gold:         #E3A63C;
  --gold-deep:    #C2811F;
  --gold-light:   #F2C773;
  --red-ink:      #B23B34;
  --green-ink:    #3E7A52;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-card: 0 1px 2px rgba(14,35,64,.04), 0 12px 28px -14px rgba(14,35,64,.18);
  --shadow-pop:  0 1px 2px rgba(14,35,64,.06), 0 24px 48px -18px rgba(14,35,64,.28);

  --bg: var(--paper);
  --surface: var(--paper-raised);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-faint: var(--ink-faint);
  --border: var(--paper-line);
  --header-bg: rgba(250,246,236,.82);

  color-scheme: light;
}

html[data-theme="dark"]{
  --bg: var(--navy-deep);
  --surface: var(--navy-tint);
  --text: #F3EFE2;
  --text-soft: #C4CBDC;
  --text-faint: #8993AE;
  --border: rgba(226,214,180,.14);
  --header-bg: rgba(8,21,39,.82);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]){
    --bg: var(--navy-deep);
    --surface: var(--navy-tint);
    --text: #F3EFE2;
    --text-soft: #C4CBDC;
    --text-faint: #8993AE;
    --border: rgba(226,214,180,.14);
    --header-bg: rgba(8,21,39,.82);
    color-scheme: dark;
  }
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

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

.wrap{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1{ font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; }
h2{ font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3{ font-size: 1.2rem; }

p{ margin: 0 0 1em; color: var(--text-soft); }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy-deep);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
  font-weight: 600;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 2.5px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0 0 .9em;
}
html[data-theme="dark"] .eyebrow{ color: var(--gold-light); }
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]) .eyebrow{ color: var(--gold-light); } }

.eyebrow-center{ text-align: center; }

.section-lead{
  max-width: 640px;
  font-size: 1.08rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.6em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .96rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1.5px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--navy-deep);
  box-shadow: 0 10px 24px -10px rgba(194,129,31,.55);
}
.btn-primary:hover{ box-shadow: 0 14px 30px -10px rgba(194,129,31,.65); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{ border-color: var(--gold-deep); }

.btn-outline{
  width: 100%;
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
html[data-theme="dark"] .btn-outline{ color: var(--text); border-color: var(--border); }
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]) .btn-outline{ color: var(--text); border-color: var(--border); } }
.btn-outline:hover{ background: var(--navy); color: #fff; }

.btn-small{ padding: .6em 1.15em; font-size: .86rem; }
.btn-large{ padding: 1.15em 2.1em; font-size: 1.05rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark{ width: 34px; height: 34px; }
.brand-word{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.brand-dot{ color: var(--gold-deep); }
html[data-theme="dark"] .brand-dot{ color: var(--gold-light); }
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]) .brand-dot{ color: var(--gold-light); } }

.main-nav{ display: flex; gap: 32px; margin: 0 auto; }
.main-nav a{
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-soft);
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--text); }
.main-nav-cta{ display: none; }

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

.theme-toggle{
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle .icon-moon{ display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display: block; }
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .theme-toggle .icon-sun{ display: none; }
  html:not([data-theme="light"]) .theme-toggle .icon-moon{ display: block; }
}

.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero{ padding: 68px 0 84px; overflow: hidden; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1{ color: var(--text); }
.hero-lead{ font-size: 1.14rem; max-width: 46ch; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero-trust{
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-faint);
  margin: 0;
}

/* --- ledger signature visual --- */
.hero-visual{ position: relative; }
.ledger-stage{
  position: relative;
  min-height: 420px;
}
.note{
  position: absolute;
  width: 168px;
  background: var(--gold-light);
  color: var(--navy-deep);
  padding: 14px 16px 16px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  box-shadow: 0 10px 20px -8px rgba(14,35,64,.35);
  display: flex; flex-direction: column; gap: 8px;
  animation: noteDrift 7s ease-in-out infinite;
}
.note strong{ font-size: 1rem; font-weight: 600; }
.note-tape{
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 46px; height: 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.7);
}
.note-1{ top: 4%;  left: 2%;  transform: rotate(-7deg); background: var(--gold-light); animation-delay: 0s; }
.note-2{ top: 2%;  left: 46%; transform: rotate(5deg);  background: #F4D9A0; animation-delay: .6s; }
.note-3{ top: 30%; left: 60%; transform: rotate(-4deg); background: var(--gold-light); animation-delay: 1.2s; }
.note-4{ top: 34%; left: 6%;  transform: rotate(6deg);  background: #F4D9A0; animation-delay: 1.8s; }

@keyframes noteDrift{
  0%, 100%{ transform: rotate(var(--r, -6deg)) translateY(0); }
  50%{ transform: rotate(var(--r, -6deg)) translateY(-6px); }
}

.ledger-table{
  position: absolute;
  left: 4%; right: 4%; bottom: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 20px 22px 16px;
}
.ledger-tag{
  position: absolute; top: -14px; right: 18px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -4px rgba(14,35,64,.5);
}
.ledger-row{
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  gap: 8px;
  padding: 9px 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.ledger-row:last-child{ border-bottom: none; }
.ledger-row span:last-child{ text-align: right; white-space: nowrap; }
.ledger-head{
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.pos{ color: var(--green-ink); }
.neg{ color: var(--red-ink); }
.pend{ color: var(--gold-deep); }

/* ============================================================
   Sections
   ============================================================ */
.section{ padding: 88px 0; }
.section-alt{ background: var(--surface); }

/* Masalah, problem grid */
.problem-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 40px 0 88px;
}
.problem-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  color: var(--gold-deep);
}
html[data-theme="dark"] .problem-card{ color: var(--gold-light); }
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]) .problem-card{ color: var(--gold-light); } }
.problem-card p{ color: var(--text-soft); margin: 14px 0 0; font-size: .95rem; }

.stories-heading{ text-align: center; max-width: 620px; margin: 0 auto .5em; }
.stories .eyebrow{ text-align: center; }
.story-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 34px;
}
.story-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.story-tag{
  font-family: var(--font-mono);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.story-card p:last-child{ font-size: .94rem; margin-bottom: 0; }
.stories-note{
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-faint);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* Cara Kerja, steps */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  position: relative;
}
.step{ position: relative; padding-top: 8px; }
.step-no{
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold);
  opacity: .55;
  margin-bottom: 6px;
}
.step h3{ margin-bottom: .35em; }
.step p{ font-size: .96rem; }

/* Layanan, pricing */
.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
  align-items: stretch;
}
.price-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-featured{
  border-color: var(--gold);
  box-shadow: var(--shadow-pop);
  transform: translateY(-8px);
}
.price-highlight{
  position: absolute; top: -13px; left: 26px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.price-tier{
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.price-card h3{ margin-bottom: .2em; }
.price-amount{
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.price-amount span{
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-faint);
}
.price-setup{
  font-size: .82rem;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.price-setup s{ opacity: .6; }
.promo-tag{
  display: inline-block;
  margin-left: 6px;
  background: rgba(227,166,60,.16);
  color: var(--gold-deep);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: .72rem;
  font-weight: 700;
}
html[data-theme="dark"] .promo-tag{ color: var(--gold-light); }
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]) .promo-tag{ color: var(--gold-light); } }

.price-desc{ font-size: .92rem; }
.price-features{
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .92rem;
  color: var(--text);
}
.price-features li{ position: relative; padding-left: 26px; }
.price-features li::before{
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(62,122,82,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.3 6.4 11l6-6.4' stroke='%233E7A52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.price-note{
  font-size: .82rem;
  color: var(--text-faint);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-bottom: 20px;
}
.price-card .btn{ margin-top: auto; }

/* Kenapa, why grid */
.why-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.why-card{
  padding: 8px 4px;
}
.why-card svg{ color: var(--gold-deep); margin-bottom: 14px; }
html[data-theme="dark"] .why-card svg{ color: var(--gold-light); }
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]) .why-card svg{ color: var(--gold-light); } }
.why-card h3{ font-size: 1.05rem; margin-bottom: .3em; }
.why-card p{ font-size: .92rem; }

/* ============================================================
   CTA band + footer
   ============================================================ */
.cta-band{
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  padding: 88px 0;
  text-align: center;
}
.cta-inner{ max-width: 620px; }
.cta-band h2{ color: #fff; }
.cta-band p{ color: rgba(243,239,226,.78); font-size: 1.08rem; margin-bottom: 32px; }

.site-footer{ background: var(--navy-deep); color: rgba(243,239,226,.7); padding: 52px 0 26px; }
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(226,214,180,.14);
}
.footer-brand .brand-word{ color: #F3EFE2; }
.footer-brand .brand-dot{ color: var(--gold-light); }
.footer-brand p{ color: rgba(243,239,226,.55); font-size: .88rem; margin: 10px 0 0; }
.footer-nav{ display: flex; gap: 22px; }
.footer-nav a, .footer-contact a{
  text-decoration: none;
  color: rgba(243,239,226,.75);
  font-size: .92rem;
  font-weight: 600;
}
.footer-nav a:hover, .footer-contact a:hover{ color: var(--gold-light); }
.footer-contact{ display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-bottom{ padding-top: 22px; }
.footer-bottom p{ margin: 0; font-size: .8rem; color: rgba(243,239,226,.45); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .ledger-stage{ min-height: 340px; }
  .problem-grid{ grid-template-columns: repeat(2, 1fr); }
  .story-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; gap: 34px; }
  .pricing-grid{ grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .price-featured{ transform: none; }
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-contact{ align-items: flex-start; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed; inset: 76px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 24px 26px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  html[data-nav-open="true"] .main-nav{
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav-toggle{ display: flex; }
  .main-nav-cta{ display: inline-flex; width: 100%; margin-top: 6px; }
  html[data-nav-open="true"] .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  html[data-nav-open="true"] .nav-toggle span:nth-child(2){ opacity: 0; }
  html[data-nav-open="true"] .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .header-actions .btn-small{ display: none; }
}

/* ============================================================
   Ajukan Demo, header/CTA trigger buttons
   ============================================================ */
.btn-demo-open{ width: auto; }
.btn-demo-open-inverse{
  color: #F3EFE2;
  border-color: rgba(226,214,180,.35);
}
.btn-demo-open-inverse:hover{ border-color: var(--gold-light); color: var(--gold-light); }

.cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============================================================
   Ajukan Demo, modal dialog
   ============================================================ */
.demo-modal{
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
  max-height: min(88vh, 760px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.demo-modal::backdrop{
  background: rgba(8,16,31,.6);
  backdrop-filter: blur(2px);
}
.demo-modal[open]{ animation: demoPop .22s ease; }
@keyframes demoPop{
  from{ opacity: 0; transform: translateY(10px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.demo-modal-inner{
  background: var(--surface);
  color: var(--text);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 34px 30px 30px;
  position: relative;
}

.demo-modal-close{
  position: sticky;
  float: right;
  top: 0; right: 0;
  margin-left: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-soft);
  display: grid; place-items: center;
  cursor: pointer;
}
.demo-modal-close:hover{ color: var(--text); border-color: var(--gold-deep); }

.demo-modal-lead{ font-size: .96rem; margin-bottom: 26px; }

#demo-form{ display: flex; flex-direction: column; gap: 16px; }

.field-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--text);
}
.field[hidden]{ display: none; }
.field span em{ font-weight: 500; font-style: normal; color: var(--text-faint); }

.field input,
.field select,
.field textarea{
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75em .9em;
  width: 100%;
  transition: border-color .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: var(--gold-deep);
  outline: none;
}
.field textarea{ resize: vertical; min-height: 84px; font-family: var(--font-body); }
.field select{ cursor: pointer; }

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

.demo-status{
  margin: 0;
  font-size: .86rem;
  font-weight: 600;
  min-height: 1.2em;
}
.demo-status[data-state="error"]{ color: var(--red-ink); }
.demo-status[data-state="loading"]{ color: var(--text-faint); }

.demo-form-actions{ margin-top: 4px; }
.demo-form-actions .btn{ width: 100%; position: relative; }

.btn-spinner{
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(14,35,64,.25);
  border-top-color: var(--navy-deep);
  animation: spin .7s linear infinite;
}
#demo-submit[data-loading="true"] .btn-spinner{ display: inline-block; }
#demo-submit[data-loading="true"] .btn-label{ opacity: .7; }
#demo-submit[data-loading="true"]{ pointer-events: none; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.demo-result{ text-align: center; padding-top: 10px; }
.demo-result-icon{
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem;
}
.demo-result-icon[data-variant="success"]{ background: rgba(62,122,82,.14); color: var(--green-ink); }
.demo-result-icon[data-variant="error"]{ background: rgba(178,59,52,.14); color: var(--red-ink); }
.demo-result-actions{
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px;
}

@media (max-width: 560px){
  .field-row{ grid-template-columns: 1fr; }
  .demo-modal-inner{ padding: 28px 20px 24px; }
}

@media (max-width: 600px){
  .section{ padding: 64px 0; }
  .problem-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .ledger-stage{ min-height: 400px; }
  .note{ width: 128px; font-size: .7rem; padding: 10px 11px 12px; }
  .note-3{ left: 52%; }
  .ledger-table{ padding: 18px 16px 14px; }
  .ledger-row{ font-size: .68rem; grid-template-columns: .8fr 1.5fr 1fr; }
  .ledger-tag{ right: 10px; }
}
