/* ═══════════════════════════════════════════════════════
   EMERGY AI OPS: inner pages (services, about, privacy, accessibility).
   Loaded after site.css and brief.css. Generated pages only (tools/build_pages.py).
   Logical properties throughout, so the Hebrew twins mirror without extra rules.
   ═══════════════════════════════════════════════════════ */

/* ── Hero ── */
/* header is not a section, so it carries its own side gutter */
.page-hero {
    padding: 148px 48px 72px; position: relative; overflow: hidden;
    background: linear-gradient(180deg, #050A14 0%, #071020 100%);
    border-bottom: 1px solid var(--line-soft);
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(139, 213, 255, 0.13) 1px, transparent 1.2px); background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 10%, transparent 70%);
}
.page-hero::after {
    content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%); width: 80%; height: 70%; pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.16), transparent 60%);
}
.page-hero-grid {
    position: relative; z-index: 1; max-width: var(--width-wide); margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: start;
}
/* top-aligned (not centered), so a web font swapping in on one side cannot move the other side */
.page-hero-grid > aside, .page-hero-grid > .portrait { margin-top: 38px; }
.page-hero-grid.solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.crumbs a { color: var(--dim); text-decoration: none; transition: color 0.3s ease; padding: 7px 0; }
.crumbs a:hover { color: var(--sky); }
.crumbs .sep { opacity: 0.6; }
.page-h1 {
    font-family: var(--grotesk); font-size: clamp(34px, 4.8vw, 58px); font-weight: 600;
    letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; margin-bottom: 22px;
}
.page-h1.long { font-size: clamp(32px, 4vw, 48px); }
.page-h1 em {
    font-style: normal; background: linear-gradient(92deg, #FFFFFF 0%, var(--sky) 55%, var(--cyan) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-lede { font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); line-height: 1.75; max-width: 640px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* At a glance */
.glance { padding: 28px 28px 24px; }
.glance.card:hover { transform: none; }
.glance-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.glance dl { display: grid; gap: 0; }
.glance div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.glance div:first-child { border-top: 0; padding-top: 4px; }
.glance dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.glance dd { font-size: 14.5px; color: var(--text); line-height: 1.6; }
.portrait { display: flex; justify-content: center; }
.portrait img { width: min(300px, 100%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(56, 189, 248, 0.35); }

/* ── Sections ── */
.pg { padding-top: clamp(64px, 7.5vw, 96px); padding-bottom: clamp(64px, 7.5vw, 96px); position: relative; }
.pg.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pg-inner { max-width: var(--width-wide); margin: 0 auto; }
.pg-head { max-width: 760px; margin-bottom: 40px; }
.pg-head .section-head { margin-bottom: 18px; }
.pg-title { font-family: var(--grotesk); font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -0.016em; line-height: 1.15; color: var(--text); }
.pg-title em { font-style: normal; background: linear-gradient(92deg, #FFFFFF 0%, var(--sky) 60%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-intro { color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.8; margin-top: 14px; }
.pg-intro + .pg-intro { margin-top: 10px; }

/* Cards (situations) */
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pg-card { padding: 28px 26px 26px; }
.pg-card h3 { font-family: var(--grotesk); font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; color: var(--text); margin-bottom: 10px; }
.pg-card p { font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.pg-card .num { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--sky); margin-bottom: 14px; }
.pg-cards .card:hover { transform: none; }

/* Check list */
.pg-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.pg-list.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.pg-list li { position: relative; padding-inline-start: 30px; font-size: 15.5px; line-height: 1.7; color: #D6E2F5; }
.pg-list li::before {
    content: ''; position: absolute; inset-inline-start: 2px; top: 0.5em; width: 12px; height: 7px;
    border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg);
}
.pg-list li strong { color: var(--text); font-weight: 600; }

/* Not a fit */
.pg-not li::before { width: 12px; height: 12px; top: 0.42em; border: 0; transform: none;
    background: linear-gradient(45deg, transparent 44%, #F7B955 44%, #F7B955 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #F7B955 44%, #F7B955 56%, transparent 56%); }

/* Example box */
.pg-example { margin-top: 34px; padding: 24px 26px; border: 1px dashed var(--line-strong); border-radius: 16px; background: rgba(56, 189, 248, 0.04); max-width: 900px; }
.pg-k { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
.pg-example p { color: #D6E2F5; font-size: 15px; line-height: 1.8; }

/* Steps */
.pg-steps { list-style: none; display: grid; gap: 12px; max-width: 920px; }
.pg-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(90deg, rgba(14, 30, 52, 0.75), rgba(8, 17, 32, 0.6)); }
.pg-step .n { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--grotesk); font-size: 16px; font-weight: 600; color: #fff; border: 1px solid var(--cyan); background: rgba(56, 189, 248, 0.14); box-shadow: 0 0 18px rgba(56, 189, 248, 0.25); }
.pg-step h3 { font-family: var(--grotesk); font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pg-step h3 .stage { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sky); padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }
.pg-step p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.pg-note { margin-top: 22px; font-size: 14.5px; color: var(--dim); max-width: 760px; line-height: 1.75; }

/* Two columns */
.pg-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pg-col { padding: 30px 28px 28px; }
.pg-col h3 { font-family: var(--grotesk); font-size: 20px; font-weight: 600; margin-bottom: 18px; color: var(--text); }
.pg-col .pg-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pg-cols .card:hover, .pg-proof .card:hover, .pg-qa .card:hover { transform: none; }

/* Proof */
.pg-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pg-proof .card { padding: 28px 26px 26px; display: flex; flex-direction: column; }
.pg-proof .card.wide { grid-column: 1 / -1; }
.pg-proof .card.wide p { max-width: 900px; }
.pg-proof h3 { font-family: var(--grotesk); font-size: 18.5px; font-weight: 600; line-height: 1.35; color: var(--text); margin-bottom: 10px; }
.pg-proof p { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.pg-proof p + p { margin-top: 10px; }
.pg-proof .tag { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); padding: 4px 9px; border: 1px solid rgba(52, 211, 184, 0.35); border-radius: 6px; background: rgba(52, 211, 184, 0.06); margin-bottom: 16px; }
.pg-proof .more { margin-top: auto; padding-top: 16px; }
.text-link { background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); text-decoration: none; }
.text-link:hover { color: var(--text); }

/* Questions */
.pg-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pg-qa .card { padding: 26px 26px 24px; }
.pg-qa h3 { font-family: var(--grotesk); font-size: 17.5px; font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 10px; }
.pg-qa p { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.pg-qa p + p { margin-top: 8px; }

/* Next step */
.pg-next { text-align: center; overflow: hidden; }
.pg-next::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 90%; height: 100%; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56, 189, 248, 0.14), transparent 70%); }
.pg-next .pg-inner { position: relative; max-width: 760px; }
.pg-next .pg-head { margin: 0 auto 30px; }
.pg-next .page-actions { justify-content: center; }
.pg-next-list { list-style: none; display: grid; gap: 10px; text-align: start; max-width: 600px; margin: 0 auto 6px; }
.pg-next-list li { position: relative; padding-inline-start: 30px; color: #D6E2F5; font-size: 15px; line-height: 1.7; }
.pg-next-list li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); transform: rotate(45deg); box-shadow: 0 0 10px var(--glow); }
.pg-fine { margin-top: 22px; font-size: 13.5px; color: var(--dim); line-height: 1.8; }

/* Related pages */
.pg-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pg-related a { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; text-decoration: none; color: inherit; }
.pg-related .t { font-family: var(--grotesk); font-size: 17px; font-weight: 600; color: var(--text); }
.pg-related .d { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.pg-related .go { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }

/* Related guides (service pages, inside Questions; tools/site_build.py fills it from blog/posts.json) */
.pg-guides { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line-soft); }
.pg-guides-h { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sky); }
.pg-guides-intro { margin: 10px 0 22px; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 760px; }
.pg-guides-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pg-guide { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px; text-decoration: none; color: inherit; }
.pg-guide .tag { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); padding: 4px 9px; border: 1px solid rgba(52, 211, 184, 0.35); border-radius: 6px; background: rgba(52, 211, 184, 0.06); }
.pg-guide .t { font-family: var(--grotesk); font-size: 17.5px; font-weight: 600; line-height: 1.35; color: var(--text); }
.pg-guide .d { font-size: 14px; line-height: 1.7; color: var(--muted); }
.pg-guide .go { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.pg-guides-all { margin-top: 18px; }

/* Principles (about) */
.pg-principles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; counter-reset: pr; }
.pg-principles li { padding: 24px 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(12, 26, 46, 0.55); }
.pg-principles h3 { font-family: var(--grotesk); font-size: 17.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.pg-principles h3::before { counter-increment: pr; content: '0' counter(pr); display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--sky); margin-bottom: 10px; }
.pg-principles p { font-size: 14.5px; line-height: 1.75; color: var(--muted); }

/* Legal pages: plain reading column */
.legal { max-width: 760px; margin: 0 auto; font-size: 16.5px; line-height: 1.85; color: #D6E2F5; }
.legal h2 { font-family: var(--grotesk); font-size: clamp(21px, 2.4vw, 25px); font-weight: 600; letter-spacing: -0.012em; color: var(--text); margin: 40px 0 12px; line-height: 1.3; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 18px; padding-inline-start: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code { font-family: var(--mono); font-size: 0.88em; color: var(--sky); padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.legal-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-top: 18px; }

/* Inline links in page copy (the <a href> inside tools/pages_content.py strings, legal pages included).
   Class-less links only, so buttons, .text-link and card links keep their own look. */
:where(.page-lede, .glance dd, .pg-intro, .pg-list li, .pg-example p, .pg-card p, .pg-step p, .pg-note,
    .pg-proof p, .pg-qa p, .pg-next-list li, .pg-fine, .pg-principles p, .legal) a:not([class]) {
    color: var(--sky); text-decoration: underline; text-decoration-color: rgba(139, 213, 255, 0.4);
    text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
:where(.page-lede, .glance dd, .pg-intro, .pg-list li, .pg-example p, .pg-card p, .pg-step p, .pg-note,
    .pg-proof p, .pg-qa p, .pg-next-list li, .pg-fine, .pg-principles p, .legal) a:not([class]):hover {
    color: var(--text); text-decoration-color: var(--sky);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .page-hero-grid > aside, .page-hero-grid > .portrait { margin-top: 0; }
    .glance { max-width: 620px; }
    .portrait { justify-content: flex-start; }
    .pg-cards, .pg-proof { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
    .pg-related, .pg-guides-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .page-hero { padding: 112px 22px 56px; }
    .pg-list, .pg-cols, .pg-qa, .pg-principles { grid-template-columns: minmax(0, 1fr); }
    .pg-step { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
    .glance div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .pg-related, .pg-guides-list { grid-template-columns: minmax(0, 1fr); }
    .page-actions .btn-primary, .page-actions .btn-whatsapp, .page-actions .btn-ghost { width: 100%; max-width: 360px; }
    .pg-next .page-actions { flex-direction: column; align-items: center; }
    .portrait img { width: min(220px, 70vw); }
}
@media (prefers-reduced-motion: reduce) {
    .nav-sub, .nav-sub-toggle::before { transition: none; }
}
