/* Outfit, self-hosted: the site CSP allows fonts from this origin only (SIL OFL 1.1) */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kindie landing v2 - layout modelled on the "Coursela" reference, with the
   reference's green swapped for the Kindie logo teal. Lives next to
   style.css so the two versions can be compared side by side. */

:root {
  /* #56a7b6 is the exact logo colour. White text on it is only 2.76:1, so
     anything carrying white text (buttons, footer) uses the darker step. */
  --brand: #56a7b6;
  --brand-dark: #2f7f8e;
  --brand-darker: #276b78;
  --brand-tint: #e8f3f5;

  --orange: #f5a524;
  --orange-soft: #fff3dc;
  --on-orange: #2b2000;

  --ink: #1b2336;
  --muted: #5f6b7c;
  --line: #e3e9ec;
  --page: #ffffff;

  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 10px 34px rgba(27, 35, 54, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 35, 54, 0.14);
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Outfit", system-ui, sans-serif; color: var(--ink); background: var(--page); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
img { display: block; max-width: 100%; }
a { color: var(--brand-dark); }
section[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; }
.center { text-align: center; }

/* Key phrase: brand colour + hand-drawn orange underline */
.hl {
  color: var(--brand-dark);
  white-space: nowrap;
  padding-bottom: 0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8c32-6 62-6 98-3s64 3 96-2' fill='none' stroke='%23f5a524' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
    left bottom / 100% 0.26em no-repeat;
}
.doodle { color: var(--brand); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; border: 1.5px solid transparent;
  font: inherit; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--brand-dark); color: #fff; box-shadow: 0 8px 18px rgba(47, 127, 142, 0.28); }
.btn-solid:hover { background: var(--brand-darker); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { padding: 8px 18px; font-size: 14px; border-color: var(--brand); color: var(--brand-dark); }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 20px; color: var(--brand-dark); }
.nav-links { display: none; gap: 34px; font-size: 14.5px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a.is-active { color: var(--brand-dark); font-weight: 600; }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 0; position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy { position: relative; }
.doodle-spark { width: 44px; height: 44px; margin-bottom: 6px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 46px); max-width: 15ch; }
.lead { color: var(--muted); font-size: 16px; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.demo-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 20px 0 0; font-size: 14.5px; font-weight: 500; }
.demo-line a { color: var(--brand-dark); text-underline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.doodle-arrow { display: none; width: 60px; height: 40px; }
@media (min-width: 560px) { .doodle-arrow { display: block; } }
.doodle-flip { transform: scaleX(-1) rotate(-12deg); color: var(--orange); }

/* Rounded frame with sunburst rays - holds a product mockup where the
   reference has a portrait photo */
.hero-visual, .why-visual { position: relative; display: flex; justify-content: center; }
.frame {
  position: relative;
  width: min(340px, 82vw);
  height: 380px;
  border-radius: var(--radius-lg);
  background: repeating-conic-gradient(from -8deg at 50% 100%, var(--orange-soft) 0deg 10deg, #ffe6b8 10deg 20deg);
}
.frame::before {
  content: "";
  position: absolute; left: -12px; top: -12px;
  width: 62%; height: 46%;
  border: 2px solid var(--orange); border-right: none; border-bottom: none;
  border-radius: var(--radius-lg) 0 0 0;
}
.phone {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 196px; padding: 8px 8px 0;
  background: #1f2430; border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; height: 392px; object-fit: cover; object-position: top; border-radius: 18px 18px 0 0; }
.frame { overflow: visible; }
.hero-visual .frame { clip-path: inset(-60px -60px 0 -60px round 0 0 28px 28px); }

.float-badge {
  position: absolute; top: 46px; right: 8%;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.float-badge svg { width: 20px; height: 20px; }
.float-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; }
.float-chart { left: 2%; bottom: 26px; width: 150px; }
.float-card-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.pill { background: var(--brand-dark); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 999px; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 42px; }
.bars i { flex: 1; border-radius: 3px; background: var(--brand); }
.bars i.o { background: var(--orange); }

/* Stat strip */
.stats {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  margin: 34px 0 -44px; padding: 8px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px 18px; }
@media (min-width: 900px) { .stat + .stat { border-left: 1px solid var(--line); } }
.stat-ico { width: 46px; height: 46px; border-radius: 50%; flex: none; background: var(--orange-soft); color: var(--orange); display: flex; align-items: center; justify-content: center; }
.stat-ico svg { width: 22px; height: 22px; }
.stat-ico-solid { background: var(--brand-dark); color: #fff; }
.stat-num { font-size: 30px; font-weight: 600; color: var(--brand-dark); line-height: 1.1; }
.stat-lbl { font-size: 13.5px; color: var(--muted); }

/* ---------- Bands ---------- */
.band { padding: 84px 0; }
.band-tint { background: var(--brand-tint); }
.hero + .band { padding-top: 124px; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 30px; }
.section-head h2, .why-copy h2, .contact-copy h2 { font-size: clamp(26px, 3.2vw, 34px); }
.section-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.doodle-cap { width: 40px; height: 40px; vertical-align: middle; margin-left: 4px; }

/* ---------- Feature cards ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-bottom: 30px; }
.filters button { border: none; background: none; padding: 6px 2px; font: inherit; font-size: 14.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.filters button[aria-selected="true"] { color: var(--brand-dark); font-weight: 600; border-bottom-color: var(--orange); }

/* Role showcase: two tilted phones on teal rings (left), feature list (right) */
.role { display: grid; gap: 36px; align-items: center; margin-bottom: 40px; }
.role[hidden] { display: none; }
@media (min-width: 900px) { .role { grid-template-columns: 1fr 1fr; gap: 56px; } }
.phones { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1.32; margin: 0 auto; }
.phones::before {
  content: ""; position: absolute; inset: -6% -10%;
  background: repeating-radial-gradient(circle at 70% 48%, transparent 0 25px, rgba(86, 167, 182, 0.38) 25px 26px);
  -webkit-mask-image: radial-gradient(circle at 70% 48%, #000 40%, transparent 72%);
  mask-image: radial-gradient(circle at 70% 48%, #000 40%, transparent 72%);
}
.dev {
  position: absolute; background: #1f2430; padding: 2.2%; border-radius: 9% / 4.4%;
  box-shadow: var(--shadow-lg); transform: rotate(-6deg);
}
.dev::before { content: ""; position: absolute; top: 2.4%; left: 47.5%; width: 5%; aspect-ratio: 1; border-radius: 50%; background: #1f2430; z-index: 1; }
.dev img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 800; object-fit: cover; object-position: top; border-radius: 7.5% / 3.7%; background: #fff; transition: opacity 0.25s ease; }
.dev.is-swapping img { opacity: 0; }
.dev-back { width: 53%; left: 5%; top: 2%; }
.dev-front { width: 45%; right: 4%; top: 27%; }
@media (prefers-reduced-motion: reduce) { .dev img { transition: none; } }

.role-tag { display: inline-block; background: var(--orange-soft); color: #7a4d00; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.role-copy h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 8px; }
.role-copy > p { color: var(--muted); margin: 0 0 18px; max-width: 46ch; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.feat-list button {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 11px 14px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.feat-list button:hover { background: rgba(255, 255, 255, 0.6); }
.feat-list button[aria-current="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.feat-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand-dark); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.feat-list button[aria-current="true"] .feat-n { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.feat-t { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.feat-t strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); }

/* ---------- Why ---------- */
/* Stacked: heading, full-width slider, perks row, CTA */
.why-grid { display: block; }
.why-head { max-width: 640px; }
.why-visual { display: block; min-width: 0; }
.frame-wide { width: 88%; height: auto; margin: 0 auto; padding: 34px 0 40px; }
.laptop { position: relative; width: 110%; margin-left: -5%; background: #1f2430; padding: 9px 9px 0; border-radius: 13px 13px 3px 3px; box-shadow: var(--shadow-lg); }
.laptop::after { content: ""; display: block; height: 12px; margin: 0 -14px; background: linear-gradient(#2b303d, #171a22); border-radius: 0 0 9px 9px; }

/* Screens slide inside the laptop */
.screen { overflow: hidden; border-radius: 5px 5px 0 0; aspect-ratio: 16 / 9; background: #fff; }
.screen-track { display: flex; height: 100%; transition: transform 0.5s ease; }
.screen-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (prefers-reduced-motion: reduce) { .screen-track { transition: none; } }

.shots-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.shots-nav { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--orange); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.shots-nav:hover { background: #e0931a; }
.shots-mid { min-width: 150px; text-align: center; }
.shots-cap { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.shots-dots { display: flex; justify-content: center; gap: 7px; }
.shots-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: #cfd8dc; cursor: pointer; transition: width 0.2s ease, background 0.2s ease; }
.shots-dots button[aria-current="true"] { width: 24px; background: var(--brand-dark); }

.perks { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 40px 0 30px; }
@media (min-width: 560px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; gap: 12px; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.perk-ico { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; }
.perk-ico svg { width: 16px; height: 16px; }
.perk h3 { font-size: 14.5px; margin-bottom: 2px; }
.perk p { font-size: 12.5px; color: var(--muted); margin: 0; }
.why-cta { display: flex; align-items: center; justify-content: center; gap: 14px; }

.stack { margin-top: 72px; text-align: center; }
.stack p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.stack ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; padding: 0; margin: 0; }
.stack li { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: #c3cad6; }

/* ---------- Pricing ---------- */
.tiers { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 860px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { position: relative; background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tier-featured { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-lg); }
.tier h3 { font-size: 19px; }
.tier-tag { font-size: 13.5px; color: var(--muted); }
.tier-price { font-size: 19px; font-weight: 600; color: var(--brand-dark); margin-bottom: 4px; }
.tier-note { font-size: 12.5px; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 6px 0 22px; flex: 1; }
.tier li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tier li:first-child { border-top: none; }
.tier-prices li { display: flex; justify-content: space-between; gap: 10px; }
.tier-badge { position: absolute; top: -12px; left: 24px; background: var(--orange); color: var(--on-orange); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.tier-featured .tier-tag, .tier-featured .tier-note { color: rgba(255, 255, 255, 0.82); }
.tier-featured li { border-top-color: rgba(255, 255, 255, 0.2); }
.tier-featured .btn-solid { background: #fff; color: var(--brand-dark); box-shadow: none; }

.table-wrap { overflow-x: auto; margin-top: 40px; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td { padding: 13px 16px; font-size: 13.5px; text-align: center; border-bottom: 1px solid var(--line); font-weight: 400; }
thead th { background: var(--brand-dark); color: #fff; font-weight: 600; border-bottom: none; }
tbody th { text-align: left; color: var(--muted); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--orange-soft); }
td.yes { color: var(--brand-dark); font-weight: 700; }
.table-left td { text-align: left; }
.sub-head { text-align: center; font-size: 20px; margin: 48px 0 0; }

/* ---------- FAQ ---------- */
.faq { border-radius: 12px; background: #fff; box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 12px; border: 1.5px solid transparent; }
.faq[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Contact band (orange, sunburst, dark text) ---------- */
.band-contact { padding-top: 0; }
.contact {
  display: grid; gap: 32px; align-items: center;
  padding: 44px 28px; border-radius: var(--radius);
  color: var(--on-orange);
  background: repeating-conic-gradient(from 0deg at 0% 100%, rgba(255, 255, 255, 0.16) 0deg 6deg, transparent 6deg 12deg), var(--orange);
}
@media (min-width: 900px) { .contact { grid-template-columns: 0.85fr 1.15fr; padding: 52px 48px; } }
.contact-copy h2 { color: var(--ink); }
.contact-copy p { font-weight: 500; max-width: 38ch; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-contact { gap: 9px; background: #fff; color: var(--ink); border-color: rgba(27, 35, 54, 0.18); box-shadow: var(--shadow); }
.btn-contact:hover { border-color: var(--ink); }
.btn-contact svg { flex: none; }

.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.form-legend { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.req { color: #d93025; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.row { margin-bottom: 14px; }
.row-2 { display: grid; gap: 14px; }
@media (min-width: 520px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.row input, .row select, .row textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14.5px; color: var(--ink); background: #fff; }
.row input:focus, .row select:focus, .row textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(86, 167, 182, 0.22); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { text-align: center; font-size: 13.5px; margin: 12px 0 0; min-height: 1.4em; }
.form-status.success { color: #2e7d32; font-weight: 600; }
.form-status.error { color: #d93025; font-weight: 600; }

/* ---------- Footer (brand colour, as in the reference) ---------- */
.footer { background: var(--brand-dark); color: rgba(255, 255, 255, 0.9); padding: 36px 0; }
.footer-inner { display: grid; gap: 22px; align-items: center; text-align: center; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto 1fr; } .footer-links { justify-content: flex-start; } .footer-contact { justify-content: flex-end; } }
.footer .brand { color: #fff; font-size: 40px; gap: 16px; }
.footer .brand img { height: 56px; width: auto; }
.footer .brand img { filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; margin: 8px auto 0; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 24, 0.82); }
.modal-dialog { position: relative; width: 100%; max-width: 860px; }
.modal-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 16px; cursor: pointer; }
.modal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
