@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Fraunces:wght@600;700&display=swap');

:root{
  --deep-green:#0F3D2E;
  --deep-green-2:#093325;
  --fresh-green:#31B66A;
  --mint:#E9F8EF;
  --sand:#F6F0E4;
  --sand-2:#FBF8F0;
  --clay:#B96A3C;
  --ink:#1C1A16;
  --muted:#6F766F;
  --surface:#FFFFFF;
  --border:rgba(28,26,22,.10);
  --danger:#D64545;
  --danger-bg:#FDECEC;
  --warning:#E28A24;
  --warning-bg:#FFF4E2;
  --ok:#0E8A4A;
  --ok-bg:#E8F8EE;
  --shadow:0 14px 35px rgba(14,90,67,.08);

  /* ── Alias tokens used in templates ── */
  --color-background-primary: var(--surface);
  --color-background-secondary: var(--sand);
  --color-background-info: var(--mint);
  --color-background-danger: var(--danger-bg);
  --color-border-primary: var(--border);
  --color-border-secondary: var(--border);
  --color-border-tertiary: rgba(28,26,22,.06);
  --color-border-info: rgba(14,90,67,.18);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-text-info: var(--deep-green);
  --color-text-danger: var(--danger);
  --border-radius-sm: 10px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
}

*{box-sizing:border-box}
html{font-size:15px}
body{
  margin:0;
  font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:linear-gradient(180deg,#fff,var(--sand));
  color:var(--ink);
  padding-bottom:76px;
}
a{color:var(--deep-green);text-decoration:none;font-weight:700}
a:hover{text-decoration:none;color:var(--fresh-green)}
h1,h2,h3{font-family:'Fraunces',Georgia,serif;line-height:1.1;margin:.2rem 0 .6rem;color:var(--ink)}
h1{font-size:2rem} h2{font-size:1.25rem} h3{font-size:1.05rem}
p{line-height:1.55}.muted,small{color:var(--muted)}

.topbar{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  padding:12px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}

.trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.trust-row p {
  margin: 0;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-row h2 {
  margin-bottom: 4px;
}

.owe-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.owe-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.owe-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.owe-main small,
.owe-amount small {
  color: var(--muted);
}

.owe-amount {
  text-align: right;
}

.owe-amount strong {
  color: var(--danger);
}

.owe-actions {
  display: flex;
  gap: 8px;
}

.btn.small {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.btn.secondary {
  background: var(--mint);
  color: var(--deep-green);
}

/* Mobile-friendly layout */
@media (max-width: 700px) {
  .section-row {
    align-items: flex-start;
  }

  .owe-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .owe-amount {
    text-align: left;
  }

  .owe-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .owe-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.recent-card {
  text-decoration: none;
  color: inherit;
}

.recent-card:hover {
  background: var(--mint);
}

.subtle {
  font-weight: 400 !important;
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

/* Right side layout for recent items */
.recent-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.amount {
  color: var(--ink);
  font-weight: 600;
}

/* Date below / separate */
.recent-date {
  text-align: right;
  margin-top: 4px;
}

/* Ensure muted text is NOT bold */
.muted.small {
  font-weight: 400 !important;
  display: block;
  font-size: 0.85rem;
}

/* Ensure active tab highlighted when filtering */
.tabs a.active {
  background: var(--deep-green) !important;
  color: #fff !important;
  border-color: var(--deep-green) !important;
}

.tabs a.active:hover {
  background: var(--deep-green) !important;
  color: #fff !important;
}

/* Ensure partly paid amount show amounts owed for each transaction on money book */
.right-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.amount-stack {
  text-align: right;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.amount-stack .owed {
  color: #c0392b; /* subtle red */
  font-weight: 600;
  font-size: 0.95rem;
}

.amount-stack small {
  font-size: 0.75rem;
}

.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.brand-mark{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--deep-green);color:#fff;font-family:'Fraunces';font-weight:700}
.brand strong{display:block;font-size:1.15rem;color:var(--ink)}
.brand small{display:block;font-size:.72rem;margin-top:-2px;color:var(--muted);font-weight:500}
.desktop-nav{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.desktop-nav a{font-size:.86rem;color:var(--muted);padding:9px 10px;border-radius:999px;font-weight:700}
.desktop-nav a:hover{background:var(--mint);color:var(--deep-green)}

.container{width:min(1080px,100%);margin:0 auto;padding:18px}
.planbar{display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:16px;padding:12px 14px;margin-bottom:14px;font-size:.92rem}
.planbar.ok{background:linear-gradient(135deg,#fff,var(--mint));border-color:rgba(49,182,106,.25)}
.planbar.warn{background:linear-gradient(135deg,#fff,var(--warning-bg));border-color:rgba(226,138,36,.25)}
.messages .msg{background:var(--ok-bg);border:1px solid rgba(14,138,74,.18);color:var(--ok);padding:12px 14px;border-radius:14px;margin-bottom:12px;font-weight:700}

.card{background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:18px;box-shadow:var(--shadow);margin-bottom:16px}
.section-head,.detail-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:12px}.detail-head{margin-bottom:16px}

.btn,button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;border-radius:13px;border:1px solid var(--border);background:#fff;color:var(--deep-green);font-family:'DM Sans';font-size:.9rem;font-weight:800;cursor:pointer;text-decoration:none}
.btn.primary:hover,button.primary:hover,.form button[type='submit']:hover{background:linear-gradient(135deg,var(--deep-green-2),var(--fresh-green));color:white}

.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat span{display:block;color:var(--muted);font-weight:700;font-size:.85rem}.stat strong{display:block;font-size:1.65rem;margin-top:6px}.stat.stat-good{background:linear-gradient(135deg,#fff,var(--ok-bg))}.stat.stat-warn{background:linear-gradient(135deg,#fff,var(--danger-bg))}
.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}

.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid var(--border);text-decoration:none;color:var(--ink)}.list-row:first-of-type{border-top:0}.list-row strong{display:block}.list-row small{display:block;margin-top:4px;color:var(--muted)}
.pill{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:999px;padding:6px 10px;background:var(--mint);color:var(--deep-green);font-size:.76rem;font-weight:800}.pill.big{font-size:.92rem;padding:9px 13px}.pill.danger,.pill.unpaid{background:var(--danger-bg);color:var(--danger)}.pill.partial{background:var(--warning-bg);color:#9a5c00}.pill.paid{background:var(--ok-bg);color:var(--ok)}

.form{display:grid;gap:12px}.form label{display:grid;gap:6px;color:var(--ink);font-weight:800}.form label small{font-weight:400;font-size:0.82rem}.field,.form input,.form select,.form textarea,.search input,.filterbar input,.filterbar select{width:100%;padding:13px 14px;border-radius:14px;border:1px solid var(--border);font:inherit;background:white;color:var(--ink)}.form input:focus,.form select:focus,.form textarea:focus,.search input:focus,.filterbar input:focus,.filterbar select:focus{outline:3px solid rgba(49,182,106,.16);border-color:var(--fresh-green)}.narrow{max-width:680px;margin-left:auto;margin-right:auto}.compact{margin-top:12px}.search,.filterbar{display:flex;gap:10px;margin:12px 0 16px}.filterbar{flex-wrap:wrap}.filterbar select,.filterbar input{max-width:190px}

.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.tabs a{padding:9px 12px;background:white;border:1px solid var(--border);border-radius:999px;color:var(--deep-green);font-weight:800}.tabs a:hover{background:var(--mint)}
.money-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}.money-grid div{background:var(--sand-2);border:1px solid var(--border);border-radius:16px;padding:12px}.money-grid strong{display:block;font-size:1.35rem}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.preview{margin-top:12px}.preview pre{white-space:pre-wrap;background:var(--sand-2);border:1px solid var(--border);border-radius:14px;padding:12px;font-family:'DM Sans'}
.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;border-bottom:1px solid var(--border);padding:12px}.table th{color:var(--deep-green);font-size:.82rem}.error{color:var(--danger)}

.mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-top:1px solid var(--border);display:none;grid-template-columns:repeat(5,1fr);padding:7px 4px env(safe-area-inset-bottom)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted);font-size:.68rem;font-weight:800}.mobile-nav span{font-size:1rem;color:var(--deep-green)}

@media(max-width:820px){
  body{background:#fff}.desktop-nav{display:none}.topbar{padding:12px 16px}.brand small{display:none}.mobile-nav{display:grid}.container{padding:16px}.hero,.detail-head,.section-head{align-items:flex-start;flex-direction:column}.stats,.grid.two,.money-grid{grid-template-columns:1fr}.card{border-radius:18px;box-shadow:none}.search,.filterbar{flex-direction:column}.filterbar select,.filterbar input{max-width:none}.planbar{align-items:flex-start;flex-direction:column}.list-row{align-items:flex-start}.pill{align-self:flex-start}
}

/* Landing page polish */

.hero {
  position: relative;
  padding: 34px;

  background:
    radial-gradient(circle at top left, rgba(49,182,106,.22), transparent 32%),
    linear-gradient(135deg,#06281D,#0B3B2D 60%,#0E5A43);
  color: white;
  border: none;
  overflow: hidden;
}

.hero::before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  background:rgba(49,182,106,.12);
  border-radius:50%;
  top:-180px;
  right:-120px;
  filter:blur(40px);
  pointer-events:none;
}

.card.hero::after{
  content:"";
  position:absolute;

  width:260px;
  height:260px;

  left:-60px;
  bottom:-80px;

  background:
    radial-gradient(
      circle,
      rgba(43,214,125,.14) 0%,
      rgba(43,214,125,0) 70%
    );

  filter:blur(26px);

  z-index:0;
  pointer-events:none;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  line-height: .95;
  max-width: 720px;
}

.hero h2,
.hero h3,
.hero p,
.hero .eyebrow,
.hero .muted {
  color: rgba(255,255,255,.86);
}

.hero .btn:not(.primary) {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.18);
}

.hero .card {
  min-width: 320px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.hero .owe-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}

.hero .owe-main strong,
.hero .owe-amount strong {
  color: white;
}

.hero .owe-card small {
  color: rgba(255,255,255,.72);
}

.hero p {
  max-width: 620px;
}

.card .card {
  box-shadow: none;
}

section.card {
  scroll-margin-top: 90px;
}

.dark-section {
  background:
    radial-gradient(circle at top right, rgba(49,182,106,.18), transparent 30%),
    linear-gradient(135deg,#101714,#06281D);
  color: white;
  border: none;
}

.dark-section h2,
.dark-section h3,
.dark-section p,
.dark-section .eyebrow,
.dark-section .muted {
  color: rgba(255,255,255,.86);
}

.card {
  transition: .25s ease;
}

@media (hover:hover) {
  .card:hover {
    transform: translateY(-3px);
  }
}

.btn.primary {
  box-shadow:
    0 10px 25px rgba(49,182,106,.32),
    0 0 0 1px rgba(255,255,255,.05) inset;
}

@media(max-width:820px){
  .hero {
    padding: 22px;
  }

  .hero h1 {
    font-size: 2.45rem;
    line-height: 1;
  }

  .hero .card {
    min-width: 100%;
    width: 100%;
  }

  .hero .actions {
    width: 100%;
  }

  .hero .actions .btn {
    flex: 1;
  }

  .desktop-nav .btn {
    display: none;
  }
}

@media(max-width:480px){
  .hero h1 {
    font-size: 2.1rem;
  }

  .hero .actions {
    flex-direction: column;
  }

  .hero .actions .btn {
    width: 100%;
  }
}

/* Landing page polish - keep at very bottom */

.card.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 42px;
  min-height: 520px;
  background:
    radial-gradient(circle at top right, rgba(49,182,106,.32), transparent 32%),
    linear-gradient(135deg,#061F17,#073326 55%,#0E5A43);
  color: white;
  border: none;
  overflow: hidden;
  isolation:isolate;
}

.card.hero::before{
  content:"";
  position:absolute;

  width:520px;
  height:520px;

  right:-120px;
  top:-80px;

  background:
    radial-gradient(
      circle,
      rgba(43,214,125,.20) 0%,
      rgba(43,214,125,.10) 35%,
      rgba(43,214,125,0) 72%
    );

  filter:blur(30px);

  pointer-events:none;
  z-index:0;
}

.card.hero > * {
  position: relative;
  z-index: 2;
}

.card.hero h1 {
  color: white;
  font-size: 4rem;
  line-height: .95;
  max-width: 760px;
}

.card.hero h2,
.card.hero h3,
.card.hero p,
.card.hero .eyebrow,
.card.hero .muted {
  color: rgba(255,255,255,.88);
}

.card.hero .card {
  min-width: 340px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.card.hero .owe-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.card.hero .owe-main strong,
.card.hero .owe-amount strong {
  color: white;
}

.card.hero .owe-card small {
  color: rgba(255,255,255,.72);
}

.card.hero .btn:not(.primary) {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.18);
}

.card.dark-section {
  background:
    radial-gradient(circle at top right, rgba(49,182,106,.20), transparent 30%),
    linear-gradient(135deg,#101714,#06281D);
  color: white;
  border: none;
  padding: 34px;
}

.card.dark-section h2,
.card.dark-section h3,
.card.dark-section p,
.card.dark-section .eyebrow,
.card.dark-section .muted {
  color: rgba(255,255,255,.88);
}

.btn.primary {
  background: linear-gradient(135deg,#31B66A,#0E8A4A);
  color: white;
  border: 0;
  box-shadow: 0 12px 30px rgba(49,182,106,.34);
}

@media(max-width:820px){
  .card.hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    min-height: auto;
  }

  .card.hero h1 {
    font-size: 2.45rem;
    line-height: 1;
  }

  .card.hero .card {
    min-width: 100%;
    width: 100%;
  }

  .card.hero .actions {
    width: 100%;
  }

  .card.hero .actions .btn {
    flex: 1;
  }
}

@media(max-width:480px){
  .card.hero h1 {
    font-size: 2.15rem;
  }

  .card.hero .actions {
    flex-direction: column;
  }

  .card.hero .actions .btn {
    width: 100%;
  }
}

/* New compressed landing layout */

.container {
  width: min(1380px, 100%);
  padding-left: 14px;
  padding-right: 14px;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  gap: 16px;
  margin-bottom: 16px;
}

.landing-panel {
  border-radius: 28px;
  padding: 34px;
  min-height: 320px;
  border: 1px solid rgba(255,255,255,.08);
}

.dark-panel {
  background:
    radial-gradient(circle at top right, rgba(49,182,106,.22), transparent 30%),
    linear-gradient(135deg,#0A2A20,#0E5A43);
  color: white;
}

.darker-panel {
  background:
    radial-gradient(circle at top right, rgba(49,182,106,.18), transparent 28%),
    linear-gradient(135deg,#101714,#06281D);
  color: white;
}

.light-panel {
  background: #F6F0E4;
  color: var(--ink);
  border: 1px solid rgba(28,26,22,.08);
}

.side-feature-panel{
  padding:38px 32px;
  display:flex;
  flex-direction:column;
  justify-content:center;

}

.side-feature-panel .mini-list div{
  background:white;
  border:1px solid rgba(28,26,22,.05);
  box-shadow:
    0 8px 24px rgba(15,23,20,.05);
}

.side-feature-panel .mini-list strong{
  color:var(--ink);
}

.side-feature-panel .mini-list span{
  color:var(--muted);
}

.side-feature-panel .eyebrow{
  font-size:1.1rem;
  font-weight:600;
  color:var(--ink);
  margin-bottom:8px;
}

.side-feature-panel .mini-list strong{
  position:relative;
  padding-left:14px;
}

.side-feature-panel .mini-list strong::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#2DBE60;
}

.dark-panel h2,
.darker-panel h2 {
  color: white;
}

.dark-panel p,
.darker-panel p,
.dark-panel .eyebrow,
.darker-panel .eyebrow {
  color: rgba(255,255,255,.86);
}

.landing-panel h2 {
  font-size: 2.15rem;
  line-height: 1.05;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-list div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 15px;
}

.mini-list strong {
  display: block;
  color: white;
  margin-bottom: 4px;
}

.mini-list span {
  display: block;
  color: rgba(255,255,255,.72);
  line-height: 1.45;
}

.step-row.compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.step-row.compact > div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
}

.step-row.compact strong {
  display: block;
  color: white;
  margin-top: 10px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-cloud span {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  color: var(--deep-green);
}

@media(max-width:820px){
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

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

  .landing-panel {
    min-height: auto;
    padding: 24px;
  }

  .landing-panel h2 {
    font-size: 1.75rem;
  }
}

/* Pricing page */

.pricing-hero {
  min-height: 360px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.pricing-card {
  border-radius: 28px;
  padding: 34px;
  border: 1px solid var(--border);
}

.light-pricing {
  background: var(--sand-2);
}

.featured-pricing {
  background:
    radial-gradient(circle at top right, rgba(49,182,106,.24), transparent 32%),
    linear-gradient(135deg,#101714,#06281D);
  color: white;
  border: none;
}

.featured-pricing h2,
.featured-pricing p,
.featured-pricing .eyebrow,
.featured-pricing small {
  color: rgba(255,255,255,.88);
}

.price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
  margin: 24px 0 6px;
  color: var(--deep-green);
}

.featured-pricing .price {
  color: white;
}

.price span {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 12px;
}

.pricing-list li {
  padding-left: 26px;
  position: relative;
  line-height: 1.45;
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fresh-green);
  font-weight: 900;
}

.pricing-note {
  margin-bottom: 24px;
}

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

  .pricing-card {
    padding: 24px;
  }

  .price {
    font-size: 2.5rem;
  }
}

/* Editorial split image section */

.image-split-panel{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:28px;
  align-items:center;
}

.panel-image{
  display:flex;
  align-items:center;
}

.panel-image img{
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:24px;
  display:block;
  filter: contrast(1.02) saturate(.96);
}

.panel-copy h2{
  max-width:620px;
}

@media(max-width:980px){

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

  .panel-image img{
    max-height:420px;
  }
}

/* Single Money Book product strip */

.moneybook-strip{
  margin:28px 0;
  border-radius:36px;
  overflow:hidden;
}

.moneybook-strip img{
  width:100%;
  display:block;
  border-radius:36px;
}

/* Pricing page hero card */

.pricing-hero-image-card{
  min-height:620px;
  border-radius:28px;
  margin-bottom:16px;
  padding:56px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:
    linear-gradient(
      90deg,
      rgba(6,31,23,.98) 0%,
      rgba(6,31,23,.90) 28%,
      rgba(6,31,23,.62) 46%,
      rgba(6,31,23,.10) 68%
    ),
    url("images/baker-pricing-hero.png");
  background-size:cover;
  background-position:center right;
}

.pricing-hero-content{
  max-width:620px;
  position:relative;
  z-index:1;
}

.pricing-hero-content h1{
  color:white;
  font-size:4rem;
  line-height:.95;
}

.pricing-hero-content p,
.pricing-hero-content .eyebrow{
  color:rgba(255,255,255,.9);
}

.pricing-hero-image-card .btn:not(.primary){
  background:rgba(255,255,255,.08);
  color:white;
  border-color:rgba(255,255,255,.22);
}

@media(max-width:820px){
  .pricing-hero-image-card{
    min-height:auto;
    padding:28px;
    background:
      linear-gradient(
        180deg,
        rgba(6,31,23,.96) 0%,
        rgba(6,31,23,.86) 48%,
        rgba(6,31,23,.45) 100%
      ),
      url("images/baker-pricing-hero.png");
    background-size:cover;
    background-position:center right;
  }

  .pricing-hero-content h1{
    font-size:2.4rem;
  }
}

/* About MilaPay page */

.about-page{
  display:flex;
  flex-direction:column;
  gap:24px;
  padding-bottom:48px;
}

.about-hero-card{
  position:relative;
  overflow:hidden;
  border-radius:42px;
  min-height:520px;
  padding:64px;
  display:flex;
  align-items:flex-end;
  background:
    linear-gradient(
      90deg,
      rgba(1,20,16,.92) 0%,
      rgba(1,20,16,.76) 36%,
      rgba(1,20,16,.25) 62%,
      rgba(1,20,16,.04) 100%
    ),
    url("images/about-milapay-hero.png");
  background-size:cover;
  background-position:center;
}

.about-content{
  max-width:720px;
  position:relative;
  z-index:2;
}

.about-content h1{
  color:#fff;
  font-size:clamp(3.4rem,6vw,6.2rem);
  line-height:.92;
  letter-spacing:-0.05em;
}

.about-lead{
  max-width:640px;
  color:rgba(255,255,255,.88);
  font-size:1.15rem;
  line-height:1.7;
}

.about-grid{
  display:grid;
  grid-template-columns:1.45fr .75fr;
  gap:16px;
}

.about-story-card{
  background:
    radial-gradient(circle at top right, rgba(49,182,106,.22), transparent 30%),
    linear-gradient(135deg,#0A2A20,#0E5A43);
  border-radius:28px;
  padding:42px;
  color:white;
}

.about-story-card h2{
  color:white;
  font-size:clamp(2.6rem,4vw,4.4rem);
  line-height:.96;
}

.about-story-card p{
  color:rgba(255,255,255,.84);
  line-height:1.75;
}

.about-features-card{
  background:#F6F0E4;
  border-radius:28px;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.about-features-card .mini-feature-card{
  background:white;
  border-radius:22px;
  padding:22px;
  box-shadow:0 8px 24px rgba(15,23,20,.05);
}

.about-features-card strong{
  display:block;
  color:var(--ink);
  margin-bottom:6px;
}

.about-features-card span{
  color:var(--muted);
  line-height:1.5;
}

.about-founder-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.about-founder-copy{
  background:
    radial-gradient(circle at top right, rgba(49,182,106,.18), transparent 30%),
    linear-gradient(135deg,#101714,#06281D);
  border-radius:28px;
  padding:42px;
  color:white;
}

.about-founder-copy h2{
  color:white;
  font-size:clamp(2.4rem,4vw,4rem);
  line-height:.98;
}

.about-founder-copy p{
  color:rgba(255,255,255,.84);
  line-height:1.75;
}

.about-founder-image-wrap{
  overflow:hidden;
  border-radius:28px;
  min-height:420px;
}

.about-founder-image-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

@media(max-width:980px){
  .about-grid,
  .about-founder-card{
    grid-template-columns:1fr;
  }

  .about-hero-card{
    min-height:auto;
    padding:36px 28px;
  }

  .about-story-card,
  .about-founder-copy{
    padding:30px;
  }
}
/* ── Analytics page ────────────────────────────────────────────────── */

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.analytics-grid .card.stat {
  text-align: left;
}

.analytics-big-stat {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--deep-green);
  margin: 8px 0 4px;
}

.analytics-big-stat.warn { color: var(--warning); }
.analytics-big-stat.danger { color: var(--danger); }
.analytics-big-stat.good { color: var(--ok); }

.overdue-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.overdue-row:last-child { border-bottom: none; }

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0A2A20, var(--deep-green));
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

.bar-wrap {
  background: var(--border);
  border-radius: 999px;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--fresh-green);
  transition: width .5s ease;
}

.bar-fill.warn { background: var(--warning); }
.bar-fill.danger { background: var(--danger); }

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

/* ── QR page ──────────────────────────────────────────────────────── */

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.qr-wrapper img {
  border: 4px solid var(--border);
  border-radius: 16px;
  max-width: 220px;
}

/* ── Payment method cards improved ───────────────────────────────── */

.method-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  margin-bottom: 10px;
}

.method-card.is-default {
  border-color: var(--fresh-green);
  background: var(--mint);
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.method-body {
  flex: 1;
  min-width: 0;
}

.method-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media(max-width:600px) {
  .method-card {
    flex-wrap: wrap;
  }
  .method-actions {
    width: 100%;
  }
  .method-actions .btn {
    flex: 1;
    text-align: center;
  }
}

/* ── Customer notes / CRM section ────────────────────────────────── */

.note-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.note-entry:last-child { border-bottom: none; }

.note-entry small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

/* ── PayFast checkout button ─────────────────────────────────────── */

.payfast-form {
  margin-top: 1rem;
}

.payfast-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #00a8e8;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.payfast-btn:hover { opacity: .92; }