:root {
  --orange: #F26B1F;
  --orange-deep: #D8551A;
  --amber: #F8A532;
  --ink: #1F2330;
  --ink-soft: #2B2F3D;
  --cream: #FFF7EE;
  --cream-deep: #FBECD9;
  --paper: #FFFFFF;
  --grey: #6B7280;
  --grey-soft: #9CA3AF;
  --line: #EAE4D7;
  --night: #141823;
  --night-2: #1c2130;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800; letter-spacing: -1.2px;
  margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -2px; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -1.2px; }
h3 { font-size: 20px; letter-spacing: -0.4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange);
  padding: 6px 12px; background: rgba(242,107,31,0.1);
  border-radius: 999px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 0; cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--orange); color: white;
  box-shadow: 0 4px 12px rgba(242,107,31,0.3);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(242,107,31,0.4);
}
.btn-secondary {
  background: white; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost {
  background: transparent; color: var(--ink);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--orange); }

/* ══════════ NAV ══════════ */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand .wm {
  font-family: 'Nunito'; font-weight: 800; font-size: 22px;
  letter-spacing: -0.8px; color: var(--ink);
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.nav-links a:hover { background: var(--cream); color: var(--orange); }
.nav-links a.active { color: var(--orange); background: var(--cream); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ══════════ HERO ══════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(248,165,50,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(242,107,31,0.08) 0%, transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 20px; }
.hero .lede {
  font-size: 19px; color: #4a4a4a; max-width: 560px;
  margin: 20px 0 28px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof {
  display: flex; align-items: center; gap: 24px; margin-top: 36px;
  padding-top: 28px; border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px; color: var(--grey);
}
.hero-proof strong { color: var(--ink); display: block; font-size: 20px; font-family: 'Nunito'; font-weight: 800; }

/* Page hero (smaller, for sub-pages) */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(248,165,50,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 30%, rgba(242,107,31,0.06) 0%, transparent 60%),
    var(--cream);
  text-align: center;
}
.page-hero .kicker { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; }
.page-hero p {
  font-size: 18px; color: var(--grey); max-width: 640px;
  margin: 18px auto 0; line-height: 1.6;
}

/* Hero illustration — product mock */
.hero-visual {
  position: relative; aspect-ratio: 4/3;
  perspective: 1600px;
}
.mock {
  background: white; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(31,35,48,0.15), 0 4px 12px rgba(31,35,48,0.06);
  overflow: hidden; border: 1px solid var(--line);
  position: absolute;
}
.mock-main {
  inset: 8% 0 8% 12%;
  transform: rotateY(-6deg) rotateX(2deg);
  transform-origin: center;
}
.mock-image { padding: 0; overflow: hidden; }
.mock-image img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: inherit;
}
.mock-floater.mock-image img { object-fit: contain; object-position: center; }
.mock-card {
  width: 58%; left: -4%; top: 18%;
  transform: rotateY(-12deg) rotateX(4deg) translateZ(30px);
  z-index: 2;
}
.mock-floater {
  width: 36%; right: -2%; bottom: 8%;
  transform: rotateY(8deg) rotateX(-2deg) translateZ(50px);
  z-index: 3;
}

/* Product mock content */
.m-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: #fafaf7;
}
.m-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0dcd0; }
.m-dot.active { background: var(--orange); }
.m-body { padding: 16px; }
.m-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
}
.m-row + .m-row { margin-top: 6px; }
.m-row.highlight { background: var(--cream); }
.m-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.m-text { flex: 1; min-width: 0; }
.m-text-1 { height: 10px; background: #e8e4d7; border-radius: 4px; width: 70%; margin-bottom: 6px; }
.m-text-2 { height: 8px; background: #f0ece0; border-radius: 4px; width: 45%; }
.m-pill {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: #dcfce7; color: #166534;
}
.m-pill.orange { background: rgba(242,107,31,0.15); color: var(--orange-deep); }
.m-pill.amber { background: rgba(248,165,50,0.2); color: #8a5a10; }

/* ══════════ LEVELS BANNER ══════════ */
.logos-strip {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--line);
}
.logos-strip p {
  text-align: center; color: var(--grey); font-size: 13px;
  margin: 0 0 20px; letter-spacing: 0.5px;
}

/* ══════════ SECTION ══════════ */
section.sect { padding: 100px 0; }
section.sect.alt { background: var(--cream); }
.sect-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.sect-head h2 { margin: 16px 0 12px; }
.sect-head p { color: var(--grey); font-size: 17px; margin: 0; }

/* ══════════ MODULES ══════════ */
.modules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .modules { grid-template-columns: 1fr; } }
.module-group-head {
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.module-group-head:first-of-type { margin-top: 0; }
.module-group-head .kicker { margin-bottom: 8px; }
.module-group-head h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 28px; letter-spacing: -1px;
  margin: 0;
}
@media (max-width: 600px) {
  .module-group-head { margin-top: 40px; }
  .module-group-head h2 { font-size: 22px; }
}
.module {
  background: white; border: 1px solid var(--line);
  border-radius: 18px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.module:hover {
  border-color: var(--orange); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(242,107,31,0.1);
}
.module-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--orange);
}
.module h3 { margin-bottom: 8px; }
.module p { color: var(--grey); font-size: 14px; margin: 0 0 16px; }
.module ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 13px; color: var(--ink-soft);
}
.module li {
  padding: 6px 0; display: flex; align-items: center; gap: 8px;
}
.module li::before {
  content: '✓'; color: var(--orange); font-weight: 900;
}

