/*
Theme Name: BETAONE فارسی
Theme URI: https://betaonetherapy.com/
Author: TAMOVATE
Description: نسخهٔ فارسی و راست‌به‌چپ وب‌سایت فناوری تحریک مغز بتاوان.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tamovate
*/

:root {
  --navy: #263B89;
  --navy-deep: #1c2d6e;
  --green: #2CB34A;
  --ink: #1a2554;
  --muted: #5c6485;
  --line: #dce1f0;
  --pale: #eef1fb;
  --pale-green: #e8f8ec;
  --white: #fff;
  --shadow: 0 16px 44px rgba(38, 59, 137, 0.12);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 231, 240, 0.9);
}

.admin-bar .topbar { top: 32px; }

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: var(--navy);
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: block;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 650;
  color: #3a4a7a;
}

.navlinks a:hover,
.footer a:hover { color: var(--green); }

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 750;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-cta,
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(38, 59, 137, 0.22);
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  border-color: var(--green);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: var(--pale-green);
  border-color: var(--green);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--navy);
  font-size: 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #f6f8ff 0%, #eef2fb 53%, #e4e9f6 100%);
  padding: 72px 0 62px;
}

.hero:before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  right: -120px;
  top: -210px;
  background: radial-gradient(circle, rgba(44, 179, 74, 0.18), rgba(38, 59, 137, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 45px;
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 850;
  color: var(--green);
}

.eyebrow:before {
  content: "";
  height: 2px;
  width: 28px;
  background: var(--green);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(38px, 5vw, 61px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--navy);
  margin: 18px 0;
}

.hero-copy {
  font-size: 18px;
  max-width: 560px;
  color: #4a5480;
  margin-bottom: 26px;
}

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

.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 27px;
  color: #5a6388;
  font-size: 12px;
}

.trustline span:before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 7px;
}

.hero-visual {
  min-height: 390px;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-product-stage {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1.13;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-product-stage .orbit { width: 90%; top: 3%; }

.hero-product-card {
  position: relative;
  z-index: 1;
  width: min(74%, 390px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, #e9edf7);
  box-shadow: 0 26px 55px rgba(38, 59, 137, 0.18);
  transform: rotate(-3deg);
}

.hero-product-photo-wrap {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 20px;
  background: #eef1fb;
}

.hero-product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-product-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 3px 2px;
}

.hero-product-caption strong { color: var(--navy); font-size: 15px; }
.hero-product-caption span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-align: right; }

.hero-product-badge,
.hero-product-note {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-product-badge { left: 0; top: 13%; padding: 11px 15px; }
.hero-product-badge span { display: block; color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: 0.12em; }
.hero-product-badge strong { display: block; color: var(--navy); font-size: 13px; margin-top: 3px; }
.hero-product-note { right: 0; bottom: 8%; max-width: 235px; padding: 12px 16px; color: var(--muted); font-size: 11px; }
.hero-product-note strong { display: block; color: var(--navy); font-size: 13px; }

.device-stage {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1.13;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgba(38, 59, 137, 0.28);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(44, 179, 74, 0.28);
  border-radius: 50%;
  inset: 11% -4%;
  transform: rotate(42deg);
}

.orbit:after {
  inset: 22% -9%;
  transform: rotate(-25deg);
}

.device-card {
  position: relative;
  z-index: 1;
  width: 76%;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, #e9edf7);
  box-shadow: 0 26px 55px rgba(38, 59, 137, 0.18);
  transform: rotate(-3deg);
}

.device-screen {
  background: linear-gradient(145deg, #1c2d6e, #263B89);
  border: 5px solid #d8dcec;
  border-radius: 15px;
  aspect-ratio: 1.55;
  color: #d4f5dc;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.brain-icon {
  font-size: 58px;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(44, 179, 74, 0.65);
}

.screen-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 26px;
}

.screen-bars i {
  display: block;
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--green);
  height: var(--h);
}

.device-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.coil {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 7%;
  width: 30%;
  aspect-ratio: 1.18;
  border: 15px solid var(--navy);
  border-radius: 46% 46% 38% 38%;
  background: linear-gradient(135deg, #f6f8ff, #c5cce3);
  box-shadow: 0 18px 28px rgba(38, 59, 137, 0.28);
  transform: rotate(17deg);
}

.coil:before {
  content: "TAMOVATE";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.float-note {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 9%;
  background: #fff;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 11px;
  color: var(--muted);
}

.float-note strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.features {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature {
  padding: 12px 22px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border-right: 1px solid var(--line);
}

.feature:first-child { padding-left: 0; }
.feature:last-child { border: 0; padding-right: 0; }

.feature-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--pale);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 21px;
}

.feature strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
  margin: 1px 0 4px;
}

.feature p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

section { padding: 78px 0; }

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

.section-head h2,
.tech-copy h2 {
  font-size: clamp(29px, 3.5vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--navy);
  margin: 10px 0 13px;
}

.section-head p,
.tech-copy p {
  color: var(--muted);
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: 0.25s;
  box-shadow: 0 5px 20px rgba(8, 43, 80, 0.035);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-art {
  height: 190px;
  background: linear-gradient(135deg, #e8ecf9, #f8f9fd);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.card-art:before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid #c7cfee;
  border-radius: 50%;
  box-shadow: 0 0 0 25px #ffffff55, 0 0 0 50px #ffffff40;
}

.art-symbol {
  z-index: 1;
  font-size: 70px;
  color: var(--green);
  filter: drop-shadow(0 8px 10px rgba(38, 59, 137, 0.12));
}

.card-body { padding: 22px; }
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--muted); margin-bottom: 17px; }

.text-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
}

