/* ==========================================================================
   Ubitech — design system
   1. Fonts      2. Tokens     3. Reset      4. Type
   5. Layout     6. Buttons    7. Motion     8. Chrome (header/footer)
   9. Sections  10. App mock  11. Forms     12. Responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "InterVar";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVar";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens --------------------------------------------------------------- */

/* Light is the default surface; dark is opt-in per section. Because every
   component reads the same custom properties, a scoped re-declaration on
   .sec--dark flips the whole subtree without duplicate rules. */
:root {
  /* Brand — overridable from the admin panel via inline custom properties. */
  --accent: #0b6ea8;
  --accent-2: #16325f;
  --accent-ink: #fff;

  --bg: #fff;
  --bg-2: #f5f7fa;
  --surface: #f5f7fa;
  --surface-2: #eceff5;
  --glass: rgb(255 255 255 / 62%);
  --glass-strong: rgb(255 255 255 / 82%);
  --line: rgb(16 33 61 / 12%);
  --line-strong: rgb(16 33 61 / 22%);
  --txt: #0f1b2e;
  --txt-2: #4a586e;
  --txt-3: #6d7a8f;

  --ok: #0f7a52;
  --warn: #a86400;
  --bad: #b02a37;

  /* One family throughout. A display face fought the corporate tone and its
     Turkish letterforms (ı, ğ, ş) read as decorative. */
  --font-display: "InterVar", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "InterVar", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Fluid type scale — sized for reading, not for impact. */
  --t-hero: clamp(1.85rem, 3vw, 2.75rem);
  --t-d1: clamp(1.5rem, 2.2vw, 2rem);
  --t-d2: clamp(1.3rem, 1.7vw, 1.6rem);
  --t-h3: clamp(0.98rem, 0.9vw, 1.06rem);
  --t-body: clamp(0.9rem, 0.2vw + 0.85rem, 0.95rem);
  --t-lead: clamp(0.95rem, 0.32vw + 0.88rem, 1.04rem);
  --t-sm: 0.8rem;
  --t-xs: 0.69rem;

  --w: min(1180px, 100% - 3rem);
  --w-wide: min(1340px, 100% - 3rem);
  --w-prose: min(700px, 100% - 3rem);

  --pad-y: clamp(3rem, 5.5vw, 5.25rem);
  --r: 4px;
  --r-lg: 10px;
  --r-xl: 18px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* Dark surfaces: hero, footer and any section marked tone="dark". */
.sec--dark,
.hero,
.ftr,
.hdr-dark {
  --accent: #4cc4f0;
  --accent-2: #8ea6ff;
  --accent-ink: #06121f;
  --bg: #0b1526;
  --bg-2: #0e1b30;
  --surface: #132542;
  --surface-2: #182c4d;
  --glass: rgb(255 255 255 / 6%);
  --glass-strong: rgb(255 255 255 / 10%);
  --line: rgb(255 255 255 / 12%);
  --line-strong: rgb(255 255 255 / 22%);
  --txt: #eef3f9;
  --txt-2: #a8b6cb;
  --txt-3: #7f8ea6;
  --ok: #3fcf94;
  --warn: #f0b429;
  --bad: #ff8a99;

  background: var(--bg);
  color: var(--txt);
  color-scheme: dark;
}

/* 3. Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  border-radius: var(--r);
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 1rem;
}


/* 4. Type ----------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-d1);
}
h2 {
  font-size: var(--t-d2);
}
h3 {
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 650;
  color: var(--txt);
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--txt-2);
  max-width: 62ch;
}

.muted {
  color: var(--txt-2);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentcolor;
  opacity: 0.6;
}

.kicker--plain::before {
  display: none;
}

/* An accent word inside a heading. */
.hl {
  color: var(--accent);
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 5. Layout --------------------------------------------------------------- */

.wrap {
  width: var(--w);
  margin-inline: auto;
}

.wrap--wide {
  width: var(--w-wide);
}

.wrap--prose {
  width: var(--w-prose);
}

.sec {
  padding-block: var(--pad-y);
  position: relative;
}

.sec--tight {
  padding-block: clamp(2.25rem, 3.5vw, 3.25rem);
}

/* A tinted wash rather than a solid fill, so alternating sections read as one
   sheet of paper catching light instead of stacked colour blocks. */
.sec--sunk {
  background: linear-gradient(
    180deg,
    rgb(11 110 168 / 4.5%) 0%,
    rgb(11 110 168 / 2%) 45%,
    rgb(11 110 168 / 5%) 100%
  );
}

.sec--dark.sec--sunk {
  background: rgb(255 255 255 / 3%);
}

/* Section header: kicker + title + lead, optionally with a side action. */
.sec-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(1.75rem, 2.8vw, 2.5rem);
}

.sec-head--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.sec-head h2 {
  max-width: 20ch;
}

.sec-head--split .lead {
  padding-bottom: 0.4rem;
}

/* Generic responsive grids. */
.grid {
  display: grid;
  gap: 1px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-md {
  gap: 0.9rem;
}
.gap-lg {
  gap: 1.4rem;
}

/* Hairline grid: cards separated by 1px rules instead of gaps. */
.rule-grid {
  border: 1px solid var(--line);
  background: var(--line);
  display: grid;
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Translucent so the section's wash reads through the grid; the blur keeps
   text on the tile crisp instead of sitting on a see-through smear. */
.rule-grid > * {
  background: var(--glass);
  backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(1px)) {
  .rule-grid > * {
    background: var(--glass-strong);
  }
}

/* 6. Buttons -------------------------------------------------------------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 1.2rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgb(41 224 255 / 22%);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 1em;
  height: 1em;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--txt);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn--solid {
  --btn-bg: #0c1b33;
  --btn-fg: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* Text link with an animated underline. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
  background-image: linear-gradient(currentcolor, currentcolor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease-out);
  padding-bottom: 2px;
}

.link:hover {
  background-size: 100% 1px;
}

.link svg {
  width: 0.9em;
  height: 0.9em;
}

/* Pills / tags. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--txt-2);
}

.tag--accent {
  border-color: rgb(41 224 255 / 35%);
  background: rgb(41 224 255 / 8%);
  color: var(--accent);
}

/* 7. Motion --------------------------------------------------------------- */

/* Deliberately restrained: a short fade, no travel-heavy entrances. */
[data-reveal] {
  opacity: 0;
  transform: translateY(0.7rem);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 8. Chrome --------------------------------------------------------------- */

/* At rest the header sits over the photo band and borrows dark-surface tokens
   so the nav reads against it; past the band it resolves into a white bar.
   Both states share one transition, which is what keeps the top of the page
   feeling continuous instead of stacked. */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);

  --txt: #eef3f9;
  --txt-2: #c2cede;
  --txt-3: #9aa9be;
  --line: rgb(255 255 255 / 18%);
  --line-strong: rgb(255 255 255 / 30%);
  --surface: rgb(255 255 255 / 10%);
  --accent: #4cc4f0;
  --accent-ink: #06121f;
}

.hdr.stuck {
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgb(16 33 61 / 12%);
  box-shadow: 0 6px 24px rgb(12 27 51 / 8%);

  --txt: #0f1b2e;
  --txt-2: #4a586e;
  --txt-3: #6d7a8f;
  --line: rgb(16 33 61 / 12%);
  --line-strong: rgb(16 33 61 / 22%);
  --surface: #f5f7fa;
  --accent: #0b6ea8;
  --accent-ink: #fff;
}

.hdr-in {
  width: var(--w-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 84px;
}

.hdr-logo {
  display: block;
  position: relative;
}

.hdr-logo img {
  height: 46px;
  width: auto;
  display: block;
  transition: opacity 0.45s var(--ease);
}

.hdr-logo-dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hdr.stuck .hdr-logo-light {
  opacity: 0;
}

.hdr.stuck .hdr-logo-dark {
  opacity: 1;
}

.hdr-nav {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  height: 100%;
  margin-inline: auto 0;
}

.hdr-item {
  position: relative;
  display: flex;
  align-items: center;
}

.hdr-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.95rem;
  height: 100%;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--txt-2);
  transition: color 0.2s var(--ease);
}

.hdr-link:hover,
.hdr-item:hover .hdr-link,
.hdr-link.on {
  color: var(--txt);
}

.hdr-link .chev {
  width: 0.6em;
  height: 0.6em;
  opacity: 0.55;
  transition: transform 0.25s var(--ease);
}

.hdr-item:hover .chev {
  transform: rotate(180deg);
}

.hdr-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hdr-cta .btn {
  padding: 0.62rem 1.15rem;
  font-size: 0.86rem;
}

/* Header types (pg-038) ----------------------------------------------------
   All three share the 84px row height (mega/drawer fixed-position math is
   pinned to it); only what the CTA slot shows changes. */
.hdr-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--txt-2);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.hdr-phone svg {
  width: 1.05em;
  height: 1.05em;
  opacity: 0.8;
}

