/* CodesFly site. Brand green #10d878 (logo), text green #0b8f4d (readable on white). */
:root {
  --brand: #10d878;
  --brand-ink: #0b8f4d;
  --brand-deep: #063b22;
  --brand-soft: #e7fbf1;
  --ink: #1d2b24;
  --ink-2: #4a5852;
  --muted: #6b7a73;
  --line: #e3ebe7;
  --bg: #ffffff;
  --bg-2: #f5faf7;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(6, 59, 34, .06), 0 8px 24px rgba(6, 59, 34, .08);
  --radius: 16px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #3ee597;
    --brand-deep: #d6ffe9;
    --brand-soft: #10291d;
    --ink: #e8f1ec;
    --ink-2: #b9c8c0;
    --muted: #8fa198;
    --line: #22312a;
    --bg: #0c1511;
    --bg-2: #101c16;
    --card: #13211a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Poppins", "Inter", system-ui, sans-serif; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-2); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #063b22; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-ink); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #063b22; box-shadow: 0 6px 18px rgba(16, 216, 120, .35); }
.btn-primary:hover { background: #22e086; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-play { background: #111; color: #fff; padding: 10px 16px; }
.btn-play small { display: block; font-size: .68rem; font-weight: 500; opacity: .8; line-height: 1; }
.btn-play span { display: block; line-height: 1.2; }
.btn-play svg { width: 22px; height: 22px; }

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: .82rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.trust b { color: var(--ink); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* Phone mock (generic content only) */
.phone { width: min(320px, 86%); margin: 0 auto; border-radius: 36px; padding: 12px; background: #0f1a15; box-shadow: 0 30px 60px rgba(6, 59, 34, .25); }
.screen { border-radius: 26px; background: var(--bg-2); padding: 18px 14px 20px; min-height: 520px; }
.screen-top { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; margin-bottom: 12px; }
.chip { font-size: .72rem; background: var(--brand-soft); color: var(--brand-ink); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.mock-card { background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.mock-card .label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mock-card .num { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: .02em; }
.mock-code { background: linear-gradient(135deg, #10d878, #0fbf6b); color: #063b22; border-radius: 16px; padding: 16px; text-align: center; }
.mock-code .label { color: #0a4d2c; }
.mock-code .code { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 2rem; letter-spacing: .25em; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); font-size: .85rem; }
.mock-row:first-child { border-top: 0; }
.ok { color: var(--brand-ink); font-weight: 600; font-size: .75rem; }

/* Sections */
section { padding: 64px 0; }
.alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat b { display: block; font-family: "Poppins", sans-serif; font-size: 1.5rem; color: var(--ink); }
.stat span { color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #063b22; font-weight: 700; margin-bottom: 12px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--ink-2); }
.check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063b22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

.sister { background: linear-gradient(135deg, #0b3d25, #0e5534); color: #e9fff3; border-radius: 22px; padding: 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.sister h2, .sister p { color: #e9fff3; }
.sister p { opacity: .9; }
.sister .btn-ghost { color: #e9fff3; border-color: rgba(233, 255, 243, .35); }
@media (max-width: 760px) { .sister { grid-template-columns: 1fr; padding: 24px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--brand-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 14px; }

/* Final CTA */
.cta-band { text-align: center; }
.cta-band .cta-row { justify-content: center; }

/* Legal / content pages */
.page-head { padding: 44px 0 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-head p { margin: 0; color: var(--muted); }
.doc { padding: 36px 16px 64px; max-width: 820px; }
.doc h2 { font-size: 1.3rem; margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc ul { padding-left: 1.2em; color: var(--ink-2); }
.doc li { margin: 6px 0; }
.note { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 14px; padding: 14px 16px; color: var(--ink); margin: 18px 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; }
.toc a { display: inline-block; margin: 4px 14px 4px 0; font-size: .92rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.cards .feature h3 { margin-bottom: 6px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 24px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h4 { margin: 0 0 10px; font-size: .9rem; color: var(--ink); }
.foot-grid a { display: block; color: var(--ink-2); margin: 6px 0; }
.foot-grid a:hover { color: var(--brand-ink); }
.foot-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
