:root {
  --cream: #f3f2f0;
  --paper: #fffdf8;
  --white: #ffffff;
  --yellow: #fdd35b;
  --yellow-soft: #ffe9a8;
  --ink: #161616;
  --muted: #5f5b52;
  --line: #dcd6c9;
  --max: 1120px;
  --radius: 22px;
  --font-head: "Cairo", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 242, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.site-nav .nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover {
  background: var(--yellow);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* Typography */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.45em;
  font-family: var(--font-head);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.9rem, 3.7vw, 2.9rem);
  font-weight: 800;
}

h3 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.lead {
  max-width: 40em;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.6;
}

.band--yellow .lead,
.band--yellow p {
  color: #3b382f;
}

.highlight {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  padding: 0 0.04em;
}

/* Hero */

.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 8vw, 96px);
}

.hero-copy {
  max-width: 980px;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lead {
  margin-top: 24px;
}

.hero--compact {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
}

.hero--compact + .band--cream {
  padding-top: clamp(20px, 3vw, 36px);
}

.hero--compact h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 17ch;
}

.hero--compact .lead {
  margin-top: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 26px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-1px);
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration-color: var(--ink);
}

/* Bands and splits */

.band {
  padding: clamp(48px, 7vw, 84px) 0;
}

.band--yellow {
  background: var(--yellow);
}

.band--paper {
  background: var(--paper);
}

