/* Homepage stylesheet (index.html only). Other pages keep styles.css. */
:root {
  --green: #107c41;
  --green-dark: #0b5c2f;
  --mint: #e7f4eb;
  --ground: #f4f6f5;
  --ink: #1f2a24;
  --muted: #66776a;
  --line: #e7e9eb;
  --bezel: #101614;
  --shadow: 0 30px 70px rgba(31, 42, 36, 0.16);
  --max: 1180px;
}

@font-face { font-family: "Open Sans"; src: url("assets/fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/OpenSans-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
section { padding: 120px 0 0; }
.h2 { font-size: clamp(30px, 3.8vw, 50px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.lead { font-size: clamp(17px, 1.5vw, 22px); color: var(--muted); margin-top: 14px; max-width: 560px; }
.fine { font-size: 15px; color: var(--muted); margin-top: 16px; }
.fine a, .lead a { color: var(--green); font-weight: 600; }
.fine a:hover, .lead a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons and store badges */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; background: var(--green); color: #fff; transition: background 0.15s ease; }
.btn:hover { background: var(--green-dark); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 18px 9px 14px; min-width: 176px; transition: background 0.15s ease; }
.badge:hover { background: #000; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.15; }
.badge small { font-size: 10px; opacity: 0.85; }
.badge strong { font-size: 17px; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--green); }
.nav a.signin { color: var(--green); font-weight: 600; }
.header-cta { padding: 9px 16px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; }

/* Hero */
.hero { padding: 92px 0 0; text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 82px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { font-size: clamp(18px, 2vw, 26px); margin: 22px auto 0; max-width: none; }
.hero .badges { justify-content: center; margin-top: 32px; }
.hero .fine { margin-top: 18px; }

/* Devices: a laptop with a phone in front of it */
.devices { position: relative; height: 700px; margin-top: 60px; }
.devices::before { content: ""; position: absolute; left: 50%; top: 42%; width: 1300px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(16, 124, 65, 0.13), rgba(16, 124, 65, 0)); pointer-events: none; }
.laptop { position: absolute; left: 50%; top: 0; width: 1000px; transform: translateX(-42%); }
.laptop .screen { background: var(--bezel); border-radius: 22px 22px 8px 8px; padding: 16px 16px 22px; box-shadow: var(--shadow); }
.laptop .screen img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.laptop .base { height: 18px; margin: 0 -40px; background: linear-gradient(#e8ebea, #c9cecc); border-radius: 0 0 14px 14px; }
.phone { position: absolute; width: 262px; border-radius: 44px; background: var(--bezel); padding: 10px; box-shadow: var(--shadow); }
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; border-radius: 36px; background: #fff; }
.hero .phone { left: 50%; top: 190px; transform: translateX(-470px); }

/* Three cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.card { background: var(--ground); border-radius: 28px; overflow: hidden; }
.card .pic { height: 380px; overflow: hidden; padding: 32px 40px 0; display: flex; justify-content: center; }
.card .phone { position: static; width: 250px; border-radius: 40px 40px 0 0; padding: 9px 9px 0; box-shadow: 0 20px 50px rgba(31, 42, 36, 0.14); }
.card .phone img { border-radius: 32px 32px 0 0; }
.card .txt { padding: 26px 34px 34px; }
.card h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.card p { margin-top: 8px; font-size: 17px; color: var(--muted); }

/* Phone and web */
.split { display: grid; grid-template-columns: 440px 1fr; gap: 60px; align-items: center; }
.split .devices { height: 560px; margin: 0; }
.split .devices::before { display: none; }
.split .laptop { left: 40px; width: 680px; transform: none; }
.split .phone { width: 210px; left: 0; top: 200px; }
.split .lead { margin-top: 18px; }

/* Reports */
.wide { background: var(--ground); border-radius: 32px; padding: 64px 64px 0; display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: end; overflow: hidden; height: 520px; }
.wide .rep { background: var(--bezel); border-radius: 18px 18px 0 0; padding: 14px 14px 0; box-shadow: var(--shadow); }
.wide .rep img { width: 100%; border-radius: 8px 8px 0 0; }
.wide .actions { margin-top: 22px; }
.btn.ghost { background: #fff; color: var(--green); border: 1.5px solid var(--green); }
.btn.ghost:hover { background: var(--mint); }

/* Price */
.price { text-align: center; padding-top: 140px; }
.price .h2 { font-size: clamp(34px, 4.6vw, 64px); }
.price .lead { margin-left: auto; margin-right: auto; }
.price .badges { justify-content: center; margin-top: 34px; }

/* Footer */
.site-footer { margin-top: 120px; padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 22px; margin-left: auto; }
.site-footer nav a:hover { color: var(--green); }

/* Responsive */
@media (max-width: 1100px) {
  .devices { height: 62vw; }
  .laptop { width: 78vw; transform: translateX(-46%); }
  .hero .phone { width: 22vw; transform: translateX(-37vw); top: 14vw; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .devices { height: 62vw; }
  .split .laptop { left: 6vw; width: 74vw; }
  .split .phone { width: 20vw; left: 0; top: 22vw; }
  .wide { grid-template-columns: 1fr; height: auto; padding: 44px 44px 0; }
  .wide .rep img { height: 300px; object-fit: cover; object-position: top; }
}
@media (max-width: 760px) {
  html { scroll-behavior: auto; }
  section { padding: 72px 0 0; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header .wrap { height: 64px; }
  .site-header.open .nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .site-header.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header.open .nav a:last-child { border: 0; }
  .hero { padding-top: 44px; text-align: left; }
  .hero .lead { margin-top: 14px; }
  .hero .badges { justify-content: flex-start; margin-top: 22px; }
  .badges { flex-wrap: nowrap; }
  .badge { flex: 1; min-width: 0; padding: 8px 12px; }
  .badge strong { font-size: 15px; }
  /* On a phone the hero is one centred phone, cut off at the bottom with a soft fade */
  .devices { position: relative; height: 430px; margin: 34px 0 0; border-radius: 0; background: none; overflow: hidden; display: flex; justify-content: center; }
  .devices::before, .laptop { display: none; }
  .devices::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
  .hero .phone { position: static; width: 300px; margin: 0; transform: none; border-radius: 46px 46px 0 0; padding: 10px 10px 0; box-shadow: 0 20px 50px rgba(31, 42, 36, 0.16); }
  .hero .phone img { border-radius: 38px 38px 0 0; }
  .cards { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .card { border-radius: 22px; }
  .card .pic { height: 230px; padding: 22px 30px 0; }
  .card .phone { width: 230px; }
  .card .txt { padding: 20px 24px 26px; }
  .card p { font-size: 16px; }
  .split .devices { height: 250px; margin-top: 4px; border-radius: 0; background: none; overflow: visible; }
  .split .laptop { display: block; left: 0; width: 100%; }
  .split .laptop .base { margin: 0 -8px; }
  .split .phone { position: absolute; width: 110px; left: 0; top: 90px; margin: 0; border-radius: 22px; padding: 5px; }
  .split .phone img { border-radius: 18px; }
  .wide { padding: 28px 24px 0; border-radius: 24px; gap: 20px; }
  .wide .rep { margin: 0 -4px; border-radius: 12px 12px 0 0; padding: 8px 8px 0; }
  .wide .rep img { height: 170px; }
  .price { text-align: left; padding-top: 80px; }
  .price .badges { justify-content: flex-start; }
  .site-footer { margin-top: 72px; }
  .site-footer nav { margin-left: 0; flex-wrap: wrap; gap: 14px; }
}
