/* Landing page (index.html). Other pages still use style.css. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-v20-latin-regular.woff2") format("woff2"), url("../fonts/poppins-v20-latin-regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-v20-latin-500.woff2") format("woff2"), url("../fonts/poppins-v20-latin-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-v20-latin-600.woff2") format("woff2"), url("../fonts/poppins-v20-latin-600.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-v20-latin-700.woff2") format("woff2"), url("../fonts/poppins-v20-latin-700.woff") format("woff"); }

:root {
  --blue: #1D64D1;
  --blue-dark: #174EA6;
  --ink: #0F1B33;
  --muted: #475467;
  --bg: #F5F8FE;
  --tint: #EAF1FD;
  --line: #E1E8F5;
  --card: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
[id] { scroll-margin-top: 24px; }

.wrap { max-width: 1248px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.section { padding-top: clamp(64px, 8vw, 96px); }
.h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.8px; }
.lead { margin-top: 12px; max-width: 640px; font-size: 17px; color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 24px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 15px;
  transition: background .15s ease;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .badges, .badges--center { justify-content: center; }
.badges a { display: block; height: 52px; }
.badges img { display: block; height: 52px; width: auto; }

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 24px 0; }
.nav__logo { display: block; height: 36px; }
.nav__logo img { display: block; height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__links .btn { min-height: 44px; padding: 0 22px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(29, 100, 209, .28) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%);
}
.hero > .wrap { position: relative; }
.hero__copy { padding-top: clamp(24px, 4vw, 48px); text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 16px; border-radius: 18px;
  background: var(--tint); color: var(--blue-dark); font-size: 14px; font-weight: 500;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #12915B; }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 5.3vw, 68px); font-weight: 700; line-height: 1.1; letter-spacing: -2px; }
.hero h1 span { display: block; margin-top: 8px; font-size: clamp(22px, 3.1vw, 40px); font-weight: 600; line-height: 1.25; letter-spacing: -1px; color: var(--blue); }
.hero__copy p { margin: 20px auto 0; max-width: 640px; font-size: 18px; color: var(--muted); }
.hero__stage {
  position: relative; margin-top: 56px; height: clamp(400px, 46vw, 520px); border-radius: clamp(28px, 3.5vw, 40px); overflow: hidden;
  background-color: var(--blue);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
}
.hero__stage .phone { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); }
.float {
  position: absolute; width: 250px; padding: 16px 18px; border-radius: 18px; background: #fff; text-align: left;
  box-shadow: 0 24px 48px -16px rgba(7, 20, 55, .45);
}
.float--left { left: calc(50% - 470px); top: 104px; }
.float--right { right: calc(50% - 470px); top: 250px; }
.float__kicker { font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--blue); }
.float__title { margin-top: 4px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.float__line { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Phone frame */
.phone {
  --w: 300px;
  position: relative; flex: none; width: var(--w); padding: calc(var(--w) * .012);
  border-radius: calc(var(--w) * .19);
  background: linear-gradient(135deg, #9aa0ac 0%, #4a4f5a 16%, #17191e 45%, #2c3038 72%, #868c98 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 50px 80px -30px rgba(7, 20, 55, .6), 0 20px 30px -15px rgba(7, 20, 55, .35);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; background: #343841; }
.phone::before {
  left: -3px; top: 17%; height: 4.5%; border-radius: 2px 0 0 2px;
  box-shadow: 0 calc(var(--w) * .2) 0 0 #343841, 0 calc(var(--w) * .2 + var(--w) * .1) 0 0 #343841, 0 calc(var(--w) * .33) 0 0 #343841, 0 calc(var(--w) * .33 + var(--w) * .1) 0 0 #343841;
}
.phone::after { right: -3px; top: 28%; height: 11%; border-radius: 0 2px 2px 0; }
.phone__screen {
  position: relative; overflow: hidden; border: calc(var(--w) * .03) solid #050608; border-radius: calc(var(--w) * .178);
  background: #050608;
}
.phone__screen img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * .085); }
.phone__screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 24%);
}
.phone__island {
  position: absolute; top: 2%; left: 50%; width: 29%; height: 3.3%; transform: translateX(-50%);
  border-radius: 999px; background: #050608;
}

