:root {
  /* palette */
  --sss-bg: #F8F7F3;          /* warm paper */
  --sss-surface: #FFFFFF;
  --sss-ink: #0F172A;
  --sss-ink-soft: #334155;
  --sss-muted: #6B7280;
  --sss-border: rgba(15,23,42,0.06);
  --sss-accent: #0E7C73;
  --sss-accent-dark: #09645E;
  --sss-secondary: #4A8CFF;
  --sss-warm: #E8C27A;
  --spec-uvb: #5B4DFF;
  --spec-uva: #3F7BFF;
  --spec-vl: #22C7D6;
  --spec-ir: #E56A6A;
  --spec-track: color-mix(in srgb, var(--sss-bg) 92%, #DDE6F2 8%);
  --spec-track-border: #DCE6F2;

  /* shape + depth */
  --sss-radius: 18px;
  --sss-radius-sm: 12px;
  --sss-shadow-soft: 0 6px 20px rgba(15, 23, 42, 0.06);
  --sss-shadow-lift: 0 10px 30px -22px rgba(0, 0, 0, 0.16);

  /* spacing scale */
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 48px;
  --space-8: 56px;
  --space-9: 64px;
}

/* Astra sandbox — homepage scoped only */
.sss-home {
  --ast-global-color-0: var(--sss-accent);
  --ast-global-color-1: var(--sss-secondary);
  --ast-global-color-2: var(--sss-ink);
  --ast-global-color-3: var(--sss-ink-soft);
  --ast-global-color-4: var(--sss-bg);
  --ast-global-color-5: var(--sss-surface);
  --ast-global-color-6: color-mix(in srgb, var(--sss-accent) 8%, white);
  --ast-global-color-7: var(--sss-warm);
}

.sss-home,
.sss-homepage {
  color: var(--sss-ink);
  font-family: inherit;
  background: var(--sss-bg);
}

.sss-section-heading {
  margin-bottom: 16px;
}

.sss-hero {
  padding: var(--space-8) var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(28px, 6vw, 60px);
  align-items: center;
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(14,124,115,0.10), transparent 55%),
    radial-gradient(900px 320px at 100% 0%, rgba(74,140,255,0.08), transparent 55%),
    radial-gradient(1100px 420px at 70% 20%, rgba(232,194,122,0.10), transparent 60%),
    linear-gradient(180deg, var(--sss-surface), var(--sss-bg));
}

.sss-hero__content {
  width: 100%;
  max-width: 45ch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  align-self: start;
  text-align: left;
}

/* Large screens: give the visual column more breathing room so it sits in the center of whitespace */
@media (min-width: 1024px) {
  .sss-hero {
    grid-template-columns: 1fr 1.8fr;
    align-items: start;
  }
}


.sss-badge,
.sss-uv-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--sss-accent);
  background: rgba(14,124,115,0.10);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(14,124,115,0.18);
}

.sss-hero__title {
  margin: 12px 0 10px;
  font-size: clamp(2.3rem, 1.6rem + 1.4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 8px;
  font-weight: 700;
}

.sss-hero__subtitle {
  margin: 0 0 18px;
  color: var(--sss-ink-soft);
  line-height: 1.5;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.1rem);
}

.sss-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.sss-hero__microtrust {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sss-muted);
}

.sss-hero__visual {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  justify-self: center;
  align-self: start;
  margin-top: clamp(0px, 1vw, 12px);
  color: inherit;
  opacity: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}

.sss-hero__visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.sss-hero__visual,
.sss-hero__visual svg,
.sss-spectrum-illustration svg {
  overflow: visible;
}