/* ══════════ BIG FEATURE ══════════ */
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.feature-block.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .feature-block, .feature-block.reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature-block.reverse > :first-child { order: 0; }
}
.feature-block h2 { margin-bottom: 16px; }
.feature-block p { color: var(--grey); font-size: 16px; }
.feature-list { margin: 24px 0; padding: 0; list-style: none; }
.feature-list li {
  padding: 14px 0; border-top: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 14px;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .ico {
  width: 32px; height: 32px; border-radius: 8px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--orange);
}
.feature-list strong { display: block; color: var(--ink); margin-bottom: 2px; font-weight: 700; }
.feature-list span { color: var(--grey); font-size: 14px; }

/* Visual panels */
.panel {
  background: white; border: 1px solid var(--line);
  border-radius: 18px; padding: 24px;
  box-shadow: 0 20px 50px rgba(31,35,48,0.08);
}
.panel.dark { background: var(--night); color: white; border-color: #2a3042; }
.panel.panel-image { padding: 0; overflow: hidden; }
.panel.panel-image img {
  display: block;
  width: 100%; height: auto;
  border-radius: inherit;
}

/* ══════════ LIGHTBOX ══════════ */
.panel-image img,
.mock-image img,
.phones-showcase img {
  cursor: zoom-in;
}
.panel-image img:focus-visible,
.mock-image img:focus-visible,
.phones-showcase img:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 24, 35, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
  z-index: 10000;
  animation: lb-overlay-in 0.2s ease-out;
  cursor: zoom-out;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: lb-img-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  cursor: default;
  background: white;
}
.lightbox-close {
  position: fixed; top: 20px; right: 20px;
  width: 44px; height: 44px;
  border: 0;
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: white; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .1s;
}
.lightbox-close:hover  { background: rgba(255,255,255,0.22); }
.lightbox-close:active { transform: scale(0.94); }
.lightbox-close:focus-visible {
  outline: 2px solid white; outline-offset: 3px;
}

