
/* ==========================================================================
   Cloudyrax theme — portal homepage (themes/cloudyrax/views/welcome.blade.php)

   Same design system as the Cloudyrax marketing website and its standalone
   preview: navy foundation, single blue accent, system font stack. Light page
   with dark bands, painted explicitly.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Navy foundation */
  --navy-950: #050912;
  --navy-900: #080E1B;
  --navy-800: #0C1526;
  --navy-700: #121D33;
  --navy-600: #1A2743;
  --navy-500: #243354;
  --navy-400: #33456B;

  /* Technology blue — the single accent */
  --brand-50:  #EFF4FF;
  --brand-100: #DDE7FF;
  --brand-200: #BFD1FF;
  --brand-300: #95B1FF;
  --brand-400: #6588FB;
  --brand-500: #3F63EE;
  --brand-600: #2B45D8;
  --brand-700: #2436AE;
  --brand-900: #212F6D;
  --sky-400: #38BDF8;

  /* Surfaces and neutrals, biased slightly blue to sit with the accent */
  --white: #FFFFFF;
  --muted: #F6F8FC;
  --border: #E3E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;

  /* Semantic — separate from the accent */
  --emerald-50: #ECFDF5;  --emerald-200: #A7F3D0;  --emerald-500: #10B981;  --emerald-700: #047857;
  --amber-50: #FFFBEB;    --amber-200: #FDE68A;    --amber-500: #F59E0B;    --amber-700: #B45309;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", "Noto Sans", "Noto Sans Arabic", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --shadow-card: 0 1px 2px rgba(8,14,27,.04), 0 8px 24px -12px rgba(8,14,27,.12);
  --shadow-card-hover: 0 1px 2px rgba(8,14,27,.05), 0 18px 40px -16px rgba(8,14,27,.22);
  --shadow-elevated: 0 24px 60px -24px rgba(5,9,18,.45);

  --header-h: 4.25rem;
  --container: 1200px;
  --radius-card: .75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy-900); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--brand-100); color: var(--brand-700); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section { padding-block: 4rem; }
@media (min-width: 640px) { .section { padding-block: 5rem; } }
@media (min-width: 1024px) { .section { padding-block: 6rem; } }

.bg-muted { background: var(--muted); }
.bg-dark { background: var(--navy-950); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }

/* ---- Type scale (same clamps as tailwind.config.ts) ---------------------- */
.t-display-lg { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; }
.t-heading-lg { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; }
.t-heading    { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.25; letter-spacing: -.015em; }
.lede { font-size: 1.125rem; line-height: 1.7; color: var(--navy-500); }
.bg-dark .lede { color: var(--slate-300); }
.body-copy { font-size: 1.0625rem; line-height: 1.75; color: var(--navy-500); }
.small { font-size: .9375rem; line-height: 1.6; color: var(--navy-500); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; color: var(--brand-600);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: var(--brand-400); opacity: .6; }
.bg-dark .eyebrow { color: var(--brand-300); }
.bg-dark .eyebrow::before { background: var(--brand-300); }

