/* Tessera shared styles: reset, type, buttons, header + mega menu, bottom-sheet menu,
   tiles, bento grid, pricing plans, portfolio cards, accordion, CTA tile, footer, motion.
   Page-specific styles live in assets/pages/<page>.css. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body { min-height: 100dvh; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16.5px; line-height: 1.6; overflow-x: clip; text-rendering: optimizeLegibility; }
:root[data-theme="dark"] body { -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: color-mix(in oklch, var(--accent) 28%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--ring); outline-offset: 3px; border-radius: var(--r-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 300; padding: 10px 16px; border-radius: var(--r-pill); background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
:root { --wrap: 1280px; --pad: clamp(16px, 3.4vw, 40px); --gap: clamp(12px, 1.4vw, 18px); --sec: clamp(72px, 7.8vw, 112px); --hdr-clear: 112px; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.sec { padding-block: calc(var(--sec) / 2); position: relative; }
.sec-tight { padding-block: calc(var(--sec) / 2); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }

/* ---------- Type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 8px; border-radius: var(--r-pill); background: var(--tile); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--fg-2); box-shadow: var(--sh-1); }
.kicker .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.kicker .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: beat 2.2s var(--ease) infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.75rem, 1.3rem + 5.6vw, 6.25rem); line-height: .96; letter-spacing: -0.032em; font-optical-sizing: auto; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.125rem, 1.3rem + 3vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; }
.h3 { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); line-height: 1.1; letter-spacing: -0.025em; }
.hl { color: var(--accent-text); }
.hl-under { background: linear-gradient(transparent 62%, color-mix(in oklch, var(--accent) 26%, transparent) 62%, color-mix(in oklch, var(--accent) 26%, transparent) 92%, transparent 92%); }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--fg-2); max-width: 54ch; line-height: 1.6; }
.muted { color: var(--fg-2); }
.small { font-size: 14px; }
.head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.head.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; column-gap: clamp(24px, 5vw, 80px); }
.head.split .lede { justify-self: end; }
.head.center { text-align: center; justify-items: center; }
.head.center .lede { margin-inline: auto; }
@media (max-width: 860px) { .head.split { grid-template-columns: minmax(0, 1fr); } .head.split .lede { justify-self: start; } }

/* Kinetic rotating word */
.rotator { display: inline-grid; vertical-align: bottom; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.rotator > span { grid-area: 1 / 1; color: var(--accent-text); transform: translateY(105%); opacity: 0; transition: transform 700ms var(--ease), opacity 400ms; }
.rotator > span.is-on { transform: none; opacity: 1; }
.rotator > span.is-off { transform: translateY(-105%); opacity: 0; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--r-pill); font-size: 15.5px; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform 200ms var(--ease), box-shadow 240ms var(--ease), background-color 200ms, border-color 200ms, color 200ms; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: 90ms; }
.btn svg { flex: none; transition: transform 260ms var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-solid { background: var(--accent); color: var(--accent-fg); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 1px 2px rgb(0 0 0 / .1), 0 10px 22px -10px var(--accent); }
.btn-solid:hover { background: var(--accent-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 16px 32px -12px var(--accent); }
.btn-ink { background: var(--fg); color: var(--bg); box-shadow: 0 10px 22px -12px color-mix(in oklch, var(--fg) 70%, transparent); }
.btn-ink:hover { box-shadow: 0 16px 30px -12px color-mix(in oklch, var(--fg) 70%, transparent); }
.btn-glass { background: color-mix(in oklch, var(--tile) 62%, transparent); border-color: var(--line-2); color: var(--fg); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); box-shadow: var(--hi), var(--sh-1); }
.btn-glass:hover { background: var(--tile); border-color: var(--fg-3); box-shadow: var(--hi), var(--sh-2); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading svg { animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--fg-2); border: 1px solid var(--line); background: var(--tile); transition: color 180ms, border-color 180ms, transform 200ms var(--spring), box-shadow 200ms; }
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); box-shadow: var(--sh-1); transform: rotate(-8deg); }
.link { position: relative; color: var(--fg); font-weight: 650; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 360ms var(--ease), color 200ms; padding-bottom: 2px; }
.link:hover, .link:focus-visible { background-size: 100% 1.5px; }
.link.acc { color: var(--accent-text); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--fg); }
.arrow-link svg { transition: transform 260ms var(--ease); }
.arrow-link:hover { color: var(--accent-text); }
.arrow-link:hover svg { transform: translateX(4px); }

