:root {
  --portal-ink: #11130e;
  --portal-green: #213725;
  --portal-green-2: #2f4a34;
  --portal-green-soft: #edf3eb;
  --portal-sand: #dfc39b;
  --portal-sand-soft: #f6efe5;
  --portal-paper: #fbfaf6;
  --portal-card: #ffffff;
  --portal-line: rgba(33, 55, 37, 0.14);
  --portal-muted: #60665d;
  --portal-shadow: 0 24px 70px rgba(20, 28, 20, 0.1);
  --portal-x: 72%;
  --portal-y: 18%;
  --portal-shift-x: 0;
  --portal-shift-y: 0;
  --portal-scroll: 0;
  font-family: "Noto Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.portal-body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--portal-ink);
  background:
    radial-gradient(circle at var(--portal-x) var(--portal-y), rgba(223, 195, 155, 0.52), transparent 34rem),
    radial-gradient(circle at 10% 18%, rgba(33, 55, 37, 0.12), transparent 28rem),
    linear-gradient(180deg, #fbfaf6 0%, #f5f2e9 100%);
  overflow-x: hidden;
}

.portal-ambient {
  position: fixed;
  inset: -18vh -12vw;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.portal-ambient span {
  position: absolute;
  width: clamp(260px, 34vw, 560px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.42;
  transform:
    translate3d(
      calc(var(--portal-shift-x) * 22px),
      calc(var(--portal-shift-y) * 18px),
      0
    )
    scale(calc(0.94 + (var(--ambient-index) * 0.04)));
  animation: portal-drift 18s ease-in-out infinite alternate;
}

.portal-ambient span:nth-child(1) {
  top: 2%;
  right: 4%;
  background: rgba(223, 195, 155, 0.64);
}

.portal-ambient span:nth-child(2) {
  top: 22%;
  left: 0;
  background: rgba(33, 55, 37, 0.16);
  animation-duration: 22s;
}

.portal-ambient span:nth-child(3) {
  right: 16%;
  bottom: 16%;
  background: rgba(185, 187, 168, 0.36);
  animation-duration: 24s;
}

.portal-ambient span:nth-child(4) {
  bottom: -4%;
  left: 20%;
  background: rgba(255, 255, 255, 0.72);
  animation-duration: 28s;
}

.portal-header,
.portal-body main,
.portal-footer {
  position: relative;
  z-index: 1;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 6vw, 72px);
  background: rgba(251, 250, 246, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(33, 55, 37, 0.08);
}

.portal-actions {
  margin-left: auto;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--portal-green);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.portal-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.portal-actions,
.portal-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-menu-toggle {
  align-items: center;
  background: var(--portal-green);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(33, 55, 37, 0.18);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  height: 48px;
  justify-content: center;
  padding: 0;
  width: 56px;
}

.portal-menu-toggle span:not(.portal-sr-only) {
  background: #fff;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 22px;
}

.portal-menu-backdrop {
  background: rgba(12, 18, 12, 0.24);
  backdrop-filter: blur(10px);
  inset: 0;
  position: fixed;
  z-index: 50;
}

.portal-menu-backdrop[hidden],
.portal-menu-panel[hidden] {
  display: none;
}

.portal-menu-panel {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(1.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(12, 28, 20, 0.22);
  display: grid;
  gap: 12px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 20px;
  position: fixed;
  right: 18px;
  top: 82px;
  width: 100%;
  z-index: 60;
}

.portal-menu-panel-head {
  align-items: center;
  border-bottom: 1px solid rgba(33, 55, 37, 0.12);
  color: var(--portal-green);
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  padding-bottom: 14px;
}

.portal-menu-panel-head button {
  align-items: center;
  background: rgba(33, 55, 37, 0.08);
  border: 0;
  border-radius: 999px;
  color: var(--portal-green);
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.portal-menu-panel a {
  border-radius: 18px;
  color: var(--portal-green);
  font-family: var(--portal-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  padding: 10px 12px;
  text-decoration: none;
}

.portal-menu-panel a:hover {
  background: rgba(33, 55, 37, 0.08);
}

.portal-menu-language-form {
  border-top: 1px solid rgba(33, 55, 37, 0.12);
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 16px 12px 4px;
}

.portal-menu-language-form label {
  color: #8a6d43;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-menu-language-form select,
.portal-language-form select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  color: var(--portal-green);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.portal-language-form {
  margin: 0;
}

.portal-menu-open {
  overflow: hidden;
}

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

.portal-link,
.portal-secondary,
.portal-footer a {
  color: var(--portal-green);
  font-weight: 800;
  text-decoration: none;
}

.portal-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--portal-green);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(33, 55, 37, 0.18);
}

.portal-button-large {
  min-height: 52px;
  padding: 0 30px;
}

.portal-hero {
  display: grid;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 0.78fr);
  padding: clamp(42px, 7vw, 84px) clamp(18px, 8vw, 112px) clamp(28px, 6vw, 56px);
}

.portal-hero-copy {
  max-width: 880px;
  transform: translate3d(0, calc(var(--portal-scroll) * -28px), 0);
}

.portal-kicker {
  margin: 0 0 18px;
  color: #8a6d43;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portal-hero h1 {
  margin: 0;
  color: var(--portal-green);
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.portal-intro {
  max-width: 690px;
  margin: 24px 0 35px;
  color: var(--portal-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.52;
}

.portal-intro-small {
  margin-top: -14px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.45;
}

.portal-language-note {
  margin: -18px 0 28px;
  color: #8a6d43;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.portal-hero-media {
  position: relative;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(190px, 0.78fr) minmax(300px, 1.22fr);
  grid-template-rows: 176px 176px 196px;
  min-height: 586px;
}

.portal-media-tile {
  position: relative;
  overflow: hidden;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 30px;
  background: var(--portal-sand-soft);
  box-shadow: 0 24px 70px rgba(20, 28, 20, 0.12);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.portal-media-tile:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.portal-media-tile-large {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.portal-media-tile:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.portal-media-tile:nth-child(4) {
  grid-column: 1 / -1;
  grid-row: 3;
}

.portal-media-tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transform:
    translate3d(
      calc(var(--portal-shift-x) * -4px),
      calc(var(--portal-shift-y) * -3px),
      0
    )
    scale(1.035);
  transition: transform 360ms ease-out;
}

.portal-media-tile:hover,
.portal-proof-card:hover {
  box-shadow: 0 30px 86px rgba(20, 28, 20, 0.16);
}

.portal-media-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 46%, rgba(10, 12, 8, 0.64));
}

.portal-media-tile figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
}

.portal-media-tile span {
  display: inline-flex;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 19, 14, 0.44);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.portal-trust {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0 clamp(18px, 8vw, 112px) clamp(28px, 5vw, 52px);
}

.portal-trust span {
  padding: 16px 18px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  color: var(--portal-green);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-align: center;
}

.portal-action-strip {
  margin: 0 clamp(18px, 8vw, 112px) clamp(28px, 5vw, 52px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--portal-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(20, 28, 20, 0.06);
}

.portal-visual-strip {
  display: grid;
  align-items: center;
  gap: 22px;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.85fr);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 239, 229, 0.84)),
    radial-gradient(circle at right, rgba(223, 195, 155, 0.38), transparent 22rem);
}

.portal-action-strip p {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--portal-green);
  font-family: Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.16;
}

.portal-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-chip-list span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--portal-green);
  background: var(--portal-green-soft);
  font-weight: 800;
}

