:root {
  --bg: #f3f8fc;
  --surface-low: #eaf2f8;
  --surface: #ffffff;
  --surface-high: #f8fbfd;
  --surface-top: #dce8f2;
  --text: #122133;
  --text-muted: #53667a;
  --text-soft: #728397;
  --outline: #b7cede;
  --primary: #2f6fa8;
  --primary-deep: #174b78;
  --accent: #15a7df;
  --ayah-teal: #0a3a4a;
  --ayah-green: #48ad8f;
  --neutral: #6f8194;
  --shadow: 0 24px 70px rgba(18, 33, 51, 0.08);
  --soft-shadow: 0 16px 42px rgba(18, 33, 51, 0.06);
  --radius-lg: 30px;
  --radius-md: 22px;
  --max-width: 1232px;
  --logo-small-box: 86px;
  --logo-small-max: 78px;
  --logo-subbrand: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(21, 167, 223, 0.18), transparent 32%),
    radial-gradient(circle at 82% 2%, rgba(72, 173, 143, 0.15), transparent 28%),
    radial-gradient(circle at 50% 48%, rgba(47, 111, 168, 0.08), transparent 38%),
    linear-gradient(180deg, #f8fcff 0%, var(--bg) 45%, #edf5fb 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p {
  line-height: 1.75;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 252, 255, 0.82);
  border-bottom: 1px solid rgba(183, 206, 222, 0.42);
  backdrop-filter: blur(18px) saturate(1.15);
}

.header-inner,
.hero-inner,
.studio-inner,
.section-head,
.philosophy-section,
.site-footer .footer-grid {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.22rem;
  font-weight: 700;
}

.wordmark {
  color: #07182c;
  line-height: 1;
  justify-self: start;
}