.sss-hero__spectrum-row {
  width: 100%;
  max-width: 45ch;
  margin-top: clamp(16px, 2vw, 22px);
  margin-bottom: clamp(8px, 2vw, 16px);
  margin-inline: 0;
  align-self: stretch;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sss-hero__spectrum {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  margin-inline: 0;
  text-align: left;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.sss-hero__spectrum .sss-spectrum-illustration {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.sss-hero__spectrum svg,
.sss-hero__spectrum .spec {
  display: block;
  width: 100%;
  margin: 0;
}

.sss-spectrum-illustration {
  color: inherit;
  width: 100%;
  max-width: min(560px, 100%);
  margin-inline: 0;
  margin-top: 0;
}

@media (min-width: 1024px) {
  .sss-hero__spectrum-row {
    margin-top: clamp(-24px, -1.8vw, 2px);
    margin-bottom: clamp(0px, 0.3vw, 6px);
  }
}

@media (min-width: 1024px) and (max-height: 900px) {
  .sss-hero {
    padding-top: 32px;
    padding-bottom: 24px;
  }
  .sss-hero__title {
    font-size: clamp(2.1rem, 1.4rem + 1.2vw, 2.7rem);
    margin-bottom: 12px;
  }
  .sss-hero__subtitle {
    font-size: 0.98rem;
    line-height: 1.35;
    margin-bottom: 16px;
  }
  .sss-hero__actions {
    gap: 10px;
    margin-bottom: 12px;
  }
  .sss-hero__microtrust {
    margin-top: 8px;
    margin-bottom: 8px;
  }
  .sss-hero__spectrum {
    margin-top: 12px;
  }
}

.sss-hero__photo {
  width: 100%;
  margin: 0 auto;
  border-radius: var(--sss-radius);
  border: 1px solid var(--sss-border);
  box-shadow: var(--sss-shadow-soft);
  overflow: hidden;
}

.sss-hero__photo picture,
.sss-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.spec-track {
  fill: url(#sssSpec);
  stroke: var(--spec-track-border);
  stroke-width: 1.5;
}

#sssSpec stop:nth-of-type(1) { stop-color: var(--spec-uvb); }
#sssSpec stop:nth-of-type(2) { stop-color: var(--spec-uva); }
#sssSpec stop:nth-of-type(3) { stop-color: var(--spec-vl); }
#sssSpec stop:nth-of-type(4) { stop-color: var(--spec-ir); }

.spec-dot--uvb { fill: var(--spec-uvb); }
.spec-dot--uva { fill: var(--spec-uva); }
.spec-dot--vl { fill: var(--spec-vl); }
.spec-dot--ir { fill: var(--spec-ir); }

.spec-label {
  fill: var(--sss-ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.sss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sss-btn--primary {
  background: var(--sss-accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.25);
}

a.sss-btn--primary:hover,
.sss-btn--primary:hover {
  transform: translateY(-1px);
  background: var(--sss-accent-dark);
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.28);
}

.sss-btn--ghost {
  background: transparent;
  color: var(--sss-accent);
  border: 1px solid currentColor;
}

/* Safety: prevent theme link styles overriding button colors */
a.sss-btn--primary:visited, .sss-btn--primary:visited { color: #fff; }
a.sss-btn--ghost:visited, .sss-btn--ghost:visited { color: var(--sss-accent); }


a.sss-btn--ghost:hover,
.sss-btn--ghost:hover {
  transform: translateY(-1px);
  color: var(--sss-accent-dark);
  background: color-mix(in srgb, var(--sss-accent) 8%, transparent);
  border-color: currentColor;
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.16);
}

/* UV CTA (motif reused) */
.sss-uv-cta {
  margin: 0;
  padding: var(--space-8) var(--space-5);
}

.sss-uv-cta__inner {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--sss-radius);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(1200px 400px at 0% 0%, rgba(14,124,115,0.12), transparent 60%),
    radial-gradient(900px 380px at 100% 0%, rgba(74,140,255,0.10), transparent 60%),
    radial-gradient(1000px 420px at 60% 10%, rgba(232,194,122,0.12), transparent 62%),
    linear-gradient(180deg, var(--sss-surface), var(--sss-bg));
  border: 1px solid var(--sss-border);
  box-shadow: var(--sss-shadow-soft);
  position: relative;
  overflow: hidden;
}

.sss-uv-cta__title {
  margin: 6px 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--sss-ink);
  line-height: 1.15;
}

.sss-uv-cta__subtitle {
  margin: 0 0 12px;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--sss-ink-soft);
  line-height: 1.5;
  max-width: 52ch;
}

.sss-uv-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sss-uv-cta a.sss-uv-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: var(--sss-accent) !important;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.sss-uv-cta a.sss-uv-cta__button,
.sss-uv-cta a.sss-uv-cta__button *,
.sss-uv-cta a.sss-uv-cta__button:hover,
.sss-uv-cta a.sss-uv-cta__button:hover *,
.sss-uv-cta a.sss-uv-cta__button:active,
.sss-uv-cta a.sss-uv-cta__button:active *,
.sss-uv-cta a.sss-uv-cta__button:focus-visible,
.sss-uv-cta a.sss-uv-cta__button:focus-visible *,
.sss-uv-cta a.sss-uv-cta__button:visited,
.sss-uv-cta a.sss-uv-cta__button:visited * {
  color: #fff !important;
}

.sss-uv-cta a.sss-uv-cta__button:hover,
.sss-uv-cta a.sss-uv-cta__button:active {
  transform: translateY(-1px);
  background-color: var(--sss-accent-dark) !important;
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.28);
  text-decoration: none;
}

.sss-uv-cta a.sss-uv-cta__button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sss-accent) 35%, transparent);
  outline-offset: 3px;
}