.portal-section {
  padding: clamp(32px, 5vw, 58px) clamp(18px, 8vw, 112px);
}

.portal-section-head {
  max-width: 680px;
  margin-bottom: 22px;
}

.portal-section h2 {
  margin: 0;
  color: var(--portal-green);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.portal-section-head p:not(.portal-kicker),
.portal-scan p {
  margin: 14px 0 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.portal-proof {
  padding-top: clamp(20px, 4vw, 44px);
}

.portal-showcase {
  position: relative;
  padding: 8px 58px 46px;
}

.portal-showcase-viewport {
  overflow: hidden;
  border-radius: 34px;
}

.portal-showcase-track {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  transform: translate3d(var(--showcase-offset, 0), 0, 0);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.portal-proof-card {
  position: relative;
  flex: 0 0 clamp(280px, 31vw, 430px);
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 28, 20, 0.1);
  opacity: 0.58;
  transform: scale(0.94);
  transition:
    opacity 340ms ease,
    transform 340ms ease,
    box-shadow 240ms ease;
}

.portal-proof-card.is-active {
  opacity: 1;
  transform: scale(1);
}

.portal-proof-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.15;
  height: auto;
  object-fit: cover;
  background: var(--portal-sand-soft);
  transition: transform 420ms ease-out;
}

.portal-proof-card:hover img {
  transform: scale(1.045);
}

.portal-proof-card div {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background: rgba(17, 19, 14, 0.58);
  backdrop-filter: blur(14px);
}

.portal-proof-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--portal-sand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-proof-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.portal-proof-card p {
  margin: 10px 0 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-showcase-control {
  position: absolute;
  top: 43%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  color: var(--portal-green);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(20, 28, 20, 0.12);
  cursor: pointer;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.portal-showcase-prev {
  left: 0;
}

.portal-showcase-next {
  right: 0;
}

.portal-showcase-dots {
  position: absolute;
  right: 58px;
  bottom: 0;
  left: 58px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.portal-showcase-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(33, 55, 37, 0.24);
  cursor: pointer;
  transition:
    width 220ms ease,
    background 220ms ease;
}

.portal-showcase-dots button.is-active {
  width: 30px;
  background: var(--portal-green);
}

.portal-services {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.portal-package-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.portal-card,
.portal-price-card {
  min-height: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--portal-line);
  border-radius: 24px;
  background: var(--portal-card);
}

.portal-card {
  display: grid;
  align-content: end;
  flex: 0 0 min(76vw, 330px);
  min-height: 220px;
  scroll-snap-align: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.95)),
    radial-gradient(circle at top right, rgba(223, 195, 155, 0.42), transparent 14rem),
    #fff;
  box-shadow: 0 18px 52px rgba(20, 28, 20, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 72px rgba(20, 28, 20, 0.13);
}

.portal-card-care {
  background: var(--portal-green-soft);
}

.portal-card-workspace {
  background: var(--portal-sand-soft);
}

.portal-card-platform,
.portal-price-card-featured {
  background: linear-gradient(145deg, var(--portal-green), var(--portal-green-2));
  color: #fff;
}

.portal-card-platform h3,
.portal-card-platform p,
.portal-card-platform .portal-card-label,
.portal-price-card-featured span,
.portal-price-card-featured strong,
.portal-price-card-featured .portal-monthly,
.portal-price-card-featured li {
  color: #fff;
}

.portal-card-label,
.portal-price-card span {
  color: #81704f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-card h3 {
  margin: 18px 0 0;
  color: var(--portal-green);
  font-size: 26px;
  line-height: 1.15;
}

.portal-card p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.6;
}

.portal-packages {
  background: rgba(255, 255, 255, 0.38);
}

.portal-price-card strong {
  display: block;
  margin-top: 14px;
  color: var(--portal-green);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
}

.portal-monthly {
  margin: 4px 0 18px;
  color: var(--portal-muted);
  font-weight: 800;
}

.portal-price-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-price-card li {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-price-card li::before {
  content: "+";
  margin-right: 8px;
  color: #8a6d43;
  font-weight: 900;
}

.portal-how {
  background:
    linear-gradient(135deg, rgba(33, 55, 37, 0.06), rgba(223, 195, 155, 0.18));
}

.portal-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.portal-steps article {
  padding: 22px 22px 26px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  background: #fff;
  text-align: center;
}

.portal-steps span {
  color: #8a6d43;
  font-weight: 900;
}

.portal-steps strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--portal-green);
  font-size: 16px;
}