.hdr-phone:hover {
  color: var(--txt);
}

.hdr--minimal .hdr-link--in {
  padding: 0 0.3rem;
  height: auto;
  font-weight: 600;
}

/* Mega panel -------------------------------------------------------------
   Full-bleed panels are fixed to the viewport so they can span its width.
   .hdr-item stretches the full header height, so the pointer never crosses
   a gap between the trigger and the panel. */
.mega {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease-out),
    visibility 0.2s;
}

.mega--plain {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  translate: -50% 0;
  width: 19rem;
}

.hdr-item.open > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Glass panel: the page stays legible through it, which is what keeps the menu
   from feeling like a second page dropped on top of the first. */
.mega-in {
  --accent: #4cc4f0;
  --surface: rgb(255 255 255 / 8%);
  --surface-2: rgb(255 255 255 / 12%);
  --line: rgb(255 255 255 / 14%);
  --txt: #f2f6fb;
  --txt-2: #b9c6d8;
  --txt-3: #9aa9bf;

  background: rgb(9 20 38 / 72%);
  backdrop-filter: blur(26px) saturate(150%);
  color: var(--txt);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 60px rgb(8 18 35 / 24%);
}

.mega--plain .mega-in {
  background: rgb(9 20 38 / 78%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 50px rgb(8 18 35 / 28%);
  overflow: hidden;
}

/* Blur needs something behind it; without support a near-solid panel is the
   safer fallback. */
@supports not (backdrop-filter: blur(1px)) {
  .mega-in {
    background: rgb(9 20 38 / 96%);
  }
}

.mega--plain .wrap {
  width: 100%;
  padding: 0.5rem;
}

.mega-cols {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 2rem;
  padding: 2.1rem 0 1.9rem;
}

.mega--plain .mega-cols {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.mega-h {
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

a.mega-h {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

a.mega-h svg {
  width: 0.7rem;
  height: 0.7rem;
  opacity: 0;
  transform: translateX(-0.2rem);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}

a.mega-h:hover,
a.mega-h:focus-visible {
  color: var(--txt);
}

a.mega-h:hover svg,
a.mega-h:focus-visible svg {
  opacity: 1;
  transform: none;
}

.mega-col {
  display: grid;
  align-content: start;
  gap: 0.15rem;
}

.mega-a {
  display: block;
  padding: 0.6rem 0.7rem;
  margin-inline: -0.7rem;
  border-radius: var(--r-md);
  transition: background 0.16s var(--ease);
}

.mega-a:hover,
.mega-a:focus-visible {
  background: var(--surface-2);
}

.mega-a b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 0.15rem;
}

.mega-a span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--txt-3);
}

/* Promo rail inside the services panel. */
.mega-promo {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
  align-content: start;
  gap: 0.85rem;
}

.mega-promo p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--txt-2);
}

