/* operity.hu: from the 2026-10-05 landing design (docs/operity-landing-20261005/mockup, plex/pixel), the app's own tokens.
   Designer notes removed. Site-only additions are at the end. */
/* Layout: the app's own chrome (navy sidebar/topbar) carries the hero; below it the light work surface of the app,
   one column of sections, each a single job. The flow strip is the one bold element: the real path a job takes. */
:root {
  --chrome: #040622;      /* $sidebar-dark-bg, the app's sidebar and topbar */
  --chrome-2: #0b1030;
  --chrome-ink: #eef0f7;
  --chrome-muted: #9aa0b8;
  --bg: #f1f3f7;          /* $body-bg */
  --surface: #ffffff;
  --ink: #141b2b;         /* $gray-900 */
  --muted: #545965;       /* $gray-700, the app's body text */
  --line: #e2e5ec;
  --accent: #3b76e1;      /* $primary, the app's links, tabs, selected rows */
  --accent-ink: #ffffff;
  --accent-soft: #e8effc;
  --ok-ink: #2c6b37; --ok-soft: #e6f3e8;          /* $green family */
  --pilot-ink: #7a5300; --pilot-soft: #fdf1d6;    /* $yellow family */
  --soon-ink: #4b5161; --soon-soft: #eceef3;
  --note-ink: #6a3fb0; --note-soft: #f1eafb; --note-line: #c9b3ec;
  --shadow: 0 2px 3px rgba(20, 27, 43, .06), 0 12px 32px rgba(20, 27, 43, .07);
  --font: 'Work Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: .75rem; --r-lg: 1rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --chrome: #03051a; --chrome-2: #0a0e2b; --chrome-ink: #eef0f7; --chrome-muted: #9aa0b8;
    --bg: #090c20; --surface: #11152e; --ink: #e7eaf3; --muted: #a7adc1; --line: #232947;
    --accent: #6e9df0; --accent-ink: #06102a; --accent-soft: #18234a;
    --ok-ink: #a4dbad; --ok-soft: #15301f; --pilot-ink: #f6d488; --pilot-soft: #33290f;
    --soon-ink: #c3c8d6; --soon-soft: #1b2040; --note-ink: #cdb6f5; --note-soft: #231a3d; --note-line: #4d3a7a;
    --shadow: 0 2px 3px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --chrome: #03051a; --chrome-2: #0a0e2b; --chrome-ink: #eef0f7; --chrome-muted: #9aa0b8;
  --bg: #090c20; --surface: #11152e; --ink: #e7eaf3; --muted: #a7adc1; --line: #232947;
  --accent: #6e9df0; --accent-ink: #06102a; --accent-soft: #18234a;
  --ok-ink: #a4dbad; --ok-soft: #15301f; --pilot-ink: #f6d488; --pilot-soft: #33290f;
  --soon-ink: #c3c8d6; --soon-soft: #1b2040; --note-ink: #cdb6f5; --note-soft: #231a3d; --note-line: #4d3a7a;
  --shadow: 0 2px 3px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.mono { font-family: var(--mono); font-feature-settings: "zero"; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.075rem; max-width: 62ch; }

/* status pills: the same three states the inventory uses */
.pill { display: inline-flex; align-items: center; gap: .35em; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: .2em .65em; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok-ink); background: var(--ok-soft); }
.pill.pilot { color: var(--pilot-ink); background: var(--pilot-soft); }
.pill.soon { color: var(--soon-ink); background: var(--soon-soft); }