/* Theme toggle */
.theme-btn { position: relative; }
.theme-btn svg { position: absolute; transition: transform 500ms var(--spring), opacity 260ms; }
:root[data-theme="dark"] .theme-btn .sun { transform: scale(.3) rotate(-90deg); opacity: 0; }
:root:not([data-theme="dark"]) .theme-btn .moon { transform: scale(.3) rotate(90deg); opacity: 0; }

/* ---------- Header (left-aligned links, underline draw, mega menu) ---------- */
.hdr { position: fixed; inset: 12px 0 auto; z-index: 100; pointer-events: none; }
.hdr-row { pointer-events: auto; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); height: 62px; padding: 0 14px 0 22px; border-radius: var(--r-pill); background: color-mix(in oklch, var(--tile) 84%, transparent); border: 1px solid var(--line); box-shadow: var(--sh-1); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); transition: box-shadow 260ms var(--ease), background-color 260ms; }
.hdr.is-stuck .hdr-row { box-shadow: var(--sh-2); background: color-mix(in oklch, var(--tile) 92%, transparent); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex: none; }
.logo-mark { width: 30px; height: 30px; transition: transform 600ms var(--spring); }
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo-word { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -0.04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-a { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; color: var(--fg-2); text-decoration: none; transition: color 180ms, background-color 180ms; }
.nav-a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease); }
.nav-a:hover, .nav-a:focus-visible, .nav-mega.is-open > .nav-a { color: var(--fg); }
.nav-a:hover::after, .nav-a:focus-visible::after { transform: scaleX(1); }
.nav-a[aria-current="page"] { color: var(--fg); }
.nav-a[aria-current="page"]::after { transform: scaleX(1); }
.nav-trigger svg { transition: transform 300ms var(--ease); }
.nav-mega { position: relative; }
.nav-mega.is-open .nav-trigger svg { transform: rotate(180deg); }
/* Split Services: link + chevron toggle */
.nav-svc-group { display: inline-flex; align-items: center; }
.nav-svc-group .nav-a { padding-right: 4px; }
.nav-chev { display: inline-flex; align-items: center; justify-content: center; height: 40px; width: 28px; padding: 0; border: none; background: transparent; cursor: pointer; color: var(--fg-2); border-radius: var(--r-pill); transition: color 180ms, background-color 180ms; flex: none; }
.nav-chev:hover, .nav-chev:focus-visible { color: var(--fg); }
.nav-mega.is-open .nav-chev { color: var(--fg); }
.mega { position: absolute; left: -12px; top: calc(100% + 16px); width: min(720px, 80vw); padding: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line); box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top left; transition: opacity 200ms, transform 300ms var(--ease), visibility 0s 300ms; }
.mega::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.nav-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms, transform 300ms var(--ease), visibility 0s; }
.mega-tile { position: relative; display: grid; gap: 6px; align-content: start; min-height: 168px; padding: 18px; border-radius: var(--r-md); text-decoration: none; color: var(--fg); overflow: hidden; transition: transform 260ms var(--ease), box-shadow 260ms; }
.mega-tile:hover, .mega-tile:focus-visible { transform: translateY(-3px); box-shadow: var(--sh-2); }
.mega-tile b { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; }
.mega-tile small { font-size: 13.5px; color: var(--fg-2); line-height: 1.45; }
.mega-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--tile); color: var(--fg); margin-bottom: 6px; box-shadow: var(--sh-1); transition: transform 300ms var(--spring); }
.mega-tile:hover .mega-ico { transform: rotate(-10deg) scale(1.08); }
.mega-price { margin-top: auto; padding-top: 8px; font: 600 12.5px/1 var(--font-mono); }
.mega-tile[aria-current="page"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.mega-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; border-radius: var(--r-md); background: var(--tile-2); font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--fg); transition: background-color 200ms; }
.mega-all:hover { background: var(--tile-3); }
.mega-all svg { transition: transform 260ms var(--ease); }
.mega-all:hover svg { transform: translateX(4px); }
.hdr-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.t-mint { background: var(--mint); } .t-mint .ink, .t-mint .mega-price { color: var(--mint-ink); }
.t-sky { background: var(--skyt); } .t-sky .ink, .t-sky .mega-price { color: var(--sky-ink); }
.t-apri { background: var(--apri); } .t-apri .ink, .t-apri .mega-price { color: var(--apri-ink); }
.t-sand { background: var(--sand); }
@media (max-width: 1060px) {
  .nav, .hdr-end .btn { display: none; }
  .menu-btn { display: inline-grid; }
  .hdr-row { padding: 0 8px 0 18px; }
}