.mega-promo .btn {
  justify-self: start;
}

/* Sector cards. */
.mega-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1.9rem 0 1.7rem;
}

.mega-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 3%);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.mega-card:hover,
.mega-card:focus-visible {
  background: var(--surface-2);
  border-color: rgb(255 255 255 / 22%);
}

.mega-thumb {
  flex: 0 0 auto;
  width: 4.4rem;
  height: 3rem;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
}

.mega-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-card-copy {
  min-width: 0;
}

.mega-card-copy b {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 0.1rem;
}

.mega-card-copy span {
  display: block;
  font-size: 0.75rem;
  color: var(--txt-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer strip: context on the left, shortcuts on the right. */
.mega-foot {
  border-top: 1px solid var(--line);
  background: rgb(0 0 0 / 18%);
}

.mega-foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.mega-note {
  font-size: 0.78rem;
  color: var(--txt-3);
}

.mega-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mega-links a {
  font-size: 0.79rem;
  font-weight: 550;
  color: var(--txt-2);
  transition: color 0.16s var(--ease);
}

.mega-links a:hover {
  color: var(--accent);
}
/* Mobile nav */
.hdr-burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.hdr-burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--txt);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.hdr-burger span:nth-child(1) {
  top: 16px;
}
.hdr-burger span:nth-child(2) {
  bottom: 16px;
}

.hdr.open .hdr-burger span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.hdr.open .hdr-burger span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: 84px 0 0;
  z-index: 89;
  background: var(--bg);
  overflow-y: auto;
  padding: 1.5rem 0 4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.75rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out),
    visibility 0.3s;
}

.hdr.open + .drawer,
.drawer.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.drawer details {
  border-bottom: 1px solid var(--line);
}

.drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.drawer summary::-webkit-details-marker {
  display: none;
}

.drawer summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--txt-3);
  transition: transform 0.25s var(--ease);
}

.drawer details[open] summary::after {
  transform: rotate(45deg);
}

.drawer-links {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 1rem;
}

.drawer-links a {
  padding: 0.55rem 0;
  color: var(--txt-2);
  font-size: 0.95rem;
}

.drawer-links a:hover {
  color: var(--accent);
}

.drawer > .wrap > a.drawer-top {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.drawer-cta {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.drawer-cta .btn {
  justify-content: center;
}

/* Footer */
.ftr {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
}

.ftr-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}

.ftr-brand img {
  height: 32px;
  margin-bottom: 1.1rem;
}

.ftr-brand p {
  font-size: 0.88rem;
  color: var(--txt-3);
  max-width: 34ch;
  line-height: 1.6;
}

.ftr-col h4 {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 1rem;
}

.ftr-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.875rem;
  color: var(--txt-2);
  transition: color 0.2s var(--ease);
}

.ftr-col a:hover {
  color: var(--accent);
}

.ftr-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--txt-3);
}

.ftr-bot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.ftr-contact {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-size: 0.875rem;
}

