/* ctacard (optira-web 29-11): one closing card family, light first (src/ctacard.mjs) */
.cc{padding:48px 0 112px}
.cc-c{position:relative;overflow:hidden;display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:center;min-height:400px;padding:72px 0 72px 72px;border-radius:32px;
  background:radial-gradient(700px 360px at 100% 0,color-mix(in srgb,var(--teal,#14A3A3) 14%,transparent),transparent 62%),linear-gradient(180deg,#F6FAFB,#EDF4F6);
  border:1px solid color-mix(in srgb,#0D3A51 9%,transparent);box-shadow:0 40px 80px -48px rgba(13,58,81,.35)}
[dir=rtl] .cc-c{padding:72px 72px 72px 0}
.cc-t{position:relative;z-index:1}
.cc-t h2{font-size:clamp(28px,3.2vw,44px);line-height:1.1;letter-spacing:-.02em;font-weight:600;color:#0D3A51;margin:0}
.cc-t p{margin:16px 0 0;font-size:18px;line-height:1.55;color:#4A5E69;max-width:520px}
.cc-b.cta2{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px 14px;margin-top:32px}
.cc-b .cc-d{display:inline-flex;align-items:center;gap:6px;font-size:16px;line-height:1.4;font-weight:600;color:#0D3A51;text-decoration:none;padding:0 6px}
.cc-b .cc-d:hover{text-decoration:underline}
[dir=rtl] .cc-b .arw{transform:scaleX(-1)}
/* wall: columns running from the top of the card downwards, leaning together, cut by the card edge */
.cc-w{position:relative;align-self:stretch;margin-block:-72px;min-height:544px;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%);mask-image:linear-gradient(90deg,transparent 0,#000 14%)}
[dir=rtl] .cc-w{-webkit-mask-image:linear-gradient(270deg,transparent 0,#000 14%);mask-image:linear-gradient(270deg,transparent 0,#000 14%)}
.cc-wi{position:absolute;top:-34%;bottom:-34%;inset-inline-start:12%;display:flex;gap:24px;transform:rotate(-10deg)}
[dir=rtl] .cc-wi{transform:rotate(10deg)}
.cc-col{display:flex;flex-direction:column;gap:24px}
.cc-col:nth-child(2){margin-top:-58px}.cc-col:nth-child(3){margin-top:-18px}.cc-col:nth-child(4){margin-top:-76px}
.cc-tile{width:96px;height:96px;flex:none;display:grid;place-items:center;border-radius:24px;background:rgba(255,255,255,.86);
  border:1px solid rgba(13,58,81,.08);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 14px 28px -16px rgba(13,58,81,.32)}
.cc-tile svg{width:44px;height:44px;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cc-tile .mi-l{stroke:#0D3A51}.cc-tile .mi-a{stroke:var(--teal,#14A3A3)}
/* shot: the app's own screen in a white frame, bleeding at the bottom edge */
.cc-s{align-self:end;margin-block-end:-72px;transform:translateX(10%) rotate(-2deg);border-radius:16px 16px 0 0;overflow:hidden;
  border:6px solid #fff;border-bottom:0;box-shadow:0 30px 60px -24px rgba(13,58,81,.38)}
[dir=rtl] .cc-s{transform:translateX(-10%) rotate(2deg)}
.cc-s img{display:block;width:140%;max-width:none;height:auto}
/* device: a whole screen in a light browser frame, upright, readable (industry pages) */
.cc-device{grid-template-columns:1fr 1.15fr;padding-inline-end:48px}
[dir=rtl] .cc-device{padding-inline-end:72px;padding-inline-start:48px}
.cc-dv{align-self:center;border-radius:14px;overflow:hidden;background:#fff;border:1px solid rgba(13,58,81,.12);box-shadow:0 30px 60px -28px rgba(13,58,81,.38)}
.cc-dv-b{display:flex;gap:6px;padding:10px 12px;border-bottom:1px solid rgba(13,58,81,.08);background:#F7FAFB}
.cc-dv-b i{width:9px;height:9px;border-radius:50%;background:rgba(13,58,81,.18)}
.cc-dv img{display:block;width:100%;height:auto}
@media (max-width:900px){
  .cc{padding:32px 0 80px}
  .cc-c,[dir=rtl] .cc-c,.cc-device,[dir=rtl] .cc-device{grid-template-columns:1fr;padding:40px 24px 0;border-radius:24px;min-height:0}
  .cc-w{margin:8px -24px 0;min-height:260px;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 18%);mask-image:linear-gradient(180deg,transparent 0,#000 18%)}
  [dir=rtl] .cc-w{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 18%);mask-image:linear-gradient(180deg,transparent 0,#000 18%)}
  .cc-wi{top:-40%;bottom:-60%;inset-inline-start:-6%;gap:16px}
  .cc-col{gap:16px}.cc-col:nth-child(2){margin-top:-40px}.cc-col:nth-child(3){margin-top:-12px}.cc-col:nth-child(4){margin-top:-52px}
  .cc-tile{width:72px;height:72px;border-radius:18px}.cc-tile svg{width:34px;height:34px}
  /* coord 12: never a whole desktop screen shrunk to phone width. The screen keeps its native scale (the 1020 px -m
     capture = 1020 CSS px) and the card shows its top-start corner, bleeding off the edge, so the words stay readable */
  .cc-s,[dir=rtl] .cc-s{margin:8px -24px 0;transform:none;border-radius:0;border:0;height:320px;overflow:hidden}
  .cc-s img{width:1020px;max-width:none}
  .cc-dv{margin:8px -24px 0;border-radius:0;border-inline:0;border-bottom:0;height:340px;overflow:hidden}
  .cc-dv img{width:1020px;max-width:none}
  .cc-b .btn{flex:1 1 100%;justify-content:center}.cc-b .cc-d{flex:1 1 100%;justify-content:center;padding:6px}
}
/* B42 (website-app 30-11): dark theme = dark card, theme colours */
[data-theme=dark] .cc-c{background:radial-gradient(700px 360px at 100% 0,color-mix(in srgb,var(--teal) 16%,transparent),transparent 62%),linear-gradient(180deg,var(--card),var(--bg2));border-color:var(--line);box-shadow:var(--shadow)}
[data-theme=dark] .cc-t h2{color:var(--ink)}[data-theme=dark] .cc-t p{color:var(--txt)}[data-theme=dark] .cc-b .cc-d{color:var(--ink)}
[data-theme=dark] .cc-tile{background:color-mix(in srgb,var(--card) 82%,#fff);border-color:var(--line);box-shadow:0 14px 28px -16px rgba(0,0,0,.6)}[data-theme=dark] .cc-tile .mi-l{stroke:var(--ink)}
[data-theme=dark] .cc-s{border-color:var(--bg2)}
.cc .btn-p,.cc .btn-p:hover,.cc .btn-p:focus-visible{box-shadow:none}   /* B43c (coord 12): flat like the other two */
.cc .btn-p,.cc .btn-p:hover,.cc .btn-p:focus-visible{box-shadow:none}   /* B43c (coord 12): flat like the other two */
/* B44 (Dennis 30-11): flat, the page body colour, no gradient, no shadow */
.cc-c,[data-theme=dark] .cc-c{background:var(--bg);box-shadow:none;border:1px solid transparent}
.cc-tile svg{transition:opacity .36s ease,transform .36s ease}.cc-tile.cc-sw svg{opacity:0;transform:scale(.82)}@media (prefers-reduced-motion:reduce){.cc-tile svg{transition:none}}
/* flat card: the wall fades out on every open edge (no card frame cuts it any more) */
.cc-w{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%),linear-gradient(180deg,transparent 0,#000 14%,#000 86%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 14%),linear-gradient(180deg,transparent 0,#000 14%,#000 86%,transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect}
[dir=rtl] .cc-w{-webkit-mask-image:linear-gradient(270deg,transparent 0,#000 14%),linear-gradient(180deg,transparent 0,#000 14%,#000 86%,transparent 100%);mask-image:linear-gradient(270deg,transparent 0,#000 14%),linear-gradient(180deg,transparent 0,#000 14%,#000 86%,transparent 100%)}
@media (max-width:900px){.cc-w,[dir=rtl] .cc-w{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 76%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 76%,transparent 100%);-webkit-mask-composite:source-over;mask-composite:add}}

/* CTA v1 (Dennis 01-12 via coord 13): text side 55 %, bigger heading, proof ticks, the wall wholly inside the band */
.cc-c.cc-wall{grid-template-columns:55fr 45fr;gap:40px;min-height:0;padding:56px 0 56px 72px}
[dir=rtl] .cc-c.cc-wall{padding:56px 72px 56px 0}
.cc-t h2{font-size:clamp(32px,3.8vw,54px);line-height:1.08;letter-spacing:-.025em}
.cc-t p{font-size:20px;line-height:1.5;margin-top:18px;max-width:560px}
.cc-pp{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:10px}
.cc-pp li{display:flex;align-items:center;gap:10px;font-size:17px;line-height:1.45;color:#0D3A51;font-weight:500}
.cc-pp svg{flex:none;color:var(--teal,#14A3A3)}
[data-theme=dark] .cc-pp li{color:var(--ink)}
.cc-b.cta2{margin-top:30px}
.cc-wall .cc-w,[dir=rtl] .cc-wall .cc-w{align-self:center;margin-block:0;min-height:0;height:480px;overflow:visible;-webkit-mask-image:none;mask-image:none}
.cc-wall .cc-wi{top:50%;bottom:auto;inset-inline-start:50%;gap:18px;transform:translate(-50%,-50%) rotate(-10deg)}
[dir=rtl] .cc-wall .cc-wi{transform:translate(50%,-50%) rotate(10deg)}
.cc-wall .cc-col{gap:18px}
.cc-wall .cc-col:nth-child(1){margin-top:60px}.cc-wall .cc-col:nth-child(2){margin-top:14px}.cc-wall .cc-col:nth-child(3){margin-top:46px}.cc-wall .cc-col:nth-child(4){margin-top:0}
.cc-wall .cc-col .cc-tile:nth-child(n+5){display:none}
.cc-wall .cc-tile{width:76px;height:76px;border-radius:20px}.cc-wall .cc-tile svg{width:36px;height:36px}
@media (max-width:900px){
  .cc-c.cc-wall,[dir=rtl] .cc-c.cc-wall{grid-template-columns:1fr;gap:8px;padding:36px 24px 28px}
  .cc-t h2{font-size:34px}
  .cc-t p{font-size:18px}
  .cc-pp li{font-size:16px}
  .cc-wall .cc-w,[dir=rtl] .cc-wall .cc-w{margin:8px 0 0;height:350px;-webkit-mask-image:none;mask-image:none}
  .cc-wall .cc-wi{gap:12px}.cc-wall .cc-col{gap:12px}
  .cc-wall .cc-col:nth-child(1){margin-top:44px}.cc-wall .cc-col:nth-child(2){margin-top:10px}.cc-wall .cc-col:nth-child(3){margin-top:34px}.cc-wall .cc-col:nth-child(4){margin-top:0}
  .cc-wall .cc-tile{width:56px;height:56px;border-radius:15px}.cc-wall .cc-tile svg{width:28px;height:28px}
}
/* C2 WALL INSIDE (coord 13 01-12, e2e AMBER 1): the approved CTA v1 mock keeps the wall smaller and whole inside the card at
   every width. Tile size follows the width band; the card gets an end padding so the leaning wall never touches the edge. */
section.cc .cc-c.cc-wall{padding-inline-end:56px}
section.cc .cc-wall .cc-w,[dir=rtl] section.cc .cc-wall .cc-w{height:480px;overflow:hidden}
section.cc .cc-wall .cc-wi{gap:14px}section.cc .cc-wall .cc-col{gap:14px}
section.cc .cc-wall .cc-tile{width:64px;height:64px;border-radius:17px}section.cc .cc-wall .cc-tile svg{width:30px;height:30px}
section.cc .cc-wall .cc-col:nth-child(1){margin-top:50px}section.cc .cc-wall .cc-col:nth-child(2){margin-top:12px}section.cc .cc-wall .cc-col:nth-child(3){margin-top:38px}section.cc .cc-wall .cc-col:nth-child(4){margin-top:0}
@media (min-width:901px) and (max-width:1199px){
  section.cc .cc-wall .cc-w,[dir=rtl] section.cc .cc-wall .cc-w{height:420px}
  section.cc .cc-wall .cc-wi{gap:12px}section.cc .cc-wall .cc-col{gap:12px}
  section.cc .cc-wall .cc-tile{width:54px;height:54px;border-radius:15px}section.cc .cc-wall .cc-tile svg{width:26px;height:26px}
  section.cc .cc-wall .cc-col:nth-child(1){margin-top:42px}section.cc .cc-wall .cc-col:nth-child(2){margin-top:10px}section.cc .cc-wall .cc-col:nth-child(3){margin-top:32px}
}
@media (max-width:900px){
  section.cc .cc-c.cc-wall,[dir=rtl] section.cc .cc-c.cc-wall{padding:36px 24px 28px}
  section.cc .cc-wall .cc-w,[dir=rtl] section.cc .cc-wall .cc-w{height:340px}
  section.cc .cc-wall .cc-wi{gap:10px}section.cc .cc-wall .cc-col{gap:10px}
  section.cc .cc-wall .cc-tile{width:44px;height:44px;border-radius:12px}section.cc .cc-wall .cc-tile svg{width:22px;height:22px}
  section.cc .cc-wall .cc-col:nth-child(1){margin-top:38px}section.cc .cc-wall .cc-col:nth-child(2){margin-top:8px}section.cc .cc-wall .cc-col:nth-child(3){margin-top:28px}
}
/* C2 FOCUS CROP (coord 13 01-12): phone card = the screen at native scale, window centred on the part chosen for that screen
   (--fx/--fy from data/cc_focus.json, clamped to the frame), the cut edges fade out (a crop edge, not a mask over content). */
@media (max-width:900px){
  section.cc .cc-s{container-type:inline-size;-webkit-mask-image:linear-gradient(to right,#000 84%,transparent),linear-gradient(to bottom,#000 80%,transparent);mask-image:linear-gradient(to right,#000 84%,transparent),linear-gradient(to bottom,#000 80%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
  [dir=rtl] section.cc .cc-s{-webkit-mask-image:linear-gradient(to left,#000 84%,transparent),linear-gradient(to bottom,#000 80%,transparent);mask-image:linear-gradient(to left,#000 84%,transparent),linear-gradient(to bottom,#000 80%,transparent)}
  section.cc .cc-s[style] img{margin-inline-start:clamp(calc(100cqw - 1020px),calc(50cqw - var(--fx) * 1px),0px);margin-top:clamp(-318px,calc(160px - var(--fy) * 1px),0px)}
}


/* optira-web 05-12: the device card (industry pages) uses the same phone focus crop + faded cut edges as .cc-s */
@media (max-width:900px){
  section.cc .cc-dv{container-type:inline-size;-webkit-mask-image:linear-gradient(to right,#000 84%,transparent),linear-gradient(to bottom,#000 80%,transparent);mask-image:linear-gradient(to right,#000 84%,transparent),linear-gradient(to bottom,#000 80%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
  [dir=rtl] section.cc .cc-dv{-webkit-mask-image:linear-gradient(to left,#000 84%,transparent),linear-gradient(to bottom,#000 80%,transparent);mask-image:linear-gradient(to left,#000 84%,transparent),linear-gradient(to bottom,#000 80%,transparent)}
  section.cc .cc-dv[style] img{margin-inline-start:clamp(calc(100cqw - 1020px),calc(50cqw - var(--fx) * 1px),0px);margin-top:clamp(-318px,calc(160px - var(--fy) * 1px),0px)}
}