@keyframes lb-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-img-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay, .lightbox-img { animation: none; }
}
@media (max-width: 600px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* Grades table mock */
.grade-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.grade-table th {
  text-align: left; font-size: 11px; color: var(--grey); font-weight: 700;
  padding: 10px 12px; letter-spacing: 0.5px; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.grade-table td {
  padding: 12px; border-bottom: 1px solid var(--line);
}
.grade-table tr:last-child td { border-bottom: 0; }
.grade-pill {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-weight: 700; font-size: 12px;
}
.g-90 { background: #dcfce7; color: #166534; }
.g-85 { background: rgba(242,107,31,0.15); color: var(--orange-deep); }
.g-80 { background: #fef3c7; color: #92400e; }

/* Finance mock */
.finance-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.finance-row:last-child { border-bottom: 0; }
.bar-wrap {
  margin: 20px 0; height: 160px;
  display: flex; align-items: flex-end; gap: 10px;
}
.bar { flex: 1; background: linear-gradient(180deg, var(--amber), var(--orange));
  border-radius: 6px 6px 0 0; position: relative; }

/* ══════════ STATS ══════════ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: 'Nunito'; font-weight: 800; font-size: 48px;
  color: var(--orange); letter-spacing: -2px; line-height: 1;
}
.stat-label { color: var(--grey); font-size: 14px; margin-top: 8px; }

/* ══════════ MOBILE SHOWCASE ══════════ */
.phones-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .phones-row { grid-template-columns: 1fr; gap: 36px; }
}
.phones-stack {
  display: flex; justify-content: center; gap: 20px;
  padding: 20px 0;
}
.phones-showcase {
  display: flex; justify-content: center; align-items: center;
  padding: 20px 0;
}
.phones-showcase img {
  max-width: 100%;
  width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(20,24,35,0.18)) drop-shadow(0 10px 20px rgba(20,24,35,0.08));
}
@media (max-width: 900px) {
  .phones-showcase img { max-height: 460px; }
}
.phone {
  width: 260px;
  aspect-ratio: 9/19;
  background: #0e1119;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 0 0 2px #2a2f3e,
    0 30px 60px rgba(20,24,35,0.3),
    0 10px 20px rgba(20,24,35,0.15);
  position: relative;
  flex-shrink: 0;
}
.phone.tilt-l { transform: rotate(-4deg) translateY(12px); }
.phone.tilt-r { transform: rotate(4deg) translateY(-12px); }
.phone-screen {
  background: white;
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #0e1119; border-radius: 14px;
  z-index: 5;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 8px; font-size: 11px; font-weight: 700;
  color: var(--ink);
}
.phone-status .right { display: flex; gap: 4px; align-items: center; }
.phone-status .right::after {
  content: ''; width: 18px; height: 10px; border: 1.5px solid currentColor;
  border-radius: 3px; opacity: 0.7;
  background: linear-gradient(90deg, currentColor 65%, transparent 65%);
}
.phone-content {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-title-bar {
  padding: 14px 20px 10px;
  font-family: 'Nunito'; font-weight: 800; font-size: 20px;
  letter-spacing: -0.5px;
}
.phone-subtitle {
  padding: 0 20px 14px; font-size: 11px; color: var(--grey);
}
.phone-card {
  margin: 0 14px 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
}
.phone-card.orange-bg {
  background: linear-gradient(135deg, var(--orange), #ff8a3d);
  color: white; border: 0;
}
.phone-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
}
.phone-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito'; font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.phone-tab {
  display: flex; border-top: 1px solid var(--line);
  padding: 8px 0 14px;
  justify-content: space-around;
}
.phone-tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9px; color: var(--grey); font-weight: 600;
}
.phone-tab-item.active { color: var(--orange); }
.phone-tab-ico { width: 22px; height: 22px; }
.app-badges {
  display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap;
}
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; background: var(--ink); color: white;
  border-radius: 12px; text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.app-badge:hover { background: #000; transform: translateY(-1px); }
.app-badge .badge-sub { font-size: 10px; opacity: 0.7; line-height: 1; margin-bottom: 3px; }
.app-badge .badge-name { font-family: 'Nunito'; font-weight: 700; font-size: 16px; line-height: 1; }

/* ══════════ FOUNDER ══════════ */
.founder-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 60px; align-items: center;
}
@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
}
.founder-photo { position: relative; }
.founder-photo-inner {
  aspect-ratio: 1/1; border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(31,35,48,0.18);
  border: 1px solid var(--line);
}
.founder-badge {
  position: absolute; left: -16px; bottom: -16px;
  background: white; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(31,35,48,0.08);
}
.founder-badge strong {
  display: block; font-family: 'Nunito'; font-weight: 800;
  font-size: 17px; letter-spacing: -0.4px; color: var(--ink);
}
.founder-badge span { font-size: 12px; color: var(--grey); }
.founder-meta {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
@media (max-width: 600px) { .founder-meta { grid-template-columns: 1fr; } }
.founder-meta strong {
  display: block; font-family: 'Nunito'; font-weight: 800;
  font-size: 13px; color: var(--ink); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 1px;
}
.founder-meta span { font-size: 14px; color: var(--grey); }

/* ══════════ PLANS ══════════ */
.plans-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
  max-width: 1080px; margin: 0 auto;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: white; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 28px; display: flex; flex-direction: column;
  position: relative; transition: transform .15s, box-shadow .15s;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,35,48,0.06); }
