/* dealworm.xyz: one stylesheet, system fonts, nothing loaded from other sites. */

:root {
  --green: #1a7f5a;
  --green-strong: #12603f;
  --green-soft: #e4f2ea;
  --on-green: #ffffff;
  --yellow: #ffcd40;
  --yellow-soft: #fff3cc;
  --red: #b4432f;
  --ink: #14231c;
  --muted: #55655d;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --line: #e6e2d8;
  --shadow: 0 1px 2px rgba(18, 44, 32, 0.06), 0 10px 30px rgba(18, 44, 32, 0.09);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #3fbc8b;
    --green-strong: #74d6ad;
    --green-soft: #14291f;
    --on-green: #05140d;
    --yellow: #ffd45c;
    --yellow-soft: #2c2610;
    --red: #f08a74;
    --ink: #e8f0eb;
    --muted: #a1b2a9;
    --bg: #0e1612;
    --surface: #152019;
    --line: #25352c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-strong); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.button { color: var(--on-green); }
@media (max-width: 760px) {
  .site-nav .nav-link { display: none; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 11px; border: 2px solid var(--green);
  background: var(--green); color: var(--on-green); font-weight: 700; text-decoration: none; line-height: 1.2;
}
.button:hover { background: var(--green-strong); border-color: var(--green-strong); color: var(--on-green); }
.button.small { padding: 8px 14px; font-size: 0.92rem; border-radius: 9px; }
.button.ghost { background: transparent; color: var(--green); }
.button.ghost:hover { background: var(--green-soft); color: var(--green-strong); }
.button svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); background: var(--green-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 .accent { box-shadow: inset 0 -0.32em 0 var(--yellow-soft); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.fine { font-size: 0.92rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* Example panel in the hero */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  font-size: 0.9rem; line-height: 1.45; overflow: hidden; max-width: 460px; justify-self: end; width: 100%; margin: 0;
}
@media (max-width: 900px) { .panel { justify-self: start; } }
.panel-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.panel-top img { width: 20px; height: 20px; border-radius: 5px; }
.panel-top .tag { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.panel-section { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-section:last-child { border-bottom: 0; }
.panel-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.panel-item { font-weight: 700; font-size: 1rem; }
.panel-note { color: var(--muted); font-size: 0.84rem; margin-top: 4px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.price { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.price span { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.price strong { font-size: 1.2rem; letter-spacing: -0.01em; }
.price.fair { background: var(--green-soft); border-color: transparent; }
.sales { list-style: none; margin: 0; padding: 0; }
.sales li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.sales .ok { color: var(--green); font-weight: 700; }
.sales .no { color: var(--red); font-weight: 700; }
.sales .amount { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.sales .no-row { color: var(--muted); }
.sales .no-row .amount { text-decoration: line-through; font-weight: 600; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 760px) { .section { padding: 52px 0; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: step; }
.section.alt .steps li { background: var(--bg); }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); color: #3a2a00; font-weight: 800; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section.alt .feature { background: var(--bg); }
.feature p { color: var(--muted); margin: 0; }
.feature .icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--green-soft); color: var(--green); margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section.alt .plan { background: var(--bg); }
.plan.main { border: 2px solid var(--green); }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .sub { color: var(--muted); margin-bottom: 16px; }
.packs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.packs li { border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; font-weight: 800; font-size: 1.1rem; }
.packs li.trial { background: var(--yellow-soft); border-color: transparent; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin: 0 0 10px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}
.note { margin-top: 22px; color: var(--muted); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* Data */
.data { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .data { grid-template-columns: 1fr; gap: 12px; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; gap: 12px; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Contact band */
.contact { background: var(--green); color: var(--on-green); border-radius: 20px; padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.contact h2 { margin: 0 0 6px; }
.contact p { margin: 0; opacity: 0.92; }
.contact a { color: var(--on-green); font-weight: 700; }
.contact .button { background: var(--on-green); color: var(--green); border-color: var(--on-green); }
.contact .button:hover { background: var(--yellow); border-color: var(--yellow); color: #3a2a00; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); font-weight: 600; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { flex-basis: 100%; margin: 0; font-size: 0.84rem; }

/* Privacy policy and terms */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); margin-bottom: 0.3em; }
.doc h2 { font-size: 1.45rem; margin: 2.2em 0 0.6em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.12rem; margin: 1.8em 0 0.5em; }
.doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin: 0.35em 0; }
.doc li > ul { margin: 0.3em 0 0.4em; }
.doc .updated { color: var(--muted); }
.doc a { overflow-wrap: anywhere; }

/* Not found */
.notfound { max-width: 640px; margin: 0 auto; padding: 96px 20px; text-align: center; }
.notfound .actions { justify-content: center; }
