/* Subpages of leedfox.cz / leedfox.sk. Built on base.css (the landing page's own styles, extracted
   by site/build.mjs) and the K3 tokens. Tokens only, no raw colors. */

/* language links in the header: same look as the landing's segmented buttons */
.seg a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 40px; padding: 0 12px; border-radius: 999px; color: var(--night-fg); font: 500 14px/1 var(--font); text-decoration: none; }
.seg a[aria-current="true"] { background: var(--nav-on-bg); color: var(--nav-on-fg); }
.nav a[aria-current="page"] { color: var(--night-strong); }

/* phone and tablet menu, shown where the landing hides .nav */
.m-menu { display: none; }
.m-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--night-rule); cursor: pointer; list-style: none; color: var(--night-strong); }
.m-menu summary::-webkit-details-marker { display: none; }
.m-menu summary span, .m-menu summary span::before, .m-menu summary span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.m-menu summary span::before, .m-menu summary span::after { content: ""; position: absolute; left: 0; }
.m-menu summary span::before { top: -6px; }
.m-menu summary span::after { top: 6px; }
.m-menu[open] summary span { background: transparent; }
.m-menu[open] summary span::before { top: 0; transform: rotate(45deg); background: currentColor; }
.m-menu[open] summary span::after { top: 0; transform: rotate(-45deg); background: currentColor; }
.m-menu nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 8px 16px 16px; background: var(--night); border-bottom: 1px solid var(--night-rule); }
.m-menu nav a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; border-bottom: 1px solid var(--night-rule); color: var(--night-strong); font-weight: 500; text-decoration: none; }
.m-menu nav a:last-child { border-bottom: 0; color: var(--night-fg); }
@media (max-width: 1100px) { .m-menu { display: block; } }

/* footer with an extra column for industries and comparisons */
.foot-grid.foot-4 { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }

/* subpage hero: the night frame without the product shot */
.sub-hero { padding: 72px 0 88px; background: var(--night); color: var(--night-strong); position: relative; overflow: hidden; }
.sub-hero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--lavender-9) 30%, transparent), transparent); pointer-events: none; }
.sub-hero .wrap { position: relative; }
.sub-hero .eyebrow { color: var(--night-fg); }
.sub-hero h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.06; margin-top: 16px; max-width: 18ch; }
.sub-hero .answer { margin-top: 24px; max-width: 62ch; font-size: 19px; color: var(--night-fg); }
.sub-hero .hero-actions { margin-top: 32px; }
.sub-hero .btn-line { color: var(--night-strong); border-color: var(--hero-btn2-border); }
@media (hover: hover) and (pointer: fine) { .sub-hero .btn-line:hover { border-color: var(--night-strong); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; color: var(--night-fg); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.crumbs a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--night-strong); } }

.sec.sm { padding: 88px 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; line-height: 1.25; }
.card p { margin-top: 10px; color: var(--muted-foreground); }
.card .k { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--lavender-2); color: var(--primary-text); font-weight: 600; margin-bottom: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* flow: numbered steps next to an SMS example */
.flow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--night); color: var(--night-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 6px; color: var(--muted-foreground); }
.sms { position: sticky; top: 104px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.sms-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-text); }
.sms-from { margin-top: 16px; font-size: 13px; color: var(--muted-foreground); }
.bubble-in, .bubble-out { margin-top: 10px; padding: 12px 16px; border-radius: 18px; max-width: 92%; font-size: 15px; line-height: 1.45; }
.bubble-in { background: var(--page-alt); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble-out { margin-left: auto; background: var(--night); color: var(--night-strong); border-bottom-right-radius: 6px; }
.sms-note { margin-top: 16px; font-size: 12px; color: var(--muted-foreground); }

/* pipeline stages */
.stages { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stages li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-weight: 500; }
.stages li span { font-variant-numeric: tabular-nums; color: var(--muted-foreground); font-weight: 400; }
.stages-note { margin-top: 16px; color: var(--muted-foreground); font-size: 14px; }
.feat-grid { margin-top: 56px; }

/* hub lists */
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub a { display: block; padding: 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--card); text-decoration: none; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.hub a b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.hub a span { display: block; margin-top: 8px; color: var(--muted-foreground); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .hub a:hover { border-color: var(--primary); } }
.hub a:active { transform: scale(0.99); }
.hub-group + .hub-group { margin-top: 56px; }
.hub-group h2 { font-size: 24px; margin-bottom: 20px; }

/* comparison */
.disclosure { margin-top: 28px; max-width: 72ch; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--night-rule); color: var(--night-fg); font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; background: var(--card); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cmp thead th { font-size: 13px; font-weight: 600; color: var(--muted-foreground); background: var(--page-alt); position: sticky; top: 0; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { font-weight: 500; width: 28%; }
.cmp td small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted-foreground); }
.cmp td small a { color: var(--primary-text); }
.cmp .us { background: color-mix(in oklab, var(--lavender-2) 55%, transparent); }
.cmp-matrix th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
.cmp-matrix thead th:first-child { background: var(--page-alt); }
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.fit ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted-foreground); display: grid; gap: 8px; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--muted-foreground); font-size: 17px; }

/* CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 3fr) auto; gap: 32px; align-items: center; padding: 48px; border-radius: 28px; background: var(--night); color: var(--night-strong); }
.cta-band p { margin-top: 12px; color: var(--night-fg); max-width: 60ch; }
.cta-band h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }

@media (max-width: 960px) {
  .cards, .cards.four, .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow, .fit, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .sms { position: static; }
  .foot-grid.foot-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sub-hero { padding: 48px 0 64px; }
  .sub-hero .answer { font-size: 17px; }
  .sec.sm { padding: 64px 0; }
  .cards, .cards.two, .cards.four, .hub { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px; }
  .cta-band { padding: 28px 22px; }
  .cta-band .btn { width: 100%; }
  .foot-grid.foot-4 { grid-template-columns: minmax(0, 1fr); }
  .cmp th, .cmp td { padding: 12px 14px; }
  /* phones: each row becomes a card, column names come from data-label */
  .table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp tbody tr { border: 1px solid var(--border); border-radius: 16px; background: var(--card); overflow: hidden; }
  .cmp tbody tr + tr { margin-top: 12px; }
  .cmp tbody th { width: 100%; font-size: 16px; font-weight: 600; }
  .cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 1px solid var(--border); }
  .cmp tbody tr td:last-child { border-bottom: 0; }
  .cmp td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
  .cmp-matrix th:first-child { position: static; }
  .cmp td small { overflow-wrap: anywhere; }
}