/* ---------- Bottom sheet menu (mobile) ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 140; background: rgb(10 12 18 / .45); backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms; }
.sheet-scrim.is-open { opacity: 1; }
.sheet { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 150; max-height: calc(100dvh - 24px); overflow: auto; padding: 10px 16px 18px; border-radius: var(--r-lg); background: var(--tile); box-shadow: var(--sh-3); transform: translateY(110%); transition: transform 460ms var(--ease); }
.sheet.is-open { transform: none; }
.sheet[hidden], .sheet-scrim[hidden] { display: none; }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 10px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-links { display: grid; }
.sheet-links > a { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -0.03em; text-decoration: none; color: var(--fg); }
.sheet-links > a[aria-current="page"] { color: var(--accent-text); }
.sheet-links > a svg { color: var(--fg-3); transition: transform 240ms var(--ease); }
.sheet-links > a:hover svg { transform: translateX(4px); color: var(--fg); }
.sheet-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.sheet-svc a { display: grid; gap: 4px; align-content: end; min-height: 92px; padding: 12px; border-radius: var(--r-md); text-decoration: none; color: var(--fg); font-weight: 700; font-size: 14px; line-height: 1.2; }
.sheet-svc a small { font: 600 11.5px/1 var(--font-mono); }
.sheet-foot { display: flex; gap: 8px; margin-top: 14px; }
.sheet-foot .btn { flex: 1; }

/* ---------- Tiles ---------- */
.tile { position: relative; border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line); padding: clamp(22px, 2.4vw, 32px); overflow: hidden; isolation: isolate; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 300ms; }
.tile.is-flat { border-color: transparent; }
a.tile, .tile.is-hover { text-decoration: none; color: inherit; }
a.tile:hover, .tile.is-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform 380ms var(--ease), box-shadow 320ms var(--ease); }
.tilt:hover { --ty: -4px; box-shadow: var(--sh-3); }
.tile-label { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--font-mono); color: var(--fg-2); }
.tile-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 2rem + 3.6vw, 5.5rem); line-height: .9; letter-spacing: -0.04em; }
.glow-blob { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -18%; bottom: -30%; border-radius: 42% 58% 61% 39% / 47% 38% 62% 53%; background: radial-gradient(closest-side, color-mix(in oklch, var(--accent) 45%, transparent), transparent); filter: blur(18px); animation: blob 18s var(--ease-io) infinite alternate; }
@keyframes blob { to { border-radius: 58% 42% 37% 63% / 39% 61% 39% 61%; transform: translate(-6%, -8%) rotate(30deg) scale(1.08); } }
.grain::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: multiply; background-image: var(--noise); }
:root[data-theme="dark"] .grain::after { mix-blend-mode: overlay; opacity: .08; }