/* Footer types (pg-038) -----------------------------------------------------
   columns (default, markup above) | compact (single row, no columns) |
   cta (a banner strip prepended above the standard columns body). */
.ftr--compact {
  padding-block: 1.6rem;
}

.ftr-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.ftr-compact-brand img {
  height: 26px;
  display: block;
}

.ftr-compact-copy {
  font-size: 0.82rem;
  color: var(--txt-3);
  margin-inline: auto 0;
}

.ftr-compact-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.ftr-compact-legal a {
  font-size: 0.8rem;
  color: var(--txt-2);
}

.ftr-compact-legal a:hover {
  color: var(--accent);
}

.ftr-cta {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.ftr-cta-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.ftr-cta-in h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0.25rem 0 0.4rem;
}

.ftr-cta-in p {
  color: var(--txt-2);
  max-width: 46ch;
  font-size: 0.92rem;
}

.ftr-cta-in .btn {
  flex-shrink: 0;
}

.ftr-contact a {
  color: var(--txt);
  font-weight: 550;
}

.ftr-contact a:hover {
  color: var(--accent);
}

/* 9. Sections ------------------------------------------------------------- */

/* --- Hero --- */

/* The header floats, so the first section reaches under it and carries the
   clearance itself. */
.hero,
.phead {
  --hdr-h: 84px;
}

.hero {
  position: relative;
  padding-top: calc(var(--hdr-h) + clamp(3rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: clip;
  isolation: isolate;
}

/* The app window peeks above the fold, then completes on scroll. */
.hero-app {
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
}

/* Photo backdrop shared by the hero and every page head. Source photos come
   from different shoots, so a single grade — desaturate, lift contrast, then
   a navy veil — is what makes them read as one set instead of a scrapbook. */
.pbg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--bg);
}

.pbg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.06) brightness(0.82);
  transform: scale(1.04);
  transform-origin: 50% 45%;
  animation: kenburns 26s var(--ease-out) forwards;
  /* Dissolve the photo into the band's navy rather than cutting it, so the
     seam below picks up a colour that is already settled. */
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 62%,
    rgb(0 0 0 / 55%) 84%,
    rgb(0 0 0 / 0%) 100%
  );
}

/* Left-weighted veil: opaque enough to carry text on the copy side, thin on
   the right so the photograph still reads. */
.pbg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgb(9 20 38 / 88%) 0%,
      rgb(9 20 38 / 66%) 42%,
      rgb(9 20 38 / 24%) 100%
    ),
    linear-gradient(to bottom, rgb(9 20 38 / 30%) 0%, rgb(9 20 38 / 62%) 100%);
}

@keyframes kenburns {
  to {
    transform: scale(1.14);
  }
}

/* Seam between the dark photo band and the light section under it: the light
   section starts in the band's navy and dissolves out of it, so the boundary
   is a crossfade rather than a cut. */
.sec--seam {
  position: relative;
  isolation: isolate;
}

.sec--seam::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  /* Kept under the section's own top padding so no copy lands on the veil. */
  height: clamp(58px, 6.5vw, 110px);
  z-index: -1;
  pointer-events: none;
  /* Many stops because a two-stop navy-to-transparent ramp over a light
     surface greys out through the middle and looks like dirt. */
  background: linear-gradient(
    to bottom,
    rgb(9 20 38 / 100%) 0%,
    rgb(9 20 38 / 96%) 8%,
    rgb(9 20 38 / 84%) 18%,
    rgb(9 20 38 / 62%) 32%,
    rgb(9 20 38 / 38%) 48%,
    rgb(9 20 38 / 18%) 66%,
    rgb(9 20 38 / 6%) 84%,
    rgb(9 20 38 / 0%) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .pbg img {
    animation: none;
  }
}

/* Static wash + structural column rules, both purely decorative. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  z-index: -2;
  background: radial-gradient(
      44% 42% at 16% 10%,
      rgb(76 196 240 / 12%),
      transparent 70%
    ),
    radial-gradient(40% 44% at 84% 6%, rgb(142 166 255 / 10%), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    var(--line) 1px,
    transparent 1px 100%
  );
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
  opacity: 0.55;
}


.hero h1 {
  font-size: var(--t-hero);
  line-height: 0.9;
  letter-spacing: -0.022em;
  max-width: 14ch;
}

/* Rule under the headline turns the fold into an editorial masthead. */
.hero-under {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.hero .lead {
  max-width: 48ch;
  margin-bottom: 1.9rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.hero-fact {
  background: rgb(16 20 31 / 55%);
  backdrop-filter: blur(8px);
  padding: 1.05rem 1.15rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.hero-fact b {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--txt);
}

.hero-fact span {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--txt-3);
}

.phead .hero-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Scroll hint */
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
}

.hero-scroll i {
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(var(--accent), transparent);
  animation: hint 2.2s var(--ease) infinite;
}