.portal-steps p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-audience-grid,
.portal-platform-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.portal-audience-grid article,
.portal-platform-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  background: #fff;
}

.portal-audience-grid strong,
.portal-platform-card span {
  color: var(--portal-green);
  font-size: 18px;
}

.portal-audience-grid span,
.portal-platform-card em {
  color: var(--portal-muted);
  font-style: normal;
  line-height: 1.5;
}

.portal-scan {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  margin: clamp(20px, 4vw, 44px) clamp(18px, 8vw, 112px);
  padding: clamp(24px, 5vw, 44px);
  border-radius: 28px;
  background: var(--portal-green);
  color: #fff;
}

.portal-contact-page {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 58px);
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.95fr);
  margin: clamp(30px, 7vw, 88px) clamp(18px, 8vw, 112px) clamp(70px, 10vw, 120px);
}

.portal-contact-copy {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at top left, rgba(223, 195, 155, 0.32), transparent 18rem);
  border: 1px solid rgba(33, 55, 37, 0.11);
  border-radius: 34px;
  box-shadow: var(--portal-shadow);
  padding: clamp(28px, 5vw, 54px);
}

.portal-contact-copy h1 {
  color: var(--portal-green);
  font-family: var(--portal-serif);
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 0 0 24px;
}

.portal-contact-copy p {
  color: rgba(12, 28, 20, 0.68);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.portal-contact-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.portal-contact-notes span {
  background: rgba(33, 55, 37, 0.08);
  border-radius: 999px;
  color: var(--portal-green);
  font-size: 0.88rem;
  font-weight: 900;
  padding: 10px 13px;
}

.portal-contact-form {
  background: var(--portal-green);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(33, 55, 37, 0.18);
  padding: clamp(22px, 4vw, 34px);
}

.portal-scan h2,
.portal-scan .portal-kicker,
.portal-scan p {
  color: #fff;
}

.portal-scan .portal-button {
  color: var(--portal-green);
  background: #fff;
}

.portal-form-success {
  display: inline-block;
  margin-top: 20px !important;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.portal-growth-form {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.portal-growth-form label {
  display: grid;
  gap: 6px;
}

.portal-growth-form span {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.portal-growth-form input,
.portal-growth-form select,
.portal-growth-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  color: var(--portal-ink);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.portal-growth-form textarea {
  min-height: 108px;
  resize: vertical;
}

.portal-growth-form em {
  color: #ffe0d6;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.portal-form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.portal-platforms {
  padding-bottom: clamp(70px, 10vw, 120px);
}

.portal-platform-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.portal-platform-card {
  color: var(--portal-green);
  text-decoration: none;
}

.portal-platform-card strong {
  color: var(--portal-green);
}

.portal-consent-check {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  display: grid !important;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 14px 16px;
}

.portal-consent-check input {
  accent-color: #fff;
  height: 18px;
  margin-top: 3px;
  width: 18px;
}

.portal-growth-form .portal-consent-check span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  line-height: 1.55;
}

.portal-consent-check a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portal-consent-check em {
  grid-column: 2;
}

.portal-legal-hero {
  margin: 0 auto;
  max-width: 980px;
  padding: 96px 32px 28px;
  text-align: center;
}

.portal-legal-hero h1 {
  color: var(--portal-ink);
  font-family: var(--portal-serif);
  font-size: clamp(3rem, 7vw, 6.8rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin: 18px 0 22px;
}

.portal-legal-hero p {
  color: rgba(12, 28, 20, 0.68);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 720px;
}

.portal-legal-hero span {
  color: var(--portal-gold);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-top: 24px;
  text-transform: uppercase;
}

.portal-legal-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(249, 243, 233, 0.84)),
    radial-gradient(circle at 10% 0%, rgba(172, 135, 74, 0.14), transparent 32%);
  border: 1px solid rgba(35, 58, 38, 0.12);
  border-radius: 34px;
  box-shadow: 0 32px 90px rgba(35, 58, 38, 0.12);
  color: rgba(12, 28, 20, 0.76);
  line-height: 1.75;
  margin: 0 auto 72px;
  max-width: 920px;
  padding: clamp(28px, 5vw, 54px);
}

.portal-legal-card h2 {
  color: var(--portal-green);
  font-family: var(--portal-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
  margin: 34px 0 12px;
}

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

.portal-legal-card p {
  margin: 0 0 18px;
}

.portal-legal-card .legal-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 20px;
}

.portal-cookie-banner {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(12, 28, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  bottom: 22px;
  box-shadow: 0 28px 70px rgba(5, 12, 8, 0.28);
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto;
  left: 50%;
  max-width: min(1120px, calc(100vw - 32px));
  padding: 18px;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 80;
}

.portal-cookie-banner[hidden] {
  display: none;
}

.portal-cookie-banner strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.portal-cookie-banner p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
  margin: 0;
}

.portal-cookie-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.portal-cookie-actions a,
.portal-cookie-secondary {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portal-footer {
  padding: 0 clamp(18px, 8vw, 112px) 30px;
  color: var(--portal-muted);
  font-size: 13px;
  text-align: center;
}

.portal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

html[dir="rtl"] .portal-body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .portal-brand,
html[dir="rtl"] .portal-actions,
html[dir="rtl"] .portal-hero-actions,
html[dir="rtl"] .portal-footer-links,
html[dir="rtl"] .portal-chip-list {
  flex-direction: row-reverse;
}

html[dir="rtl"] .portal-price-card li::before {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .portal-footer {
  text-align: center;
}

html[dir="rtl"] .portal-actions {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .portal-menu-panel {
  right: auto;
  left: 18px;
}

.portal-has-dom .portal-reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 620ms ease,
    translate 620ms ease;
}

.portal-has-dom .portal-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@keyframes portal-drift {
  0% {
    transform:
      translate3d(
        calc(var(--portal-shift-x) * 18px),
        calc(var(--portal-shift-y) * 16px),
        0
      )
      scale(calc(0.94 + (var(--ambient-index) * 0.04)));
  }
  100% {
    transform:
      translate3d(
        calc((var(--portal-shift-x) * 26px) + 22px),
        calc((var(--portal-shift-y) * 22px) - 18px),
        0
      )
      scale(calc(1.02 + (var(--ambient-index) * 0.05)));
  }
}

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

  .portal-ambient span,
  .portal-hero-copy,
  .portal-hero-media,
  .portal-media-tile,
  .portal-media-tile img,
  .portal-showcase-track,
  .portal-proof-card img,
  .portal-card,
  .portal-has-dom .portal-reveal {
    animation: none;
    transform: none;
    transition: none;
    translate: 0 0;
  }

  .portal-has-dom .portal-reveal {
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .portal-package-grid,
  .portal-audience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .portal-actions .portal-link {
    display: none;
  }

  .portal-hero,
  .portal-trust,
  .portal-package-grid,
  .portal-audience-grid,
  .portal-platform-grid,
  .portal-contact-page {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    padding-top: 38px;
  }

  .portal-hero-actions,
  .portal-scan {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .portal-visual-strip,
  .portal-hero-media {
    grid-template-columns: 1fr;
  }

  .portal-hero-media {
    grid-template-rows: none;
    min-height: 0;
  }

  .portal-media-tile,
  .portal-media-tile:first-child,
  .portal-media-tile:nth-child(3) {
    min-height: 230px;
    transform: none;
  }

  .portal-media-tile-large,
  .portal-media-tile:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .portal-button-large,
  .portal-scan .portal-button {
    width: 100%;
  }

  .portal-showcase {
    padding: 0 0 42px;
  }

  .portal-showcase-viewport {
    overflow: visible;
  }

  .portal-showcase-track {
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    transform: none !important;
  }

  .portal-proof-card {
    flex-basis: min(82vw, 360px);
    opacity: 1;
    scroll-snap-align: center;
    transform: none;
  }

  .portal-showcase-control {
    display: none;
  }

  .portal-showcase-dots {
    right: 0;
    left: 0;
  }

  .portal-cookie-banner {
    grid-template-columns: 1fr;
  }

  .portal-cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .portal-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 14px 20px;
  }

  .portal-brand {
    min-width: 0;
  }

  .portal-brand span {
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .portal-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .portal-menu-panel {
    left: 14px;
    right: 14px;
    top: 94px;
    width: auto;
  }

  .portal-menu-language-form select {
    width: 100%;
  }

  .portal-form-row {
    grid-template-columns: 1fr;
  }

  .portal-consent-check {
    grid-template-columns: 1fr;
  }

  .portal-consent-check em {
    grid-column: 1;
  }

  .portal-cookie-banner {
    bottom: 12px;
    border-radius: 20px;
    grid-template-columns: 1fr;
  }

  .portal-cookie-actions,
  .portal-cookie-actions .portal-button {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
}