.plan-card.featured {
  background: var(--ink); color: white; border-color: var(--ink);
  box-shadow: 0 24px 48px rgba(31,35,48,0.18);
}
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase;
}
.plan-name {
  font-family: 'Nunito'; font-weight: 800;
  font-size: 22px; letter-spacing: -0.5px;
}
.plan-card.featured .plan-name { color: white; }
.plan-best-for { font-size: 13px; color: var(--grey); margin: 4px 0 24px; }
.plan-card.featured .plan-best-for { color: rgba(255,255,255,0.7); }
.plan-price {
  display: flex; align-items: baseline; gap: 4px;
  font-family: 'Nunito'; font-weight: 800; color: var(--ink);
  margin-bottom: 6px;
}
.plan-card.featured .plan-price { color: white; }
.plan-price .curr { font-size: 22px; font-weight: 700; color: var(--grey); }
.plan-card.featured .plan-price .curr { color: rgba(255,255,255,0.6); }
.plan-price .num { font-size: 48px; letter-spacing: -2px; line-height: 1; }
.plan-price .unit { font-size: 13px; color: var(--grey); font-weight: 600; margin-left: 4px; }
.plan-card.featured .plan-price .unit { color: rgba(255,255,255,0.6); }
.plan-bill { font-size: 12px; color: var(--grey); margin-bottom: 4px; }
.plan-card.featured .plan-bill { color: rgba(255,255,255,0.6); }
.plan-vat {
  font-size: 11px; color: var(--grey-soft);
  margin-top: -8px; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.plan-card.featured .plan-vat { color: rgba(255,255,255,0.45); }
.plan-minimum {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--orange-deep);
  background: rgba(242,107,31,0.1);
  padding: 4px 10px; border-radius: 6px;
  margin-bottom: 20px;
}
.plan-card.featured .plan-minimum {
  color: var(--amber);
  background: rgba(248,165,50,0.15);
}
/* Add bottom margin on plan-bill when no minimum follows */
.plan-bill + .plan-feats { margin-top: 24px; }

.plan-billing-note {
  max-width: 780px; margin: 40px auto 0;
  padding: 22px 28px;
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 14px;
  text-align: center;
}
.plan-billing-note .billing-note-head {
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 16px;
  letter-spacing: -0.3px; color: var(--ink);
  margin-bottom: 8px;
}
.plan-billing-note .billing-note-body {
  font-size: 14px; line-height: 1.6;
  color: var(--grey);
}
.plan-billing-note .billing-note-body strong {
  color: var(--ink); font-weight: 700;
}


/* ══════════ Founding-school ribbon (pricing page top) ══════════ */
.founding-ribbon {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  max-width: 1080px; margin: 0 auto 40px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--ink) 0%, #2a3144 100%);
  color: white; border-radius: 14px;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(20,24,35,0.15);
}
.founding-ribbon::after {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(248,165,50,0.25), transparent 70%);
  pointer-events: none;
}
.founding-ribbon:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(20,24,35,0.22);
}
.founding-ribbon .founding-tag {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(248,165,50,0.2);
  color: var(--amber);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  flex-shrink: 0;
}
.founding-ribbon .founding-copy {
  flex: 1; min-width: 200px;
  font-size: 14px; color: rgba(255,255,255,0.85);
  position: relative; z-index: 2;
}
.founding-ribbon .founding-copy strong { color: white; font-weight: 700; }
.founding-ribbon .founding-cta {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink);
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
  position: relative; z-index: 2;
  transition: background 0.15s;
}
.founding-ribbon:hover .founding-cta { background: #ffc060; }
@media (max-width: 640px) {
  .founding-ribbon { flex-direction: column; align-items: flex-start; text-align: left; padding: 16px 18px; }
  .founding-ribbon .founding-cta { align-self: stretch; text-align: center; }
}

/* ══════════ Hero founding note (home page) ══════════ */
.hero-founding-note {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 12px;
  background: rgba(20,24,35,0.05);
  border: 1px solid rgba(20,24,35,0.1);
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: border-color 0.15s, background 0.15s;
}
.hero-founding-note:hover {
  border-color: var(--orange);
  background: rgba(242,107,31,0.08);
}
.hero-founding-note .hfn-tag {
  font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  font-size: 10px;
  color: var(--orange-deep);
}
.hero-founding-note .hfn-copy {
  padding: 4px 10px;
  background: var(--ink);
  color: var(--amber);
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}

.founding-section-eyebrow {
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange-deep);
  margin: 12px 0 10px;
}
.founding-req-list {
  list-style: none; padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.founding-req-list li {
  padding: 8px 0; padding-left: 22px;
  font-size: 13px; line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
}
.founding-req-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grey-soft);
}
.founding-req-list li em {
  color: var(--grey); font-style: italic;
  font-size: 12px;
}