@keyframes hint {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* --- Marquee --- */

.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: slide 42s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--txt-3);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* --- Stat band --- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stat {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.75rem) 1.5rem;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat--word b {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.stat span {
  font-size: 0.86rem;
  color: var(--txt-2);
  line-height: 1.45;
  display: block;
  max-width: 26ch;
}

/* --- Card grids --- */

.card {
  position: relative;
  padding: clamp(1.15rem, 1.7vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}

/* Pointer-tracked spotlight; JS sets --mx/--my. */
.card--spot::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(
    18rem 18rem at var(--mx, 50%) var(--my, 0%),
    rgb(41 224 255 / 9%),
    transparent 70%
  );
  pointer-events: none;
}

.card--spot:hover::before {
  opacity: 1;
}

.card-ic {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.card-ic svg {
  width: 1.05rem;
  height: 1.05rem;
}

.card h3 {
  position: relative;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--txt-2);
  position: relative;
}

.card-n {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--txt-3);
}

.card ul {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.card li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.87rem;
  color: var(--txt-2);
  line-height: 1.5;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

/* Whole-card link affordance. */
a.card:hover h3 {
  color: var(--accent);
}

a.card .card-go {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

a.card .card-go svg {
  width: 0.85em;
  height: 0.85em;
  transition: transform 0.25s var(--ease-out);
}

a.card:hover .card-go svg {
  transform: translateX(4px);
}

/* --- Sticky showcase: pinned copy, swapping panel --- */

.show {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.show-nav {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 0.15rem;
}

.show-btn {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.2rem 0.75rem;
  text-align: left;
  padding: 0.95rem 1rem;
  background: transparent;
  border: 0;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.show-btn:hover {
  background: var(--glass);
}

.show-btn .n {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--txt-3);
  padding-top: 0.25rem;
}

.show-btn b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--txt-2);
  transition: color 0.25s var(--ease);
}

.show-btn small {
  font-size: 0.83rem;
  color: var(--txt-3);
  line-height: 1.45;
  display: none;
}

.show-btn[aria-selected="true"] {
  background: var(--glass);
}

.show-btn[aria-selected="true"] b,
.show-btn:hover b {
  color: var(--txt);
}

.show-btn[aria-selected="true"] .n {
  color: var(--accent);
}

.show-btn[aria-selected="true"] small {
  display: block;
}

.show-panel {
  display: none;
}

.show-panel.on {
  display: block;
  animation: fade 0.5s var(--ease-out);
}

/* --- Category hub: horizontal module tabs, then per-module showcase --- */

.cat-hub {
  display: grid;
  gap: 2.25rem;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

/* pg-063: eski hali dolgulu/mavi "hap" (pill) buton dizisiydi — referans
   sayfa bu ağırlıkta bir sekme dizisi kullanmıyor, düz metin + ince alt
   çizgi. Aynı davranış (tıkla, modül değiş) korunuyor, yalnız görünüm
   sadeleşti; artık aşağıdaki `.feat-*` listesiyle AYNI editoryal dil. */
.cat-tab {
  position: relative;
  padding: 1rem 0 1.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--txt-3);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.cat-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.cat-tab:hover {
  color: var(--txt);
}

.cat-tab[aria-selected="true"] {
  color: var(--txt);
}

.cat-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.cat-panel {
  display: none;
}

.cat-panel.on {
  display: block;
  animation: fade 0.5s var(--ease-out);
}

.cat-panel .app {
  margin-bottom: 2rem;
}

/* pg-063: düz özellik listesi — referans "SentezLIVE" tarzı: sol sütunda
   HER özelliğin başlığı+açıklaması sürekli açık (tıklama/sekme yok), sağda
   TEK bir ekran mock'u sticky durur (özellik başına tekrarlanmaz). Eski
   `.show`/numaralı-sekme deseninin AYNI konumdaki yerini alıyor. */
.feat-grid {
  display: grid;
  /* pg-065: gerçek ekran görüntüsü sütununa daha fazla genişlik — 1920px görsel
     dar sütunda okunmuyordu. */
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2rem;
}

.feat-list {
  display: grid;
  gap: 1.85rem;
}

.feat-item h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--txt);
  margin: 0 0 0.4rem;
}

.feat-item p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--txt-2);
  margin: 0;
}

.feat-media {
  position: sticky;
  top: 7rem;
}

