/* Pentaix site: a pinned scroll story (glass object → scattered enquiries → Pentaix AI collects them →
   ordered lanes), then quiet ivory sections. Shared by every niche page. Same palette as the Pentaix videos. */
:root {
  --onyx: #07080B;
  --graphite: #15171D;
  --ivory: #F3EFE6;
  --paper: #FBF9F4;
  --stone: #8E8A80;
  --cobalt: #2F55FF;
  --cobalt-light: #8FA6FF;
  --line-dark: rgba(243, 239, 230, 0.14);
  --line-light: rgba(10, 10, 10, 0.12);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--onyx); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 26px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cobalt); color: var(--ivory); box-shadow: 0 10px 30px rgba(47, 85, 255, .35); }
.btn-ghost { background: transparent; color: var(--ivory); border: 1px solid var(--line-dark); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font: 600 18px/1 var(--body); text-decoration: none; color: var(--ivory); }
.logo .bar { width: 2px; height: 20px; background: var(--cobalt); border-radius: 1px; }
.logo .sub { font-weight: 500; opacity: .75; }
.nav .btn { height: 42px; padding: 0 18px; font-size: 15px; }
.nav.light .logo { color: var(--onyx); }
.nav { transition: background .3s ease; }
.nav.light { background: rgba(243, 239, 230, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-light); }

/* ---------- Story ---------- */
.story { position: relative; height: 420vh; background: var(--onyx); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(900px 600px at 55% 50%, rgba(47, 85, 255, .14), transparent 65%), var(--onyx); color: var(--ivory); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.beat { position: absolute; z-index: 3; left: max(6vw, env(safe-area-inset-left, 0px) + 20px); top: 50%; transform: translateY(-50%); width: min(470px, 40vw); display: grid; gap: 22px; pointer-events: none; }
.beat .eyebrow { color: var(--cobalt-light); display: flex; align-items: center; gap: 10px; }
.beat .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--cobalt); box-shadow: 0 0 12px var(--cobalt); }
.beat h1 { font-family: var(--display); font-size: clamp(46px, 5.6vw, 80px); line-height: .98; letter-spacing: -.02em; }
.beat h2 { font-family: var(--display); font-size: clamp(38px, 4.4vw, 62px); line-height: 1; letter-spacing: -.015em; }
.beat em { color: var(--cobalt-light); }
.beat p { font-size: 19px; color: rgba(243, 239, 230, .78); }
.beat .cta-row { display: flex; flex-wrap: wrap; gap: 12px; pointer-events: auto; }
.beat:not(:first-of-type) { opacity: 0; }
.hint { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: rgba(243, 239, 230, .55); display: grid; justify-items: center; gap: 10px; }
.hint i { width: 1px; height: 34px; background: linear-gradient(var(--cobalt-light), transparent); animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.chip-ai { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 22px; background: var(--onyx); border: 1px solid var(--cobalt-light);
  box-shadow: 0 0 30px rgba(47, 85, 255, .6); font-family: var(--display); font-size: 26px; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; }
.chip-ai i { color: var(--cobalt-light); }

.tiles { position: absolute; inset: 0; pointer-events: none; }
.tile { position: absolute; left: 0; top: 0; width: var(--tw, 128px); height: var(--th, 44px); border-radius: 9px; padding: 0 9px 0 10px;
  background: rgba(21, 23, 29, .92); border: 1px solid rgba(143, 166, 255, .35); color: var(--ivory); box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 6px; will-change: transform, opacity; opacity: 0; }
.tile .tg { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; display: flex; align-items: center; gap: 5px; color: rgba(243, 239, 230, .7); }
.tile .tg::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--dot); flex-shrink: 0; }
.tile .tx { grid-column: 1; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile em { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 18px; height: 18px; border-radius: 9px; background: var(--cobalt); font-style: normal; display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.tile.filed { border-color: rgba(143, 166, 255, .9); background: rgba(30, 40, 90, .95); }
.tile.filed em { opacity: 1; transform: scale(1); }
.t0 { --dot: var(--cobalt); } .t1 { --dot: var(--cobalt-light); } .t2 { --dot: var(--ivory); }
.system { position: absolute; right: max(5vw, env(safe-area-inset-right, 0px) + 20px); top: 50%; transform: translateY(-50%); width: min(500px, 42vw);
  padding: 16px; border-radius: 20px; background: rgba(12, 14, 20, .78); border: 1px solid rgba(143, 166, 255, .35); box-shadow: 0 0 60px rgba(47, 85, 255, .18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; }
.sys-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 4px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 239, 230, .7); }
.sys-head span { display: flex; align-items: center; gap: 8px; }
.sys-head span::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--cobalt); box-shadow: 0 0 10px var(--cobalt); }
.sys-head b { color: var(--cobalt-light); font-weight: 500; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.col-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 239, 230, .6); padding: 0 2px 8px; display: flex; justify-content: space-between; }
.col-h b { color: var(--ivory); font-weight: 500; font-variant-numeric: tabular-nums; }
.slotlist { display: grid; gap: 8px; }
.ph { height: 44px; border-radius: 9px; border: 1px dashed rgba(143, 166, 255, .2); }