.text-link span { margin-left: 7px; }

.products { background: #f5f7fc; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 20px;
  min-width: 0;
}

.product-visual {
  height: 130px;
  border-radius: 12px;
  background: linear-gradient(145deg, #edf0fb, #fff);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 48px;
}

.product .tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 850;
  color: var(--green);
  background: var(--pale-green);
  border-radius: 100px;
  padding: 5px 8px;
  margin-bottom: 9px;
}

.product h3 { font-size: 17px; color: var(--navy); margin-bottom: 7px; }
.product p { font-size: 12px; color: var(--muted); min-height: 60px; }

.tech {
  background: linear-gradient(120deg, #eef1fb, #f7f8fc);
  overflow: hidden;
}

.tech-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 22px 16px;
  background: #ffffffb8;
  border: 1px solid #d8dcf3;
  border-radius: 18px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  margin-bottom: 17px;
}

.step h3 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 12px; color: var(--muted); margin: 0; }

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.resource {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.resource-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--pale);
  color: var(--green);
  font-size: 23px;
}

.resource h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.resource p { font-size: 12px; color: var(--muted); margin-bottom: 9px; }

.cta-band { padding: 0 0 78px; }

.cta-panel {
  padding: 44px 48px;
  border-radius: 26px;
  background: linear-gradient(115deg, #1c2d6e, #263B89);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.cta-panel:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: 30%;
  top: -200px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  box-shadow: 0 0 0 35px #ffffff08, 0 0 0 70px #ffffff06;
}

.cta-panel h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-panel p {
  color: #c8d0ef;
  margin: 0;
  max-width: 610px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.cta-panel .btn {
  background: var(--green);
  color: #fff;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.cta-panel .btn:hover {
  background: #24963d;
  color: #fff;
}

.footer {
  background: #f5f6fc;
  border-top: 1px solid var(--line);
  padding: 48px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
}

.footer h3 { font-size: 13px; color: var(--navy); margin-bottom: 14px; }
.footer p,
.footer a { font-size: 12px; color: var(--muted); }

.footer-links { display: grid; gap: 9px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.disclaimer {
  font-size: 11px;
  color: #70809a;
  margin-top: 16px;
}

.site-content {
  padding: 48px 0 78px;
}

.site-content .entry-title {
  color: var(--navy);
  letter-spacing: -0.03em;
}

.site-content .entry-content {
  max-width: 720px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .navlinks { gap: 13px; }
  .navlinks a { font-size: 12px; }
  .hero-grid { gap: 20px; }
  .feature { padding: 10px 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { gap: 28px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
  .admin-bar .topbar { top: 46px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 30px, 600px); }
  .nav { min-height: 68px; }
  .menu-toggle { display: block; }
  .navlinks {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 18px 22px 22px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navlinks.open { display: flex; }
  .navlinks a {
    padding: 11px 0;
    border-bottom: 1px solid #edf0f6;
    font-size: 14px;
  }
  .navlinks .nav-cta { margin-top: 12px; text-align: center; }
  .hero { padding: 49px 0 38px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { font-size: 16px; }
  .hero-visual { min-height: 300px; }
  .device-stage { max-width: 460px; }
  .hero-product-stage { max-width: 460px; }
  .hero-product-card { width: 72%; padding: 12px; }
  .hero-product-badge { top: 10%; }
  .hero-product-note { bottom: 5%; max-width: 190px; }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .feature { border: 0; padding: 12px 5px !important; }
  .cards { grid-template-columns: 1fr; }
  .card-art { height: 170px; }
  section { padding: 58px 0; }
  .tech-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 12px;
  }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; }
  .resource-grid { grid-template-columns: 1fr; }
  .cta-panel {
    padding: 30px 24px;
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .product p { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand { font-size: 14px; }
  .brand-mark { flex-basis: 44px; width: 44px; height: 44px; }
  .actions .btn { width: 100%; }
  .trustline { gap: 9px; }
  .hero-product-card { width: 75%; }
  .hero-product-caption { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* TAMOVATE product gallery */
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product { display: flex; flex-direction: column; }
.product-visual {
  height: 205px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #e8ecf9, #fff);
}
.product-photo { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product h3 { margin-top: 0; }
.product p { flex: 1; min-height: 120px; }
.product .text-link { margin-top: auto; }
.product-details { border-top: 1px solid var(--line); margin: 12px 0 17px; padding-top: 10px; }
.product-details summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--navy); font-size: 12px; font-weight: 750; list-style: none; }
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary::after { content: "+"; color: var(--green); font-size: 18px; line-height: 1; }
.product-details[open] summary::after { content: "−"; }
.product-details summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }
.product-details-content { padding-top: 9px; }
.product-details-content p { flex: none; min-height: 0; margin-bottom: 8px; font-size: 11px; line-height: 1.65; }
.product-details-content ul { margin: 0; padding-left: 19px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.product-details-content li { margin: 4px 0; }
.footer-bottom { direction: ltr; }
.site-content .entry-title { letter-spacing: 0; }

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

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .product p { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Editable landing page blocks */
.landing-page-content > .wp-block-group.alignfull,
.landing-page-content > section.alignfull { max-width: none; }

/* Style the existing editable Home-page intro as the landing hero. */
.landing-page-content > .wp-block-columns:first-child {
  position: relative;
  display: flex;
  width: min(1160px, calc(100% - 40px));
  max-width: none;
  min-height: 410px;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  margin: 32px auto 0;
  padding: 46px 54px;
  border-radius: 26px;
  background: linear-gradient(115deg, #f6f8ff 0%, #eef2fb 53%, #e4e9f6 100%);
}

.landing-page-content > .wp-block-columns:first-child > .wp-block-column:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-page-content > .wp-block-columns:first-child > .wp-block-column:first-child > p:first-child {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-page-content > .wp-block-columns:first-child > .wp-block-column:first-child > p:last-child {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.landing-page-content > .wp-block-columns:first-child .wp-block-image {
  display: grid;
  width: 100%;
  min-height: 0;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-page-content > .wp-block-columns:first-child .wp-block-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 370px;
  object-fit: contain;
  border-radius: 0;
}

@media (max-width: 760px) {
  .landing-page-content > .wp-block-columns:first-child {
    width: min(100% - 30px, 600px);
    min-height: 0;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
    padding: 30px 24px;
  }
  .landing-page-content > .wp-block-columns:first-child .wp-block-image { min-height: 0; }
  .landing-page-content > .wp-block-columns:first-child .wp-block-image img {
    width: min(100%, 340px);
    max-height: 280px;
  }
}

.landing-page-content .hero-product-card .wp-block-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 20px;
  background: #eef1fb;
}

.landing-page-content .hero-product-card .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-page-content .hero-product-caption p,
.landing-page-content .hero-product-badge p,
.landing-page-content .hero-product-note p { margin: 0; }

.landing-page-content .hero-product-caption p:first-child { color: var(--navy); font-size: 15px; }
.landing-page-content .hero-product-caption p:last-child { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.08em; }
.landing-page-content .hero-product-badge p { color: var(--navy); font-size: 13px; }
.landing-page-content .hero-product-badge strong { color: var(--green); font-size: 9px; letter-spacing: 0.12em; }

.landing-page-content .feature h3 {
  color: var(--navy);
  font-size: 13px;
  margin: 1px 0 4px;
}

.landing-page-content .feature {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 13px;
}

.landing-page-content .feature-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.landing-page-content .feature h3,
.landing-page-content .feature > p:not(.feature-icon) { grid-column: 2; }

.landing-page-content .feature > p:not(.feature-icon) {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

.landing-page-content .feature-icon,
.landing-page-content .art-symbol,
.landing-page-content .step-num,
.landing-page-content .resource-icon { margin-top: 0; }

.landing-page-content .product-visual .wp-block-image { width: 100%; height: 100%; margin: 0; }
.landing-page-content .product-visual .wp-block-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.landing-page-content .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing-page-content .product > .tag,
.landing-page-content .product > .product-summary,
.landing-page-content .product > .text-link { min-height: 0; }
.landing-page-content .product > .tag,
.landing-page-content .product > .text-link { flex: 0 0 auto; }
.landing-page-content .product > .product-summary { flex: 1 0 auto; }

.landing-page-content .resource > .wp-block-group { flex: 1; }
.landing-page-content .resource .wp-block-heading,
.landing-page-content .resource p { margin-top: 0; }

.landing-page-content .wp-block-button.btn > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: 0.2s ease;
}

.landing-page-content .wp-block-button.btn-primary > .wp-block-button__link {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(38, 59, 137, 0.22);
}

.landing-page-content .wp-block-button.btn-outline > .wp-block-button__link {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
}

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

@media (max-width: 420px) {
  .landing-page-content .product-grid { grid-template-columns: 1fr; }
}

.landing-page-content .cta-panel .wp-block-button.btn > .wp-block-button__link {
  background: var(--green);
  color: #fff;
}

.landing-page-content .text-link a { color: inherit; text-decoration: none; }
.landing-page-content .text-link a:hover { color: var(--navy); }

/* Keep the editor canvas close to the front-end page width. */
.editor-styles-wrapper .landing-page-content,
.editor-styles-wrapper .wp-block-post-content { color: var(--ink); }
.editor-styles-wrapper .wp-block[data-align="full"] { max-width: none; }

/* Product detail pages and four-photo slider */
.tamovate-single-product { padding-top: 32px; }
.product-gallery { max-width: 980px; margin: 0 auto 42px; }
.product-gallery-stage {
  position: relative;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(140deg, #eef1fb, #fff);
  box-shadow: var(--shadow);
}
.product-gallery-slide,
.product-gallery-slide > img { width: 100%; height: 100%; }
.product-gallery-slide > img { display: block; object-fit: contain; }
.product-gallery-slide[hidden] { display: none; }
.product-gallery-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.product-gallery-placeholder strong { color: var(--navy); font-size: 18px; }
.placeholder-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--pale-green);
  color: var(--green);
  font-size: 21px;
  font-weight: 800;
}
.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.gallery-arrow:hover { background: var(--navy); color: #fff; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.product-gallery-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.product-gallery-dots button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}
.product-gallery-dots button.is-active,
.product-gallery-dots button:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.product-detail { max-width: 820px; margin: 0 auto; }
.product-detail-header { margin-bottom: 26px; }
.product-detail-header .eyebrow { display: block; }
.product-detail-header .eyebrow:before { display: inline-block; margin-right: 10px; }
.product-detail-header h1 { margin-top: 12px; }
.product-detail-summary { max-width: 700px; color: var(--muted); font-size: 18px; }
.product-detail .entry-content { max-width: none; color: var(--ink); }
.product-detail .entry-content h2 { color: var(--navy); }
.product-detail .entry-content li { margin-bottom: 8px; }
.product-grid .product h3 a { color: inherit; }
.product-grid .product h3 a:hover { color: var(--green); }

@media (max-width: 600px) {
  .tamovate-single-product { padding-top: 20px; }
  .product-gallery-stage { min-height: 230px; }
  .product-gallery-placeholder { min-height: 230px; }
  .product-gallery-placeholder strong { font-size: 15px; }
  .gallery-arrow { width: 38px; height: 38px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
}

/* Gutenberg Group blocks add an inner container around their child blocks. */
.landing-page-content .feature-grid,
.landing-page-content .cards,
.landing-page-content .product-grid,
.landing-page-content .tech-grid,
.landing-page-content .steps,
.landing-page-content .resource-grid,
.landing-page-content .feature,
.landing-page-content .product,
.landing-page-content .product-visual,
.landing-page-content .resource { display: block; }

.landing-page-content .feature-grid > .wp-block-group__inner-container {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.landing-page-content .feature > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 13px;
  align-content: start;
}

.landing-page-content .feature > .wp-block-group__inner-container > .feature-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.landing-page-content .feature > .wp-block-group__inner-container > h3,
.landing-page-content .feature > .wp-block-group__inner-container > p:not(.feature-icon) { grid-column: 2; }

.landing-page-content .cards > .wp-block-group__inner-container,
.landing-page-content .product-grid > .wp-block-group__inner-container,
.landing-page-content .steps > .wp-block-group__inner-container,
.landing-page-content .resource-grid > .wp-block-group__inner-container {
  display: grid;
  width: 100%;
  gap: 18px;
}

.landing-page-content .cards > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing-page-content .product-grid > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing-page-content .steps > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing-page-content .resource-grid > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing-page-content .tech-grid > .wp-block-group__inner-container {
  display: grid;
  width: 100%;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.landing-page-content .product > .wp-block-group__inner-container {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.landing-page-content .product-visual > .wp-block-group__inner-container,
.landing-page-content .product-visual .wp-block-image { width: 100%; height: 100%; }
.landing-page-content .resource > .wp-block-group__inner-container { display: flex; gap: 16px; width: 100%; }
.landing-page-content .cta-panel > .wp-block-group__inner-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.landing-page-content .cta-panel > .wp-block-group__inner-container > .wp-block-group { flex: 1; }

.landing-page-content .hero-product-card .wp-block-image {
  padding: 12px;
  background: linear-gradient(145deg, #263b89, #1c2d6e);
  box-shadow: 0 14px 34px rgba(38, 59, 137, 0.2);
}

@media (max-width: 980px) {
  .landing-page-content .product-grid > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-page-content .feature-grid > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .landing-page-content .cards > .wp-block-group__inner-container,
  .landing-page-content .tech-grid > .wp-block-group__inner-container,
  .landing-page-content .steps > .wp-block-group__inner-container,
  .landing-page-content .resource-grid > .wp-block-group__inner-container { grid-template-columns: 1fr; }
  .landing-page-content .cta-panel > .wp-block-group__inner-container { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .landing-page-content .product-grid > .wp-block-group__inner-container { grid-template-columns: 1fr; }
}

/* Live catalog of all published product posts. */
.landing-page-content .product-catalog {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  margin: 0;
}

.landing-page-content .product-catalog > .product {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(8, 43, 80, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-page-content .product-catalog > .product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.landing-page-content .product-card-image { display: block; }
.landing-page-content .product-catalog .product-visual {
  display: grid;
  width: 100%;
  height: 190px;
  place-items: center;
  overflow: hidden;
  margin: 0 0 15px;
  border-radius: 12px;
  background: linear-gradient(145deg, #edf0fb, #fff);
}

.landing-page-content .product-catalog .product-photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
}

.landing-page-content .product-photo-fallback { color: var(--navy); font-size: 54px; font-weight: 700; }
.landing-page-content .product-catalog .tag { align-self: flex-start; }
.landing-page-content .product-catalog h3 { margin: 0 0 7px; color: var(--navy); font-size: 19px; }
.landing-page-content .product-catalog h3 a { color: inherit; text-decoration: none; }
.landing-page-content .product-catalog h3 a:hover { color: var(--green); }
.landing-page-content .product-catalog .product-summary { flex: 1 0 auto; min-height: 72px; margin-bottom: 14px; }
.landing-page-content .product-catalog .text-link { margin-top: auto; }

/* Large, consistent SVG icons in the specialist-environment cards. */
.landing-page-content .card-art > .wp-block-group__inner-container {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.landing-page-content .card-art .art-symbol {
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  margin: 0;
  color: var(--green);
  font-size: 0;
  line-height: 0;
  filter: drop-shadow(0 7px 10px rgba(38, 59, 137, 0.12));
}

.landing-page-content .card-art .art-symbol svg {
  display: block;
  width: clamp(68px, 8vw, 88px);
  height: clamp(68px, 8vw, 88px);
  overflow: visible;
}

@media (max-width: 1100px) {
  .landing-page-content .product-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 760px) {
  .landing-page-content .product-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .landing-page-content .product-catalog .product-visual { height: 170px; }
  .landing-page-content .product-catalog > .product { padding: 14px; }
}

@media (max-width: 480px) {
  .landing-page-content .product-catalog { grid-template-columns: 1fr; gap: 14px; }
  .landing-page-content .product-catalog .product-visual { height: 220px; }
  .landing-page-content .product-catalog .product-summary { min-height: 0; }
  .landing-page-content .card-art .art-symbol svg { width: 76px; height: 76px; }
}