@media (max-width: 860px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }

  .feat-media {
    position: static;
    order: -1;
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

/* --- Split (copy + visual) --- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split--flip > *:first-child {
  order: 2;
}

.split-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  position: relative;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-check {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.75rem;
  font-size: 0.94rem;
  color: var(--txt-2);
  line-height: 1.55;
}

.list-check svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
  margin-top: 0.1rem;
}

/* --- Numbered process --- */

.flow {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.flow-row {
  counter-increment: step;
  display: grid;
  grid-template-columns: 5rem minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem 2rem;
  padding: clamp(1.5rem, 2.6vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background 0.3s var(--ease);
}

.flow-row:last-child {
  border-bottom: 1px solid var(--line);
}

.flow-row::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.flow-row h3 {
  align-self: start;
}

.flow-row p {
  font-size: 0.94rem;
  color: var(--txt-2);
}

.flow-out {
  display: inline-flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--txt-3);
}

.flow-out b {
  color: var(--txt-2);
  font-weight: 600;
}

/* --- Quote --- */

.quote {
  display: grid;
  gap: 2rem;
  max-width: 58rem;
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.quote-by {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
}

.quote-by i {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  color: var(--accent-ink);
}

.quote-by b {
  display: block;
  font-weight: 600;
}

.quote-by span {
  color: var(--txt-3);
  font-size: 0.85rem;
}

/* --- Big CTA --- */

.cta {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--surface), var(--bg-2) 60%);
  text-align: center;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -50% 20% auto;
  height: 140%;
  z-index: -1;
  background: radial-gradient(
    45% 45% at 50% 0%,
    rgb(41 224 255 / 16%),
    transparent 70%
  );
}

.cta h2 {
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1.1rem;
}

.cta .lead {
  margin-inline: auto;
  margin-bottom: 2rem;
  max-width: 52ch;
}

.cta .btn-row {
  justify-content: center;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--txt-3);
}

/* --- Matrix table --- */

.matrix-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

table.matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
  min-width: 52rem;
}

.matrix th,
.matrix td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* The row label stays put while the module columns scroll, otherwise you lose
   track of which sector you are reading. */
.matrix tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg);
}

.matrix thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}


.matrix th:last-child,
.matrix td:last-child {
  border-right: 0;
}

.matrix tr:last-child td {
  border-bottom: 0;
}

/* Sticky header rows scroll over their own body, so this one stays opaque. */
.matrix thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-3);
}

.matrix tbody th {
  font-weight: 600;
  color: var(--txt);
}

.matrix td {
  color: var(--txt-2);
}

.matrix .yes {
  color: var(--ok);
  font-weight: 700;
}

.matrix .no {
  color: var(--txt-3);
}

/* Coverage cells are icon-only, so the glyph needs a fixed box. */
.matrix td:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}

.matrix svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
  vertical-align: -3px;
}

/* --- FAQ --- */

.faq {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  background: currentcolor;
  transition: transform 0.3s var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq-a {
  padding: 0 0 1.5rem;
  max-width: 68ch;
  color: var(--txt-2);
  font-size: 0.95rem;
}

/* --- Article grid + prose --- */

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.75rem;
}

.post {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.post-img {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--ease-out);
}

.post:hover .post-img img {
  scale: 1.05;
}

.post-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-3);
}

.post h3 {
  font-size: 1.15rem;
}

.post:hover h3 {
  color: var(--accent);
}

.post p {
  font-size: 0.9rem;
  color: var(--txt-2);
  line-height: 1.6;
}

.prose {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--txt-2);
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--txt);
  margin-top: 2.4em;
}

.prose h3 {
  font-size: 1.25rem;
  color: var(--txt);
  margin-top: 1.9em;
}

.prose strong {
  color: var(--txt);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.55rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose blockquote {
  margin: 2em 0;
  padding: 0.2rem 0 0.2rem 1.5rem;
  border-left: 2px solid var(--accent);
  font-size: 1.12rem;
  color: var(--txt);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  text-align: left;
}

.gloss-az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.75rem;
}

.gloss-az a {
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--txt);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
}

.gloss-az a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gloss-letter {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2rem 0 0.85rem;
}

.gloss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.gloss-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.25rem;
}

.gloss-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: var(--txt);
}

.gloss-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--txt-2);
}

.gloss-more {
  margin-top: 0.7rem !important;
  font-size: 0.8rem !important;
}

.gloss-more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.gloss-more a:hover {
  text-decoration: underline;
}

/* Sticky table of contents beside long articles. */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: 7rem;
  font-size: 0.85rem;
  display: grid;
  gap: 0.5rem;
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}

.toc b {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 0.35rem;
}

.toc a {
  color: var(--txt-2);
  line-height: 1.45;
}

.toc a:hover,
.toc a.on {
  color: var(--accent);
}

/* --- Pricing --- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.2rem, 1.8vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--glass);
}

.plan--hot {
  border-color: rgb(41 224 255 / 40%);
  background: linear-gradient(180deg, rgb(41 224 255 / 6%), transparent 45%);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -0.7rem;
  left: clamp(1.2rem, 1.8vw, 1.6rem);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.plan h3 {
  font-size: 1.05rem;
}

.plan-for {
  font-size: 0.86rem;
  color: var(--txt-3);
  min-height: 2.6em;
}

.plan-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.plan .btn {
  justify-content: center;
  margin-top: 0.5rem;
}

/* --- Breadcrumb --- */

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--txt-3);
  margin-bottom: 1.5rem;
}

.crumb a:hover {
  color: var(--accent);
}

