/* Fatima Software — pricing, promotions and form additions. Uses the site's :root tokens. */
#pricing { padding: 88px 0; border-top: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 12px 32px -18px rgba(29, 78, 158, .45); }
.price-card .badge { position: absolute; top: -11px; left: 22px; background: var(--accent); color: var(--on-accent); font: 500 12px/1 var(--font-mono); letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; }
.price-card h3 { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; margin: 0 0 8px; }
.price-card .price { font: 600 var(--step-2)/1 var(--font-body); margin: 4px 0 12px; color: var(--ink); }
.price-card .price small { font-size: var(--step--1); font-weight: 400; color: var(--muted); }
.price-card .desc { color: var(--muted); margin: 0 0 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.price-card li { padding-left: 22px; position: relative; font-size: var(--step--1); }
.price-card li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.price-card .promo-hint { font-size: var(--step--1); background: var(--gold-soft); color: var(--ink); border-radius: 8px; padding: 8px 10px; margin: 0 0 16px; }
.price-card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.price-card .actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
.pricing-note { margin-top: 18px; color: var(--muted); font-size: var(--step--1); }

#promotions { margin-top: 48px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
#promotions h3 { font-family: var(--font-display); font-size: var(--step-2); margin: 0 0 6px; }
#promotions > div > p { color: var(--muted); margin: 0 0 16px; }
.promo-list { display: grid; gap: 12px; }
.promo { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px dashed var(--gold); border-radius: 10px; padding: 12px 14px; }
.promo .code { font: 600 14px/1 var(--font-mono); letter-spacing: .06em; color: var(--accent); background: var(--gold-soft); border: 0; border-radius: 6px; padding: 10px 12px; cursor: pointer; min-width: 112px; }
.promo .code.copied { color: var(--ink); }
.promo b { display: block; }
.promo span { color: var(--muted); font-size: var(--step--1); }
#subscribe label { display: block; font-weight: 500; margin-bottom: 8px; }
#subscribe .row { display: flex; gap: 8px; }
#subscribe input[type="email"] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
#subscribe-status { min-height: 1.5em; margin-top: 8px; font-size: var(--step--1); color: var(--muted); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.send-status { margin: 12px 0 0; font-size: var(--step--1); min-height: 1.2em; }
.send-status.ok { color: #1f7a4d; }
.send-status.err { color: #a33; }

@media (prefers-color-scheme: dark) {
  .send-status.ok { color: #5cc98f; }
  .send-status.err { color: #f08a8a; }
}
@media (max-width: 760px) {
  #pricing { padding: 64px 0; }
  #promotions { grid-template-columns: 1fr; padding: 22px 16px; }
  #subscribe .row { flex-direction: column; }
}

/* Keep section titles clear of the sticky header when jumping to anchors */
section[id] { scroll-margin-top: 90px; }
@media (max-width: 760px) { section[id] { scroll-margin-top: 150px; } }


/* ---------- "How a project runs" — interactive wheel ---------- */
.pipeline.is-wheel { display: none; }
.proc-wheel { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 8px; }
.pw-stage { display: grid; justify-items: center; gap: 14px; }
.pw-dial { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; user-select: none; -webkit-user-select: none; }
.pw-svg { width: 100%; height: 100%; display: block; overflow: visible; cursor: grab; }
.pw-dial.is-dragging .pw-svg { cursor: grabbing; }
.pw-rim { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.pw-rot { transform-origin: 0 0; }
.pw-seg { cursor: pointer; outline: none; }
.pw-seg > path { fill: var(--surface); stroke: var(--line); stroke-width: 1; transition: fill .3s ease, transform .3s ease; transform-origin: 0 0; }
.pw-seg:hover > path { fill: var(--accent-soft); }
.pw-seg.is-done > path { fill: var(--gold-soft); }
.pw-seg.is-active > path { fill: var(--accent); stroke: var(--accent); transform: scale(1.035); }
.pw-seg:focus-visible > path { stroke: var(--gold); stroke-width: 3; }
.pw-ico { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pw-n { font: 500 13px var(--font-mono); fill: var(--gold); text-anchor: middle; }
.pw-e { font: 600 10.5px var(--font-mono); letter-spacing: .06em; fill: var(--accent); text-anchor: middle; }
.pw-seg.is-active .pw-ico { stroke: var(--on-accent); }
.pw-seg.is-active .pw-n, .pw-seg.is-active .pw-e { fill: var(--on-accent); }
.pw-pointer { fill: var(--gold); }
.pw-center { position: absolute; inset: 31%; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-content: center; text-align: center; gap: 4px; padding: 8px; pointer-events: none; box-shadow: inset 0 0 0 6px var(--surface); }
.pw-c-n { font: 500 .72rem/1 var(--font-mono); color: var(--gold); }
.pw-c-e { font: 600 .68rem/1 var(--font-mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.pw-c-t { font: 600 var(--step-1)/1.15 var(--font-display); color: var(--ink); }
.pw-hint { font-size: .66rem; color: var(--muted); margin-top: 2px; }
.pw-controls { display: flex; align-items: center; gap: 14px; }
.pw-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: 600 1.05rem/1 var(--font-body); cursor: pointer; }
.pw-arrow:hover { border-color: var(--accent); }
.pw-dots { display: flex; gap: 8px; }
.pw-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: transparent; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.pw-dots button.done { background: var(--gold-soft); }
.pw-dots button.on { background: var(--gold); transform: scale(1.3); }

.proc-wheel .stage-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 24px; }
.stage-panel.sp-anim { animation: sp-in .35s ease; }
@keyframes sp-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.stage-panel .sp-head { display: flex; gap: 12px; align-items: baseline; }
.stage-panel .sp-num { font: 500 var(--step--1)/1 var(--font-mono); color: var(--gold); }
.stage-panel .sp-env { font: 600 .72rem/1 var(--font-mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.stage-panel h3 { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.05; margin: 10px 0 8px; }
.stage-panel .sp-lede { color: var(--muted); margin: 0 0 20px; max-width: 58ch; }
.stage-panel .sp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stage-panel .sp-facts > div { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.stage-panel small { display: block; font: 500 .7rem/1.2 var(--font-mono); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.stage-panel b { font-weight: 600; }
.stage-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.stage-panel li { padding-left: 22px; position: relative; }
.stage-panel li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.stage-panel .sp-gate { margin: 18px 0 0; padding: 10px 14px; background: var(--gold-soft); border-radius: 8px; font-size: var(--step--1); }
.stage-panel .sp-gate span { color: var(--gold); font-weight: 700; margin-right: 4px; }
.stage-panel .sp-cta { margin-top: 18px; }

@media (max-width: 900px) {
  .proc-wheel { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pw-dial { max-width: 340px; }
}
@media (max-width: 560px) {
  .pw-dial { max-width: 300px; }
  .pw-c-t { font-size: 1.05rem; }
  .pw-hint { display: none; }
  .proc-wheel .stage-panel { padding: 20px 16px; }
  .stage-panel h3 { font-size: var(--step-2); }
  .stage-panel .sp-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .stage-panel.sp-anim { animation: none; }
  .pw-seg > path { transition: none; }
}

/* ---------- Language switch + links on homepage ---------- */
.lang-switch { font: 600 .72rem/1 var(--font-mono) !important; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px !important; }
.lang-switch:hover { border-color: var(--accent); }
.svc-link { color: inherit; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s ease; }
.svc-link:hover, .svc-link:focus-visible { background-size: 100% 2px; color: var(--accent); }
.svc-link::after { content: " →"; color: var(--gold); font-weight: 400; opacity: 0; transition: opacity .2s ease; }
.svc-link:hover::after { opacity: 1; }

/* ---------- Service / case-study pages ---------- */
.subpage main section { border-top: 0; }
.page-hero { padding: 56px 0 32px; }
.page-hero h1 { font: 600 var(--step-4)/1.05 var(--font-display); margin: 10px 0 14px; max-width: 22ch; }
.page-hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; margin: 0; }
.page-hero .note { margin-top: 12px; font-size: var(--step--1); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font: 500 .75rem/1.4 var(--font-mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--accent); text-decoration: none; }
.page-body { padding: 8px 0 64px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 48px; align-items: start; }
.col-main h2 { font: 600 var(--step-2)/1.15 var(--font-display); margin: 34px 0 14px; }
.col-main h2:first-child { margin-top: 0; }
.col-main p { color: var(--ink); max-width: 68ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.steps li::before { content: counter(st, decimal-leading-zero); grid-row: span 2; font: 500 var(--step--1)/1 var(--font-mono); color: var(--gold); }
.steps b { font-weight: 600; }
.steps span { color: var(--muted); font-size: var(--step--1); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font: 500 1.2rem/1 var(--font-mono); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.col-side { display: grid; gap: 18px; position: sticky; top: 96px; }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; }
.col-side small { display: block; font: 500 .7rem/1.2 var(--font-mono); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.price-box > b { font: 600 var(--step-2)/1.15 var(--font-body); }
.price-box > span { color: var(--muted); font-size: var(--step--1); }
.pb-actions { display: grid; gap: 8px; margin-top: 12px; }
.pb-actions .btn { justify-content: center; }
.price-box .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.price-box .fact b { display: block; font: 600 var(--step-2)/1.1 var(--font-display); color: var(--accent); }
.price-box .fact span { font-size: .78rem; color: var(--muted); }
.related a { display: grid; gap: 4px; margin-top: 6px; background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.related a span { color: var(--accent); font-size: var(--step--1); font-weight: 600; }
.others .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.others a.tag { text-decoration: none; }
.others a.tag:hover { border-color: var(--accent); color: var(--accent); }
.cta-box { padding: 0 0 72px; }
.cta-inner { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px; align-items: center; }
.cta-inner h2 { font: 600 var(--step-3)/1.05 var(--font-display); margin: 0 0 8px; color: inherit; }
.cta-inner p { margin: 0; opacity: .88; max-width: 56ch; }
.cta-actions { display: grid; gap: 10px; }
.cta-inner .btn.primary { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); justify-content: center; }
.cta-inner .btn.ghost { color: var(--on-accent); border-color: currentColor; justify-content: center; }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.hub-card { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .2s ease; }
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hub-card h2 { font: 600 var(--step-2)/1.15 var(--font-display); margin: 0; }
.hub-card p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.hub-card small { font: 500 .7rem/1.2 var(--font-mono); color: var(--gold); letter-spacing: .05em; text-transform: uppercase; }
.hub-meta { font-weight: 600; font-size: var(--step--1); }
.hub-go { color: var(--accent); font-weight: 600; font-size: var(--step--1); }
.hub-h { font: 600 var(--step-3)/1.1 var(--font-display); margin: 48px 0 18px; }
@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .col-side { position: static; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .page-hero { padding: 36px 0 20px; }
  .cta-inner { padding: 24px 18px; }
}
