/* The public pages of AnvilCode CRM (landing, 404). The design: Penpot file "crm", board "Landing / 1440 / Light" (CRM-4), in the style of stockone design-02:
   JetBrains Mono, square corners, warm stone greys, thin grid rules, orange buttons, the tinted panel #fff1e7 and one dark call-to-action block. Light only. */
:root {
  --ink: #0c0a09;
  --body: #78716c;
  --muted: #a8a29e;
  --rule: #e7e5e4;
  --bg: #ffffff;
  --soft: #fafaf9;
  --tint: #fff1e7;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --eyebrow: #c2410c;
  --green: #16a34a;
  --green-bg: #eaf8ef;
  --dark: #0c0a09;
  --dark-2: #1c1917;
  --dark-3: #292524;
  --dark-sub: #d6d3d1;
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--rule); backdrop-filter: blur(6px); }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.brand { font-size: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a, .site-header__link { font-size: 12px; font-weight: 700; color: var(--body); text-decoration: none; }
.site-header__link { color: var(--ink); }
.site-nav a:hover, .site-header__link:hover { color: var(--ink); text-decoration: underline; }
.site-header__actions { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; border: 1px solid var(--rule); }
.lang a { padding: 4px 8px; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--body); }
.lang a[aria-pressed="true"] { background: var(--ink); color: #fafaf9; }

/* buttons, chips */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; min-height: 44px; border: 1px solid var(--orange); background: var(--orange);
  color: var(--ink); font: 700 13px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.button--lg { min-height: 52px; padding: 0 32px; }
.button--sm { min-height: 36px; padding: 0 16px; font-size: 12px; }
.button--outline { background: var(--bg); border-color: var(--ink); }
.button--outline:hover { background: var(--soft); border-color: var(--ink); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--eyebrow); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.soon { display: inline-block; padding: 2px 8px; background: var(--tint); color: var(--eyebrow); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }
.tag { display: inline-block; padding: 3px 8px; background: var(--soft); color: var(--ink); font-size: 10px; font-style: normal; font-weight: 700; }
.tag--ok { background: var(--green-bg); color: var(--green); }
.tag--warn { background: var(--tint); color: var(--eyebrow); }

/* hero with the editorial grid (the vertical rails of the 1200 column, the horizontal rules come from the borders) */
.hero { position: relative; padding: 64px 0 96px; border-bottom: 1px solid var(--rule); }
.ruled { background-image: linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule));
  background-size: 1px 100%, 1px 100%; background-repeat: no-repeat; background-position: calc(50% - 600px) 0, calc(50% + 600px) 0; }
