/* Doklady Sherpas – vizuální identita podle sherpas.tech */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #fb2942;          /* logo */
  --brand: #d81a31;        /* tlačítka, akcent */
  --brand-hover: #b9142a;
  --brand-soft: #fdecee;
  --ink: #1d1d20;          /* nadpisy */
  --text: #27272a;
  --muted: #52525b;
  --subtle: #71717a;
  --border: #e1e1e2;
  --bg: #fcfcfc;
  --surface: #ffffff;
  --surface-alt: #f4f4f5;

  --ok: #15803d;      --ok-soft: #dcfce7;
  --warn: #a16207;    --warn-soft: #fef3c7;
  --info: #1d4ed8;    --info-soft: #dbeafe;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(29, 29, 32, .04), 0 4px 16px rgba(29, 29, 32, .04);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ---------- Hlavička ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 252, 252, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(225, 225, 226, .7);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; letter-spacing: .01em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo b { font-weight: 800; }
.logo span { font-weight: 400; }
.logo svg { flex: none; }

.nav { display: flex; gap: 4px; flex: 0 0 auto; scrollbar-width: none; }
.nav a {
  color: var(--text); font-weight: 500; padding: 8px 10px; border-radius: var(--radius);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover { background: var(--surface-alt); text-decoration: none; }
.nav a.active { color: var(--ink); font-weight: 700; background: var(--surface-alt); }
.nav .count {
  font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav .count.neutral { background: var(--border); color: var(--text); }

.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; flex: 0 1 auto; }
.email-headers { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.email-headers dt { color: var(--muted); }
.email-headers dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.email-body { width: 100%; min-height: 60vh; border: 0; border-top: 1px solid var(--border); background: #fff; display: block; }
.email-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; margin: 0; padding: 20px 24px; border-top: 1px solid var(--border); }
.device-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.code-input { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.setup-join { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.access-table .select { min-width: 170px; }
.company-switch { position: relative; min-width: 0; max-width: 320px; }
.company-switch summary { list-style: none; }
.company-switch summary::-webkit-details-marker { display: none; }
.company-switch-current {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.2;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 8px 12px; max-width: 100%; box-sizing: border-box;
}
.company-switch-current:hover, .company-switch[open] .company-switch-current { border-color: var(--muted); }
.company-switch-current .company-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-switch-current svg { flex: none; color: var(--muted); transition: transform .15s; }
.company-switch[open] .company-switch-current svg { transform: rotate(180deg); }
.company-menu button { display: flex !important; gap: 10px; align-items: flex-start; }
.company-menu .check { flex: none; width: 14px; color: var(--brand); font-weight: 700; }
.company-menu .company-title { display: block; font-weight: 600; color: var(--ink); }
.company-menu button.current { background: var(--surface-alt); }
.user-menu { position: relative; color: var(--muted); font-size: 13px; }
.user-menu summary { list-style: none; gap: 8px; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.user-menu .menu, .company-switch .menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; z-index: 30;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(29,29,32,.12); padding: 6px;
}
.company-switch .menu { min-width: 300px; }
.user-menu .menu-head, .company-switch .menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; line-height: 1.5; }
.user-menu .menu a, .user-menu .menu button, .company-switch .menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer;
}
.user-menu .menu a:hover, .user-menu .menu button:hover, .company-switch .menu button:hover { background: var(--surface-alt); text-decoration: none; }
.user-menu form { margin: 0; }

/* ---------- Layout ---------- */
.main { max-width: 1320px; margin: 0 auto; padding: 32px 24px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-head { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { margin: 0; font-size: 16px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stat { padding: 20px 24px; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .value { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.2; margin-top: 4px; }
.stat .meta { color: var(--muted); font-size: 13px; }
a.stat:hover { text-decoration: none; border-color: #c9c9cc; }

/* ---------- Tlačítka ---------- */
.btn {
  font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; background: var(--surface-alt); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fcfcfc; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #116632; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.btn-link:hover { color: var(--brand); text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Hlavní akce vpravo, koš na opačné straně vlevo */
.actions-split { justify-content: flex-end; }
.actions-split .action-trash { order: -1; margin-right: auto; }

/* ---------- Formuláře ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--text);
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.input:focus, .select:focus, .textarea:focus, .btn:focus-visible {
  outline: 2px solid rgba(216, 26, 49, .25); outline-offset: 1px; border-color: var(--brand);
}
.textarea { min-height: 80px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.uncertain .input { border-color: #e7b100; background: #fffbea; }
.uncertain label::after { content: " · ověřit"; color: var(--warn); font-weight: 500; }
.error-text { color: var(--brand); font-size: 13px; margin-top: 4px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.field .checkbox { display: flex; font-weight: 400; margin: 0 0 8px; }
.checkbox input, table input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }

.dropzone {
  display: block; border: 2px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface-alt);
  padding: 40px 24px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { display: none; }
.dropzone strong { color: var(--ink); font-size: 16px; display: block; margin-bottom: 4px; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.file-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; display: flex; justify-content: space-between; }

/* ---------- Tabulka ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-alt); white-space: nowrap;
}
.table th.num { text-align: right; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafafa; }
.table .title { font-weight: 600; color: var(--ink); }
.table .title:hover { color: var(--brand); }
.table .w-check { width: 40px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }

.bulk-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.search { display: flex; gap: 8px; }
.search .input { width: 280px; }

/* ---------- Štítky ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-alt); color: var(--muted);
}
.badge-received { background: var(--warn-soft); color: var(--warn); }
.badge-approved { background: var(--ok-soft); color: var(--ok); }
.badge-entered { background: var(--surface-alt); color: var(--muted); }
.badge-danger { background: var(--brand-soft); color: var(--brand); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* ---------- Upozornění ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; border: 1px solid; }
.alert-ok { background: var(--ok-soft); border-color: #b7ebc6; color: #14532d; }
.alert-error { background: var(--brand-soft); border-color: #f8c6cd; color: #8a1020; }
.vat-check { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.vat-check .btn-link { color: inherit; opacity: .75; }
.alert-warn { background: var(--warn-soft); border-color: #f5dc8a; color: #713f12; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- Detail dokladu ---------- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: 24px; align-items: start; }
.preview { position: sticky; top: 88px; height: calc(100vh - 112px); min-height: 480px; overflow: hidden; display: flex; flex-direction: column; }
.preview-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.preview-tabs a { font-size: 13px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--muted); white-space: nowrap; }
.preview-tabs a.active { background: var(--surface-alt); color: var(--ink); font-weight: 600; }
.preview iframe, .preview .img-wrap { flex: 1; width: 100%; border: 0; background: #e9e9eb; }
.preview .img-wrap { overflow: auto; padding: 16px; text-align: center; }
.preview .img-wrap img { max-width: 100%; box-shadow: var(--shadow); }
.preview .no-preview { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); }

.status-panel { padding: 20px 24px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.steps { display: flex; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--subtle); position: relative; padding-top: 22px; }
.steps li::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--border); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before, .steps li.done::after { background: var(--brand); }

dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.timeline li.highlight::before { background: var(--brand); }
.timeline .when { color: var(--muted); font-size: 12px; }
.timeline .comment { background: var(--surface-alt); border-radius: var(--radius); padding: 8px 12px; margin-top: 4px; }

details.return-box summary { list-style: none; cursor: pointer; }
details.return-box summary::-webkit-details-marker { display: none; }
details.return-box[open] summary { margin-bottom: 12px; }

/* ---------- Přihlášení ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--surface-alt); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { justify-content: center; margin-bottom: 24px; font-size: 20px; }

.pagination { display: flex; gap: 4px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px; color: var(--text); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .disabled { color: var(--subtle); }


/* ---------- Reporty ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 16px 20px; }
.filters .field { margin: 0; min-width: 150px; }
.filters .input, .filters .select, .filters .btn { height: 42px; }
.filters .filter-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filters .quick { display: flex; gap: 12px; font-size: 13px; }
.share { height: 4px; background: var(--surface-alt); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--viz-1); border-radius: 2px; }

.viz { --viz-1: #2a78d6; margin: 0; }
:root { --viz-1: #2a78d6; }
.viz-plot { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 240px; }
.viz-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--subtle); text-align: right; padding-bottom: 22px; font-variant-numeric: tabular-nums; }
.viz-axis span { transform: translateY(-50%); }
.viz-axis span:last-child { transform: translateY(50%); }
.viz-bars { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; padding-bottom: 22px; }
.viz-grid { position: absolute; inset: 0 0 22px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.viz-grid i { border-top: 1px solid #ececed; }
.viz-grid i:last-child { border-top-color: #d4d4d8; }
.viz-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.viz-bar { position: relative; width: min(100%, 44px); min-height: 1px; background: var(--viz-1); border-radius: 4px 4px 0 0; transition: filter .1s; }
.viz-col:hover .viz-bar, .viz-col:focus-visible .viz-bar { filter: brightness(.88); }
.viz-col:focus-visible { box-shadow: inset 0 0 0 2px rgba(42, 120, 214, .35); border-radius: 4px; }
.viz-label { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.viz-x { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--subtle); white-space: nowrap; overflow: hidden; }
.viz-tip {
  display: none; position: absolute; bottom: calc(100% - 22px); left: 50%; transform: translate(-50%, -8px); z-index: 5;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 8px 10px; font-size: 12px; line-height: 1.4;
  white-space: nowrap; flex-direction: column; box-shadow: var(--shadow); pointer-events: none;
}
.viz-tip .muted { color: #c4c4c8; }
.viz-col:hover .viz-tip, .viz-col:focus-visible .viz-tip { display: flex; }
@media (max-width: 760px) { .viz-x { font-size: 9px; } .viz-plot { height: 200px; } }

/* ---------- Responzivita ---------- */
@media (max-width: 1180px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
}
@media (max-width: 1100px) {
  .doc-layout { grid-template-columns: 1fr; }
  .preview { position: static; height: 70vh; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; }
  .header-tools { margin-left: auto; }
  .user-menu .name { display: none; }
  .company-switch-current { max-width: 180px; }
  .company-switch .menu { right: auto; left: 0; min-width: min(300px, calc(100vw - 32px)); }
  .main { padding: 20px 16px 48px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .search .input { width: 100%; }
  .search { flex: 1; }
  .hide-mobile { display: none; }
  h1 { font-size: 24px; }
  .card-pad, .status-panel { padding: 16px; }
}

/* ---------- Veřejná stránka Funkce ---------- */
.features .header-inner { gap: 16px; }
.features .nav a { font-size: 14px; padding: 6px 8px; }
.feat-main { max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; }
.feat-hero { text-align: center; margin-bottom: 72px; }
.feat-eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.feat-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; max-width: 820px; margin: 0 auto 16px; }
.feat-lead { font-size: 17px; color: var(--muted); max-width: 760px; margin: 0 auto 32px; }
.feat-flow { list-style: none; padding: 0; margin: 0 auto 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; text-align: left; }
.feat-flow li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.feat-flow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); grid-row: span 2; align-self: center; }
.feat-flow li:nth-child(2) .dot { background: var(--ok); }
.feat-flow li:nth-child(3) .dot { background: var(--ink); }
.feat-flow strong { color: var(--ink); }
.feat-flow span:last-child { font-size: 13px; color: var(--muted); }
.feat-shot { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: 0 12px 40px rgba(29, 29, 32, .08); }
.feat-shot img { display: block; width: 100%; height: auto; }
.feat-shot a { display: block; cursor: zoom-in; }
.feat-shot-hero { max-width: 1100px; margin: 0 auto; }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; padding: 56px 0; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.feat:nth-of-type(odd) .feat-text { order: 2; }
.feat-text h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.feat-text p { font-size: 16px; }
.feat-text ul { padding-left: 20px; margin: 0; }
.feat-text li { margin-bottom: 8px; }
.feat-text li::marker { color: var(--brand); }
.feat-mark { background: #fffbea; border: 1px solid #e7b100; border-radius: 4px; padding: 0 4px; }
.feat-shots { display: grid; gap: 20px; }
.feat-cta { text-align: center; padding: 64px 0 0; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .feat:nth-of-type(odd) .feat-text { order: 0; }
  .feat-flow { grid-template-columns: 1fr; }
  .features .nav { display: none; }
  .features .header-inner { justify-content: space-between; height: 64px; flex-wrap: nowrap; }
  .feat-main { padding: 32px 16px 64px; }
}