.section-head { max-width: 48rem; display: flex; flex-direction: column; gap: 1rem; }
.head-row { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 640px) { .head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.75rem; padding-inline: 1.25rem; border-radius: .5rem;
  font-size: .9375rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn-lg { height: 3rem; padding-inline: 1.5rem; font-size: 1rem; }
.btn-sm { height: 2.25rem; padding-inline: .875rem; font-size: .8125rem; }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); box-shadow: var(--shadow-card); }
.btn-outline { background: var(--white); color: var(--navy-800); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--brand-300); background: rgba(239,244,255,.6); color: var(--brand-700); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.btn-ghost { color: var(--slate-300); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(2px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(2px); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 16px -8px rgba(8,14,27,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .625rem; }
.logo-mark { width: 2rem; height: 2rem; border-radius: .5rem; flex: none; }
.logo-text { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; color: var(--navy-900); }
.bg-dark .logo-text, footer .logo-text { color: #fff; }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: block; } }
.nav ul { display: flex; align-items: center; gap: .125rem; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: .25rem; height: 2.25rem;
  padding-inline: .75rem; border-radius: .5rem;
  font-size: .9375rem; font-weight: 500; color: var(--navy-600);
  transition: background-color .15s, color .15s;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--muted); color: var(--navy-900); }
.nav-trigger svg { transition: transform .2s; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.menu-wrap { position: relative; }
.mega {
  position: absolute; top: 100%; inset-inline-start: 0; padding-top: .5rem; z-index: 50;
}
.mega-inner {
  width: 44rem; max-width: calc(100vw - 3rem);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem; box-shadow: var(--shadow-elevated); overflow: hidden;
  animation: fade-in .18s ease-out both;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .625rem; }
.mega-item { display: flex; gap: .75rem; padding: .75rem; border-radius: .75rem; transition: background-color .15s; }
.mega-item:hover { background: var(--muted); }
.mega-icon {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: .5rem;
  display: grid; place-items: center; margin-top: .125rem;
  border: 1px solid var(--border); background: var(--white); color: var(--brand-600);
}
.mega-item:hover .mega-icon { border-color: var(--brand-200); background: var(--brand-50); }
.mega-name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--navy-900); }
.mega-desc { display: block; margin-top: .125rem; font-size: .8125rem; line-height: 1.4; color: var(--slate-500); }

.header-actions { display: none; align-items: center; gap: .5rem; }
@media (min-width: 1024px) { .header-actions { display: flex; } }

.lang { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: .375rem; height: 2.25rem;
  padding-inline: .625rem; border-radius: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--navy-600);
}
.lang-trigger:hover { background: var(--muted); color: var(--navy-900); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: 100%; margin-top: .5rem; z-index: 60;
  width: 11rem; padding: .25rem; background: var(--white);
  border: 1px solid var(--border); border-radius: .75rem; box-shadow: var(--shadow-elevated);
}
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .5rem .75rem; border-radius: .5rem;
  font-size: .875rem; color: var(--navy-700); text-align: start;
}
.lang-menu button:hover { background: var(--muted); }
.lang-menu button[aria-current="true"] { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.lang-menu .code { font-size: .75rem; font-weight: 600; color: var(--slate-400); }

.burger {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--border); border-radius: .5rem; color: var(--navy-700);
}
.burger:hover { background: var(--muted); }
.mobile-actions { display: flex; align-items: center; gap: .375rem; }
@media (min-width: 1024px) { .mobile-actions { display: none; } }

.mobile-menu {
  position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0; z-index: 40;
  overflow-y: auto; background: var(--white); border-top: 1px solid var(--border);
}
.mobile-menu .container { display: flex; flex-direction: column; gap: 1.75rem; padding-block: 1.5rem; }
.mobile-cta { display: grid; gap: .5rem; }
@media (min-width: 640px) { .mobile-cta { grid-template-columns: 1fr 1fr; } }
.mobile-group h2 {
  margin-bottom: .375rem; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400);
}
.mobile-list { border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; }
.mobile-list li + li { border-top: 1px solid var(--border); }
.mobile-list a { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; font-size: .9375rem; color: var(--navy-800); }
.mobile-list a:active { background: var(--muted); }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.hero-grid-bg, .band-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148,163,184,.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,.09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.glow { position: absolute; border-radius: 9999px; pointer-events: none; filter: blur(64px); }
.glow-a { top: -14rem; inset-inline-start: 25%; width: 34rem; height: 34rem; background: rgba(43,69,216,.25); }
.glow-b { bottom: -10rem; inset-inline-end: 0; width: 26rem; height: 26rem; background: rgba(56,189,248,.10); }