.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .95rem var(--font); padding: .8rem 1.25rem; border-radius: .6rem; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--chrome-ink); border-color: rgba(238, 240, 247, .28); background: transparent; }
.btn.ghost:hover { background: rgba(238, 240, 247, .08); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- top bar (the app's topbar) ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--chrome); color: var(--chrome-ink); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.top .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 60px; }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--chrome-ink); text-decoration: none; }
.top nav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.top nav a { color: var(--chrome-muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.top nav a:hover { color: var(--chrome-ink); }
.top .btn { padding: .5rem .9rem; font-size: .85rem; }
@media (max-width: 860px) { .top nav a.hide-sm { display: none; } }
@media (max-width: 520px) { .top nav { gap: .8rem; } .top .btn { padding: .45rem .7rem; font-size: .8rem; } }
/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #12205a 0%, transparent 60%), var(--chrome); color: var(--chrome-ink); padding-block: 3.5rem 0; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: end; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.hero .eyebrow { color: #8fb1f3; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); font-weight: 800; margin-top: .9rem; letter-spacing: -.025em; }
.hero .lead { color: var(--chrome-muted); margin-top: 1.1rem; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; padding-bottom: 2.5rem; font-size: .85rem; color: var(--chrome-muted); }
.hero-facts span::before { content: "✓"; color: #7ec98a; margin-right: .4rem; font-weight: 700; }
.shot-frame { border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: #0d1233; border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0; box-shadow: 0 -10px 60px rgba(59, 118, 225, .25); }
.shot-frame .bar { display: flex; gap: .4rem; padding: .55rem .8rem; background: #0a0e2b; }
.shot-frame .bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #2a3062; }

/* ---------- the flow: call -> ticket -> hours -> certificate -> invoice ---------- */
.flow { background: var(--surface); border-bottom: 1px solid var(--line); }
.flow .wrap { padding-block: 2.2rem; }
.flow-head { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; justify-content: space-between; }
.flow-head p { color: var(--muted); font-size: .95rem; }
.flow ol { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.flow li { position: relative; padding: 1rem 1rem 1rem 0; min-width: 0; }
.flow li + li { padding-left: 1.4rem; }
.flow li + li::before { content: ""; position: absolute; left: -.55rem; top: 1.55rem; width: 1rem; height: 1rem; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.flow .step { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flow .what-step { font-weight: 700; font-size: 1.05rem; margin-top: .25rem; }
.flow .proof { margin-top: .55rem; display: inline-block; font-size: .8rem; padding: .25rem .5rem; border-radius: .4rem; background: var(--accent-soft); color: var(--accent); }
.flow .sub { color: var(--muted); font-size: .85rem; margin-top: .45rem; }
.flow .pill { margin-top: .5rem; }
@media (max-width: 900px) {
  .flow ol { grid-template-columns: minmax(0, 1fr); }
  .flow li, .flow li + li { padding: .8rem 0 .8rem 2rem; border-left: 2px solid var(--accent-soft); }
  .flow li + li::before { left: -.5rem; top: -.45rem; width: .8rem; height: .8rem; transform: rotate(135deg); }
}

/* ---------- sections ---------- */
section.block { padding-block: 4.5rem; }
.sec-head { display: grid; gap: .8rem; margin-bottom: 2.2rem; max-width: 70ch; }

/* module tour: a list of modules, the selected one with its real screen */
.tour { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.tour > * { min-width: 0; }
@media (min-width: 1000px) { .tour { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.tour-list { display: flex; flex-direction: column; gap: .35rem; }
@media (max-width: 999px) { .tour-list { flex-direction: row; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; } }
.tour-btn { display: grid; gap: .25rem; text-align: left; padding: .8rem 1rem; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
@media (max-width: 999px) { .tour-btn { flex: 0 0 auto; border-color: var(--line); background: var(--surface); } }
.tour-btn:hover { background: var(--surface); }
.tour-btn[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.tour-btn[aria-selected="true"] .t-name { color: var(--accent); }
.t-name { font-weight: 600; font-size: 1rem; }
.tour-btn .pill { justify-self: start; }
.tour-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.tour-panel .copy { padding: 1.6rem 1.6rem 1.2rem; display: grid; gap: .7rem; }
.tour-panel .copy p { color: var(--muted); max-width: 70ch; }
.tour-panel ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: .25rem; font-size: .95rem; }
.tour-panel figure { margin: 0; border-top: 1px solid var(--line); background: var(--bg); }
.tour-panel figure img { width: 100%; height: auto; }
.tour-panel figcaption { font-size: .78rem; color: var(--muted); padding: .55rem 1.6rem; border-top: 1px solid var(--line); }
.thumbs { display: flex; gap: .6rem; padding: 0 1.6rem 1.2rem; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: .5rem; overflow: hidden; width: 128px; cursor: pointer; background: none; }
.thumb[aria-pressed="true"] { border-color: var(--accent); }
.thumb img { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; width: 100%; }

/* why us */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.claim { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 600; line-height: 1.35; max-width: 46ch; text-wrap: balance; }
.claim .src { display: block; margin-top: .6rem; font-size: .8rem; font-weight: 400; color: var(--muted); }
.why-grid { display: grid; gap: 1px; margin-top: 2.2rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .why-item { grid-column: span 2; } .why-item:nth-child(n+4) { grid-column: span 3; } }
.why-item { background: var(--surface); padding: 1.4rem 1.5rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.why-item p { color: var(--muted); font-size: .95rem; }
.why-item .k { font-family: var(--mono); font-size: .75rem; color: var(--accent); }

/* soon */
.soon-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.soon-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; min-width: 0; }
.soon-col h3 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.soon-col ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .65rem; }
.soon-col li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: .5rem; color: var(--muted); font-size: .95rem; }
.soon-col li::before { content: ""; width: .55rem; height: .55rem; margin-top: .5rem; border-radius: 50%; border: 2px solid var(--soon-ink); opacity: .6; }
.soon-col li b { color: var(--ink); font-weight: 600; }

/* pricing */
.price-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.price-grid > *, .tables > * { min-width: 0; }
@media (min-width: 1000px) { .price-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; min-width: 0; }
.calc { box-shadow: var(--shadow); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); }
@media (max-width: 999px) { .calc { position: static; } }
.calc h3 { margin-bottom: 1rem; }
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field > label, .field > .lbl { font-weight: 600; font-size: .9rem; }
.users { display: flex; align-items: center; gap: .9rem; }
.users input[type=range] { flex: 1; accent-color: var(--accent); min-width: 0; }
.users input[type=number] { width: 4.5rem; font: 600 1rem var(--font); padding: .4rem .5rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--bg); color: var(--ink); }
.checks { display: grid; gap: .5rem; }
.check { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .55rem; cursor: pointer; }
.check input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.check .p { margin-left: auto; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
select { font: 500 .95rem var(--font); padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--bg); color: var(--ink); width: 100%; }
.sum { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: 1rem; display: grid; gap: .35rem; font-variant-numeric: tabular-nums; }
.sum .row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--muted); }
.sum .row.total { color: var(--ink); font-weight: 700; font-size: 1.35rem; margin-top: .4rem; }
.sum .row.gross { font-size: .85rem; }
.sum .flag { font-size: .78rem; color: var(--pilot-ink); background: var(--pilot-soft); border-radius: .4rem; padding: .35rem .55rem; margin-top: .3rem; }
.tables { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num { text-align: right; white-space: nowrap; font-weight: 600; }
td .muted { color: var(--muted); font-size: .85rem; }
tr.rec td { background: var(--accent-soft); }
.tbl-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.small { font-size: .82rem; color: var(--muted); }

/* faq */
.faq { display: grid; gap: .6rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 1.2rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; max-width: 70ch; }

/* closing */
.close { background: var(--chrome); color: var(--chrome-ink); }
.close-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.close-grid > * { min-width: 0; }
@media (min-width: 900px) { .close-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.close .lead { color: var(--chrome-muted); }
.close .small { color: var(--chrome-muted); margin-top: 1rem; }
.form { background: var(--chrome-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); padding: 1.4rem; display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .3rem; font-size: .82rem; color: var(--chrome-muted); min-width: 0; }
.form input, .form textarea { font: 400 .95rem var(--font); padding: .6rem .7rem; border-radius: .5rem; border: 1px solid rgba(255, 255, 255, .14); background: #060a24; color: var(--chrome-ink); width: 100%; }
.form textarea { min-height: 84px; resize: vertical; }
.form .sent { font-size: .85rem; color: #f6d488; }
footer { background: var(--chrome); color: var(--chrome-muted); font-size: .82rem; border-top: 1px solid rgba(255, 255, 255, .06); }
footer .wrap { padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ===================== operity.hu site additions ===================== */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem .8rem; z-index: 50; border-radius: 0 0 .4rem 0; }
.skip:focus { left: 0; }
.top nav a[aria-current="page"] { color: var(--chrome-ink); text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.btn.outline { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn.outline:hover { background: var(--accent-soft); }

/* what the Operity is (Google app home page requirement: plain words, near the top) */
.what { background: var(--surface); border-bottom: 1px solid var(--line); }
.what-grid { display: grid; gap: .6rem 2.5rem; padding-block: 1.8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .what-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); align-items: baseline; } }
.what-grid h2 { font-size: 1.15rem; }
.what-grid p { color: var(--muted); max-width: 80ch; }

.close-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-content: start; }

/* footer */
.site-foot { background: var(--chrome); color: var(--chrome-muted); font-size: .88rem; }
.site-foot a { color: var(--chrome-muted); text-decoration: none; }
.site-foot a:hover { color: var(--chrome-ink); text-decoration: underline; }
.foot-grid { display: grid; gap: 1.8rem 2rem; padding-block: 2.6rem 1.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); } }
.foot-grid > div { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.foot-what { max-width: 40ch; margin-top: .4rem; }
.foot-h { color: var(--chrome-ink); font-weight: 600; margin-bottom: .2rem; }
.foot-small { font-size: .8rem; margin-top: .3rem; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-block: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .8rem; }

/* inner pages */
.page-hero { background: var(--chrome); color: var(--chrome-ink); padding-block: 2.6rem 2.2rem; }
.page-hero .eyebrow { color: #8fb1f3; }
.page-hero h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; margin-top: .6rem; }
.page-hero .lead { color: var(--chrome-muted); margin-top: .8rem; }
.crumbs { font-size: .82rem; color: var(--chrome-muted); }
.crumbs a { color: var(--chrome-muted); }
.prose { max-width: 75ch; display: grid; gap: 1rem; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: 1.35rem; margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: .88rem; }
ul.ticks { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
ul.ticks li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .45rem; color: var(--muted); }
ul.ticks li::before { content: "✓"; color: var(--ok-ink); font-weight: 700; }
ul.plain { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .55rem; }
ul.plain .muted { display: block; }

/* Modulok overview */
.mod-overview { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .mod-overview { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.mod-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.mod-card { display: grid; gap: .6rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; color: var(--ink); text-decoration: none; min-width: 0; transition: box-shadow .15s, transform .15s; }
.mod-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mod-card h2 { font-size: 1.1rem; }
.mod-card p { color: var(--muted); font-size: .95rem; }
.mod-card-head { display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mod-more { color: var(--accent); font-weight: 600; font-size: .9rem; }
.mod-base h2, .mod-aside h2 { font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .mod-card, .mod-card:hover { transition: none; transform: none; } }

/* one module page */
.mod-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .mod-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.feature-groups { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; min-width: 0; }
.mod-shot { margin: 1.5rem 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.mod-shot figcaption { font-size: .8rem; color: var(--muted); padding: .55rem 1rem; border-top: 1px solid var(--line); }
.mod-aside { display: grid; gap: 1rem; min-width: 0; }
@media (min-width: 1000px) { .mod-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); } }
.price-box .price-line { font-size: 1.3rem; font-weight: 700; margin: .5rem 0; font-variant-numeric: tabular-nums; }
.price-box .btn { margin-top: .9rem; }
table.mini td { padding: .5rem .3rem; }
.placeholder { padding: 1rem 1.2rem; background: var(--soon-soft); color: var(--soon-ink); border-radius: var(--r); }

/* mobile menu: the disclosure under 860px (the nav hides its .hide-sm links there) */
.top .wrap { position: relative; }
.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; color: var(--chrome-ink); font-size: .85rem; font-weight: 600; padding: .4rem .6rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: .5rem; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: var(--chrome-2); }
.mnav-panel { position: absolute; right: 0; left: 0; top: 100%; background: var(--chrome); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: .5rem 1rem 1rem; display: grid; }
.mnav-panel a { color: var(--chrome-ink); text-decoration: none; padding: .7rem 0; border-top: 1px solid rgba(255, 255, 255, .08); font-weight: 500; }
.mnav-panel a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
@media (max-width: 860px) { .mnav { display: block; } }
@media (max-width: 420px) { .top nav a[href$="/kapcsolat"] { display: none; } }  /* the CTA leads there too */

/* calculator (Árak, Rendelés) */
[hidden] { display: none !important; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: .45rem; }
.num-in, .sub-fields input[type=number] { font: 500 .95rem var(--font); padding: .5rem .6rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--bg); color: var(--ink); width: 100%; max-width: 12rem; }
.sub-fields { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-top: .5rem; }
.sub-fields label { display: grid; gap: .3rem; font-size: .82rem; color: var(--muted); }
.sub-fields label.check { display: flex; color: var(--ink); font-size: .92rem; }
.sum .row span:first-child { min-width: 0; }
.sum .row span:last-child { white-space: nowrap; }
.sum .row i { font-style: normal; font-size: .75rem; }
.calc-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.calc-actions .btn { flex: 1 1 12rem; }

/* order form */
.card-title { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: .8rem; }
fieldset.card { margin: 0; }
.fields { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fields > legend { grid-column: 1 / -1; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.fields > label:not(.check) { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; min-width: 0; }
.fields input:not([type=checkbox]):not([type=radio]), .fields textarea { font: 400 .95rem var(--font); padding: .6rem .7rem; border-radius: .5rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.fields textarea { resize: vertical; min-height: 96px; }
.fields input[aria-invalid="true"], .fields textarea[aria-invalid="true"] { border-color: #c0392b; }
.err { color: #b42318; font-size: .82rem; font-weight: 500; }
:root[data-theme="dark"] .err { color: #f19a8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #f19a8f; } }
.form-alert { border-color: #e7b3ab; background: #fdf0ee; color: #7a1d12; }
:root[data-theme="dark"] .form-alert { background: #3a1712; color: #f6cdc6; border-color: #6e2c22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-alert { background: #3a1712; color: #f6cdc6; border-color: #6e2c22; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check span a { color: var(--accent); }
.mono { font-family: var(--mono); }
.topics { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.contact-list li { display: grid; gap: .1rem; margin-bottom: .8rem; }
/* a rendered <legend> sits on the fieldset border: floated, it becomes a normal first line inside the card */
fieldset.card > legend { float: left; width: 100%; padding: 0; }
fieldset.card > legend + * { clear: both; }
.prose table { margin: 1rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.prose code { font-family: var(--mono); font-size: .85em; }
.legal > * + * { margin-top: .9rem; }
.legal > h2 { margin-top: 2rem; }
.legal > h3 { margin-top: 1.4rem; font-size: 1.05rem; }
.legal ol, .legal ul { padding-left: 1.4rem; display: grid; gap: .4rem; }
.headcount { justify-content: space-between; gap: .8rem; }
.headcount .hc-name { display: grid; gap: .1rem; }
.headcount .hc-name .p { margin-left: 0; }
.headcount input { width: 5.5rem; height: auto; flex: 0 0 auto; }
