/* goCoding - landing styles. Themes: dark (default) / light, auto from OS, override via [data-theme]. */

:root {
  --accent: #22C55E;
  --on-accent: #052E16;
  --radius: 18px;
  --maxw: 1200px;
  color-scheme: dark;
}

:root,
:root[data-theme="dark"] {
  --bg: #0B1220; --alt: #0E1626; --card: #111A2B; --panel: #111A2B; --chip: #1A2438;
  --line: #1E293B; --line2: #26324A; --btnline: #334155;
  --text: #F1F5F9; --sub: #CBD5E1; --muted: #A8B4C7; --faint: #94A3B8;
  --green: #4ADE80; --orange: #F97316; --stepbg: #13301F;
  --hdr: rgba(11, 18, 32, 0.92);
  --cta-bg: var(--accent); --cta-fg: #052E16; --cta-sub: #052E16;
  --ctabtn-bg: #052E16; --ctabtn-fg: #F1F5F9;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #FFFFFF; --alt: #F4F6F9; --card: #FFFFFF; --panel: #F4F6F9; --chip: #FFFFFF;
    --line: #E2E8F0; --line2: #E2E8F0; --btnline: #CBD5E1;
    --text: #0F172A; --sub: #334155; --muted: #475569; --faint: #64748B;
    --green: #15803D; --orange: #C2410C; --stepbg: #DCFCE7;
    --hdr: rgba(255, 255, 255, 0.92);
    --cta-bg: #0F172A; --cta-fg: #F1F5F9; --cta-sub: #CBD5E1;
    --ctabtn-bg: var(--accent); --ctabtn-fg: #052E16;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --alt: #F4F6F9; --card: #FFFFFF; --panel: #F4F6F9; --chip: #FFFFFF;
  --line: #E2E8F0; --line2: #E2E8F0; --btnline: #CBD5E1;
  --text: #0F172A; --sub: #334155; --muted: #475569; --faint: #64748B;
  --green: #15803D; --orange: #C2410C; --stepbg: #DCFCE7;
  --hdr: rgba(255, 255, 255, 0.92);
  --cta-bg: #0F172A; --cta-fg: #F1F5F9; --cta-sub: #CBD5E1;
  --ctabtn-bg: var(--accent); --ctabtn-fg: #052E16;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section--alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.eyebrow { color: var(--green); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 700; font-size: 17px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: var(--btnline); color: var(--text); font-weight: 600; }
.btn--sm { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.btn svg { flex: none; }

/* header */
.header { position: sticky; top: 0; z-index: 20; background: var(--hdr); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.nav a { color: var(--sub); text-decoration: none; }
.nav a:hover { color: var(--text); }
.header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.lang { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line2); background: var(--chip); }
.lang a {
  min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; text-decoration: none; color: var(--sub);
}
.lang a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--chip); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: block; }
}

@media (max-width: 760px) {
  .nav { order: 3; width: 100%; gap: 16px; overflow-x: auto; }
  .header .btn--sm { display: none; }
}

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.hero__lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--sub); font-size: 15px; padding-top: 8px; }
.ticks li { display: flex; align-items: center; gap: 8px; }

.flow { margin: 0; flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.flow__label { font-size: 13px; color: var(--faint); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.flow__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.flow__chip { padding: 14px 10px; border-radius: 14px; background: var(--chip); border: 1px solid var(--line2); text-align: center; font-weight: 600; font-size: 15px; }
.flow__arrow { display: flex; justify-content: center; color: var(--green); }
.flow__crm { padding: 18px; border-radius: 16px; background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; gap: 10px; }
.flow__crm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.flow__crm-top b { font-size: 20px; font-weight: 800; }
.flow__pill { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(5, 46, 22, 0.12); }
.flow__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; font-weight: 600; }
.flow__cols span { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.4); }
.flow__notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--chip); border: 1px solid var(--line2); }
.flow__tg { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #2563EB; display: inline-flex; align-items: center; justify-content: center; }
.flow__notif b { display: block; font-size: 15px; margin-bottom: 4px; }
.flow__notif span { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 480px) {
  .flow { padding: 18px; }
  .flow__row, .flow__cols { gap: 6px; }
  .flow__chip { padding: 12px 4px; font-size: 13px; }
  .flow__cols { font-size: 12px; }
  .flow__cols span { padding: 8px 6px; overflow-wrap: anywhere; }
}

/* grids & cards */
.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card--problem { padding: 24px; }
.card--problem h3 { font-size: 19px; }
.card__num { font-size: 32px; font-weight: 800; color: var(--orange); line-height: 1; }
.card__icon { color: var(--green); }

/* pricing */
.price { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.price--featured { border: 2px solid var(--accent); }
.price__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price__head h3 { font-size: 19px; font-weight: 700; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.price__value { font-size: 34px; font-weight: 800; line-height: 1.1; }
.price__value small { font-size: 18px; font-weight: 600; color: var(--muted); }
.price ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--sub); line-height: 1.45; flex-grow: 1; }
.price li { display: flex; gap: 8px; align-items: flex-start; }
.price li svg { flex: none; margin-top: 3px; color: var(--green); }
.price .btn { min-height: 48px; font-size: 16px; border-radius: 12px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.step__n { width: 40px; height: 40px; border-radius: 12px; background: var(--stepbg); color: var(--green); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.step h3 { font-size: 19px; font-weight: 700; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* about */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about__photo { flex: 0 1 340px; min-width: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); }
.about__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about__text p { font-size: 18px; line-height: 1.6; color: var(--sub); }
.about__text p + p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line2); font-size: 14px; color: var(--text); }
a.tag { color: var(--green); text-decoration: none; font-weight: 600; }

/* examples */
.example { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.example__tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line2); color: var(--sub); text-transform: uppercase; letter-spacing: 0.06em; }
.example h3 { font-size: 22px; font-weight: 700; }
.example dl { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.55; }
.example dt { display: inline; font-weight: 700; }
.example dd { display: inline; margin: 0; color: var(--muted); }
.example .row { display: block; }
.example .t-task { color: var(--orange); }
.example .t-sol { color: var(--green); }
.example .t-res { color: var(--text); }

/* faq */
.faq { max-width: 900px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; min-height: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; }
.faq .chev { flex: none; color: var(--green); transition: transform .2s ease; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { padding: 0 24px 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* cta */
.cta { padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: var(--cta-bg); color: var(--cta-fg); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta__text h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; font-weight: 800; }
.cta__text p { font-size: 18px; line-height: 1.55; color: var(--cta-sub); }
.cta .btn { background: var(--ctabtn-bg); color: var(--ctabtn-fg); min-height: 56px; font-size: 18px; }

/* footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--faint); }
.footer a { text-decoration: none; font-weight: 600; }
.footer address { font-style: normal; }