.crumb li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumb li:not(:last-child)::after {
  content: "/";
  opacity: 0.4;
}

/* --- Page head (interior pages) --- */

.phead {
  position: relative;
  padding-top: calc(var(--hdr-h) + clamp(2.5rem, 4vw, 3.75rem));
  padding-bottom: clamp(3rem, 5.5vw, 4.5rem);
  overflow: clip;
  isolation: isolate;
}

.phead::before {
  content: "";
  position: absolute;
  inset: -60% 0 auto;
  height: 150%;
  z-index: -1;
  background: radial-gradient(
    40% 45% at 22% 15%,
    rgb(41 224 255 / 13%),
    transparent 70%
  );
}

.phead h1 {
  max-width: 18ch;
  margin-bottom: 1.3rem;
}

.phead .lead {
  max-width: 58ch;
}

.phead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

/* Product screenshot frame — hug the PNG, no inner scrollbar / letterbox. */
.shot {
  max-width: min(100%, 1120px);
  margin-inline: auto;
}

.shot-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgb(15 35 58 / 12%);
  background: transparent;
  box-shadow: 0 24px 56px -28px rgb(12 27 51 / 38%);
  scrollbar-width: none;
}

.shot-frame::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-cap {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--txt-2);
}

/* 10. App mock ------------------------------------------------------------
   Light chrome matches the live SPA (erp.ubitech.net.tr): slate surface,
   #0b6ea8 accent. Dark marketing bands keep a soft drop shadow. */

.app {
  --accent: #0b6ea8;
  --accent-2: #3d8ec4;
  --accent-ink: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --line: rgb(15 35 58 / 10%);
  --line-strong: rgb(15 35 58 / 16%);
  --txt: #132033;
  --txt-2: #4b5b70;
  --txt-3: #7a8798;
  --ok: #1a8a5a;
  --warn: #c48912;
  --bad: #c44755;

  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #f6f8fb;
  color: var(--txt);
  box-shadow: 0 24px 56px -28px rgb(12 27 51 / 35%);
  font-size: 12px;
  line-height: 1.4;
  container-type: inline-size;
}

.sec--dark .app {
  box-shadow: 0 28px 70px -22px rgb(0 0 0 / 45%);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: #eef2f6;
  border-bottom: 1px solid var(--line);
}

.app-dots {
  display: flex;
  gap: 0.35rem;
}

.app-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(15 35 58 / 16%);
}

.app-url {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  color: var(--txt-3);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  max-width: 18rem;
  margin-inline: auto;
}

.app-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 24rem;
}

/* pg-081: gerçek ERP görüntüsü — URL çubuğu / trafik ışığı / yeni sekme yok.
   Kırpılmış PNG + ince gölge. */
.app--shot {
  margin: 0;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 0 0 1px rgb(15 35 58 / 10%),
    0 18px 40px -22px rgb(12 27 51 / 42%),
    0 40px 80px -36px rgb(12 27 51 / 28%);
}

.sec--dark .app--shot {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 8%),
    0 22px 56px -18px rgb(0 0 0 / 55%);
}

.app-shot-stage {
  position: relative;
  overflow: hidden;
  background: transparent;
  line-height: 0;
  scrollbar-width: none;
}

.app-shot-stage::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.app--shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Sidebar */

.app-side {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-co {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.app-co i {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: none;
}

.app-co b {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-co span {
  margin-left: auto;
  color: var(--txt-3);
  font-size: 9px;
}

.app-grp {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a5468;
  padding: 0.7rem 0.5rem 0.3rem;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.5rem;
  border-radius: 6px;
  color: var(--txt-2);
  font-size: 11px;
}

.app-nav svg {
  width: 13px;
  height: 13px;
  opacity: 0.65;
  flex: none;
}

.app-nav.on {
  background: rgb(11 110 168 / 10%);
  color: var(--accent);
  font-weight: 600;
}

.app-nav.on svg {
  opacity: 1;
}

.app-nav em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  background: rgb(11 110 168 / 8%);
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
  color: var(--txt-3);
}

/* Main */

.app-main {
  padding: 0.85rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  background: #f6f8fb;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-top h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.app-search {
  margin-left: auto;
  width: 9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  color: #4a5468;
  font-size: 10px;
}

.app-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-ink);
  flex: none;
}

.app-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.app-kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.65rem;
  background: #ffffff;
}

.app-kpi span {
  display: block;
  font-size: 9.5px;
  color: var(--txt-3);
  margin-bottom: 0.2rem;
}

.app-kpi b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--txt);
}

.app-kpi i {
  font-style: normal;
  font-size: 9px;
  margin-left: 0.3rem;
  color: var(--ok);
}

.app-kpi i.dn {
  color: var(--bad);
}

.app-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.65rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.app-card h5 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 650;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-card h5 small {
  margin-left: auto;
  font-weight: 500;
  color: var(--txt-3);
  font-size: 9.5px;
}