.hero-inner {
  position: relative; display: grid; gap: 3rem; align-items: center;
  padding-block: 4rem;
}
@media (min-width: 640px) { .hero-inner { padding-block: 5rem; } }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 2.5rem; padding-block: 6rem; }
}
.hero h1 { color: #fff; margin-top: 1.5rem; }
.hero h1 .line2 { display: block; color: var(--brand-200); }
.hero .lede { max-width: 36rem; margin-top: 1.5rem; }
.badge-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .875rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06);
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand-200);
}
.badge-pill .dot { width: .375rem; height: .375rem; border-radius: 9999px; background: var(--brand-300); animation: pulse-soft 3.5s ease-in-out infinite; }
.hero-cta { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; flex-wrap: wrap; } }
.hero-note { display: flex; gap: .625rem; margin-top: 1.75rem; font-size: .875rem; line-height: 1.6; color: var(--slate-400); }
.hero-note svg { flex: none; margin-top: .125rem; color: var(--slate-500); }
.hero-visual { display: flex; justify-content: center; }
@media (min-width: 1024px) { .hero-visual { justify-content: flex-end; } }
.hero-visual svg { width: 100%; max-width: 30rem; height: auto; }

/* ---- Problem ------------------------------------------------------------ */
.problem-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.compare { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { border-radius: var(--radius-card); padding: 1.5rem; }
.compare-before { border: 1px solid var(--border); background: var(--muted); }
.compare-after { border: 1px solid var(--brand-200); background: rgba(239,244,255,.5); }
.compare-col h3 { font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; }
.compare-before h3 { color: var(--slate-500); }
.compare-after h3 { color: var(--brand-700); }
.compare-col ul { display: flex; flex-direction: column; gap: .875rem; margin-top: 1.25rem; }
.compare-col li { display: flex; gap: .75rem; font-size: .9375rem; line-height: 1.45; }
.compare-before li { color: var(--slate-500); }
.compare-after li { color: var(--navy-700); }
.compare-col li svg { flex: none; margin-top: .125rem; }
.compare-before li svg { color: var(--slate-400); }
.compare-after li svg { color: var(--brand-600); }

/* ---- Hairline card grids ------------------------------------------------ */
.grid-hairline {
  display: grid; gap: 1px; margin-top: 3rem;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden;
}
@media (min-width: 640px) { .grid-hairline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-hairline.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-hairline.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-hairline > li { background: var(--white); padding: 1.75rem; transition: background-color .2s; }
.grid-hairline > li:hover { background: rgba(239,244,255,.4); }
.bg-dark .grid-hairline { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
.bg-dark .grid-hairline > li { background: var(--navy-950); }
.bg-dark .grid-hairline > li:hover { background: var(--navy-900); }
.step-num { font-family: var(--font-mono); font-size: .875rem; font-weight: 600; color: var(--brand-500); }
.bg-dark .step-num { color: var(--brand-300); }
.grid-hairline h3 { margin-top: .75rem; font-size: 1.0625rem; }
.grid-hairline p { margin-top: .625rem; font-size: .9375rem; line-height: 1.6; color: var(--slate-500); }
.bg-dark .grid-hairline p { color: var(--slate-400); }

/* ---- Cards -------------------------------------------------------------- */
.card-grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; padding: 1.5rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
a.card:hover { transform: translateY(-2px); border-color: var(--brand-200); box-shadow: var(--shadow-card-hover); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: .75rem; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--muted); color: var(--brand-600);
  transition: background-color .25s, border-color .25s;
}
a.card:hover .card-icon { border-color: var(--brand-200); background: var(--brand-50); }
.card h3 { margin-top: 1rem; font-size: 1.125rem; transition: color .25s; }
a.card:hover h3 { color: var(--brand-700); }
.card > p { margin-top: .5rem; flex: 1; font-size: .9375rem; line-height: 1.6; color: var(--slate-500); }
.tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: 1rem; }
.tags li { padding: .25rem .5rem; border-radius: .375rem; background: var(--muted); font-size: .75rem; font-weight: 500; color: var(--slate-500); }
.card-cta { display: inline-flex; align-items: center; gap: .375rem; margin-top: 1.25rem; font-size: .875rem; font-weight: 600; color: var(--brand-700); }

.status {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .25rem .625rem; border-radius: 9999px; border: 1px solid;
  font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  white-space: nowrap;
}
.status .dot { width: .375rem; height: .375rem; border-radius: 9999px; }
.status-available { border-color: var(--emerald-200); background: var(--emerald-50); color: var(--emerald-700); }
.status-available .dot { background: var(--emerald-500); }
.status-beta { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-700); }
.status-beta .dot { background: var(--brand-500); }
.status-soon { border-color: var(--amber-200); background: var(--amber-50); color: var(--amber-700); }
.status-soon .dot { background: var(--amber-500); }