/* Chips and segmented control */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--tile-2); font-size: 13px; font-weight: 600; color: var(--fg-2); }
.chip.acc { background: var(--accent-soft); color: var(--accent-text); }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--tile-2); border: 1px solid var(--line); isolation: isolate; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 16px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 700; color: var(--fg-2); transition: color 200ms; }
.seg button:hover { color: var(--fg); }
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { color: var(--fg); }
.seg-pill { position: absolute; z-index: 0; top: 4px; height: 38px; border-radius: var(--r-pill); background: var(--tile); box-shadow: var(--sh-2); transition: left 380ms var(--ease), width 380ms var(--ease); }

/* ---------- Pricing plans (tile with a price strip) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line); overflow: hidden; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 300ms; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.plan-top { position: relative; display: grid; gap: 10px; padding: 26px 26px 22px; isolation: isolate; overflow: hidden; }
.plan-top .glow-blob { width: 90%; right: -40%; bottom: -60%; opacity: .7; }
.plan-flag { justify-self: start; height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: var(--r-pill); background: var(--tile); font-size: 12.5px; font-weight: 700; box-shadow: var(--sh-1); }
.plan-flag.is-hot { background: var(--fg); color: var(--bg); }
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + .8vw, 1.875rem); letter-spacing: -0.03em; line-height: 1.08; }
.plan-for { font-size: 15px; color: var(--fg-2); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 18px 26px; border-block: 1px dashed var(--line-2); background: color-mix(in oklch, var(--tile-2) 60%, var(--tile)); }
.plan-price .lbl { width: 100%; font: 600 11.5px/1 var(--font-mono); color: var(--fg-3); }
.plan-price b { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 1.3vw, 3.25rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.plan-price .unit { font-size: 15px; color: var(--fg-2); font-weight: 600; }
.plan-price s { font-size: 16px; color: var(--fg-3); }
.plan-price .save { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.plan-body { display: grid; gap: 14px; align-content: start; padding: 22px 26px 8px; }
.plan-cap { font: 600 11.5px/1 var(--font-mono); color: var(--fg-3); }
.plan-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.plan-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.45; }
.plan-list li::before { content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23149a6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan-list li.is-inherit { font-weight: 700; }
.plan-list li.is-inherit::before { background: var(--tile-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='%23149a6b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-foot { display: grid; gap: 10px; padding: 18px 26px 26px; }
.plan-foot .link { justify-self: center; font-size: 14px; color: var(--fg-2); }
.plan.is-feature { border-color: transparent; box-shadow: 0 0 0 2px var(--accent), var(--sh-2); }
.plan.is-feature .plan-top { background: var(--mint); }
@media (max-width: 1060px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 580px; margin-inline: auto; } }

/* Currency toggle sits in a .seg with data-currency */