/* Cards and grids */
.grid { display: grid; gap: 16px; margin-top: 48px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); text-align: left; }
.card h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--tint); color: var(--blue); }

/* Customise split */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 6vw, 80px); }
.split__media {
  flex: 1 1 360px; display: flex; justify-content: center; padding: 48px 24px 0; height: 520px; overflow: hidden; border-radius: 32px;
  background-color: var(--tint);
  background-image: radial-gradient(circle, rgba(29, 100, 209, .2) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
}
.split__body { flex: 1 1 380px; min-width: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 28px 0; }
.stats strong { display: block; font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; }
.stats span { font-size: 14px; color: var(--muted); }

/* Steps */
.panel { padding: clamp(28px, 4.4vw, 56px); border: 1px solid var(--line); border-radius: 32px; background: var(--card); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; margin-top: 40px; }
.steps__num { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 20px; font-weight: 700; }
.steps h3 { margin-top: 20px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.steps p { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.steps .note { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 10px; background: var(--tint); color: var(--blue-dark); font-size: 13px; font-weight: 600; }

/* Reviews */
.headrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.rating { text-align: right; }
.rating strong { display: block; font-size: 28px; font-weight: 700; line-height: 1.4; }
.rating span { font-size: 14px; color: var(--muted); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.quote blockquote { font-size: 16px; line-height: 1.6; }
.quote figcaption strong { display: block; font-weight: 600; line-height: 1.5; }
.quote figcaption span { font-size: 14px; color: var(--muted); }

/* Screens */
.screens { display: flex; gap: 20px; margin-top: 48px; padding: 4px clamp(20px, 5vw, 64px) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.screens img { flex: none; width: 220px; height: auto; border-radius: 28px; scroll-snap-align: center; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(7, 20, 55, .4); }

/* Download */
.cta { padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px); border-radius: 32px; background-color: var(--blue); color: #fff; text-align: center;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .14) 1.2px, transparent 1.6px); background-size: 24px 24px; }
.cta p { margin-top: 12px; font-size: 17px; }

/* News and blog */
.story { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.story img { display: block; width: 100%; height: 180px; object-fit: cover; }
.story__body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.more { display: inline-block; margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--blue); }
.more:hover { color: var(--blue-dark); }
.posts { display: grid; gap: 16px; max-width: 860px; margin: 48px auto 0; }
.post h3 { font-size: 20px; }
.post p, .post li { font-size: 15px; line-height: 1.65; color: var(--muted); }
.post details { margin-top: 12px; }
.post summary { display: inline-block; min-height: 32px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); }
.post details[open] summary { margin-bottom: 8px; }
.post details ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.post details p + p { margin-top: 12px; }
.post strong { color: var(--ink); font-weight: 600; }

/* Footer */
.footer { margin-top: clamp(64px, 8vw, 96px); padding: 48px 0 32px; border-top: 1px solid var(--line); background: var(--card); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer__top img.logo { display: block; height: 32px; width: auto; }
.footer h3 { font-size: 14px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.footer__top p, .footer__top li { margin-top: 12px; font-size: 15px; color: var(--muted); }
.footer .badges { margin-top: 12px; }
.footer .badges a, .footer .badges img { height: 44px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 1040px) {
  .float { display: none; }
}
@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; }
  .nav__links .btn { justify-content: center; margin-top: 4px; }
  .hero h1 { letter-spacing: -1px; }
  .hero__stage .phone { --w: 250px; top: 40px; }
  .split__media { height: 440px; padding-top: 36px; }
  .split__media .phone { --w: 250px; }
  .rating { text-align: left; }
  .screens img { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