.wordmark img {
  display: block;
  width: 180px;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-self: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(18, 33, 51, 0.68);
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.footer-column a:hover {
  color: var(--primary);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(47, 111, 168, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(18, 33, 51, 0.06);
  white-space: nowrap;
}

.language-toggle a,
.language-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(18, 33, 51, 0.62);
  line-height: 1;
}

.language-toggle a {
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.language-toggle a:hover {
  color: var(--primary);
  background: rgba(47, 111, 168, 0.08);
}

.language-toggle .is-active {
  background: var(--primary);
  color: #eef6ff;
  box-shadow: 0 8px 18px rgba(47, 111, 168, 0.22);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.header-cta {
  min-height: 46px;
  padding: 0 22px;
  background: var(--primary);
  color: #eef6ff;
  box-shadow: 0 14px 28px rgba(47, 111, 168, 0.18);
  white-space: nowrap;
}

.header-logo-cta {
  width: 58px;
  min-height: 58px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.header-logo-cta img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 102, 140, 0.12));
}

.header-cta:hover,
.button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 860px;
  padding: 118px 0 76px;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(183, 206, 222, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(183, 206, 222, 0.28) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
  mask-image:
    radial-gradient(circle at 38% 36%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 38%, transparent 74%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(320px, 4fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.philosophy-intro h2 {
  margin: 0;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.hero-copy h1 {
  font-size: clamp(3.8rem, 8.6vw, 7.8rem);
  margin-bottom: 32px;
}

html[lang="fi"] .hero-copy h1 {
  font-size: clamp(3.6rem, 7.2vw, 6.7rem);
}

.no-wrap {
  white-space: nowrap;
}

.hero-text,
.studio-copy p,
.studio-status p,
.section-text,
.philosophy-intro p,
.principles p,
.product-card p,
.structure-grid p,
.footer-note,
.footer-end p {
  color: var(--text-muted);
}

.hero-text {
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 58px;
  padding: 0 28px;
}

.button-primary {
  background: var(--primary);
  color: #eef6ff;
  box-shadow: 0 16px 32px rgba(47, 111, 168, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  border: 1px solid rgba(183, 206, 222, 0.56);
  box-shadow: 0 12px 30px rgba(18, 33, 51, 0.04);
}

.hero-frame {
  display: flex;
  justify-content: flex-end;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: min(100%, 430px);
  min-height: 430px;
  border-radius: 42px;
}

.hero-mark::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(21, 167, 223, 0.18), transparent 62%),
    radial-gradient(circle at 70% 28%, rgba(72, 173, 143, 0.14), transparent 48%);
  filter: blur(16px);
}

.hero-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 58px rgba(0, 102, 140, 0.16));
}

.hero-mark .hero-wordmark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(62%, 220px);
  max-width: 220px;
  height: auto;
  margin-top: -70px;
  filter: drop-shadow(0 14px 24px rgba(31, 54, 86, 0.08));
}

.footer-column span {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-column .footer-muted {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.products-section,
.structure-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(21, 167, 223, 0.08), transparent 28%),
    linear-gradient(180deg, var(--surface-low), #edf5fb);
  padding: 120px 0;
}

.products-section {
  padding-bottom: 92px;
}

.studio-section {
  padding: 120px 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(72, 173, 143, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(242, 248, 252, 0.78));
  border-top: 1px solid rgba(183, 206, 222, 0.26);
  border-bottom: 1px solid rgba(183, 206, 222, 0.26);
}

.studio-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(320px, 5fr);
  gap: 72px;
  align-items: center;
}

.studio-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.subbrand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.subbrand-lockup > img {
  flex: 0 0 var(--logo-subbrand);
  width: var(--logo-subbrand);
  max-width: var(--logo-subbrand);
  height: auto;
  object-fit: contain;
}

.subbrand-lockup .eyebrow,
.subbrand-lockup h2 {
  margin-bottom: 0;
}

.subbrand-lockup h2 {
  font-size: clamp(2.55rem, 3.8vw, 3.55rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.byline {
  margin: 14px 0 0;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.byline-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.byline-logo img {
  display: block;
  width: 116px;
  max-width: 116px;
  height: auto;
}

.studio-copy > p {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  gap: 14px;
}

.subbrand-products {
  display: grid;
  gap: 14px;
  background: transparent;
  border: 0;
}

.subbrand-products article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(72, 173, 143, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 253, 0.86));
  border: 1px solid rgba(183, 206, 222, 0.38);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.subbrand-products article:hover {
  border-color: rgba(47, 111, 168, 0.28);
  box-shadow: 0 22px 58px rgba(18, 33, 51, 0.08);
  transform: translateY(-2px);
}

.subbrand-products h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  letter-spacing: -0.05em;
}

.mini-product-copy {
  min-width: 0;
}

.subbrand-products p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.subbrand-products a {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mini-product-icon {
  display: grid;
  place-items: center;
  width: var(--logo-small-box);
  height: var(--logo-small-box);
}

.mini-product-icon img {
  width: auto;
  max-width: var(--logo-small-max);
  max-height: var(--logo-small-max);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(36, 93, 142, 0.12));
}

.studio-device {
  display: flex;
  align-self: start;
  justify-content: center;
  position: relative;
  padding: 24px;
}

.studio-device::before {
  content: "";
  position: absolute;
  inset: 10% 8% 8%;
  border-radius: 42px;
  background:
    radial-gradient(circle at 45% 18%, rgba(78, 153, 120, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(227, 238, 244, 0.5));
  filter: blur(1px);
  transform: rotate(-3deg);
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 46px;
  background:
    linear-gradient(145deg, #ffffff 0%, #dfe9f0 46%, #aebdca 100%);
  box-shadow:
    0 32px 80px rgba(31, 54, 86, 0.2),
    inset 0 0 0 1px rgba(30, 48, 66, 0.14),
    inset 0 0 0 5px rgba(255, 255, 255, 0.5);
  transform: rotate(1.4deg);
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 50%;
  width: 76px;
  height: 22px;
  margin: 0;
  border-radius: 99px;
  background:
    linear-gradient(180deg, #152331, #0b121b);
  box-shadow:
    0 8px 18px rgba(8, 16, 24, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
}

.phone-screen {
  min-height: 640px;
  padding: 28px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #faf4e7 0%, #fffaf0 58%, #edf2e8 100%);
  color: #123326;
  overflow: hidden;
}

.phone-screenshot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  border-radius: 36px;
  object-fit: contain;
  object-position: top center;
  background: #fff7e9;
  box-shadow:
    0 0 0 1px rgba(36, 52, 72, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.app-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-topline span {
  color: #4f8065;
  font-weight: 700;
}

.app-topline strong {
  color: #776f62;
  font-weight: 700;
}

.app-stage {
  margin-bottom: 18px;
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.video-preview {
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 300px;
  margin-bottom: 22px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(6, 21, 15, 0.2), rgba(6, 21, 15, 0.84)),
    linear-gradient(135deg, #365f49 0%, #0d2a1f 100%);
  color: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.12);
}

.arabic-line {
  font-size: 2.6rem;
  font-weight: 700;
  text-align: right;
}

.translation-line {
  max-width: 14ch;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.control-stack {
  display: grid;
  gap: 10px;
}

.control-stack div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  background: #fffbf2;
  border: 1px solid #e2d8c9;
}

.control-stack span {
  color: #776f62;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.control-stack strong {
  font-size: 0.86rem;
  text-align: right;
}

.section-head {
  display: block;
  margin-bottom: 72px;
}

.section-head h2,
.philosophy-intro h2 {
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
}

.section-head h2 {
  max-width: 1000px;
}

.product-groups,
.products-grid,
.structure-grid {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.product-groups {
  display: grid;
  gap: 64px;
}

.product-group {
  display: grid;
  gap: 24px;
}

.product-group-head {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding-bottom: 8px;
}

.product-group-head .eyebrow {
  margin-bottom: 12px;
}

.product-group-head h3 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-align: left;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  background: transparent;
  border: 0;
}

.products-grid-two .product-card {
  min-width: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 42px 40px;
  background:
    radial-gradient(circle at 12% 0%, rgba(21, 167, 223, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.96));
  border: 1px solid rgba(183, 206, 222, 0.44);
  border-radius: var(--radius-lg);
  min-height: 360px;
  box-shadow: var(--soft-shadow);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  background: #ffffff;
  border-color: rgba(47, 111, 168, 0.28);
  box-shadow: 0 26px 70px rgba(18, 33, 51, 0.09);
  transform: translateY(-4px);
}

.card-icon {
  margin-bottom: 48px;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.08em;
}

.product-logo {
  display: grid;
  place-items: center;
  justify-items: start;
  width: var(--logo-small-box);
  height: var(--logo-small-box);
  margin-bottom: 34px;
}

.product-logo img {
  width: auto;
  max-width: var(--logo-small-max);
  max-height: var(--logo-small-max);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(36, 93, 142, 0.12));
}

.product-logo--temporary img {
  filter: drop-shadow(0 14px 22px rgba(36, 93, 142, 0.12));
}

.product-card h3 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

.product-card p {
  margin: 0 0 28px;
  font-size: 0.92rem;
}

.product-card a {
  margin-top: auto;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.founder-section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 104px 0;
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(circle at 15% 20%, rgba(21, 167, 223, 0.13), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(72, 173, 143, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 252, 0.86));
  border: 1px solid rgba(183, 206, 222, 0.42);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.founder-photo-wrap {
  display: grid;
  place-items: center;
}

.founder-photo {
  width: min(100%, 220px);
  aspect-ratio: 1;
  border-radius: 34px;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 60px rgba(34, 48, 63, 0.18);
}

.founder-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.founder-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.8;
}

.founder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.philosophy-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  padding-top: 92px;
  padding-bottom: 120px;
  border-top: 1px solid rgba(183, 206, 222, 0.28);
}

.divider {
  width: 96px;
  height: 1px;
  background: var(--primary);
  margin: 28px 0;
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.principles article {
  display: flex;
  gap: 28px;
}

.principles span {
  color: rgba(183, 206, 222, 0.95);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  transition: color 180ms ease;
}

.principles article:hover span {
  color: var(--primary);
}

.principles h3,
.structure-grid h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.principles p,
.structure-grid p {
  max-width: 540px;
  margin: 0;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.structure-grid article {
  min-height: 220px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(179, 190, 204, 0.18);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}

.structure-logo {
  display: block;
  width: 56px;
  max-width: 56px;
  height: auto;
  margin-bottom: 22px;
  object-fit: contain;
}

.site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(21, 167, 223, 0.08), transparent 24%),
    var(--surface-low);
  border-top: 1px solid rgba(18, 33, 51, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 0;
}

.footer-brand {
  margin: 0 0 22px;
}

.footer-brand img {
  width: 220px;
  max-width: 220px;
  height: auto;
}

.footer-note,
.footer-end p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-column a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 48, 63, 0.84);
}

.footer-end {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.product-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 112px;
}

body.ayah-page {
  --bg: #faf4e7;
  --surface-low: #f2ead8;
  --surface: #fffdf7;
  --surface-high: #fff8ea;
  --surface-top: #eadfc9;
  --text: #123326;
  --text-muted: #4f8065;
  --outline: rgba(113, 155, 122, 0.34);
  --primary: #3f8f5a;
  --primary-deep: #123326;
  --neutral: #719b7a;
  --accent: #6ef39b;
  --shadow: 0 24px 70px rgba(18, 51, 38, 0.12);
  --soft-shadow: 0 18px 46px rgba(18, 51, 38, 0.08);
  background:
    radial-gradient(circle at 86% 10%, rgba(110, 243, 155, 0.18), transparent 27%),
    radial-gradient(circle at 9% 14%, rgba(113, 155, 122, 0.17), transparent 30%),
    linear-gradient(180deg, #fff8ea 0%, #faf4e7 52%, #f2ead8 100%);
}

body.ayah-page .site-header {
  background: rgba(250, 244, 231, 0.88);
  border-bottom-color: rgba(113, 155, 122, 0.24);
}

body.ayah-page .grid-bg {
  display: none;
}

body.ayah-page .site-nav a {
  color: rgba(18, 51, 38, 0.72);
}

body.ayah-page .header-cta,
body.ayah-page .button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(63, 143, 90, 0.2);
}

body.ayah-page .button-secondary {
  background: rgba(255, 253, 247, 0.78);
  border-color: rgba(113, 155, 122, 0.34);
  color: var(--text);
}

body.ayah-page .product-status {
  background: rgba(113, 155, 122, 0.14);
  border-color: rgba(63, 143, 90, 0.26);
  color: var(--text);
  border-radius: 999px;
}

body.ayah-page .intro-band,
body.ayah-page .faq-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(110, 243, 155, 0.12), transparent 28%),
    rgba(255, 253, 247, 0.66);
  border-color: rgba(113, 155, 122, 0.28);
}

body.ayah-page .demo-frame {
  border-color: rgba(63, 143, 90, 0.25);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.93), rgba(250, 244, 231, 0.92));
}