/* ---------- Light sections ---------- */
section.light { padding-block: 110px; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.sec-head .eyebrow { color: var(--cobalt); }
.sec-head h2 { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.015em; }
.sec-head p { font-size: 19px; color: #4A4842; max-width: 36em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--cobalt), var(--cobalt-light)); opacity: .35; }
.step { display: grid; gap: 16px; padding-right: 36px; min-width: 0; }
.step .n { width: 56px; height: 56px; border-radius: 28px; background: var(--ivory); border: 2px solid var(--cobalt); color: var(--cobalt); display: grid; place-items: center; font: 500 18px/1 var(--mono); position: relative; }
.step:last-child .n { background: var(--cobalt); color: var(--ivory); }
.step h3 { font-family: var(--display); font-size: 34px; line-height: 1.05; }
.step p { color: #4A4842; }

.book { background: var(--paper); border-top: 1px solid var(--line-light); }
.book-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.picker { background: #fff; border: 1px solid var(--line-light); border-radius: 26px; padding: 26px; display: grid; gap: 22px; box-shadow: 0 20px 50px rgba(10, 10, 10, .06); }
.picker h3 { font: 600 15px/1 var(--body); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.picker h3 span { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--stone); text-transform: uppercase; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day, .slot { border: 1px solid var(--line-light); background: var(--paper); border-radius: 14px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s ease, background .15s ease; }
.day { padding: 10px 4px; display: grid; justify-items: center; gap: 2px; }
.day small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--stone); text-transform: uppercase; }
.day b { font: 400 30px/1.05 var(--display); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { height: 46px; font: 500 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
.slot[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.day[aria-pressed="true"], .slot[aria-pressed="true"] { background: var(--cobalt); color: var(--ivory); border-color: var(--cobalt); }
.day[aria-pressed="true"] small { color: rgba(243, 239, 230, .8); }
.day:hover, .slot:not([disabled]):hover { border-color: var(--cobalt); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; min-width: 0; }
input { height: 48px; border-radius: 14px; border: 1px solid var(--line-light); background: var(--paper); padding: 0 14px; font: 400 16px var(--body); color: var(--onyx); width: 100%; }
input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47, 85, 255, .18); }
.summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(47, 85, 255, .08); color: #1E3BC2; font-weight: 500; }
.done { display: none; padding: 14px 16px; border-radius: 14px; background: var(--onyx); color: var(--ivory); }
.done.on { display: block; }
.perks { display: grid; gap: 18px; margin-top: 34px; list-style: none; padding: 0; }
.perks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; color: #4A4842; }
.perks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 11px; background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F3EFE6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.perks b { color: var(--onyx); }
/* ---------- Problem, features, process, FAQ ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mail { background: var(--paper); border: 1px solid var(--line-light); border-radius: 22px; padding: 24px; display: grid; gap: 14px; min-width: 0; }
.mail-top { display: flex; align-items: center; gap: 12px; }
.av { width: 44px; height: 44px; border-radius: 22px; background: var(--onyx); color: var(--ivory); display: grid; place-items: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.mail-top b { display: block; font-weight: 600; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; padding: 4px 9px; border-radius: 10px; background: var(--onyx); color: var(--ivory); }
.mail p { font-size: 18px; }
.stale { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--stone); border-top: 1px dashed var(--line-light); padding-top: 14px; }
.stale strong { color: #B4482F; font-weight: 500; }
.problem-foot { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.problem-foot .big-quote { font-family: var(--display); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; color: var(--onyx); }
.problem-foot .big-quote em { color: var(--cobalt); }
.problem-foot .txt { display: grid; gap: 16px; font-size: 18px; color: #4A4842; }

.feat { background: var(--onyx); color: var(--ivory); }
.feat .sec-head .eyebrow { color: var(--cobalt-light); }
.feat .sec-head p { color: rgba(243, 239, 230, .75); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 24px; overflow: hidden; }
.fcard { background: var(--onyx); padding: 30px 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.fcard .ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(47, 85, 255, .16); border: 1px solid rgba(143, 166, 255, .35); display: grid; place-items: center; }
.fcard h3 { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.fcard p { color: rgba(243, 239, 230, .72); }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: st; }
.pstep { border-top: 2px solid var(--cobalt); padding-top: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.pstep .k { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--cobalt); text-transform: uppercase; }
.pstep h3 { font-family: var(--display); font-size: 28px; line-height: 1.05; }
.pstep p { color: #4A4842; }
.you { margin-top: 48px; padding: 26px 28px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line-light); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.you b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--cobalt); }
.you p { color: #4A4842; max-width: 46em; }

.faq { background: var(--paper); border-top: 1px solid var(--line-light); }
.faq-list { display: grid; gap: 12px; max-width: 860px; }
details { background: #fff; border: 1px solid var(--line-light); border-radius: 18px; padding: 0 24px; }
summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 26px/1 var(--body); color: var(--cobalt); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 20px; color: #4A4842; max-width: 60em; }
footer { background: var(--onyx); color: rgba(243, 239, 230, .6); padding-block: 34px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Phones ---------- */
@media (max-width: 820px) {
  .problem-grid, .feat-grid, .process { grid-template-columns: minmax(0, 1fr); }
  .problem-foot { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .beat { left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); width: auto; top: calc(88px + env(safe-area-inset-top, 0px)); transform: none; gap: 14px; }
  .beat h1 { font-size: clamp(38px, 10vw, 52px); }
  .beat h2 { font-size: clamp(30px, 8vw, 42px); }
  .beat p { font-size: 16px; }
  .beat .cta-row { display: none; }
  .system { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: auto; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; padding: 12px; }
  .cols { gap: 6px; }
  .slotlist { gap: 6px; }
  .ph { height: 38px; }
  .col-h { font-size: 9.5px; letter-spacing: .06em; }
  .tile { padding: 0 6px 0 7px; }
  .tile .tg { font-size: 8px; letter-spacing: .06em; }
  .tile .tx { font-size: 10.5px; }
  .tile em { width: 15px; height: 15px; }
  .hint { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .book-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  section.light { padding-block: 80px; }
  .nav .sub, .nav .bar { display: none; }
}
@media (max-width: 420px) {
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Niche switcher (Fogászat | Esztétika) ---------- */
.nav-right { display: flex; align-items: center; gap: 12px; }
.switch { display: inline-flex; padding: 4px; border-radius: 22px; border: 1px solid var(--line-dark); background: rgba(7, 8, 11, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.switch a { height: 34px; padding: 0 14px; border-radius: 17px; display: inline-flex; align-items: center; font: 500 14px/1 var(--body); color: rgba(243, 239, 230, .75); text-decoration: none; white-space: nowrap; }
.switch a[aria-current="page"] { background: var(--ivory); color: var(--onyx); }
.switch a:not([aria-current]):hover { color: var(--ivory); }
.nav.light .switch { border-color: var(--line-light); background: rgba(255, 255, 255, .6); }
.nav.light .switch a { color: #4A4842; }
.nav.light .switch a[aria-current="page"] { background: var(--onyx); color: var(--ivory); }
.nav .btn .short { display: none; }

/* ---------- "Mi az a Pentaix?" summary band ---------- */
.about { background: var(--paper); border-bottom: 1px solid var(--line-light); padding-block: 72px; }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.about h2 { font-family: var(--display); font-size: clamp(36px, 4.2vw, 54px); line-height: 1; letter-spacing: -.015em; }
.about .eyebrow { color: var(--cobalt); display: block; margin-bottom: 16px; }
.about p { font-size: 20px; line-height: 1.5; color: #2E2C28; }
.about ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.about li { display: flex; gap: 12px; color: #4A4842; }
.about li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 4px; background: var(--cobalt); flex-shrink: 0; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .nav .btn .long { display: none; }
  .nav .btn .short { display: inline; }
  .switch a { padding: 0 11px; font-size: 13px; height: 32px; }
  .nav-right { gap: 8px; }
}
@media (max-width: 380px) {
  .nav .btn { display: none; }
}

