/* SOLARIS — design tokens mirror the Figma variables of "Hero C — Solaris" (node 8:1216). */
:root {
  --color-bg-sky: #9dacb9;
  --color-bg-page: #eeeeec;
  --color-bg-surface: #fbf7ef;
  --color-bg-inverse: #262932;
  --color-bg-strong: #1c1b19;
  --color-bg-strong-hover: #262932;
  --color-bg-accent: #f4d94e;
  --color-bg-accent-hover: #f5c02e;

  --color-text-primary: #1c1b19;
  --color-text-secondary: #5f5a53;
  --color-text-inverse: #fbf7ef;
  --color-text-inverse-muted: rgb(251 247 239 / .75);
  --color-text-inverse-subtle: rgb(251 247 239 / .55);
  --color-text-on-accent-muted: rgb(28 27 25 / .7);
  --color-text-on-photo-muted: rgb(255 255 255 / .85);

  --color-overlay-scrim: rgb(28 27 25 / .4);
  --color-border-on-photo-muted: rgb(255 255 255 / .6);

  --radius-2xs: 2px;
  --radius-full: 999px;

  --font-ui: "Montserrat", system-ui, sans-serif;
  --font-nav: "Onest", system-ui, sans-serif;
  --font-display: "Wix Madefor Display", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
p, h1, h2, h3, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--color-bg-accent); outline-offset: 3px; }
.panel :focus-visible { outline-color: var(--color-bg-strong); }

/* ───────────── Scale ─────────────
   The Figma frame is 1800 × 1101.
   --u  : one design pixel of the composition. Fits the first screen, never lets the photo fall short of the width.
   --ui : one design pixel of UI chrome. Same as --u, but stops shrinking at 0.8 so text stays readable on laptops.
   At a 1800 px wide window both equal 1px, i.e. the page matches the frame exactly. */
/* registered, so the cqw inside them is resolved once at .scale — containers further down (the bento) don't change it */
@property --u  { syntax: "<length>"; inherits: true; initial-value: 1px; }
@property --ui { syntax: "<length>"; inherits: true; initial-value: 1px; }
.page { position: relative; container-type: inline-size; overflow: clip; }
.scale {
  --u: max(100cqw / 2200, min(100cqw / 1800, 100svh / 1101));
  --ui: max(var(--u), .8px);
}

.glass {
  background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ───────────── Buttons (Figma: Button v2) ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--l { padding: calc(19 * var(--ui)) calc(32 * var(--ui)) calc(17 * var(--ui)); font-size: calc(16 * var(--ui)); line-height: calc(20 * var(--ui)); }
.btn--s { padding: calc(13 * var(--ui)) calc(22 * var(--ui)); font-size: calc(14 * var(--ui)); line-height: calc(18 * var(--ui)); }
.btn--primary {
  background: var(--color-bg-accent);
  color: var(--color-text-primary);
  filter: drop-shadow(0 calc(8 * var(--ui)) calc(14 * var(--ui)) rgb(244 217 78 / .45));
}
.btn--secondary { background: var(--color-bg-strong); color: var(--color-text-inverse); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--color-bg-accent-hover); }
  .btn--secondary:hover { background: var(--color-bg-strong-hover); }
}

/* ───────────── Sections below the hero (shared) ─────────────
   Side padding follows --u, so edges line up with the hero header; sizes follow --ui. */
.section {
  display: flex;
  flex-direction: column;
  gap: calc(64 * var(--ui));
  padding: calc(120 * var(--ui)) calc(64 * var(--u));
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(40 * var(--ui)); }
.section-head__title { display: flex; flex-direction: column; align-items: flex-start; gap: calc(28 * var(--ui)); }
.section-index {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--ui));
  padding: calc(9 * var(--ui)) calc(16 * var(--ui)) calc(7 * var(--ui)); /* 1px lower: Figma's baseline rounding */
  border: 1px solid rgb(28 27 25 / .12);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: calc(14 * var(--ui));
  line-height: calc(17 * var(--ui));
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-index::before {
  content: "";
  position: relative;
  top: calc(-1 * var(--ui));
  width: calc(8 * var(--ui));
  height: calc(8 * var(--ui));
  border-radius: 50%;
  background: var(--color-bg-accent);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(88 * var(--ui));
  line-height: calc(84 * var(--ui));
  letter-spacing: -.035em;
}
.section-lead {
  width: calc(540 * var(--ui));
  font-size: calc(18 * var(--ui));
  line-height: calc(24 * var(--ui));
  color: var(--color-text-secondary);
}

