/* landgrid.app — umbrella site for the LandGrid apps. Light theme; each state
   keeps its own app colour (TG green, AP blue, KA red). */
:root {
    --bg: #fbf8f3;
    --bg-alt: #f4efe6;
    --card: #ffffff;
    --ink: #17212b;
    --muted: #5d6874;
    --line: #e7e0d4;
    --gold: #e9a321;
    --tg: #2e7d32;
    --tg-soft: #e8f3e8;
    --ap: #1565c0;
    --ap-soft: #e6eef9;
    --ka: #c62828;
    --ka-soft: #fbe9e7;
    --radius: 22px;
    --shadow: 0 18px 48px rgba(23, 33, 43, .08);
    --font-display: 'Baloo 2', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 25px; color: var(--ink); }
.brand img { height: 50px; width: auto; }
.brand-foot img { height: 64px; margin-bottom: 6px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(23, 33, 43, .18); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(520px 340px at 88% 12%, rgba(233, 163, 33, .16), transparent 70%),
    radial-gradient(460px 320px at 8% 92%, rgba(46, 125, 50, .08), transparent 70%),
    linear-gradient(rgba(23, 33, 43, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(23, 33, 43, .045) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 45%, transparent 85%); mask-image: radial-gradient(ellipse at 50% 40%, #000 45%, transparent 85%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(90deg, var(--tg) 0 33%, var(--ap) 33% 66%, var(--ka) 66%); }
h1 { font-size: clamp(42px, 6vw, 74px); font-weight: 800; }
h1 span { background: linear-gradient(90deg, var(--tg), var(--ap) 55%, var(--ka)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ticks li, .app-feats li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; }
.ticks svg, .app-feats svg { width: 20px; height: 20px; flex-shrink: 0; padding: 4px; border-radius: 50%; color: #fff; background: var(--ink); }

/* Phones */
.phone { position: relative; width: 250px; aspect-ratio: 540 / 1200; border-radius: 38px; border: 10px solid #15191d; background: #15191d; overflow: hidden; box-shadow: 0 30px 60px rgba(23, 33, 43, .22); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-phones { position: relative; height: 600px; }
.hero-phones .phone { position: absolute; top: 50%; left: 50%; }
.p-tg { transform: translate(-50%, -50%); z-index: 3; width: 270px; }
.p-ap { transform: translate(-112%, -46%) rotate(-7deg); z-index: 2; width: 230px; opacity: .97; }
.p-ka { transform: translate(12%, -46%) rotate(7deg); z-index: 2; width: 230px; opacity: .97; }
.phone-sm { width: 240px; border-width: 9px; border-radius: 34px; }

/* Stats */
.stats { background: #fff; border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 34px 0; }
.stats-grid div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }
.stats span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.head-left { text-align: left; margin: 0; }
.kicker { margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.head > p:last-child { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app { --c: var(--ink); --soft: #eee; position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 26px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.app::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c); }
.app-tg { --c: var(--tg); --soft: var(--tg-soft); }
.app-ap { --c: var(--ap); --soft: var(--ap-soft); }
.app-ka { --c: var(--ka); --soft: var(--ka-soft); }
.app-top { background: var(--soft); border-radius: 16px; padding: 18px; display: grid; place-items: center; height: 120px; }
.app-logo { max-height: 84px; width: auto; }
.badge { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; z-index: 1; }
.app-line { margin: 0; color: var(--muted); }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 14px 0; border-block: 1px dashed var(--line); text-align: center; }
.app-stats dt { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--c); line-height: 1.1; }
.app-stats dd { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.app-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.app-feats svg { background: var(--c); }
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.store { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; background: #111; color: #fff; text-decoration: none; transition: transform .15s; }
.store:hover { transform: translateY(-1px); }
.store svg { width: 22px; height: 22px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; line-height: 1.15; }
.store small { font-weight: 500; font-size: 10.5px; opacity: .8; }
.app-site { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 12px; border: 2px solid var(--soft); color: var(--c); font-weight: 700; text-decoration: none; }
.app-site:hover { background: var(--soft); }

/* Feature rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 36px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row-flip .row-copy { order: 2; }
.row-shot { display: flex; justify-content: center; position: relative; }
.row-shot::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 163, 33, .18), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.row-shot > * { position: relative; }
.num { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 13px; color: var(--gold); margin-bottom: 14px; }
.row h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; margin-bottom: 12px; }
.row p { color: var(--muted); font-size: 17px; margin: 0; max-width: 480px; }
.sheet { width: 320px; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video { margin: 0; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: #000; box-shadow: var(--shadow); }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt:hover img { transform: scale(1.03); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #e62117; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.yt-play svg { width: 28px; height: 28px; margin-left: 3px; }
.video figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-tg { background: var(--tg); } .dot-ap { background: var(--ap); } .dot-ka { background: var(--ka); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }
.head-left a { color: var(--ink); font-weight: 700; }

/* CTA */
.cta { padding: 90px 0; text-align: center; background:
    radial-gradient(500px 260px at 15% 30%, rgba(46, 125, 50, .10), transparent 70%),
    radial-gradient(500px 260px at 50% 90%, rgba(21, 101, 192, .10), transparent 70%),
    radial-gradient(500px 260px at 85% 30%, rgba(198, 40, 40, .10), transparent 70%), #fff; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(34px, 4.6vw, 56px); }
.cta p { color: var(--muted); font-size: 18px; margin: 12px 0 28px; }
.cta-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pill { padding: 14px 28px; border-radius: 999px; color: #fff; font-weight: 800; text-decoration: none; font-size: 16px; transition: transform .15s; }
.pill:hover { transform: translateY(-2px); }
.pill-tg { background: var(--tg); } .pill-ap { background: var(--ap); } .pill-ka { background: var(--ka); }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: var(--ink); }
.muted { color: var(--muted); }
.foot-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-note p { margin: 4px 0; }

/* Reveal on scroll (JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
    .hero-grid, .row, .faq-grid { grid-template-columns: 1fr; }
    .row-flip .row-copy { order: 0; }
    .hero-phones { height: 520px; }
    .apps, .videos { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-row .btn { margin-left: auto; }
    .hero { padding-top: 32px; }
    .hero-phones { height: 440px; }
    .p-tg { width: 210px; }
    .p-ap, .p-ka { width: 170px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
    .stats-grid div:nth-child(3) { border-left: 0; }
    .section { padding: 72px 0; }
    .row { gap: 32px; }
    .phone-sm { width: 210px; }
    .sheet { width: 260px; }
    .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Let grid children shrink below their content width on small screens. */
.hero-grid > *, .apps > *, .row > *, .faq-grid > *, .foot-grid > *, .videos > * { min-width: 0; }
@media (max-width: 420px) {
    .stores { grid-template-columns: 1fr; }
    h1 { font-size: 40px; }
}