.plan-feats { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan-feats li {
  padding: 8px 0; padding-left: 24px; position: relative;
  font-size: 14px; line-height: 1.5;
}
.plan-feats li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--orange); font-weight: 900;
}
.plan-card.featured .plan-feats li::before { color: var(--amber); }
.plan-feats .feat-sub {
  display: block; margin-top: 4px;
  font-size: 12px; line-height: 1.5;
  color: var(--grey);
}
.plan-card.featured .plan-feats .feat-sub { color: rgba(255,255,255,0.6); }

/* ══════════ FAQ ══════════ */
.faq { max-width: 820px; margin: 0 auto; }
details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
details.faq-item[open] summary { color: var(--orange); }
details.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; font-family: 'Nunito'; letter-spacing: -0.3px;
}
details.faq-item summary::after {
  content: '+'; font-size: 24px; font-weight: 300; color: var(--orange);
  transition: transform 0.2s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item p {
  margin: 12px 0 0; color: var(--grey); font-size: 15px; line-height: 1.6;
}

/* ══════════ CTA ══════════ */
.big-cta {
  background: var(--ink); color: white;
  border-radius: 28px; padding: 72px 60px;
  text-align: center;
  position: relative; overflow: hidden;
}
.big-cta::before, .big-cta::after {
  content: ''; position: absolute; border-radius: 50%;
  opacity: 0.25; filter: blur(80px);
}
.big-cta::before {
  width: 400px; height: 400px; background: var(--orange);
  top: -120px; left: -120px;
}
.big-cta::after {
  width: 300px; height: 300px; background: var(--amber);
  bottom: -120px; right: -80px;
}
.big-cta h2 {
  color: white; position: relative; z-index: 2;
  font-size: clamp(32px, 4vw, 52px);
}
.big-cta p {
  color: rgba(255,255,255,0.8); max-width: 540px; margin: 16px auto 32px;
  position: relative; z-index: 2; font-size: 17px;
}
.big-cta .hero-actions { justify-content: center; position: relative; z-index: 2; }
.big-cta .btn-secondary { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.big-cta .btn-secondary:hover { border-color: white; color: white; }
@media (max-width: 700px) { .big-cta { padding: 48px 28px; } }

/* Contact form */
.contact-form {
  max-width: 560px; margin: 32px auto 0;
  display: grid; gap: 12px;
  position: relative; z-index: 2;
  text-align: left;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: white; font-family: inherit; font-size: 14px;
  outline: none; transition: border-color .15s, background .15s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.12);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form select {
  width: 100%; padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white; font-family: inherit; font-size: 14px;
  outline: none; transition: border-color .15s, background .15s;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.contact-form select:focus { border-color: var(--amber); background-color: rgba(255,255,255,0.12); }
.contact-form select option { background: var(--night); color: white; }
.contact-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) brightness(1.3);
  cursor: pointer;
}
/* Field wrapper + label pattern (all fields) */
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form .field-label {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1.2px; text-transform: uppercase;
  padding-left: 2px;
}
.contact-form .field-label b {
  color: var(--amber); font-weight: 800;
  padding-left: 2px;
}
.contact-form .field-hint {
  font-size: 12px; color: rgba(255,255,255,0.45);
  padding-left: 2px; line-height: 1.45;
  font-family: inherit;
}
.contact-form .field-error {
  display: none;
  font-size: 12px; font-weight: 600;
  color: #fca5a5; padding-left: 2px;
  line-height: 1.4;
}
.contact-form .field-error.is-visible { display: block; }
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-form select[aria-invalid="true"] {
  border-color: rgba(239,68,68,0.55);
  background: rgba(239,68,68,0.08);
}
.contact-form .field-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 0 2px; min-height: 16px;
}
.contact-form .char-counter {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.4); margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.contact-form .char-counter.is-near-limit { color: var(--amber); }