body.ayah-page .screen,
body.ayah-page .screen-gallery img {
  background: #fffdf7;
}

body.ayah-page .product-hero {
  min-height: calc(92svh - 92px);
  display: grid;
  align-items: center;
  padding: 78px 0 88px;
}

.product-hero-inner,
.intro-grid,
.free-promise-grid,
.demo-frame,
.screen-gallery,
.feature-list,
.roadmap-grid,
.details-grid,
.faq-grid {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.product-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(360px, 5fr);
  gap: 64px;
  align-items: center;
}

.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.product-mark img {
  width: 66px;
  max-width: 66px;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(63, 143, 90, 0.14));
}

.ayah-player-page .product-mark--hero-lockup,
.ayah-studio-page .product-mark--hero-lockup {
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: 28px;
}

.ayah-player-page .product-mark--hero-lockup > img,
.ayah-studio-page .product-mark--hero-lockup > img {
  width: clamp(58px, 5.2vw, 72px);
  max-width: clamp(58px, 5.2vw, 72px);
  filter: drop-shadow(0 18px 34px rgba(18, 51, 38, 0.12));
}

.product-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 16px;
  background: rgba(58, 103, 154, 0.1);
  border: 1px solid rgba(58, 103, 154, 0.18);
  color: var(--primary-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-mark-copy {
  display: grid;
  gap: 7px;
  align-items: start;
}

.product-mark-copy strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.ayah-player-page .product-mark--hero-lockup .product-mark-copy strong,
.ayah-studio-page .product-mark--hero-lockup .product-mark-copy strong {
  font-size: clamp(2.55rem, 3.8vw, 3.55rem);
}

.product-byline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
}