.band--cream {
  background: var(--cream);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.split--art-left .art {
  order: -1;
}

.art img {
  width: auto;
  max-height: 440px;
  margin-inline: auto;
}

.art--owl img {
  max-height: 460px;
}

.art--bird img,
.art--pigeon img {
  max-height: 400px;
}

.statement {
  max-width: 15ch;
  font-size: clamp(2.15rem, 4.6vw, 3.8rem);
  font-weight: 900;
}

.checklist {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.18em;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-bottom: 0;
}

/* About services */

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

.service {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(22px, 3vw, 32px);
}

.service-num {
  margin: 0 0 14px;
  color: #b38413;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.service h3 {
  margin-bottom: 0.5em;
}

.service p {
  color: var(--muted);
  font-size: 0.98rem;
}

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

/* Client logos */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.logo-card {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.logo-card img {
  width: auto;
  max-width: 240px;
  max-height: 80px;
  filter: grayscale(1);
  opacity: 0.82;
  transition: filter 180ms ease, opacity 180ms ease;
}

.logo-card:hover img {
  filter: none;
  opacity: 1;
}

/* Blog cards */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(22, 22, 22, 0.08);
}

.post-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--yellow-soft);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-card .read {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.post-card .read span {
  display: inline-block;
  transition: transform 180ms ease;
}

.post-card:hover .read span {
  transform: translateX(4px);
}

/* Article */

.article-header {
  padding: clamp(44px, 7vw, 82px) 0 0;
}

.article-header .container {
  max-width: 960px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.back:hover {
  color: var(--ink);
}

.article-header h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.article-meta {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.article-meta a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.article-hero {
  margin-top: 40px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--yellow-soft);
}

.article-hero img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.article-body {
  max-width: 760px;
  margin: 42px auto 0;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.article-body p {
  margin: 0 0 1.2em;
}

.article-body h2 {
  margin: 1.7em 0 0.55em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.article-body h3 {
  margin: 1.55em 0 0.4em;
  font-size: 1.32rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

.article-body li {
  margin-bottom: 0.45em;
}

.article-body a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-color: var(--ink);
}

.article-body blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 4px solid var(--yellow);
  color: var(--muted);
}

.article-body .caption {
  margin-top: -0.4em;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-end {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}

/* CTA */

.cta {
  text-align: center;
}

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

.cta .btn {
  margin-top: 28px;
}

/* Footer */

.site-footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
}

.footer-name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 800;
}

.footer-tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.footer-contact p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */

@media (max-width: 980px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 16px 30px rgba(22, 22, 22, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a::after {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split .art {
    order: 2;
  }

  .split .art img {
    max-height: 320px;
  }

  .hero--compact .art {
    display: none;
  }

  .hero h1 {
    max-width: 17ch;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 36px);
  }

  .services,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  .article-body {
    border-radius: 18px;
  }

  .actions {
    gap: 16px;
  }
}

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

  .brand-sub {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .btn {
    width: 100%;
  }

  .actions .text-link {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- SaaS additions ---------- */

.container--wide {
  width: min(1280px, calc(100% - 48px));
}

.micro {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Products dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.nav-dropdown summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  transition: right 180ms ease;
}

.nav-dropdown summary:hover::after,
.nav-dropdown summary.is-active::after {
  right: 0;
}

.chev {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 110;
  display: grid;
  min-width: 260px;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(22, 22, 22, 0.12);
}

.nav-dropdown-menu a {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: var(--cream);
}

.nav-dropdown-all {
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 0 !important;
  font-weight: 700;
}

/* Home hero */
.hero--saas {
  padding: clamp(48px, 7vw, 92px) 0 clamp(48px, 7vw, 88px);
}

.hero--saas .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero--saas h1 {
  max-width: 15ch;
  font-size: clamp(2.55rem, 5.2vw, 4.5rem);
}

.hero--saas .lead {
  margin-top: 22px;
}

.hero-collage {
  position: relative;
  min-height: 430px;
}

.hero-collage .browser-frame--main {
  position: relative;
  z-index: 2;
  width: 92%;
  margin-left: auto;
  transform: rotate(-1deg);
}

.hero-collage .browser-frame--small {
  position: absolute;
  z-index: 1;
  width: 47%;
}

.hero-collage .browser-frame--small.one {
  left: 0;
  bottom: 0;
  transform: rotate(2deg);
}

.hero-collage .browser-frame--small.two {
  top: 0;
  right: 0;
  z-index: 0;
  transform: rotate(-3deg);
}

.browser-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 22px 55px rgba(22, 22, 22, 0.14);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf8;
}

.browser-bar span:not(.browser-url) {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7d1c4;
}

.browser-url {
  margin-left: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.product-shot {
  margin: 0;
}

.product-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Logo wall */
.logo-wall {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.logo-wall-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.logo-wall-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}

.logo-wall-item img {
  width: auto;
  max-width: 100%;
  max-height: 60px;
  margin-inline: auto;
  filter: grayscale(1);
  opacity: 0.9;
  transition: filter 180ms ease, opacity 180ms ease;
}

.logo-wall-item:hover img {
  filter: none;
  opacity: 1;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(22, 22, 22, 0.09);
}

.product-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--yellow-soft);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-logo {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.product-brand .product-logo {
  width: 36px;
  height: 36px;
}

.product-eyebrow {
  gap: 12px;
}

.product-card h3 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-list {
  display: grid;
  gap: 7px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}

.product-list li {
  position: relative;
  padding-left: 19px;
  font-size: 0.9rem;
  font-weight: 600;
}

.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--card-accent, var(--yellow));
}

.product-card--brickline {
  --card-accent: #2563eb;
}

.product-card--ledgerline {
  --card-accent: #7a5af8;
}

.product-card--hearth {
  --card-accent: #0e9384;
}

.product-card .read {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-card .read span {
  display: inline-block;
  transition: transform 180ms ease;
}

.product-card:hover .read span {
  transform: translateX(4px);
}

/* Product page */
.product-hero {
  padding: clamp(44px, 6vw, 78px) 0 clamp(38px, 5vw, 58px);
  background: var(--cream);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.product-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.product-hero .lead {
  margin-top: 20px;
}

.product-hero .micro {
  margin-top: 18px;
}

.product-hero-visual .browser-frame {
  transform: rotate(-0.5deg);
}

.feature-rows {
  display: grid;
  gap: clamp(38px, 6vw, 72px);
  margin-top: 42px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.feature-row--reverse .feature-copy {
  order: 2;
}

.feature-row--reverse .feature-ui {
  order: 1;
}

.feature-copy h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}

.feature-copy p {
  color: var(--muted);
  max-width: 34em;
}

.feature-num {
  margin: 0 0 10px;
  color: #b38413;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.proof-block {
  max-width: 860px;
}

.proof-block h2 {
  max-width: 22ch;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.price-band .price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}

.price-grid h2 {
  max-width: 14ch;
}

.price-grid .btn {
  margin-top: 4px;
}

/* Mini UI fragments */
.ui-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(22, 22, 22, 0.06);
}

.ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
}

.ui-demo {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #76530a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f1efe9;
  font-size: 0.85rem;
}

.ui-row > :first-child {
  flex: 1;
}

.ui-row strong {
  white-space: nowrap;
}

.ui-row .pos {
  color: #067647;
}

.ui-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
}

.ui-pill.good {
  background: var(--green-soft);
  color: #067647;
}

.ui-pill.warn {
  background: var(--amber-soft);
  color: #b54708;
}

.ui-pill.bad {
  background: var(--red-soft);
  color: #b42318;
}

.ui-pill.neutral {
  background: #f2f4f7;
  color: #475467;
}

.ui-foot {
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.ui-stat {
  padding: 14px 0 4px;
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 900;
}

.ui-stat small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
}

.ui-progress {
  height: 8px;
  margin: 10px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2f4f7;
}

.ui-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.ui-spark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
  margin-top: 12px;
}

.ui-spark span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--yellow);
}