/* ---------- Portfolio: receptionists (photo tile with overlay name) ---------- */
.reps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rep { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line); overflow: hidden; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.rep:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.rep-media { position: relative; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; aspect-ratio: 3 / 2; background: var(--tile-2); }
.rep-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease); }
.rep:hover .rep-media img { transform: scale(1.05); }
.rep-status { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: var(--r-pill); background: rgb(255 255 255 / .9); color: #14161c; font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px rgb(0 0 0 / .12); }
.rep-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1aa36f; box-shadow: 0 0 0 3px rgb(26 163 111 / .2); }
.rep-body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 22px; }
.rep-role { font: 600 12px/1.3 var(--font-mono); color: var(--fg-3); }
.rep-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.035em; line-height: 1.05; }
.rep-body p { font-size: 15px; color: var(--fg-2); }
.rep-checks { list-style: none; padding: 4px 0 0; display: grid; gap: 7px; }
.rep-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 14.5px; }
.rep-checks li::before { content: ""; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23149a6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rep-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.rep-demo { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform 200ms var(--ease), background-color 200ms, color 200ms; }
.rep-demo:hover { background: var(--accent); color: var(--accent-fg); transform: translateY(-2px); }
.rep-demo svg { transition: transform 260ms var(--ease); }
.rep-demo:hover svg { transform: translate(2px, -2px); }
@media (max-width: 1060px) { .reps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .reps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Portfolio: builds (workflow tiles) ---------- */
.builds { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.bld { grid-column: span 4; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--fg); text-align: left; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.bld.is-wide { grid-column: span 8; }
.bld:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.bld-shot { position: relative; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: #15171d; aspect-ratio: 16 / 9; }
.bld-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; transition: object-position 3s var(--ease-io), transform 800ms var(--ease); }
.bld:hover .bld-shot img, .bld:focus-visible .bld-shot img { object-position: 100% 50%; }
.bld-tag { position: absolute; left: 10px; bottom: 10px; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-pill); background: rgb(14 16 22 / .72); color: #fff; font: 600 11px/1 var(--font-mono); backdrop-filter: blur(8px); }
.bld-body { display: grid; gap: 8px; align-content: start; padding: 18px 22px 22px; }
.bld-cat { font: 600 12px/1 var(--font-mono); color: var(--accent-text); }
.bld-body h3, .bld-body h4 { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -0.03em; line-height: 1.1; }
.bld-body p { font-size: 15px; color: var(--fg-2); }
.bld-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 700; font-size: 14.5px; }
.bld-go svg { transition: transform 260ms var(--ease); }
.bld:hover .bld-go { color: var(--accent-text); }
.bld:hover .bld-go svg { transform: translateX(4px); }
@media (max-width: 1060px) { .bld, .bld.is-wide { grid-column: span 6; } .bld.is-wide { grid-column: span 12; } }
@media (max-width: 640px) { .bld, .bld.is-wide { grid-column: span 12; } }

/* ---------- Accordion ---------- */
.faq { display: grid; gap: 10px; }
.qa { border-radius: var(--r-md); background: var(--tile); border: 1px solid var(--line); transition: border-color 200ms, box-shadow 200ms; }
.qa:hover { border-color: var(--line-2); }
.qa.is-open { box-shadow: var(--sh-2); border-color: transparent; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 14px 18px 14px 22px; font-weight: 700; font-size: 16.5px; }
.qa summary::-webkit-details-marker { display: none; }
.qa-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--tile-2); transition: transform 320ms var(--spring), background-color 200ms, color 200ms; }
.qa.is-open .qa-ico { transform: rotate(45deg); background: var(--accent); color: var(--accent-fg); }
.qa-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease); }
.qa-body > div { overflow: hidden; }
.qa.is-open .qa-body { grid-template-rows: 1fr; }
.qa-body p { padding: 0 22px 20px; color: var(--fg-2); max-width: 64ch; }

/* ---------- Inner page hero ---------- */
.phero { position: relative; padding-top: var(--hdr-clear); padding-bottom: calc(var(--sec) / 2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--fg-3); }
.ptitle { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.75rem, 1.4rem + 5vw, 5.5rem); line-height: .96; letter-spacing: -0.032em; }

/* ---------- CTA tile (two buttons: See pricing + Book a call) ---------- */
.cta-tile { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; padding: clamp(32px, 5vw, 72px); border-radius: var(--r-xl); background: var(--fg); color: var(--bg); }
.cta-tile::before { content: ""; position: absolute; z-index: -1; width: 640px; aspect-ratio: 1; right: -160px; top: -260px; border-radius: 41% 59% 54% 46% / 52% 37% 63% 48%; background: radial-gradient(closest-side, oklch(0.72 0.17 var(--hue) / .9), transparent); filter: blur(24px); animation: blob 20s var(--ease-io) infinite alternate; }
.cta-tile::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .12) 1px, transparent 1.3px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent 30%, #000); }
:root[data-theme="dark"] .cta-tile { background: var(--tile-2); color: var(--fg); }
.cta-tile h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem); line-height: .98; letter-spacing: -0.045em; }
.cta-tile p { margin-top: 14px; font-size: 17px; opacity: .8; max-width: 46ch; }
.cta-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cta-tile .btn-glass { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .28); color: inherit; }
:root:not([data-theme="dark"]) .cta-tile .btn-glass { color: var(--bg); }
.cta-tile .btn-glass:hover { background: rgb(255 255 255 / .2); }
@media (max-width: 860px) { .cta-tile { grid-template-columns: minmax(0, 1fr); } .cta-acts { justify-content: flex-start; } }
@media (max-width: 480px) { .cta-acts .btn { width: 100%; } }