/* ───────────── Header ───────────── */
.header {
  position: absolute;
  z-index: 10;
  top: calc(20 * var(--u));
  left: calc(64 * var(--u));
  right: calc(64 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: var(--font-nav);
  font-weight: 400;
}
.logo {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--ui));
  font-weight: 500;
  font-size: calc(25 * var(--ui));
  letter-spacing: -.04em;
  line-height: normal;
}
.logo img { width: calc(30 * var(--ui)); height: calc(30 * var(--ui)); }

.nav { border-radius: var(--radius-full); padding: calc(6 * var(--ui)); }
.nav ul { display: flex; gap: calc(2 * var(--ui)); }
.nav__link {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--ui));
  padding: calc(11 * var(--ui)) calc(16 * var(--ui));
  border-radius: var(--radius-full);
  font-size: calc(15 * var(--ui));
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.nav__link--chevron { padding-right: calc(12 * var(--ui)); }
.nav__link.is-active { background: rgb(255 255 255 / .12); }
@media (hover: hover) { .nav__link:hover { background: rgb(255 255 255 / .18); } }

/* 14 × 14 icon box with the 8.6 × 5.1 chevron asset placed as in Figma */
.chevron {
  width: calc(14 * var(--ui));
  height: calc(14 * var(--ui));
  background: url("../assets/hero/icon-chevron.svg") no-repeat calc(2.7 * var(--ui)) calc(4.45 * var(--ui));
  background-size: calc(8.6 * var(--ui)) calc(5.1 * var(--ui));
}

.actions { display: flex; align-items: center; gap: calc(8 * var(--ui)); }
.phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(2 * var(--ui));
  padding: 0 calc(12 * var(--ui)) 0 calc(4 * var(--ui));
  letter-spacing: -.005em;
  white-space: nowrap;
}
.phone__number { font-size: calc(15 * var(--ui)); line-height: 1; }
.phone__hours { font-size: calc(13 * var(--ui)); line-height: 1.3; color: rgb(255 255 255 / .55); }

.lang {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--ui));
  padding: calc(13 * var(--ui)) calc(12 * var(--ui)) calc(13 * var(--ui)) calc(14 * var(--ui));
  border-radius: var(--radius-full);
  font-size: calc(15 * var(--ui));
  line-height: 1;
  letter-spacing: -.005em;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: calc(44 * var(--ui));
  height: calc(44 * var(--ui));
  border-radius: var(--radius-full);
}
.icon-btn span { width: calc(18 * var(--ui)); height: calc(18 * var(--ui)); background-repeat: no-repeat; }
.icon-btn--search span {
  background-image: url("../assets/hero/icon-search.svg");
  background-position: calc(2.2 * var(--ui)) calc(2.2 * var(--ui));
  background-size: calc(13.6 * var(--ui)) calc(13.6 * var(--ui));
}
.icon-btn--bag span {
  background-image: url("../assets/hero/icon-bag.svg");
  background-position: calc(3.325 * var(--ui)) calc(2.95 * var(--ui));
  background-size: calc(11.35 * var(--ui)) calc(12.85 * var(--ui));
}
.lang, .icon-btn, .burger { transition: background-color .2s ease; }
@media (hover: hover) {
  .lang:hover, .icon-btn:hover, .burger:hover { background-color: rgb(255 255 255 / .18); }
}
.burger { display: none; }

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(1101 * var(--u));
  background: var(--color-bg-sky);
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