body.ayah-page .product-byline {
  color: var(--text);
}

.product-byline img {
  display: block;
  width: 132px;
  max-width: 132px;
  height: auto;
  filter: none;
}

.ayah-player-page .product-mark--hero-lockup .product-byline img,
.ayah-studio-page .product-mark--hero-lockup .product-byline img {
  width: clamp(108px, 9.5vw, 126px);
  max-width: clamp(108px, 9.5vw, 126px);
}

.product-hero-copy h1 {
  max-width: 860px;
  margin: 0 0 26px;
  font-size: clamp(3.4rem, 6vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.085em;
  overflow-wrap: anywhere;
}

.product-hero-copy p {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.product-hero-media {
  min-height: 540px;
}

.media-stack {
  position: relative;
  min-height: 540px;
}

.hero-phone {
  padding: 10px;
  border-radius: 40px;
  background:
    linear-gradient(145deg, #fffdf7 0%, #faf4e7 48%, #e7dbc2 100%);
  border: 1px solid rgba(18, 51, 38, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    inset 0 -10px 18px rgba(18, 51, 38, 0.06),
    0 30px 80px rgba(18, 51, 38, 0.14);
}

.hero-phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: rgba(24, 49, 39, 0.2);
  transform: translateX(-50%);
}

.hero-phone::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 3;
  border: 1px solid rgba(24, 49, 39, 0.18);
  border-radius: 27px;
  pointer-events: none;
}

.screen {
  display: block;
  width: 100%;
  border-radius: 28px;
  background: #fbfdff;
  box-shadow: none;
}

.screen-main {
  position: absolute;
  right: 14%;
  top: 0;
  z-index: 2;
  width: min(30vw, 258px);
}

.screen-side {
  position: absolute;
  width: min(22vw, 174px);
  opacity: 0.96;
}

.screen-side-top {
  right: 0;
  top: 78px;
  transform: rotate(2deg);
}

.screen-side-bottom {
  left: 8%;
  bottom: 10px;
  transform: rotate(-3deg);
}

.intro-band,
.free-promise-section,
.demo-section,
.features-section,
.details-section,
.faq-section {
  padding: 112px 0;
}

.intro-band,
.free-promise-section,
.features-section,
.faq-section {
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(183, 206, 222, 0.24);
  border-bottom: 1px solid rgba(183, 206, 222, 0.24);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}

.intro-grid h2,
.roadmap-grid h2,
.details-grid h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.intro-copy p,
.details-grid p,
.faq-grid p,
.roadmap-grid li {
  color: var(--text-muted);
}

.intro-copy p {
  margin: 0 0 22px;
  font-size: 1.02rem;
}

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

.free-promise-section {
  padding: 0 0 112px;
  border-top: 0;
}

.ayah-player-page .intro-band {
  border-bottom: 0;
}

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

.free-promise-grid article {
  min-height: 156px;
  padding: 32px;
  border: 1px solid rgba(113, 155, 122, 0.28);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(63, 143, 90, 0.96), rgba(79, 128, 101, 0.88));
  box-shadow: var(--soft-shadow);
  color: #fff;
}

.free-promise-grid span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.free-promise-grid strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.demo-frame {
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(183, 206, 222, 0.42);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(237, 246, 250, 0.86));
  box-shadow: var(--shadow);
}