/* ---------- Footer ---------- */
.ftr { padding: calc(var(--sec) / 2) 0 24px; position: relative; overflow: hidden; }
.ftr-tile { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--tile); border: 1px solid var(--line); }
.ftr-brand { display: grid; gap: 14px; align-content: start; }
.ftr-brand p { color: var(--fg-2); font-size: 15px; max-width: 34ch; }
.ftr-col { display: grid; gap: 9px; align-content: start; font-size: 15px; }
.ftr-col h3 { font: 600 12px/1 var(--font-mono); color: var(--fg-3); margin-bottom: 6px; }
.ftr-col a { color: var(--fg-2); text-decoration: none; justify-self: start; transition: color 200ms; }
.ftr-col a:hover { color: var(--fg); }
.ftr-hours-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.ftr-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #1aa36f; box-shadow: 0 0 0 2px rgba(26, 163, 111, 0.25); animation: beat 2s var(--ease) infinite; flex: none; }
.ftr-social-row { display: grid; grid-template-columns: repeat(2, 38px); gap: 10px; margin-top: 2px; }
.ftr-social-btn { display: inline-flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--tile-2); color: var(--fg-2) !important; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 260ms var(--spring), background-color 220ms, border-color 220ms, color 220ms, box-shadow 220ms !important; text-decoration: none !important; }
.ftr-social-btn svg { display: block; width: 18px; height: 18px; transition: transform 260ms var(--spring); }
.ftr-social-btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.25); }
.ftr-social-btn:hover svg { transform: scale(1.12); }
.ftr-social-btn.ftr-social-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff !important; box-shadow: 0 10px 24px -4px rgba(10, 102, 194, 0.5); }
.ftr-social-btn.ftr-social-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: transparent; color: #fff !important; box-shadow: 0 10px 24px -4px rgba(214, 36, 159, 0.5); }
.ftr-social-btn.ftr-social-youtube:hover { background: #ff0000; border-color: #ff0000; color: #fff !important; box-shadow: 0 10px 24px -4px rgba(255, 0, 0, 0.5); }
.ftr-social-btn.ftr-social-x:hover, .ftr-social-btn.ftr-social-twitter:hover { background: #000; border-color: var(--line-2); color: #fff !important; box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.4); }
:root[data-theme=dark] .ftr-social-btn.ftr-social-x:hover, :root[data-theme=dark] .ftr-social-btn.ftr-social-twitter:hover { background: #fff; border-color: #fff; color: #000 !important; box-shadow: 0 10px 24px -4px rgba(255, 255, 255, 0.35); }
.ftr-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 22vw, 22rem); letter-spacing: -0.07em; line-height: .78; text-align: center; margin-top: clamp(24px, 4vw, 56px); color: transparent; -webkit-text-stroke: 1.5px var(--line-2); user-select: none; }
.ftr-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--fg-3); }
.ftr-legal a { color: var(--fg-2); text-decoration: none; }
.ftr-legal a:hover { color: var(--fg); }
@media (max-width: 960px) { .ftr-tile { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr-brand { grid-column: 1 / -1; } }

/* ---------- Toasts and tooltips ---------- */
.toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: var(--r-md); background: var(--tile); border: 1px solid var(--line); box-shadow: var(--sh-3); font-size: 14.5px; font-weight: 600; animation: t-in 420ms var(--spring); }
.toast::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.toast.is-out { animation: t-out 260ms ease-in forwards; }
@keyframes t-in { from { opacity: 0; transform: translateY(14px) scale(.95); } }
@keyframes t-out { to { opacity: 0; transform: translateX(20px); } }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 4px; width: max-content; max-width: 240px; padding: 8px 11px; border-radius: var(--r-sm); background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 500; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity 160ms 200ms, translate 220ms 200ms var(--ease); z-index: 20; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; translate: -50% 0; }