/* Figma: 2200 × 1130 image layers, centred; the photo itself is cropped 32px above the top. */
.hero__photo {
  position: absolute;
  top: calc(-32 * var(--u));
  left: calc(50% - 1100 * var(--u));
  width: calc(2200 * var(--u));
  height: calc(1254.25 * var(--u));
  scale: -1 1; /* mirrored, as in the design; the cut-out mask flips with it */
}
.hero__house { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

.hero__tint, .hero__shade { position: absolute; top: 0; right: 0; left: 0; pointer-events: none; }
.hero__tint { height: calc(421.6 * var(--u)); background: linear-gradient(var(--color-bg-sky), rgb(157 172 185 / 0)); }
.hero__shade {
  height: calc(1130 * var(--u));
  background: linear-gradient(rgb(44 50 56 / 0) 30.168%, rgb(28 27 25 / .6) 86.034%);
}

/* The padding keeps glyph overshoot inside the area painted by background-clip: text. */
.hero__wordmark {
  --bleed: calc(24 * var(--u));
  position: absolute;
  top: calc(111 * var(--u) - var(--bleed));
  left: calc(50% - 840 * var(--u));
  padding: var(--bleed) var(--bleed) var(--bleed) 0;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: calc(413 * var(--u));
  line-height: .707;
  letter-spacing: -.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(#fff var(--bleed), rgb(255 255 255 / .2) calc(100% - var(--bleed)));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* ───────────── Headline ───────────── */
.hero__intro {
  position: absolute;
  left: calc(60 * var(--u));
  bottom: calc((1101 - 786.12) * var(--u));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(14 * var(--u));
}
.overline {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--ui));
  height: calc(38 * var(--ui));
  padding: 0 calc(12 * var(--ui));
  border: 1px solid rgb(251 247 239 / .15);
  border-radius: var(--radius-full);
  background: rgb(28 27 25 / .1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-display);
  font-size: calc(16 * var(--ui));
  line-height: normal;
  color: var(--color-text-on-photo-muted);
  white-space: nowrap;
}
.overline__dot { width: calc(8 * var(--ui)); height: calc(8 * var(--ui)); border-radius: 50%; background: var(--color-bg-accent); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(168 * var(--u));
  line-height: .92;
  letter-spacing: calc(-7.56 * var(--u));
  color: #fff;
  white-space: nowrap;
  translate: 0 calc(1 * var(--u)); /* matches Figma's baseline rounding */
}

/* ───────────── Bottom panel ───────────── */
.panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(244 * var(--u));
}
.panel__shape { position: absolute; inset: 0; pointer-events: none; }
.panel__shape svg {
  position: absolute;
  top: 0;
  left: calc(50% - 900 * var(--u));
  width: calc(1800 * var(--u));
  height: calc(244 * var(--u));
}
/* flat extensions for windows wider than the 1800 shape */
.panel__shape::before, .panel__shape::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: max(0px, calc(50% - 900 * var(--u) + 1px));
  background: var(--color-bg-page);
}
.panel__shape::before { left: 0; }
.panel__shape::after { right: 0; }