.sss-uv-cta__arrow {
  font-size: 16px;
}

.sss-uv-cta__meta {
  font-size: 12px;
  color: var(--sss-muted);
}

.sss-uv-cta__right {
  position: relative;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  color: var(--sss-accent);
  opacity: 0.9;
}

.sss-cta-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  color: var(--sss-accent);
}

.sss-cta-card__sun {
  width: 68px;
  height: 68px;
  display: block;
}

.sss-uv-cta__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(14,124,115,0.20), transparent 60%);
  filter: blur(18px);
  z-index: -1;
}

@media (max-width: 768px) {
  .sss-uv-cta__inner {
    grid-template-columns: 1fr;
  }
  .sss-cta-card__icon {
    margin-top: 10px;
    width: 90px;
    height: 90px;
  }
  .sss-cta-card__sun {
    width: 60px;
    height: 60px;
  }
}

.sss-value-row,
.sss-start-here {
  padding: var(--space-7) var(--space-5);
}

.sss-featured-guide,
.sss-latest-articles,
.sss-email-cta {
  padding: var(--space-6) var(--space-5);
}

.sss-grid {
  display: grid;
  gap: 16px;
}

.sss-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sss-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sss-card,
.sss-featured-card {
  background: var(--sss-surface);
  border: 1px solid var(--sss-border);
  border-radius: var(--sss-radius-sm);
  padding: var(--space-5);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sss-card:hover,
.sss-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.17);
}

.sss-card h3,
.sss-featured-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.sss-card p,
.sss-featured-card p {
  margin: 0;
  color: var(--sss-ink-soft);
  line-height: 1.55;
}

.sss-meta {
  font-size: 13px;
  color: var(--sss-muted);
}

.sss-section-footer {
  margin-top: 16px;
}

.sss-email-cta__inner {
  border-radius: 16px;
  border: 1px solid var(--sss-border);
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.16);
}

.sss-email-cta__inner h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.sss-email-cta__inner p {
  margin: 0;
  color: var(--sss-ink-soft);
}

.sss-spectrum-line{
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--sss-accent) 70%, transparent),
    color-mix(in srgb, var(--sss-secondary) 70%, transparent),
    color-mix(in srgb, var(--sss-accent) 40%, transparent)
  );
  opacity: 0.6;
  margin: var(--space-5) 0;
}
.sss-spectrum-line--hero{
  max-width: 360px;
  margin-top: var(--space-4);
}

.sss-data-texture{
  background-image: radial-gradient(
    rgba(15,23,42,0.06) 1px,
    transparent 1px
  );
  background-size: 12px 12px;
  opacity: 0.35;
}

@media (max-width: 768px) {
  .sss-hero {
    grid-template-columns: 1fr;
    padding: var(--space-7) var(--space-5);
  }
  .sss-hero__spectrum-row {
    max-width: 100%;
    margin-inline: auto;
    margin-top: 16px;
    margin-bottom: 12px;
  }
  .sss-hero__spectrum {
    max-width: 100%;
    margin-inline: auto;
    margin-top: 0;
  }
  .sss-hero__actions{
    width: 100%;
  }
  .sss-uv-cta__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .sss-uv-cta__right {
    justify-self: start;
  }
  .sss-email-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .sss-value-row,
  .sss-start-here {
    padding: var(--space-6) var(--space-5);
  }
  .sss-featured-guide,
  .sss-latest-articles,
  .sss-email-cta {
    padding: var(--space-5) var(--space-5);
  }
}