/* ---------- Motion: fan, rise, pop, wipe ---------- */
[data-in] { opacity: 0; transition: opacity 700ms var(--ease), transform 800ms var(--ease), clip-path 900ms var(--ease-io), filter 700ms var(--ease); transition-delay: var(--d, 0ms); }
[data-in="rise"] { transform: translateY(30px); }
[data-in="fan"] { transform: translateY(26px) rotate(var(--fan, -2deg)) scale(.96); transform-origin: 50% 100%; }
[data-in="pop"] { transform: scale(.9); }
[data-in="soft"] { filter: blur(10px); }
[data-in="wipe"] { opacity: 1; clip-path: inset(0 100% 0 0 round var(--r-lg)); }
[data-in="left"] { transform: translateX(-36px); }
[data-in].is-in { opacity: 1; transform: none; filter: none; }
[data-in="wipe"].is-in { clip-path: inset(-4px round var(--r-lg)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-in], .rotator > span { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (hover: none) { .tilt:hover, a.tile:hover, .plan:hover, .rep:hover, .bld:hover { transform: none; } }

/* Tints on tiles and plans (declared after .tile so they win) */
.tile.t-mint, .plan .t-mint { background: var(--mint); }
.tile.t-sky, .plan .t-sky { background: var(--skyt); }
.tile.t-apri, .plan .t-apri { background: var(--apri); }
.tile.t-sand { background: var(--sand); }
.tile[class*="t-"] { border-color: transparent; }

/* Plans line up row by row (subgrid) */
@supports (grid-template-rows: subgrid) {
  .plans { grid-template-rows: auto auto auto auto; }
  .plan { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}

/* Receptionist card footer wraps cleanly at narrow widths */
.rep-foot { flex-wrap: wrap; }
.rep-demo { white-space: nowrap; }

/* ---------- Live demo window (in-page) ---------- */
.demo-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(10px, 3vw, 40px); background: rgb(8 9 12 / .82); backdrop-filter: blur(6px); }
.demo-modal[hidden] { display: none; }
.demo-win { width: min(100%, 1180px); height: min(100%, 820px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 40px 100px -20px rgb(0 0 0 / .6); animation: demo-in 320ms cubic-bezier(.2,.9,.25,1); }
@keyframes demo-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.demo-bar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 16px; background: #15161b; color: #fff; }
.demo-dots { display: flex; gap: 6px; } .demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .25); } .demo-dots i:first-child { background: #ff5f57; }
.demo-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-out { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; background: rgb(255 255 255 / .1); transition: background-color 160ms; }
.demo-out:hover { background: rgb(255 255 255 / .2); }
.demo-x { width: 40px; height: 40px; border-radius: 8px; color: #fff; font-size: 26px; line-height: 1; transition: background-color 160ms; }
.demo-x:hover { background: rgb(255 255 255 / .15); }
.demo-body { position: relative; background: #f4f4f6; }
.demo-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 300ms; }
.demo-modal.is-loaded iframe { opacity: 1; }
.demo-load { position: absolute; inset: 0; display: grid; place-items: center; color: #555; font-size: 15px; }
@media (max-width: 640px) { .demo-out { display: none; } .demo-win { height: 100%; border-radius: 10px; } }

/* ---------- Sticky: WhatsApp Widget + Back-to-Top ---------- */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.whatsapp-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: pulse-glow-green 2s infinite;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
  flex: none;
}
.whatsapp-widget:hover .whatsapp-icon-box {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}
@keyframes pulse-glow-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-badge {
  position: absolute;
  left: calc(100% + 12px);
  white-space: nowrap;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 200ms, transform 220ms var(--ease);
  box-shadow: var(--sh-2);
}
.whatsapp-badge::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--fg);
}
.whatsapp-widget:hover .whatsapp-badge {
  opacity: 1;
  transform: translateX(0);
}

/* Back-to-Top Widget */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease), transform 260ms var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.btt-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-2);
  transition: transform 260ms var(--ease), background-color 200ms, color 200ms, box-shadow 260ms;
}
.back-to-top:hover .btt-icon-box {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  background: var(--accent);
  color: var(--accent-fg);
}
.btt-badge {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 200ms, transform 220ms var(--ease);
  box-shadow: var(--sh-2);
}
.btt-badge::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--fg);
}
.back-to-top:hover .btt-badge {
  opacity: 1;
  transform: translateX(0);
}

