/* ===========================
   Codeva website styles
   Colours and fonts live here at the top, so they are easy to change.
   =========================== */
:root {
  --paper: #F5F5F0;      /* page background */
  --white: #FFFFFF;
  --ink: #121612;        /* main text, dark sections */
  --ink-soft: #3E463F;   /* normal paragraph text */
  --muted: #4A524B;      /* small grey text */
  --line: #DADDD5;       /* borders */
  --green: #17663F;      /* main brand colour, buttons */
  --green-dark: #0F4A2D;
  --green-tint: #E3EFE6;
  --green-bright: #4ADE80;
  --dark-card: #1C211C;
  --dark-text: #B8C0B9;
  --amber-tint: #FDF0D5;
  --amber-text: #92400E;
  --radius: 14px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #E9ECE6; }

h1, h2, h3 { margin: 0; }
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h2.display { font-size: clamp(32px, 4.5vw, 46px); max-width: 780px; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 680px; margin: 16px 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 0;
  font-family: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.pill-green { color: var(--green); background: var(--green-tint); }
.pill-amber { color: var(--amber-text); background: var(--amber-tint); }
.pill-bright { color: var(--green-bright); background: rgba(74, 222, 128, 0.12); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }

/* ---------- nav ---------- */
.nav-wrap { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--green); }
.nav-links a.btn-dark, .nav-links a.btn-dark:hover { color: var(--paper); }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 88px 24px 96px; max-width: 1200px; margin: 0 auto; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; margin-top: 20px; }
.hero .lead { font-size: 20px; max-width: 560px; margin-top: 24px; }

.waitlist { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.waitlist input {
  flex: 1 1 260px; min-height: 52px; padding: 0 16px;
  font: inherit; border: 1.5px solid #B9BEB4; border-radius: 10px;
  background: var(--white); color: var(--ink);
}
.waitlist input:focus { outline: 3px solid var(--green-tint); border-color: var(--green); }
.waitlist .btn { min-height: 52px; }
.turnstile-slot.is-visible { margin-top: 12px; }
.small-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.form-message { margin: 12px 0 0; font-weight: 600; color: var(--green); min-height: 1.5em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* fix card in hero */
.fix-card { flex: 1 1 440px; min-width: 0; background: var(--ink); color: #E9ECE6; border-radius: 18px; padding: 28px; }
.fix-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.label-caps { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9AA39B; }
.fix-title { margin: 16px 0 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.2; color: #fff; }
.code-box { margin-top: 20px; background: var(--dark-card); border-radius: 10px; padding: 14px 16px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; overflow-x: auto; white-space: nowrap; }
.code-file { color: #9AA39B; }
.code-del { color: #FCA5A5; }
.code-add { color: #86EFAC; }
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.tick { flex: none; width: 20px; height: 20px; }

/* ---------- works with ---------- */
.works { border-top: 1px solid var(--line); }
.works .container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; padding-top: 28px; padding-bottom: 28px; }
.works strong { color: var(--ink); }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-paper { background: var(--paper); }
.card-highlight { border: 2px solid var(--green); background: var(--green-tint); }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { margin: 12px 0 0; color: var(--ink-soft); }

.mode-card { border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.mode-card h3 { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.15; }
.mode-card p { margin: 0; }
.mode-dark { background: var(--ink); color: #E9ECE6; }
.mode-dark h3 { color: #fff; }
.mode-dark p { color: var(--dark-text); }
.mode-light { background: var(--white); border: 1px solid var(--line); }
.mode-light p { color: var(--ink-soft); }
.example { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.mode-dark .example { background: var(--dark-card); }
.mode-light .example { background: var(--paper); }
.mode-card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.mode-dark .more { color: var(--green-bright); }

.step-num { font-family: var(--font-mono); font-size: 14px; color: var(--green); font-weight: 500; }
.steps { list-style: none; padding: 0; }
.steps h3 { margin-top: 10px; }

/* ---------- proof ---------- */
.proof { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.proof-text { flex: 1 1 380px; min-width: 0; }
.proof-text h2 { color: #fff; }
.proof-text p { font-size: 19px; color: var(--dark-text); margin: 20px 0 0; }
.proof-grid { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.proof-item { background: var(--dark-card); border-radius: var(--radius); padding: 24px; }
.proof-item h3 { font-size: 18px; font-weight: 600; color: #fff; }
.proof-item p { margin: 8px 0 0; color: var(--dark-text); font-size: 16px; }

/* ---------- pricing ---------- */
.price-card { display: flex; flex-direction: column; gap: 16px; border-radius: 16px; padding: 32px; }
.price-card.popular { border: 2px solid var(--green); }
.price-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-card h3 { font-size: 22px; font-weight: 600; }
.price { margin: 0; font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 18px; font-weight: 500; color: var(--muted); }
.price-card ul { margin: 0; padding-left: 20px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.price-card .btn { margin-top: auto; }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- final + footer ---------- */
.final { text-align: center; }
.final h2 { margin: 0 auto; font-size: clamp(36px, 5vw, 54px); }
.final .lead { margin: 18px auto 0; }
.final .btn { margin-top: 32px; }
.footer { border-top: 1px solid var(--line); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .nav { flex-wrap: nowrap; padding: 12px 16px; }
  .nav-links { gap: 14px; font-size: 14px; flex-wrap: nowrap; }
  .nav-links .hide-mobile { display: none; }
  .nav-links .btn { min-height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .container, .hero { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .section { padding: 64px 0; }
}