.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  padding: 12px 0 4px;
}

.ui-bars div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 7px;
}

.ui-bars i {
  display: block;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 6px 6px 0 0;
  background: var(--yellow);
}

.ui-bars span {
  color: var(--muted);
  font-size: 0.68rem;
}

.ui-category {
  display: grid;
  grid-template-columns: 86px 1fr 56px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.82rem;
}

.ui-category > span:first-child {
  color: var(--muted);
}

.ui-category strong {
  text-align: right;
}

.ui-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2f4f7;
}

.ui-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

/* Value cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.value-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.value-card p {
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.field {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}

.field label,
.radio-field legend {
  font-size: 0.9rem;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

.radio-field {
  padding: 0;
  border: 0;
}

.radio-group {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: var(--ink);
  background: #fff8dc;
}

.radio-option input {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-status:empty {
  display: none;
}

.form-success {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.form-success h2 {
  max-width: 18ch;
}

.email-reveal-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.email-reveal {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.email-slot a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.contact-card {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.next-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.next-list li {
  padding-left: 4px;
}

.next-list strong {
  display: block;
}

.next-list span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Footer overrides */
.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-heading {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  justify-self: start;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.footer-contact {
  text-align: left;
}

.footer-contact .email-reveal {
  justify-self: start;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.section-head--row .text-link {
  flex: none;
  margin-bottom: 4px;
}

/* Responsive additions */
@media (max-width: 980px) {
  .hero--saas .hero-grid,
  .product-hero-grid,
  .feature-row,
  .price-band .price-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    min-height: 0;
  }

  .hero-collage .browser-frame--small {
    display: none;
  }

  .hero-collage .browser-frame--main {
    width: 100%;
    transform: none;
  }

  .product-hero-visual .browser-frame {
    transform: none;
  }

  .feature-row--reverse .feature-copy,
  .feature-row--reverse .feature-ui {
    order: initial;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container--wide {
    width: calc(100% - 36px);
  }

  .product-grid,
  .product-grid--two,
  .value-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head--row {
    display: block;
  }

  .section-head--row .text-link {
    display: inline-block;
    margin-top: 10px;
  }
}

@media (max-width: 860px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown summary {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 4px 0 0 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown-all {
    border-bottom: 0;
  }
}

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

/* Product card brand */
.product-brand-text {
  min-width: 0;
}

.product-brand h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.15;
}

.product-brand .product-kicker {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.product-outcome {
  margin: 14px 0 8px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}