.about {
  position: absolute;
  top: calc(52 * var(--u));
  left: calc(60 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(20 * var(--ui));
  /* wider than the design's 430: the sentence is set larger; it still stops short of the notch */
  width: min(480 * var(--ui), calc(50% - 320 * var(--u)));
  translate: 0 var(--lift, 0px);
}
.about__icons { display: flex; gap: calc(10 * var(--ui)); }
.ring {
  display: grid;
  place-items: center;
  width: calc(40 * var(--ui));
  height: calc(40 * var(--ui));
  border: 1px solid var(--color-bg-strong);
  border-radius: 50%;
}
.ring svg {
  width: calc(18.2 * var(--ui));
  height: calc(18.2 * var(--ui));
  fill: none;
  stroke: var(--color-bg-strong);
  stroke-width: 2.16; /* 1.64px at this size, as the design's icons */
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 20 in the 1800 frame (the design has 15), never under 16px on a laptop */
.about__text { font-size: max(16px, calc(20 * var(--u))); line-height: 1.5; color: var(--color-text-secondary); }
/* the narrowest desktop: a touch smaller and higher, so it clears the notch and the bottom */
@media (min-width: 1100px) and (max-width: 1239px) {
  .about { top: calc(40 * var(--u)); width: calc(50% - 340 * var(--u)); gap: 12px; }
  .about__text { font-size: 15px; }
}
.panel__cta {
  position: absolute;
  top: calc(55 * var(--u));
  left: 50%;
  min-width: calc(131 * var(--ui));
  translate: -50% var(--lift, 0px);
}

.review {
  position: absolute;
  top: calc(46 * var(--u));
  right: calc(60 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--ui));
  width: min(440 * var(--ui), 496 * var(--u));
  line-height: normal;
  translate: 0 var(--lift, 0px);
}
.review__label { font-weight: 600; font-size: calc(14 * var(--ui)); line-height: calc(17 * var(--ui)); letter-spacing: .04em; text-transform: uppercase; }
.review blockquote { font-size: calc(18 * var(--ui)); line-height: calc(24 * var(--ui)); }
.review figcaption { display: flex; flex-direction: column; gap: calc(14 * var(--ui)); }
.review__author { font-size: calc(13 * var(--ui)); line-height: calc(16 * var(--ui)); color: var(--color-text-secondary); }
.review__score { display: flex; align-items: center; gap: calc(6 * var(--ui)); }
.review__stars { display: flex; gap: calc(6 * var(--ui)); }
.review__stars img { width: calc(22 * var(--ui)); height: calc(22 * var(--ui)); }
.review figcaption strong { font-weight: 700; font-size: calc(18 * var(--ui)); line-height: calc(22 * var(--ui)); }

/* ───────────── Tablet & phone ─────────────
   Figma has no narrow frame, so the same parts are restacked in one column. */
@media (max-width: 1099px) {
  .scale { --ui: 1px; }

  .header { top: 16px; left: 20px; right: 20px; gap: 12px; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    padding: 8px;
    border-radius: 22px;
    background: rgb(28 27 25 / .92);
  }
  .nav ul { flex-direction: column; }
  .nav__link { justify-content: space-between; padding: 15px 16px; font-size: 16px; }
  .phone, .icon-btn { display: none; }
  .burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
  }
  .burger span, .burger span::before, .burger span::after {
    display: block;
    width: 18px;
    height: 1.6px;
    border-radius: 2px;
    background: #fff;
    transition: transform .2s ease, background-color .2s ease;
  }
  .burger span { position: relative; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { transform: translateY(-6px); }
  .burger span::after { transform: translateY(6px); }

  .hero { display: flex; flex-direction: column; height: auto; background: var(--color-bg-page); }

  /* The photo composition keeps its own proportions, cropped to the middle of the frame.
     --lift pushes it down to make room for the header; the tint blends its top edge into the flat sky. */
  .hero__media {
    --u: max(100cqw / 1100, .4px);
    --lift: 100px;
    position: relative;
    inset: auto;
    z-index: 0;
    height: calc(var(--lift) + 857 * var(--u));
    background: var(--color-bg-sky);
  }
  .hero__photo { top: calc(var(--lift) - 32 * var(--u)); }
  .hero__tint {
    top: calc(var(--lift) - 32 * var(--u) - 1px);
    height: calc(454 * var(--u));
    background: linear-gradient(var(--color-bg-sky) calc(32 * var(--u) + 1px), rgb(157 172 185 / 0));
  }
  .hero__wordmark {
    --bleed: 8px;
    top: calc(var(--lift) + 140 * var(--u) - var(--bleed));
    left: 50%;
    translate: -50% 0;
    padding-inline: var(--bleed);
    font-size: 21.5cqw;
  }
  .hero__shade { height: 100%; }

  .hero__intro {
    position: relative;
    z-index: 1;
    left: auto;
    bottom: auto;
    gap: 14px;
    margin-top: -176px;
    padding: 0 20px 28px;
    min-height: 176px;
    justify-content: flex-end;
  }
  .overline { height: auto; min-height: 34px; padding: 6px 12px; font-size: 14px; white-space: normal; }
  .overline__dot { flex: none; }
  .hero__title { font-size: min(12.4cqw, 120px); letter-spacing: -.045em; }

  .panel {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    height: auto;
    padding: 36px 20px 48px;
  }
  .panel__shape { display: none; }
  .about, .review, .panel__cta { position: static; width: 100%; max-width: 440px; translate: none; }
  .about__text { font-size: 18px; }
  .panel__cta { order: -1; width: auto; translate: none; }
}

@media (min-width: 600px) and (max-width: 1099px) {
  .hero__intro { margin-top: -240px; min-height: 240px; padding-inline: 40px; }
  .header { left: 40px; right: 40px; }
  .panel { padding-inline: 40px; }
}

@media (max-width: 479px) {
  .actions .btn, .lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ───────────── anchors (js/anchors.js): a far move fades through the page's colour ───────────── */
.anchor-veil { position: fixed; z-index: 55; inset: 0; background: var(--color-bg-page); opacity: 0; pointer-events: none; }
html.arriving::after { content: ""; position: fixed; z-index: 55; inset: 0; background: var(--color-bg-page); }

/* the kits tile's name opens their category; the rest of that tile keeps its own button */
.tile__name { position: relative; z-index: 2; color: inherit; }
@media (hover: hover) { .tile__name:hover { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 2px; } }

/* ───────────── the two languages (js/i18n.js) ───────────── */
.lang-menu { position: fixed; z-index: 70; display: flex; flex-direction: column; gap: 2px; min-width: 148px; padding: 6px; border-radius: 18px; background: var(--color-bg-strong); box-shadow: 0 16px 40px rgb(20 18 15 / .28); }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 12px; color: var(--color-text-inverse); font: 500 14px / 1.3 var(--font-ui); }
.lang-menu a[aria-current]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-bg-accent); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgb(251 247 239 / .1); }
