/* EduTrack website. Warm cream, forest green, sage. Newsreader headings, DM Sans text. */
@font-face { font-family: "Newsreader"; src: url('../fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url('../fonts/newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url('../fonts/dm-sans.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --cream: #F7F4EC;
  --cream-2: #EFEADD;
  --card: #FFFDF8;
  --forest: #163A32;
  --forest-2: #1F4D41;
  --green: #216653;
  --sage: #A9C2B0;
  --sage-soft: #E3ECE3;
  --sage-tint: #EEF3EC;
  --ink: #15241F;
  --muted: #55645D;
  --line: #E1DCCF;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .7, .1, 1);
  --radius: 28px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; color: var(--forest); }
em { font-style: italic; color: var(--green); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: #fff; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 10px 24px -12px rgba(22, 58, 50, .55); }
.btn-primary:hover { background: var(--forest-2); }
.btn-quiet { background: var(--card); color: var(--forest); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--sage); }
.btn-outline { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-light { background: #fff; color: var(--forest); }

/* Tag pill */
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--sage-soft); color: var(--forest); font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tag-dark { background: rgba(255, 255, 255, .1); color: #fff; }
.tag-dark .tag-dot { background: var(--sage); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 236, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -.02em; color: var(--forest); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.main-nav a:hover { background: var(--sage-soft); }
.nav-login-sm { display: none; }
.head-end { display: flex; align-items: center; gap: 10px; }
.login { padding: 8px 12px; font-size: 15.5px; font-weight: 500; text-decoration: none; }
.login:hover { color: var(--green); }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sage-soft); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--forest); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ───────── Hero ───────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 96px; }
.blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.blob-a { width: 760px; height: 760px; right: -160px; top: -120px; background: radial-gradient(circle at 40% 40%, #D7E4D8, rgba(215, 228, 216, 0) 68%); animation: drift 18s ease-in-out infinite alternate; }
.blob-b { width: 520px; height: 520px; left: -180px; bottom: -220px; background: radial-gradient(circle, #E8E1CF, rgba(232, 225, 207, 0) 70%); animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.06); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(52px, 6.6vw, 98px); line-height: .98; letter-spacing: -.035em; font-weight: 500; }
.lead { margin-top: 26px; max-width: 470px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 48px 0 0; padding-top: 26px; border-top: 1px solid var(--line); max-width: 540px; }
.hero-facts div { flex: 1 1 140px; padding-right: 20px; }
.hero-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: 13.5px; color: var(--muted); }
.hero-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--forest); letter-spacing: -.02em; line-height: 1.1; }
.hero-facts small { font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: 0; }

.hero-visual { position: relative; aspect-ratio: 1 / 1.04; max-width: 600px; justify-self: end; width: 100%; }
.hero-photo { position: absolute; inset: 6% 4% 4% 10%; margin: 0; overflow: hidden; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; box-shadow: 0 40px 80px -40px rgba(22, 58, 50, .45); animation: morph 16s ease-in-out infinite alternate; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: scale(1.04); }
@keyframes morph { 50% { border-radius: 54% 46% 50% 50% / 46% 54% 46% 54%; } 100% { border-radius: 44% 56% 48% 52% / 56% 46% 54% 44%; } }
.orbit { position: absolute; inset: -4% -6%; width: 112%; height: 112%; overflow: visible; pointer-events: none; }
.orbit ellipse { fill: none; stroke: rgba(33, 102, 83, .28); stroke-width: 1.5; stroke-dasharray: 4 10; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }

.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 253, 248, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(22, 58, 50, .35), 0 0 0 1px rgba(225, 220, 207, .8); animation: bob 7s ease-in-out infinite; }
.float b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.float small { display: block; font-size: 12.5px; color: var(--muted); }
.f1 { left: -6%; top: 14%; }
.f2 { right: -4%; top: 4%; animation-delay: -2s; }
.f3 { left: -2%; bottom: 12%; animation-delay: -4s; }
.f4 { right: -2%; bottom: 22%; animation-delay: -1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.f-check { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; }
.lv { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 8px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.lv.me { background: #E6F0D6; color: #33571A; }
.r-bg { fill: none; stroke: var(--sage-soft); stroke-width: 4; }
.r-fg { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 8.8; transform: rotate(-90deg); transform-origin: 50% 50%; }
.f-mpesa { display: grid; place-items: center; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--sage-soft); color: var(--forest); font-size: 12.5px; font-weight: 700; }
.spark { position: absolute; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); animation: bob 5s ease-in-out infinite; }
.s1 { left: 18%; top: 4%; }
.s2 { right: 10%; bottom: 6%; width: 14px; height: 14px; background: #D9C99B; animation-delay: -2.5s; }

/* ───────── Sections ───────── */
.sec { padding: 120px 0; }
.sec-sage { background: var(--sage-tint); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec h2 { font-size: clamp(38px, 4.8vw, 64px); }
.sub { margin-top: 18px; font-size: 19px; color: var(--muted); }
.kicker { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.caption { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Feature stories */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.story + .story { margin-top: 96px; }
.story-flip .story-img { order: 2; }
.story-img { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 5 / 4; background: var(--cream-2); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story:hover .story-img img { transform: scale(1.03); }
.story h3 { font-size: clamp(32px, 3.4vw, 46px); }
.story-copy > p:not(.kicker) { margin-top: 18px; font-size: 18px; color: var(--muted); }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 34px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.step-n { font-family: var(--serif); font-size: 56px; font-style: italic; color: #5E8F72; line-height: 1; }
.steps h3 { margin-top: 26px; font-size: 28px; }
.steps p { margin-top: 10px; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; max-width: 980px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 40px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.plan-main { background: var(--forest); color: #fff; box-shadow: 0 40px 80px -40px rgba(22, 58, 50, .6); }
.plan-main h2, .plan-main h3, .plan-main .plan-price { color: #fff; }
.badge { position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px; background: var(--sage); color: var(--forest); font-size: 12.5px; font-weight: 700; }
.plan h3 { font-size: 30px; }
.plan-for { margin-top: 6px; color: var(--muted); }
.plan-main .plan-for, .plan-main .plan-per, .plan-main .plan-note { color: rgba(255, 255, 255, .72); }
.plan-price { margin-top: 30px; font-family: var(--serif); font-size: 84px; font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--forest); }
.plan-price .cur { font-size: 28px; vertical-align: top; letter-spacing: 0; }
.plan-price-sm { font-size: 52px; }
.plan-per { margin-top: 8px; color: var(--muted); }
.plan .ticks { flex: 1; margin-bottom: 30px; }
.plan-main .ticks li { border-top-color: rgba(255, 255, 255, .14); }
.plan-main .ticks li::before { border-color: var(--sage); }
.plan-note { margin-top: 14px; font-size: 13.5px; text-align: center; }

/* About + team */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
.about-copy p:not(.tag) { margin-top: 20px; font-size: 18.5px; color: var(--muted); max-width: 600px; }
.team { display: grid; gap: 16px; }
.person { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 500; flex: none; }
.avatar-b { background: var(--sage); color: var(--forest); }
.person h3 { font-size: 24px; }
.person p { margin-top: 2px; color: var(--muted); }

/* Partners */
.soon { padding: 64px 40px; border-radius: var(--radius); text-align: center; background: var(--card); box-shadow: 0 0 0 1px var(--line); background-image: radial-gradient(500px 200px at 50% 0, var(--sage-tint), transparent); }
.soon p:not(.tag) { max-width: 520px; margin: 18px auto 28px; color: var(--muted); font-size: 18px; }

/* Book a demo */
.book { padding: 120px 0; background: var(--forest); color: #fff; position: relative; overflow: hidden; }
.book::before { content: ''; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(169, 194, 176, .25), transparent 65%); animation: drift 20s ease-in-out infinite alternate; }
.book-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.book h2 { color: #fff; font-size: clamp(40px, 4.8vw, 64px); }
.book em { color: var(--sage); }
.book-copy > p:not(.tag) { margin-top: 20px; font-size: 18.5px; color: rgba(255, 255, 255, .75); max-width: 480px; }
.reach { margin: 40px 0 0; padding: 0; list-style: none; }
.reach li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.reach span { width: 90px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.reach a { font-family: var(--serif); font-size: 24px; text-decoration: none; }
.reach a:hover { color: var(--sage); }
.form { padding: 36px; border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.f { position: relative; margin-bottom: 18px; }
.f label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.f input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 16.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.f input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(33, 102, 83, .14); }
.f.has-err input { border-color: #B3261E; }
.err { position: absolute; right: 0; top: 2px; font-size: 13px; color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 14px; font-size: 14.5px; color: #B3261E; }
.submit[disabled] { opacity: .6; cursor: progress; }
.privacy { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.form-done { padding: 28px 0; text-align: center; }
.done-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--sage-soft); color: var(--forest); font-size: 32px; font-weight: 700; }
.form-done h3 { margin-top: 18px; font-size: 40px; }
.form-done p { margin: 10px 0 24px; color: var(--muted); }

/* Footer */
.site-foot { padding: 80px 0 32px; background: var(--cream); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.foot-line { margin-top: 14px; color: var(--muted); }
.site-foot h2, .site-foot h3 { font-family: var(--sans); font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-foot nav a, .foot-grid > div > a:not(.brand) { display: block; padding: 5px 0; text-decoration: none; }
.site-foot nav a:hover, .foot-grid > div > a:not(.brand):hover { color: var(--green); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; color: var(--muted); font-size: 14px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 78px; flex-direction: column; gap: 0; padding: 12px 24px 24px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-login-sm { display: block; }
  .menu-btn { display: flex; }
  .login { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 560px; margin-top: 24px; }
  .story, .about, .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-flip .story-img { order: 0; }
  .steps, .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .head-row { height: 68px; }
  .main-nav { top: 68px; }
  .head-end .btn { height: 42px; padding: 0 16px; font-size: 14.5px; }
  .head-end .btn .arr { display: none; }
  .brand { font-size: 22px; }
  .hero { padding: 36px 0 64px; }
  .hero h1 { font-size: 52px; }
  .lead { font-size: 18px; }
  .ctas .btn { width: 100%; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
  .hero-facts div, .hero-facts div + div { padding: 0 10px; }
  .hero-facts div:first-child { padding-left: 0; }
  .hero-facts dt { font-size: 12px; line-height: 1.3; }
  .hero-facts dd { font-size: 22px; }
  .hero-facts small { display: block; font-size: 12px; }
  .f2, .f3 { display: none; }
  .f1 { top: 6%; } .f4 { bottom: 10%; }
  .badge { position: static; display: inline-block; align-self: flex-start; margin-bottom: 14px; }
  .plan-price-sm { font-size: 40px; }
  .float { padding: 9px 12px 9px 9px; gap: 9px; border-radius: 14px; }
  .float b { font-size: 12.5px; }
  .float small { font-size: 11.5px; }
  .f-check, .lv, .f-mpesa { height: 30px; min-width: 30px; }
  .f3 svg { width: 30px; height: 30px; }
  .f1 { left: 0; } .f2 { right: 0; } .f3 { left: 0; } .f4 { right: 0; }
  .sec, .book { padding: 80px 0; }
  .sec-head { margin-bottom: 36px; }
  .story + .story { margin-top: 64px; }
  .plan, .form { padding: 26px; }
  .plan-price { font-size: 68px; }
  .soon { padding: 48px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Logo (redrawn from option 2: book and swooping E) */
.brand img { display: block; width: auto; height: 54px; }
.site-foot .brand img { height: 46px; }
@media (max-width: 640px) { .brand img { height: 44px; } }

/* ───────── One connected platform: three illustrated cards ───────── */
.platform { padding-top: 48px; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { padding: 18px 18px 30px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(22, 58, 50, .35); }
.pcard-art { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(160deg, var(--sage-tint), var(--sage-soft)); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.pcard-art::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 253, 248, .9), rgba(255, 253, 248, 0) 70%); animation: drift 14s ease-in-out infinite alternate; }
.pcard:nth-child(2) .pcard-art { background: linear-gradient(160deg, #F2EEE2, #E6EEE4); }
.pcard:nth-child(3) .pcard-art { background: linear-gradient(160deg, #E8EFE6, #F1ECDF); }
.pcard h3 { margin: 26px 12px 0; font-size: 28px; }
.pcard p { margin: 10px 12px 0; color: var(--muted); }

.ill { position: relative; width: 92%; height: auto; overflow: visible; }
.p-card { fill: #FFFDF8; stroke: #E1DCCF; stroke-width: 1.2; }
.p-back { opacity: .55; } .p-mid { opacity: .8; }
.p-line { fill: #E8E3D6; } .p-line-d { fill: #163A32; opacity: .85; }
.c-ee { fill: #D3EBE0; } .c-me { fill: #E6F0D6; } .c-ae { fill: #FFEFC7; } .c-be { fill: #FBE1DD; }
.chips rect { transform-box: fill-box; transform-origin: center; animation: chip 6s ease-in-out infinite; }
.chips rect:nth-child(3n+2) { animation-delay: -2s; } .chips rect:nth-child(3n) { animation-delay: -4s; }
@keyframes chip { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.08); } }

.p-axis { stroke: #C9C3B4; stroke-width: 1.5; } .p-grid { stroke: #E1DCCF; stroke-width: 1; stroke-dasharray: 3 6; }
.p-path { fill: none; stroke: #216653; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; }
.is-in .p-path { animation: draw 2.4s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.p-dot { fill: #FFFDF8; stroke: #216653; stroke-width: 3; }
.p-runner { fill: #A9C2B0; stroke: #FFFDF8; stroke-width: 3; offset-path: path("M28 160 C70 156 82 128 116 124 C150 120 158 98 192 88 C226 78 240 54 288 44"); offset-distance: 0%; animation: run 7s ease-in-out infinite; }
@keyframes run { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 85% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.p-pole { stroke: #163A32; stroke-width: 3; stroke-linecap: round; }
.p-banner { fill: #163A32; transform-box: fill-box; transform-origin: left center; animation: wave 3s ease-in-out infinite; }
@keyframes wave { 50% { transform: skewY(6deg) scaleX(.92); } }

.doc { animation: lift 6s ease-in-out infinite; }
@keyframes lift { 50% { transform: translateY(-6px); } }
.p-badge { fill: #163A32; }
.p-tick { fill: none; stroke: #FFFDF8; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.badge-check { transform-box: fill-box; transform-origin: center; animation: pop 6s ease-in-out infinite; }
@keyframes pop { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.1); } }
.p-av { fill: #A9C2B0; stroke: #FFFDF8; stroke-width: 3; } .a2 { fill: #D9C99B; } .a3 { fill: #163A32; }

.story-ill { display: grid; place-items: center; background: linear-gradient(160deg, var(--sage-tint), #F1ECDF); }
.ill-lg { width: 80%; }

@media (max-width: 1080px) { .pcards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ───────── Shared page parts (Features, About, Pricing, Partners) ───────── */
.main-nav a[aria-current="page"] { background: var(--sage-soft); color: var(--forest); font-weight: 600; }
.center { text-align: center; }
.more { margin-top: 56px; text-align: center; }
.more-left { margin-top: 26px; }
.text-link { color: var(--green); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--sage); padding-bottom: 2px; }
.text-link:hover { border-color: var(--green); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); }

.page-hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.page-hero-tall { padding: 140px 0 160px; }
.page-hero-inner { position: relative; z-index: 1; max-width: 880px; }
.page-hero-inner.center { margin-inline: auto; }
.page-hero h1 { font-size: clamp(46px, 6vw, 84px); line-height: 1; letter-spacing: -.03em; }
.page-hero .lead { max-width: 640px; }
.page-hero-inner.center .lead { margin-inline: auto; }
.ctas-center { justify-content: center; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.jump a { padding: 9px 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: box-shadow .2s, background .2s; }
.jump a:hover { box-shadow: inset 0 0 0 1px var(--sage); background: #fff; }

.feat { padding: 96px 0; }
.feat h2 { font-size: clamp(32px, 3.6vw, 48px); }
.levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.lvchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.lvchip b { display: grid; place-items: center; min-width: 34px; height: 26px; border-radius: 999px; font-size: 12.5px; }
.lvchip.ee b { background: #D3EBE0; color: #0F4A39; } .lvchip.me b { background: #E6F0D6; color: #33571A; }
.lvchip.ae b { background: #FFEFC7; color: #7A4F00; } .lvchip.be b { background: #FBE1DD; color: #9B2219; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.roles li { padding: 24px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.roles b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--forest); }
.roles span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }

.cta-band { padding: 0 0 120px; }
.cta-inner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 56px; border-radius: var(--radius); background: var(--forest); color: #fff; }
.cta-inner::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(169, 194, 176, .28), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(32px, 3.8vw, 52px); }
.cta-inner em { color: var(--sage); }
.cta-inner p { margin-top: 12px; color: rgba(255, 255, 255, .75); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* About */
.about-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; overflow: hidden; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; aspect-ratio: 1 / .92; box-shadow: 0 40px 80px -40px rgba(22, 58, 50, .45); animation: morph 16s ease-in-out infinite alternate; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.split h2 { font-size: clamp(34px, 4vw, 54px); }
.prose p { font-size: 19px; color: var(--muted); }
.prose p + p { margin-top: 18px; }
.mvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mvp article { padding: 34px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.mvp h3 { font-size: 28px; }
.mvp p:not(.kicker) { margin-top: 14px; color: var(--muted); }
.team-row { grid-template-columns: repeat(auto-fit, minmax(0, 360px)); justify-content: center; }

/* Pricing page */
.pricing-page { padding-top: 24px; }
.plan-title { font-size: 30px; }
.estimate { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; max-width: 980px; margin: 96px auto 0; padding: 44px; border-radius: var(--radius); background: var(--sage-tint); }
.estimate h2 { font-size: clamp(30px, 3.4vw, 44px); }
.est-box label { display: block; font-weight: 600; margin-bottom: 12px; }
.est-row { display: flex; gap: 14px; align-items: center; }
.est-row input[type="range"] { flex: 1; accent-color: var(--forest); height: 28px; }
.est-row input[type="number"] { width: 110px; height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 17px; background: #fff; }
.est-row input[type="number"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(33, 102, 83, .14); }
.est-out { margin-top: 20px; font-size: 17px; color: var(--muted); }
.est-out b { display: block; font-family: var(--serif); font-size: 48px; font-weight: 500; color: var(--forest); letter-spacing: -.02em; line-height: 1.1; }
.est-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.faq { max-width: 820px; margin: 96px auto 0; }
.faq h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 24px; text-align: center; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 23px; color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-size: 26px; line-height: 1; color: var(--green); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--muted); font-size: 17px; max-width: 680px; }

/* Extra illustration pieces */
.p-phone { fill: #163A32; }
.p-bubble { fill: #216653; }
.p-line-w { fill: rgba(255, 255, 255, .6); }
.p-typing { fill: #A9C2B0; animation: typing 1.4s ease-in-out infinite; }
.p-typing.t2 { animation-delay: .2s; } .p-typing.t3 { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.bubble { animation: lift 7s ease-in-out infinite; } .b2 { animation-delay: -2s; } .b3 { animation-delay: -4s; }
.rows > g { animation: lift 8s ease-in-out infinite; } .rows > g:nth-child(2) { animation-delay: -2.6s; } .rows > g:nth-child(3) { animation-delay: -5.2s; }

@media (max-width: 1080px) {
  .about-hero, .split, .estimate { grid-template-columns: 1fr; gap: 36px; }
  .mvp { grid-template-columns: 1fr; }
  .roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-hero { padding: 56px 0 48px; }
  .page-hero-tall { padding: 96px 0 110px; }
  .page-hero h1 { font-size: 44px; }
  .feat { padding: 72px 0; }
  .roles { grid-template-columns: 1fr; }
  .cta-band { padding-bottom: 80px; }
  .cta-inner { padding: 34px 24px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .estimate { padding: 26px; margin-top: 72px; }
  .est-out b { font-size: 38px; }
  .team-row { grid-template-columns: 1fr; }
  .faq summary { font-size: 20px; }
}