/* Bar chart, pure CSS — heights come from an inline --v custom property. */
.app-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 92px;
  padding-top: 0.3rem;
}

.app-chart i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent), rgb(11 110 168 / 18%));
  height: calc(var(--v, 50) * 1%);
  transform-origin: bottom;
  scale: 1 0;
  transition: scale 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.app-chart i:nth-child(even) {
  background: linear-gradient(180deg, var(--accent-2), rgb(61 142 196 / 18%));
}

.in .app-chart i,
.app.in .app-chart i {
  scale: 1;
}

.app-axis {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #4a5468;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

/* Document rows with status pills */
.app-rows {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  background: #ffffff;
  padding: 0.45rem 0.55rem;
}

.app-row b {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-row span {
  font-size: 9.5px;
  color: var(--txt-3);
}

.app-pill {
  font-size: 9px;
  font-weight: 650;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid;
}

.app-pill--ok {
  color: var(--ok);
  border-color: rgb(52 211 153 / 35%);
  background: rgb(52 211 153 / 10%);
}

.app-pill--wait {
  color: var(--warn);
  border-color: rgb(251 191 36 / 35%);
  background: rgb(251 191 36 / 10%);
}

.app-pill--draft {
  color: var(--txt-3);
  border-color: var(--line-strong);
}

/* The e-invoice row cycles Taslak -> Gönderildi -> Onaylandı while visible. */
.app-flip {
  display: grid;
}

.app-flip > * {
  grid-area: 1 / 1;
  opacity: 0;
  animation: flip 7.5s var(--ease) infinite;
}

.app-flip > *:nth-child(2) {
  animation-delay: 2.5s;
}

.app-flip > *:nth-child(3) {
  animation-delay: 5s;
}

@keyframes flip {
  0%,
  30% {
    opacity: 1;
  }
  36%,
  100% {
    opacity: 0;
  }
}

/* Small variant used inside module/sector sections. */
.app--sm .app-body {
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 19rem;
}

.app--sm .app-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app--sm .app-cols {
  grid-template-columns: minmax(0, 1fr);
}

@container (max-width: 560px) {
  .app-side {
    display: none;
  }

  .app-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 11. Forms --------------------------------------------------------------- */

.form {
  display: grid;
  gap: 1rem;
}

.form-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--txt-2);
  letter-spacing: 0.01em;
}

.field .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0.75rem 0.9rem;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--bg);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--txt-3);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396a1b7' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}

.hp {
  position: absolute;
  left: -9999px;
}

.note {
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-lg);
  font-size: 0.9rem;
  border: 1px solid;
}

.note--ok {
  color: var(--ok);
  border-color: rgb(52 211 153 / 35%);
  background: rgb(52 211 153 / 8%);
}

.note--bad {
  color: var(--bad);
  border-color: rgb(251 113 133 / 35%);
  background: rgb(251 113 133 / 8%);
}

.form-side {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}

.contact-item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.1rem 1rem;
}

.contact-item svg {
  grid-row: span 2;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--accent);
}

.contact-item b {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-3);
  font-weight: 650;
}

.contact-item a,
.contact-item p {
  font-size: 1rem;
  color: var(--txt);
  margin: 0;
}

.contact-item a:hover {
  color: var(--accent);
}

/* 12. Responsive ---------------------------------------------------------- */

@media (width <= 1180px) {
  .ftr-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ftr-brand {
    grid-column: 1 / -1;
  }

  .article {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

@media (width <= 980px) {
  .hdr-nav,
  .hdr-cta .btn--ghost,
  .hdr-phone {
    display: none;
  }

  .ftr-cta-in {
    flex-direction: column;
    align-items: flex-start;
  }

  .ftr-compact {
    flex-direction: column;
    align-items: flex-start;
  }

  .ftr-compact-copy {
    margin-inline: 0;
  }

  .hdr-burger {
    display: block;
  }

  .hdr-in {
    gap: 1rem;
  }

  .hdr-cta {
    margin-left: auto;
  }

  .hero-under,
  .phead-grid,
  .show,
  .split,
  .sec-head--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--flip > *:first-child {
    order: 0;
  }

  .show-nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: minmax(11rem, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .show-btn {
    scroll-snap-align: start;
    border: 1px solid var(--line);
  }

  .show-btn small {
    display: none;
  }

  .show-btn[aria-selected="true"] small {
    display: none;
  }

  .grid-4,
  .posts,
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .flow-row p {
    grid-column: 2;
  }

  .hero-copy {
    max-width: 100%;
  }
}

@media (width <= 700px) {
  :root {
    --w: min(1280px, 100% - 2rem);
    --w-wide: min(1520px, 100% - 2rem);
    --w-prose: min(760px, 100% - 2rem);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .posts,
  .plans,
  .form-2,
  .ftr-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-side {
    display: none;
  }

  .app-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .ftr-bot {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote blockquote {
    font-size: 1.35rem;
  }
}