/* ---- Flow diagram ------------------------------------------------------- */
.flow-panel {
  margin-top: 3.5rem; padding: 1.5rem; border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03);
}
@media (min-width: 640px) { .flow-panel { padding: 2rem; } }
.flow-list { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 1024px) { .flow-list { grid-template-columns: repeat(4, 1fr); } }
.flow-item {
  position: relative; display: flex; gap: 1rem; padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; background: rgba(8,14,27,.6);
}
.flow-icon { flex: none; width: 2.5rem; height: 2.5rem; border-radius: .5rem; display: grid; place-items: center; background: rgba(63,99,238,.15); color: var(--brand-200); }
.flow-item strong { display: block; font-size: .875rem; font-weight: 600; color: #fff; }
.flow-item span { display: block; margin-top: .25rem; font-size: .8125rem; line-height: 1.45; color: var(--slate-400); }
.flow-arrow { position: absolute; color: rgba(149,177,255,.6); bottom: -.75rem; inset-inline-start: 50%; transform: translateX(-50%) rotate(90deg); }
[dir="rtl"] .flow-arrow { transform: translateX(50%) rotate(90deg) scaleX(-1); }
@media (min-width: 1024px) {
  .flow-arrow { top: 50%; bottom: auto; inset-inline-start: auto; inset-inline-end: -.75rem; transform: translateY(-50%); }
  [dir="rtl"] .flow-arrow { transform: translateY(-50%) scaleX(-1); }
}

/* ---- Solutions ---------------------------------------------------------- */
.sol-foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.sol-foot h4 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-400); }
.chiplist { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .625rem; }
.chip {
  display: inline-flex; padding: .375rem .625rem; border-radius: .375rem;
  background: var(--muted); font-size: .8125rem; font-weight: 500; color: var(--navy-600);
  transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--brand-50); color: var(--brand-700); }

/* ---- Pricing ------------------------------------------------------------ */
.price-card { position: relative; }
.price-card.is-featured { border-color: var(--brand-300); box-shadow: var(--shadow-card-hover); outline: 1px solid var(--brand-200); }
.price-flag {
  position: absolute; top: -.75rem; inset-inline-start: 1.5rem;
  padding: .25rem .75rem; border-radius: 9999px; background: var(--brand-600);
  font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #fff;
}
.price-service { display: block; margin-top: .25rem; font-size: .75rem; font-weight: 500; color: var(--slate-400); }
.price-amount {
  display: flex; align-items: flex-end; gap: .5rem;
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.price-amount .value { font-size: 2rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.price-amount .period { padding-bottom: .125rem; font-size: .875rem; color: var(--slate-400); }
.feature-list { display: flex; flex-direction: column; gap: .625rem; margin-top: 1.5rem; flex: 1; }
.feature-list li { display: flex; gap: .625rem; font-size: .9375rem; color: var(--navy-600); }
.feature-list svg { flex: none; margin-top: .25rem; color: var(--brand-500); }
.price-card .btn { margin-top: 1.75rem; width: 100%; }
.note { margin-top: 1.5rem; font-size: .875rem; color: var(--slate-500); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.accordion { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--white); overflow: hidden; }
.accordion > div + div { border-top: 1px solid var(--border); }
.acc-btn {
  display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.25rem; text-align: start; transition: background-color .15s;
}
@media (min-width: 640px) { .acc-btn { padding: 1.25rem 1.5rem; } }
.acc-btn:hover { background: var(--muted); }
.acc-btn span { font-size: 1.0625rem; font-weight: 600; color: var(--navy-900); }
.acc-btn svg { flex: none; margin-top: .25rem; color: var(--slate-400); transition: transform .2s, color .2s; }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--brand-600); }
.acc-panel { padding: 0 1.25rem 1.5rem; }
@media (min-width: 640px) { .acc-panel { padding: 0 1.5rem 1.5rem; } }
.acc-panel p { max-width: 48rem; font-size: .9375rem; line-height: 1.65; color: var(--navy-600); }