.demo-frame video {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #0f1b25;
}

.screens-section {
  padding: 112px 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(110, 243, 155, 0.1), transparent 28%),
    var(--surface-low);
  scroll-margin-top: 92px;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.details-grid article,
.faq-grid details,
.roadmap-grid article {
  background: var(--surface);
  border: 1px solid rgba(113, 155, 122, 0.28);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}

.screen-gallery article {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  text-align: center;
}

.phone-preview {
  position: relative;
  width: 100%;
  max-width: 230px;
  margin: 0 auto 26px;
  padding: 10px;
  border-radius: 40px;
  background:
    linear-gradient(145deg, #fffdf7 0%, #faf4e7 48%, #e7dbc2 100%);
  border: 1px solid rgba(18, 51, 38, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    inset 0 -10px 18px rgba(18, 51, 38, 0.06),
    0 22px 52px rgba(18, 51, 38, 0.1);
}

.phone-preview::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: rgba(24, 49, 39, 0.2);
  transform: translateX(-50%);
  z-index: 2;
}

.phone-preview::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 27px;
  border: 1px solid rgba(24, 49, 39, 0.18);
  pointer-events: none;
  z-index: 2;
}

.screen-gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: #fbf6eb;
  box-shadow: none;
}

.screen-gallery h3,
.faq-grid summary {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.045em;
}