:root[data-theme="dark"] .btt-icon-box {
  background: var(--tile);
  color: var(--fg);
  border: 1px solid var(--line-2);
}
:root[data-theme="dark"] .back-to-top:hover .btt-icon-box {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
:root[data-theme="dark"] .whatsapp-badge,
:root[data-theme="dark"] .btt-badge {
  background: var(--tile);
  color: var(--fg);
  border: 1px solid var(--line-2);
}
:root[data-theme="dark"] .whatsapp-badge::before { border-right-color: var(--tile); }
:root[data-theme="dark"] .btt-badge::after { border-left-color: var(--tile); }

/* ---------- Footer: Centered legal & Hywiz Technologies link ---------- */
.ftr-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}
.ftr-legal span {
  text-align: center;
}
.hywiz-link {
  color: var(--fg);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 200ms var(--ease), text-decoration-color 200ms var(--ease);
}
.hywiz-link:hover {
  color: var(--accent-text);
  text-decoration-color: currentColor;
}
:root[data-theme="dark"] .hywiz-link {
  color: #fff;
  text-decoration-color: var(--accent);
}
:root[data-theme="dark"] .hywiz-link:hover {
  color: var(--accent);
}

/* ---------- Mobile: footer flex column & centered text ---------- */
@media (max-width: 640px) {
  .ftr-tile { display: flex; flex-direction: column; gap: 24px; }
  .ftr-col { display: flex; flex-direction: column; }
  .ftr-social-row { display: flex; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
  .ftr-legal { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
  .ftr-legal span { text-align: center; }
}

/* ---------- Mobile: hero overflow fix ---------- */
@media (max-width: 640px) {
  .hero, .hero-bento, .hero-main { max-width: 100%; }
  .hero-main {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .hero-main > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-main .display {
    max-width: 100%;
    font-size: clamp(2rem, 1.6rem + 2.6vw, 2.75rem);
    line-height: 1.05;
    word-break: break-word;
  }
  .hero-main .rotator > span { white-space: normal; }
  .hero-main .lede { max-width: 100%; }
  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ---------- Button sizing consistency ---------- */
.hero-ctas .btn, .cta-acts .btn, .ch-ctas .btn, .rc-acts .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  line-height: 1;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .hero-ctas .btn, .cta-acts .btn, .ch-ctas .btn {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding: 0 20px;
    font-size: 15px;
    margin: 0;
    box-sizing: border-box;
  }
}

/* ---------- Blog: key-takeaway collision prevention ---------- */
.rd-article {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.rd-article > .rd-text {
  grid-column: 1 / span 8;
}
.rd-article > .rd-keys {
  grid-column: 9 / span 4;
  position: sticky;
  top: 96px;
  align-self: start;
}
@media (max-width: 1060px) {
  .rd-article > .rd-text, .rd-article > .rd-keys { grid-column: 1 / -1; }
  .rd-article > .rd-keys { position: static; order: 1; }
  .rd-article > .rd-text { order: 2; }
}

/* ---------- Testimonial Client Avatars ---------- */
.av {
  overflow: hidden !important;
  position: relative !important;
}
.av img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
  display: block !important;
}

