:root {
  --bg: #dff5ec;
  --dot: rgba(31, 181, 168, 0.14);
  --surface: #ffffff;
  --text: #1d4a44;
  --muted: #4f706b;
  --accent: #1fb5a8;
  --accent-dark: #14897f;
  --accent-ink: #ffffff;
  --border: #c4e8da;
  --red: #eb3232;
  --yellow: #ffcd00;
  --blue: #2878eb;
  --green: #32b44b;
  --orange: #ff8c14;
  --purple: #9646dc;
  --pink: #ff6eb4;
  --sky: linear-gradient(180deg, #c3eedd 0%, rgba(223, 245, 236, 0) 70%);
  --shadow: 0 20px 50px rgba(20, 137, 127, 0.18);
  --radius: 24px;
  --phone-frame: #1d4a44;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1f1d;
    --dot: rgba(31, 181, 168, 0.12);
    --surface: #152c29;
    --text: #e8f7f2;
    --muted: #a3c4bd;
    --accent: #3fcfc1;
    --accent-dark: #1fb5a8;
    --accent-ink: #062320;
    --border: #23413c;
    --sky: linear-gradient(180deg, #123a35 0%, rgba(13, 31, 29, 0) 70%);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --phone-frame: #0a1715;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    var(--sky) no-repeat,
    radial-gradient(var(--dot) 1.6px, transparent 1.8px) 0 0 / 22px 22px,
    var(--bg);
  background-size: 100% 720px, 22px 22px, auto;
  color: var(--text);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, .brand { font-weight: 800; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 8px; font-size: 15px; }
.nav a { color: var(--muted); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.nav a:hover { text-decoration: none; background: var(--surface); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

/* Crayon stripe */
.crayon-stripe { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.crayon-stripe li { width: 22px; height: 8px; border-radius: 999px; background: var(--c); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 16px; }
.hero h1 .crayons span:nth-child(7n+1) { color: var(--red); }
.hero h1 .crayons span:nth-child(7n+2) { color: var(--orange); }
.hero h1 .crayons span:nth-child(7n+3) { color: var(--yellow); }
.hero h1 .crayons span:nth-child(7n+4) { color: var(--green); }
.hero h1 .crayons span:nth-child(7n+5) { color: var(--blue); }
.hero h1 .crayons span:nth-child(7n+6) { color: var(--purple); }
.hero h1 .crayons span:nth-child(7n+7) { color: var(--pink); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 13px 24px; border-radius: 999px; font-weight: 700;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button[aria-disabled="true"] { cursor: default; }
.button svg { width: 20px; height: 20px; fill: currentColor; }
.cta small { color: var(--muted); font-size: 14px; }

.phones { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(280px, 70%);
  border-radius: 38px;
  border: 8px solid var(--phone-frame);
  box-shadow: var(--shadow);
  background: var(--phone-frame);
  display: block;
  height: auto;
}
.phones .phone:first-child { transform: rotate(-3deg); }
.phones .phone + .phone { position: absolute; width: min(230px, 55%); right: -10px; bottom: -40px; transform: rotate(4deg); }

/* Features */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.01em; margin: 0 0 10px; text-align: center; }
.section .sub { color: var(--muted); text-align: center; margin: 0 auto 40px; max-width: 36em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 6px solid var(--c, var(--accent));
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 15.5px; }
.card li { margin: 4px 0; }
.card .icons {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; font-size: 28px;
  background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent);
}
.c-red { --c: var(--red); }
.c-yellow { --c: var(--yellow); }
.c-blue { --c: var(--blue); }
.c-green { --c: var(--green); }
.c-orange { --c: var(--orange); }
.c-purple { --c: var(--purple); }
.c-pink { --c: var(--pink); }
.c-teal { --c: var(--accent); }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.level { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--c, var(--accent)); border-radius: 14px; padding: 10px 14px; font-size: 15px; font-weight: 600; }
.level span { font-size: 22px; flex: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img.phone { margin: 0 auto; }
.split ul { padding-left: 1.1em; color: var(--muted); }
.split li { margin: 6px 0; }
.split h2 { text-align: left; }
.split .sub { text-align: left; margin-left: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; justify-items: center; }
.gallery figure { margin: 0; text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; }
.gallery .phone { width: min(230px, 100%); margin: 0 auto 12px; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; margin: 0 auto; }
.pricing .price { font-size: 15px; font-weight: 700; color: var(--accent-dark); margin: 0 0 4px; }
@media (prefers-color-scheme: dark) { .pricing .price { color: var(--accent); } }

/* Document pages */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 72px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 42px); letter-spacing: -0.01em; line-height: 1.15; margin: 8px 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--green); border-radius: var(--radius); padding: 18px 22px; }
.doc .summary p { margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 4px 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq details p, .faq details ul, .faq details ol { margin-top: 0; color: var(--muted); }
.contact { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--yellow); border-radius: var(--radius); padding: 22px; margin-top: 32px; }
.contact p { margin: 0 0 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 16px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .crayon-stripe { justify-content: center; }
  .cta { justify-content: center; }
  .phones { padding-bottom: 40px; }
  .features, .pricing { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .split h2 { text-align: center; }
  .split .sub { text-align: center; margin-left: auto; }
  .split > img.phone { order: -1; }
  .nav { gap: 4px; }
  .phones .phone + .phone { right: 0; }
}

@media (max-width: 480px) {
  .brand span { display: none; }
}
