/* CyTix site. One design system for every inner page: a night-indigo band at the top and bottom
   (the world of the homepage), and a light paper body for reading. Phone first. RTL by default,
   the English pages set dir="ltr" on <html> and everything here uses logical properties. */
:root{
  --magenta:#d23cff; --violet:#7c3aed; --indigo:#4a1db0; --night:#0b0620; --night2:#1a0d45;
  --paper:#fbf7ff; --card:#ffffff; --ink:#1d1a24; --ink2:#4a4458; --line:#e6def5;
  --mint:#18b487; --amber:#e8a020;
  --on-dark:#fbf7ff; --on-dark-mute:rgba(251,247,255,.78);
  --head:"Rubik","Assistant",system-ui,sans-serif; --body:"Assistant","Heebo",system-ui,sans-serif;
  --r:18px; --ease:cubic-bezier(.2,.7,.2,1);
  --gut:16px; --max:1120px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:80px}
body{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.65 var(--body);overflow-x:hidden}
img,video{max-width:100%;height:auto;display:block}
h1,h2,h3{font-family:var(--head);line-height:1.15;margin:0;text-wrap:balance}
p{margin:0}
a{color:var(--violet)}
:focus-visible{outline:3px solid var(--magenta);outline-offset:3px;border-radius:4px}
.wrap{width:min(100% - 2*var(--gut),var(--max));margin-inline:auto}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* skip link, keyboard users land on the content */
.skip{position:absolute;inset-inline-start:12px;top:-60px;z-index:100;background:#fff;color:var(--indigo);font-weight:700;padding:10px 14px;border-radius:10px}
.skip:focus{top:12px}

/* ---------- header ---------- */
.top{position:sticky;top:0;z-index:50;background:rgba(11,6,32,.88);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);color:var(--on-dark)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px}
.brand{display:flex;align-items:center;gap:8px;font:900 21px/1 var(--head);color:#fff;text-decoration:none}
.brand img{height:32px;width:auto;display:block}
.menu-btn{display:inline-grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}
.menu-btn svg{width:22px;height:22px}
.nav{display:none;position:absolute;inset-inline:0;top:100%;background:var(--night);padding:8px var(--gut) 20px;border-top:1px solid rgba(255,255,255,.08)}
.nav.open{display:block}
.nav ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.nav a{display:block;color:var(--on-dark);text-decoration:none;font-weight:600;padding:12px 4px;border-radius:8px}
.nav a[aria-current="page"]{color:#fff;text-decoration:underline;text-decoration-color:var(--magenta);text-underline-offset:6px}
.nav .sub{padding-inline-start:14px;font-size:15.5px}
.nav .lang{margin-top:8px;font-size:15px;opacity:.85}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:700 16px/1 var(--body);border-radius:999px;padding:15px 24px;text-decoration:none;border:0;cursor:pointer}
.btn-go{background:linear-gradient(120deg,#b026d9,var(--violet));color:#fff;box-shadow:0 16px 36px -14px rgba(210,60,255,.7)}
.btn-ghost{background:transparent;color:inherit;text-decoration:underline;text-underline-offset:5px;padding-inline:6px}
.btn-light{background:#fff;color:var(--indigo)}
.top .btn-go{padding:11px 16px;font-size:14.5px;box-shadow:none}
.top-actions{display:flex;align-items:center;gap:8px}

/* ---------- page hero, the dark band ---------- */
.phero{position:relative;isolation:isolate;overflow:hidden;background:var(--night);color:var(--on-dark);padding:40px 0 48px}
.phero::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(60% 70% at 85% 10%,rgba(210,60,255,.35),transparent 70%),radial-gradient(70% 60% at 10% 100%,rgba(124,58,237,.45),transparent 70%)}
.phero .wrap{display:grid;gap:18px}
.crumbs{font-size:14px;color:var(--on-dark-mute)}
.crumbs a{color:var(--on-dark-mute);display:inline-block;padding:8px 0}
.kick{font:700 13px/1.3 var(--body);letter-spacing:.06em;color:#e9c9ff}
.phero h1{font-weight:900;font-size:clamp(32px,8.6vw,58px);letter-spacing:-.015em}
.phero h1 .h1-sub{display:block;margin-top:12px;font-size:max(.5em,18px);font-weight:700;line-height:1.25;color:#e9c9ff;letter-spacing:0}
.phero h1 em{font-style:normal;background:linear-gradient(100deg,#ffb4f4,var(--magenta) 40%,#a78bfa);-webkit-background-clip:text;background-clip:text;color:transparent}
.lede{font-size:18.5px;line-height:1.6;color:var(--on-dark-mute);max-width:62ch;font-weight:600}
.phero .ctas{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.phero figure{margin:8px 0 0}
.shot{border-radius:var(--r);box-shadow:0 30px 60px -30px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.08);background:#fff}

/* ---------- body sections ---------- */
.sec{padding:56px 0}
.sec + .sec{border-top:1px solid var(--line)}
.sec h2{font-size:clamp(26px,6vw,38px);font-weight:800;margin-bottom:14px}
.sec h3{font-size:20px;font-weight:700}
.sec .intro{font-size:18px;color:var(--ink2);max-width:64ch;margin-bottom:22px}
.prose{max-width:68ch}
.prose p + p{margin-top:14px}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:14px;counter-reset:s}
.steps li{counter-increment:s;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px 20px 20px 20px;display:grid;gap:6px;position:relative;padding-inline-start:64px}
.steps li::before{content:counter(s);position:absolute;inset-inline-start:18px;top:18px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font:800 16px/1 var(--head);color:#fff;background:linear-gradient(135deg,var(--magenta),var(--violet))}
.cards{display:grid;gap:14px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;display:grid;gap:8px;align-content:start}
.card p{color:var(--ink2)}
.not{background:#fff7e8;border:1px solid #f4d9a6;border-radius:var(--r);padding:20px 22px}
.not ul{margin:10px 0 0;padding-inline-start:20px;display:grid;gap:8px}
.figure{margin:0;display:grid;gap:10px}
.figure figcaption{font-size:15px;color:var(--ink2)}
.figure img{border-radius:var(--r);border:1px solid var(--line)}
.split{display:grid;gap:28px;align-items:center}
.ticks{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ticks li{position:relative;padding-inline-start:30px}
.ticks li::before{content:"";position:absolute;inset-inline-start:0;top:.45em;width:18px;height:18px;border-radius:50%;background:var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:#fff}
table{border-collapse:collapse;width:100%;min-width:560px;font-size:16px}
th,td{padding:14px 16px;text-align:start;border-bottom:1px solid var(--line);vertical-align:top}
thead th{background:#f4effc;font-family:var(--head);font-weight:700}
tbody tr:last-child td{border-bottom:0}
.related{display:grid;gap:12px}
.related a{display:block;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px 18px;text-decoration:none;color:var(--ink);font-weight:700}
.related a span{display:block;font-weight:400;color:var(--ink2);font-size:15px;margin-top:2px}
.related a:hover{border-color:var(--violet)}

/* ---------- FAQ, native details so every answer is in the HTML ---------- */
.faq{display:grid;gap:10px;max-width:820px}
.faq details{background:var(--card);border:1px solid var(--line);border-radius:14px}
.faq summary{cursor:pointer;list-style:none;padding:18px 20px;font:700 18px/1.4 var(--head);display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:400;font-size:24px;line-height:1;color:var(--violet);flex:0 0 auto}
.faq details[open] summary::after{content:"−"}
.faq details > div{padding:0 20px 18px;color:var(--ink2)}
.faq details > div p + p{margin-top:10px}

/* ---------- closing CTA band ---------- */
.cta-band{background:linear-gradient(135deg,var(--night2),var(--night));color:var(--on-dark);padding:56px 0;text-align:center}
.cta-band h2{font-size:clamp(28px,6.6vw,44px);font-weight:900;margin-bottom:10px}
.cta-band p{color:var(--on-dark-mute);font-size:18px;margin-bottom:22px}
.cta-band .fine{font-size:14.5px;margin:12px 0 0}

/* ---------- footer ---------- */
.foot{background:var(--night);color:var(--on-dark-mute);padding:44px 0 28px;font-size:15.5px}
.foot .cols{display:grid;gap:26px}
.foot h2{font:700 15px/1 var(--head);color:#fff;margin-bottom:12px}
.foot ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.foot a{color:var(--on-dark-mute);text-decoration:none;display:inline-block;padding:7px 0}
.foot ul{gap:0}
.foot a:hover{color:#fff;text-decoration:underline}
.foot .legal{margin-top:30px;padding-top:18px;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:space-between}

/* ---------- gallery (examples) ---------- */
.gal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gal figure{margin:0;display:grid;gap:8px;align-content:start}
.gal img,.gal video{border-radius:14px;border:1px solid var(--line);width:100%;background:#eee}
.gal figcaption{font-size:14.5px;color:var(--ink2);line-height:1.45}
.gal figcaption b{display:block;color:var(--ink);font-size:15px}

@media (min-width:760px){
  :root{--gut:28px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .related{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gal{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .foot .cols{grid-template-columns:2fr repeat(3,1fr)}
}
/* the full menu needs room for eight items in English too, so it opens only on wide screens */
@media (min-width:1240px){
  .menu-btn{display:none}
  .nav{display:block;position:static;background:none;padding:0;border:0}
  .nav ul{display:flex;align-items:center;gap:2px}
  .nav a{padding:8px 9px;font-size:15.5px;white-space:nowrap}
  .nav .sub,.nav .lang-li{display:none}
}
@media (min-width:1000px){
  .phero{padding:64px 0 72px}
  .phero .wrap.two{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:48px}
  .split{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px}
  .cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gal{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sec{padding:80px 0}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- third-party widgets ---------- */
/* UserWay sits bottom corner, not over the centre-left content (the live site's fix) */
.userway_buttons_wrapper{top:auto!important;bottom:20px!important}
/* the cookie notice: readable, buttons 44px, and the page makes room for it while it is open */
.cc-window{font-family:var(--body)!important;font-size:15px!important;direction:inherit}
.cc-window .cc-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.cc-window .cc-link{min-height:44px;display:inline-flex;align-items:center}
body.cc-open{padding-bottom:120px}
@media (min-width:760px){body.cc-open{padding-bottom:72px}}
/* while the cookie notice is open, the accessibility button waits above it */
body.cc-open .userway_buttons_wrapper{bottom:180px!important}
@media (min-width:760px){body.cc-open .userway_buttons_wrapper{bottom:96px!important}}

/* ---------- phone layout: things side by side, in proportion, and a shorter page ----------
   Everything below applies under 760px only, so tablets and desktops keep their layout.
   1. the hero holds the heading and a scaled down illustration on one screen
   2. card lists become a contained horizontal rail with snap and a peeking next card
   3. long paragraphs are clamped by /js/site.js with a "more" toggle; the full text stays in the HTML
   4. a slim call to action waits at the bottom, inside the thumb's reach */
@media (max-width:759px){
  body{font-size:16px;line-height:1.6}
  .sec{padding:36px 0}
  .sec h2{margin-bottom:10px}
  .sec .intro{font-size:16.5px;margin-bottom:16px}
  .btn{min-height:48px}
  .btn-ghost{min-height:44px}
  .phero{padding:20px 0 30px}
  .phero .wrap{gap:14px}
  .phero h1{font-size:clamp(28px,7.6vw,40px)}
  .phero h1 .h1-sub{font-size:max(.52em,17px);margin-top:8px}
  .lede{font-size:16.5px}
  .crumbs a{min-height:44px;display:inline-flex;align-items:center;padding:0}

  /* 1. hero with an illustration: heading beside the scaled down card, the rest full width */
  .phero .wrap.two{grid-template-columns:minmax(0,1fr) 44%;column-gap:12px;align-items:center}
  .phero .wrap.two > .copy{display:contents!important}
  .phero .wrap.two > .copy > *{grid-column:1/-1}
  .phero .wrap.two > .copy > h1{grid-column:1;grid-row:2;font-size:clamp(25px,6.9vw,32px)}
  .phero .wrap.two > figure{grid-column:2;grid-row:2;margin:0;min-width:0;display:grid;justify-items:center;gap:6px}
  .phero .wrap.two > figure > .aa,.phero .wrap.two .pd-card{width:300px!important;max-width:none!important;zoom:calc(var(--fz,.5))}
  .phero .wrap.two > figure figcaption{font-size:12px;line-height:1.35}
  .phero .pd-tab{position:relative}
  .phero .pd-tab::after{content:"";position:absolute;inset:-22px 0}

  /* an illustration next to its text inside a section */
  .split:has(> figure){grid-template-columns:minmax(0,1fr) 42%;gap:12px 14px;align-items:start}
  .split:has(> figure) > .prose{display:contents}
  .split:has(> figure) > .prose > *{grid-column:1/-1}
  .split:has(> figure) > .prose > :is(h2,h3) + *,
  .split:has(> figure) > .prose > :is(h2,h3) + * + *{grid-column:1}
  .split:has(> figure) > figure{grid-column:2;grid-row:2/span 2;margin:0}
  .split:has(> figure) > figure > .aa{width:300px!important;max-width:none!important;zoom:.46}
  .split:has(> figure) > figure figcaption{font-size:12.5px;line-height:1.4}
  .split:has(> figure) .prose p + p{margin-top:0}
  .split:has(> figure) > .prose > *:not(h2,h3){margin-block:0}

  /* 2. card lists: a rail the width of the screen, the next card peeks in, snap per card */
  .steps,.cards,.related,.plans,.rail{display:grid;grid-auto-flow:column;grid-auto-columns:80%;grid-template-columns:none;gap:12px;
    overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gut);
    margin-inline:calc(-1*var(--gut));padding:4px var(--gut) 14px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
  .related{grid-auto-columns:68%}
  /* the blog index stays a list, every post visible, the excerpt held to two lines */
  .cards:has(> .post-card){grid-auto-flow:row;grid-auto-columns:auto;overflow:visible;margin-inline:0;padding:0;gap:10px}
  .post-card{padding:16px;gap:4px}
  .post-card > p:not(.tag,.meta){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .steps > *,.cards > *,.related > *,.plans > *,.rail > *{scroll-snap-align:start;min-width:0}
  .steps li{padding:16px;padding-inline-start:58px}
  .steps li::before{inset-inline-start:14px;top:16px}
  .plans{padding-top:18px}
  .card{padding:18px}
  .related a{min-height:100%}

  /* 3. clamped paragraphs (the class is set by /js/site.js only when the text is longer) */
  .clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--lines,4);overflow:hidden}
  .more{display:inline-flex;align-items:center;min-height:44px;margin-top:-4px;padding:0;border:0;background:none;font:700 15.5px/1 var(--body);color:var(--violet);cursor:pointer;text-decoration:underline;text-underline-offset:4px}
  .phero .more,.hero .more{color:#e9c9ff}
  .phero .more{margin-top:-16px;justify-self:start}
  .phero .first-free{font-size:19px}
  .hero .more{grid-column:1;grid-row:4;justify-self:start;margin-top:-8px}

  /* FAQ, shorter rows, still 44px and more */
  .faq summary{padding:14px 16px;font-size:16.5px}
  .faq details > div{padding:0 16px 14px}
  .not{padding:18px}
  .cta-band{padding:44px 0}
  .foot{padding:36px 0 24px}
  .foot .cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}
  .foot .cols > div:first-child{grid-column:1/-1}

  /* 4. the slim bottom call to action; it stays clear of the accessibility button (bottom left) */
  .mcta{position:fixed;z-index:40;bottom:12px;left:84px;right:12px;display:flex;transform:translateY(140%);opacity:0;transition:transform .35s var(--ease),opacity .25s;pointer-events:none}
  .mcta.on{transform:none;opacity:1;pointer-events:auto}
  .mcta .btn{flex:1;min-height:50px;padding:12px 16px;box-shadow:0 14px 30px -10px rgba(40,10,90,.65)}
  body.cc-open .mcta{display:none}
}
@media (min-width:760px){.more,.mcta{display:none}}

/* a header button with a long label carries a short one for phones */
.top .btn-go .sm{display:none}
@media (max-width:759px){.top .btn-go .lg{display:none}.top .btn-go .sm{display:inline}}