.hero__inner { text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero h1 { max-width: 1100px; margin: 0 auto; font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; line-height: 1.1; }
.hero .lead { max-width: 860px; margin: 28px auto 0; color: var(--body); font-size: 16px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__promises { margin-top: 24px; color: var(--body); font-size: 11px; }

/* the product screen of the hero */
.screen { margin-top: 56px; border: 1px solid var(--rule); background: var(--bg); box-shadow: 0 24px 48px -12px rgba(28, 25, 23, 0.12); text-align: left; overflow: hidden; }
.screen__bar { display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 14px; background: var(--soft); border-bottom: 1px solid var(--rule); }
.screen__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.screen__bar span { flex: 1; margin-right: 40px; text-align: center; color: var(--muted); font-size: 10px; }
.screen__body { display: grid; grid-template-columns: 170px 1fr; min-height: 560px; }
.screen__side { display: flex; flex-direction: column; gap: 4px; padding: 18px 8px; background: var(--soft); border-right: 1px solid var(--rule); font-size: 11px; color: var(--body); }
.screen__side b { margin: 0 10px 14px; color: var(--ink); font-size: 13px; }
.screen__side span { padding: 7px 10px; }
.screen__side .is-active { background: var(--tint); color: var(--ink); font-weight: 700; }
.screen__main { padding: 16px 24px 24px; min-width: 0; }
.screen__head { display: flex; justify-content: space-between; align-items: flex-end; }
.screen__head small { display: block; color: var(--body); font-size: 10px; }
.screen__head strong { font-size: 22px; font-weight: 800; }
.screen__new { padding: 8px 18px; background: var(--orange); font-size: 11px; font-weight: 700; }
.screen__search { width: 300px; max-width: 100%; margin: 14px 0 16px; padding: 7px 12px; background: var(--soft); border: 1px solid var(--rule); color: var(--muted); font-size: 10px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.board__col { display: flex; flex-direction: column; gap: 8px; min-height: 420px; padding: 12px 8px; background: var(--soft); border-top: 3px solid var(--orange); }
.board__col--won { border-top-color: var(--green); }
.board__col > b { padding: 0 4px; font-size: 11px; }
.board__col > small { padding: 0 4px 4px; color: var(--body); font-size: 10px; }
.deal { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--rule); }
.deal strong { font-size: 12px; }
.deal small { color: var(--body); font-size: 10px; }
.deal .tag { align-self: flex-start; margin-top: 4px; }

/* strip under the hero */
.strip { border-bottom: 1px solid var(--rule); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; padding: 30px 0; }
.strip__inner b { font-size: 18px; }
.strip__label { color: var(--body); font-size: 12px; }

/* sections */
.section { padding: 80px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 64px; }
.section h2, .cta h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.12; }
.section__lead { max-width: 880px; margin-top: 20px; color: var(--body); font-size: 16px; line-height: 1.55; }
.cells { display: grid; margin-top: 40px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 176px; padding: 25px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cell h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.cell p { color: var(--body); font-size: 12px; }
.cell--num { flex-direction: row; justify-content: flex-start; gap: 24px; min-height: 130px; }
.cell--num .num { color: var(--eyebrow); font-size: 18px; font-weight: 800; }
.cell--num p { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.fact { padding-top: 24px; border-top: 2px solid var(--ink); }
.fact b { display: block; font-size: 42px; font-weight: 800; line-height: 1.1; }
.fact span { display: block; margin-top: 10px; color: var(--body); font-size: 12px; }

/* leads log */
.panel { margin-top: 48px; padding: 50px 60px; background: var(--tint); }
.log { background: var(--bg); border: 1px solid var(--rule); padding-bottom: 24px; overflow-x: auto; }
.log__head { padding: 22px 24px 18px; }
.log__head strong { display: block; font-size: 18px; font-weight: 800; }
.log__head small { color: var(--body); font-size: 10px; }
.log__row { display: grid; grid-template-columns: 80px 170px 220px 190px minmax(240px, 1fr); align-items: center; gap: 12px; min-width: 900px; padding: 16px 24px; border-bottom: 1px solid var(--rule);
  color: var(--body); font-size: 11px; }
.log__row b { color: var(--ink); }
.log__row--th { padding-top: 0; color: var(--muted); font-size: 10px; font-weight: 700; }

/* scenarios and the Telegram card */
.flows { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 60px; margin-top: 48px; }
.flows__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow { display: grid; grid-template-columns: 260px 24px 1fr 32px; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 16px 24px; border: 1px solid var(--rule); }
.flow small { grid-column: 1 / -1; color: var(--eyebrow); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.flow b { font-size: 14px; }
.flow i { color: var(--orange); font-style: normal; font-weight: 700; }
.flow span { color: var(--body); font-size: 12px; }
.switch { position: relative; width: 32px; height: 18px; border-radius: 9px; background: var(--orange); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.tg { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; background: var(--soft); border: 1px solid var(--rule); }
.tg > small { color: var(--body); font-size: 11px; font-weight: 700; }
.tg__msg { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--rule); }
.tg__msg b { font-size: 13px; }
.tg__msg p { color: var(--body); font-size: 12px; line-height: 1.6; }
.tg__msg .tag { align-self: flex-start; padding: 8px 16px; font-size: 12px; }
.tg__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }

/* how to start */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.step__number { display: block; color: var(--eyebrow); font-size: 42px; font-weight: 800; line-height: 1.1; }
.step h3 { margin-top: 14px; font-size: 18px; }
.step p { margin-top: 10px; color: var(--body); font-size: 14px; }

/* prices */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--rule); background: var(--bg); }
.plan--tint { background: var(--tint); }
.plan h3 { font-size: 22px; font-weight: 700; }
.plan__price { margin-top: 18px; font-size: 36px; font-weight: 800; line-height: 1.2; }
.plan__per { color: var(--body); font-size: 12px; }
.plan ul { flex: 1; margin: 28px 0 40px; padding: 0; list-style: none; }
.plan li { padding: 9px 0 9px 26px; color: var(--body); font-size: 14px; background: linear-gradient(var(--green), var(--green)) 0 50% / 0 0 no-repeat; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.note { margin-top: 32px; color: var(--body); font-size: 12px; }

/* questions */
.faq { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.faq__item { border: 1px solid var(--rule); background: var(--bg); }
.faq__item summary { display: flex; flex-direction: column; gap: 10px; padding: 24px 25px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { color: var(--eyebrow); font-size: 11px; }
.faq__item[open] summary span { display: none; }
.faq__item p { max-width: 1000px; padding: 0 25px 26px; color: var(--body); font-size: 14px; line-height: 1.55; }

/* the dark call to action */
.cta { padding: 72px 0; background: var(--dark); color: #fafaf9; }
.cta__inner { display: grid; grid-template-columns: 560px 1fr; gap: 60px; align-items: start; }
.cta p { margin: 24px 0 32px; color: var(--dark-sub); font-size: 16px; }
.cta__link { display: block; margin-top: 24px; color: var(--dark-sub); font-size: 12px; font-weight: 700; text-decoration: none; }
.cta__link:hover { text-decoration: underline; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 24px; background: var(--dark-2); }
.mini__col { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 3px solid var(--orange); }
.mini__col--won { border-top-color: var(--green); }
.mini__col > b { font-size: 11px; }
.mini__col div { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--dark-3); }
.mini__col strong { font-size: 11px; }
.mini__col small { color: var(--muted); font-size: 10px; }

/* footer */
.site-footer { padding: 40px 0 48px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 24px; }
.site-footer__links a { color: var(--body); font-size: 12px; text-decoration: none; }
.site-footer__links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__note { margin-top: 24px; color: var(--body); font-size: 11px; }

/* the answer of the demo-request form (POST /demo-request) */
.status { font-size: 13px; }
.status--ok { color: var(--green); }
.status--error { color: #dc2626; }

/* tablet */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .site-header__actions { margin-left: auto; }
  .ruled { background-image: none; }
  .flows { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board__col { min-height: 0; }
}
/* phone */
@media (max-width: 720px) {
  .site-header__link { display: none; }
  .site-header__inner, .site-header__actions { gap: 10px; }
  .site-header .button--sm { padding: 0 10px; font-size: 11px; }
  .brand { font-size: 15px; }
  .hero { padding: 40px 0 56px; }
  .screen__body { grid-template-columns: 1fr; }
  .screen__side { display: none; }
  .board { grid-template-columns: 1fr; }
  .cells--3, .cells--2, .facts, .steps, .plans { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .panel { padding: 16px; }
  .flow { grid-template-columns: 1fr 32px; }
  .flow i { display: none; }
  .flow span { grid-column: 1; }
  .mini { grid-template-columns: 1fr; }
  .tg__buttons { grid-template-columns: 1fr; }
}