/* ---- Final CTA ---------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding-block: 4rem; }
@media (min-width: 640px) { .cta-band { padding-block: 5rem; } }
.cta-inner { position: relative; max-width: 42rem; margin-inline: auto; text-align: center; display: flex; flex-direction: column; gap: 1rem; }
.cta-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); }
.site-footer .container { padding-block: 3.5rem; }
@media (min-width: 640px) { .site-footer .container { padding-block: 4rem; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0,1fr)); gap: 2rem; } }
.footer-brand { max-width: 24rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer-brand p { font-size: .875rem; line-height: 1.65; color: var(--slate-400); }
.footer-contact { display: flex; flex-direction: column; gap: .625rem; font-size: .875rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .625rem; color: var(--slate-300); transition: color .15s; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { color: var(--brand-300); }
.site-footer h2 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.site-footer nav ul { display: flex; flex-direction: column; gap: .625rem; margin-top: 1rem; }
.site-footer nav a { font-size: .875rem; color: var(--slate-400); transition: color .15s; }
.site-footer nav a:hover { color: #fff; }
.footer-base {
  display: flex; flex-direction: column; gap: 1.25rem;
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .875rem; color: var(--slate-400);
}
@media (min-width: 640px) { .footer-base { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-base .sub { margin-top: .25rem; color: var(--slate-500); }
.lang-inline { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: .5rem; background: rgba(255,255,255,.05); }
.lang-inline button { padding: .375rem .75rem; border-radius: .375rem; font-size: .875rem; font-weight: 600; color: var(--slate-300); }
.lang-inline button:hover { color: #fff; }
.lang-inline button[aria-current="true"] { background: rgba(255,255,255,.1); color: #fff; }

/* ---- Motion ------------------------------------------------------------- */
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@keyframes pulse-soft { 0%,100% { opacity: .35 } 50% { opacity: .9 } }
@keyframes dash-flow { to { stroke-dashoffset: -24 } }
.animate-dash { animation: dash-flow 1.6s linear infinite; }
.hero-copy { animation: fade-up .6s cubic-bezier(.16,1,.3,1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---- Portal additions -------------------------------------------------- */
.header-actions .btn-ghost { color: var(--navy-600); }
.header-actions .btn-ghost:hover { background: var(--muted); color: var(--navy-900); }
.lang-menu a {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .5rem .75rem; border-radius: .5rem;
  font-size: .875rem; color: var(--navy-700);
}
.lang-menu a:hover { background: var(--muted); }
.lang-menu a[aria-current="true"] { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.lang-inline a { padding: .375rem .75rem; border-radius: .375rem; font-size: .875rem; font-weight: 600; color: var(--slate-300); }
.lang-inline a:hover { color: #fff; }
.lang-inline a[aria-current="true"] { background: rgba(255,255,255,.1); color: #fff; }
.mobile-menu .lang-inline { background: var(--muted); }
.mobile-menu .lang-inline a { color: var(--navy-600); }
.mobile-menu .lang-inline a[aria-current="true"] { background: var(--brand-50); color: var(--brand-700); }
.pricing-empty {
  margin-top: 3rem; padding: 2rem; border: 1px dashed var(--border); border-radius: var(--radius-card);
  background: var(--white); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
@media (min-width: 640px) { .pricing-empty { flex-direction: row; align-items: center; justify-content: space-between; } }
.pricing-empty p { color: var(--navy-600); }
.price-card .price-desc { margin-top: .75rem; flex: 0; }
.footer-legal-note { margin-top: .25rem; color: var(--slate-500); }