/* Section grouping */
.form-section {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber);
  padding-left: 2px;
}
.form-section-eyebrow em {
  font-style: normal; font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px; text-transform: none;
}

/* Submit button with spinner */
.contact-submit { position: relative; justify-self: center; min-width: 240px; margin-top: 6px; }
.contact-submit .btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white; border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
.contact-submit.is-loading .btn-label { opacity: 0.85; }
.contact-submit.is-loading .btn-spinner { display: inline-block; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* What happens next */
.next-steps {
  max-width: 600px; margin: 40px auto 0;
  padding: 28px 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  position: relative; z-index: 2;
}
.next-steps ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.next-steps li {
  display: flex; align-items: flex-start; gap: 14px;
  color: rgba(255,255,255,0.75); font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.next-steps li b { color: white; font-weight: 700; }
.next-steps .step-num {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(248,165,50,0.18);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 13px;
  border: 1px solid rgba(248,165,50,0.3);
}
@media (max-width: 600px) {
  .next-steps { padding: 22px 20px; }
}
.contact-form button {
  justify-self: center; min-width: 220px;
  margin-top: 4px;
}
.contact-note {
  font-size: 12px; color: rgba(255,255,255,0.55);
  text-align: center; margin-top: 10px;
  position: relative; z-index: 2;
}
.contact-status {
  max-width: 560px; margin: 16px auto 0;
  padding: 14px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  position: relative; z-index: 2;
  text-align: center;
}
.contact-status.ok {
  background: rgba(248,165,50,0.18);
  color: var(--amber);
  border: 1px solid rgba(248,165,50,0.35);
}
.contact-status.err {
  background: rgba(239,68,68,0.14);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.35);
}

/* ══════════ MODAL ══════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 24, 35, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 24px;
  animation: modal-overlay-in 0.2s ease-out;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  position: relative;
  background: var(--paper);
  border-radius: 22px;
  padding: 44px 40px 36px;
  max-width: 480px; width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  animation: modal-card-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.modal-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(248,165,50,0.2), rgba(242,107,31,0.15));
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(242,107,31,0.2);
}
.modal-card h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 28px; font-weight: 800;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.15;
}
.modal-card p {
  color: var(--grey);
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.modal-actions {
  display: flex; justify-content: center;
}
.modal-actions .btn { min-width: 140px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: 0; background: transparent;
  color: var(--grey);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--cream-deep); color: var(--ink); }
.modal-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

@keyframes modal-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 500px) {
  .modal-card { padding: 36px 24px 28px; border-radius: 18px; }
  .modal-card h2 { font-size: 24px; }
  .modal-icon { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { animation: none; }
}

/* ══════════ OVERVIEW CARDS (homepage) ══════════ */
.overview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .overview-grid { grid-template-columns: 1fr; } }
.overview-card {
  background: white; border: 1px solid var(--line);
  border-radius: 18px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.overview-card:hover {
  border-color: var(--orange); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(242,107,31,0.1);
}
.overview-card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--cream); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.overview-card h3 { margin: 0; font-size: 20px; }
.overview-card p { color: var(--grey); margin: 0; font-size: 14px; flex: 1; }
.overview-card .arrow {
  font-weight: 700; color: var(--orange); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
}
.overview-card:hover .arrow { gap: 10px; }

/* ══════════ FOOTER ══════════ */
footer.site {
  background: var(--night); color: #b8c0d0; padding: 72px 0 32px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site .brand-block .wm {
  color: white; font-family: 'Nunito'; font-weight: 800; font-size: 24px;
  letter-spacing: -0.8px;
}
footer.site .brand-block p {
  margin: 16px 0 0; font-family: 'Fraunces', Georgia, serif; font-style: italic;
  font-size: 15px; color: #9aa0b0; max-width: 340px; line-height: 1.5;
}
footer.site h4 {
  color: white; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px; font-family: 'Plus Jakarta Sans';
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: 5px 0; font-size: 14px; }
footer.site a:hover { color: var(--amber); }
.foot-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #6a7080; flex-wrap: wrap; gap: 12px;
}
.deped-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; font-weight: 600; color: #d0d6e0;
}
.deped-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
}