.screen-gallery p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.screen-gallery article h3,
.screen-gallery article p {
  width: min(100%, 230px);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  gap: 14px;
  background: transparent;
  border: 0;
}

.feature-list p {
  min-height: 128px;
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(113, 155, 122, 0.28);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  color: var(--text);
  font-size: 0.94rem;
}

.player-feature-list p {
  min-height: 148px;
}

.player-screen-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ayah-player-page .screens-section {
  padding-top: 92px;
}

.ayah-player-page .player-screen-gallery .phone-preview {
  max-width: 210px;
}

.app-store-shot-groups {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.app-store-shot-row {
  display: grid;
  width: 100%;
  gap: 16px;
  align-items: start;
  justify-self: center;
}

.app-store-shot-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}

.app-store-shot-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
}

.app-store-shot-row img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(18, 51, 38, 0.12);
}

.roadmap-section {
  padding: 112px 0;
}

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

.roadmap-grid article,
.details-grid article {
  padding: 38px;
}

.roadmap-grid h2 {
  margin-bottom: 30px;
}

.roadmap-grid ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 20px;
}

.roadmap-grid li {
  line-height: 1.65;
}

.details-section {
  background:
    radial-gradient(circle at 90% 8%, rgba(110, 243, 155, 0.09), transparent 28%),
    var(--surface-low);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.details-grid h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.details-grid p {
  margin: 0 0 18px;
  font-size: 0.94rem;
}

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

.details-grid a {
  color: var(--primary);
  font-weight: 700;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 1040px;
}

.faq-grid details {
  padding: 0;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-grid details:hover {
  border-color: rgba(63, 143, 90, 0.32);
  box-shadow: 0 18px 48px rgba(18, 51, 38, 0.08);
}

.faq-grid summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 22px 66px 22px 26px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  list-style: none;
}

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

.faq-grid summary::after {
  content: "+";
  position: absolute;
  right: 26px;
  top: 50%;
  color: var(--primary-deep);
  font-size: 1.45rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq-grid details[open] summary::after {
  content: "-";
}

.faq-grid p {
  margin: -4px 0 0;
  padding: 0 26px 24px;
  font-size: 0.94rem;
}

.faq-grid a {
  color: var(--primary-deep);
  font-weight: 700;
}

.legal-hero {
  padding: 104px 0 54px;
}

.legal-section {
  padding: 0 0 112px;
}

.legal-inner {
  width: min(calc(100% - 48px), 980px);
  margin: 0 auto;
}

.legal-hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(2.9rem, 5.6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.legal-hero p {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.legal-date {
  margin: 0 0 26px;
  color: var(--primary-deep);
  font-weight: 700;
}

.legal-card {
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(183, 206, 222, 0.42);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.legal-card h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.055em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

.legal-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-card a {
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 24px;
  }

  .header-cta {
    padding: 0 18px;
    letter-spacing: 0.12em;
  }

  .hero-inner,
  .studio-inner,
  .philosophy-section,
  .section-head,
  .footer-grid,
  .product-hero-inner,
  .intro-grid,
  .free-promise-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .studio-inner,
  .philosophy-section,
  .founder-card {
    gap: 56px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .section-text {
    text-align: left;
  }

  .products-grid,
  .structure-grid,
  .screen-gallery,
  .feature-list,
  .details-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-group-head {
    display: grid;
    align-items: start;
  }

  .product-group-head h3 {
    text-align: left;
  }

  .product-hero-media,
  .media-stack {
    min-height: 560px;
  }

  .screen-main {
    right: 28%;
    width: min(38vw, 255px);
  }

  .screen-side {
    width: min(28vw, 175px);
  }

  .footer-end {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 76px;
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .header-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .language-toggle {
    padding: 3px;
  }

  .language-toggle a,
  .language-toggle span {
    min-width: 34px;
    min-height: 30px;
    font-size: 0.68rem;
  }

  .header-inner,
  .hero-inner,
  .studio-inner,
  .product-hero-inner,
  .intro-grid,
  .free-promise-grid,
  .section-head,
  .philosophy-section,
  .site-footer .footer-grid,
  .products-grid,
  .structure-grid,
  .demo-frame,
  .screen-gallery,
  .feature-list,
  .roadmap-grid,
  .details-grid,
  .faq-grid {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .app-store-shot-groups {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero-section,
  .studio-section,
  .products-section,
  .structure-section,
  .founder-section,
  .product-hero,
  .intro-band,
  .free-promise-section,
  .demo-section,
  .screens-section,
  .features-section,
  .roadmap-section,
  .details-section,
  .faq-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .free-promise-section {
    padding-top: 0;
  }

  .hero-copy h1,
  .product-hero-copy h1 {
    font-size: 3.2rem;
  }

  html[lang="fi"] .hero-copy h1 {
    font-size: 2.85rem;
  }

  .section-head h2,
  .philosophy-intro h2,
  .product-group-head h3 {
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .wordmark img {
    width: 132px;
    max-width: 132px;
  }

  .phone-shell {
    border-radius: 28px;
  }

  .phone-screen {
    min-height: 560px;
    padding: 24px 18px;
  }

  .studio-actions {
    flex-direction: column;
  }

  .subbrand-lockup {
    gap: 16px;
  }

  .subbrand-lockup h2 {
    font-size: 3rem;
  }

  .subbrand-lockup > img {
    flex-basis: calc(var(--logo-subbrand) * 0.62);
    width: calc(var(--logo-subbrand) * 0.62);
    max-width: calc(var(--logo-subbrand) * 0.62);
  }

  .products-grid,
  .structure-grid,
  .founder-card,
  .free-promise-grid,
  .screen-gallery,
  .feature-list,
  .roadmap-grid,
  .details-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .product-mark {
    align-items: flex-start;
  }

  .product-mark img {
    width: 58px;
    max-width: 58px;
  }

  .ayah-player-page .product-mark--hero-lockup > img,
  .ayah-studio-page .product-mark--hero-lockup > img {
    width: 58px;
    max-width: 58px;
  }

  .product-hero-media,
  .media-stack {
    min-height: 450px;
  }

  .screen-main {
    right: 0;
    width: min(52vw, 220px);
  }

  .screen-side {
    width: min(34vw, 140px);
  }

  .screen-side-top {
    top: 70px;
  }

  .screen-side-bottom {
    left: 0;
  }

  .demo-frame {
    padding: 12px;
  }

  .screen-gallery img {
    max-height: none;
  }

  .app-store-shot-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 46vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .app-store-shot-row img {
    scroll-snap-align: start;
  }

  .product-card {
    min-height: auto;
  }

  .principles article {
    gap: 18px;
  }

  .principles span {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .subbrand-lockup h2 {
    font-size: 2.65rem;
  }

  .header-actions .header-cta {
    display: none;
  }
}
