/* Avatar Try-On site. Light by default, dark from the system setting, like the extension panel. */
:root {
  color-scheme: light;
  --bg: #efede8;
  --spot: #fbfaf7;
  --surface: #f7f6f2;
  --surface-hi: #ffffff;
  --line: rgba(28, 29, 33, 0.1);
  --line-hi: rgba(28, 29, 33, 0.2);
  --hover: rgba(28, 29, 33, 0.05);
  --ink: #1c1d21;
  --muted: #55575e;
  --brand: #2f5d50;
  --brand-hover: #264d42;
  --on-brand: #fbfaf8;
  --brand-text: #2f5d50;
  --brand-soft: rgba(47, 93, 80, 0.09);
  --tight: #c2412a;
  --snug: #b97a0e;
  --good: #2e8a64;
  --loose: #3768c4;
  --shadow-sm: 0 1px 2px rgba(40, 36, 28, 0.08), 0 4px 12px rgba(40, 36, 28, 0.05);
  --shadow-lg: 0 2px 4px rgba(40, 36, 28, 0.05), 0 24px 60px -12px rgba(40, 36, 28, 0.22);
  --media-bg: #e4e2dc;
  --display: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d0e11;
    --spot: #232730;
    --surface: #15171c;
    --surface-hi: #1d2026;
    --line: rgba(255, 255, 255, 0.09);
    --line-hi: rgba(255, 255, 255, 0.2);
    --hover: rgba(255, 255, 255, 0.06);
    --ink: #f3f1ec;
    --muted: #a8acb5;
    --brand: #9fe3c6;
    --brand-hover: #b9eed6;
    --on-brand: #0c2a21;
    --brand-text: #9fe3c6;
    --brand-soft: rgba(159, 227, 198, 0.1);
    --tight: #ef6a4a;
    --snug: #f2b84b;
    --good: #5cc29a;
    --loose: #74a2f2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 28px 70px -12px rgba(0, 0, 0, 0.7);
    --media-bg: #1b1d22;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--brand);
  scrollbar-color: var(--line-hi) transparent;
}
/* The studio light from the panel's stage, behind the top of the page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  background: radial-gradient(60% 70% at 50% 0%, var(--spot), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); color: var(--ink); }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
code { font: 0.86em/1 var(--mono); padding: 0.18em 0.4em; border-radius: 6px; background: var(--hover); border: 1px solid var(--line); }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 15px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; margin: -3px; }
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--ink); background: var(--hover); }
@media (max-width: 520px) { .topnav .optional { display: none; } .topnav a { padding: 8px 10px; } }

/* Header */
.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 32px; align-items: center; padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 4vw, 40px); }
.hero-icon { width: 128px; height: 128px; margin: -12px; filter: drop-shadow(0 10px 18px rgba(31, 66, 56, 0.28)); }
.hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; }
.summary { margin-top: 10px; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.5; color: var(--muted); max-width: 54ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--surface-hi); border: 1px solid var(--line); color: var(--ink); }
.chips svg { width: 14px; height: 14px; color: var(--brand-text); }
.chips .num { font-variant-numeric: tabular-nums; }
.cta { display: grid; justify-items: stretch; gap: 10px; min-width: 240px; align-self: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font: 600 16px/1 var(--display); letter-spacing: -0.005em; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -6px rgba(20, 22, 26, 0.35);
  transition: background-color 0.2s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.button:hover { background: var(--brand-hover); transform: translateY(-1px); text-decoration: none; }
.button:active { transform: translateY(0); }
.button svg { width: 18px; height: 18px; }
.soon { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--snug); box-shadow: 0 0 0 3px color-mix(in srgb, var(--snug) 22%, transparent); }
.phone-note { display: none; margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (hover: none) and (pointer: coarse) { .phone-note { display: block; } }
.by { grid-column: 2; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .hero { grid-template-columns: auto 1fr; }
  .cta { grid-column: 1 / -1; justify-items: start; margin-top: 12px; }
  .by { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero { grid-template-columns: 56px 1fr; gap: 0 14px; padding: 16px 0 22px; }
  .hero-text { display: contents; }
  .hero-icon { width: 56px; height: 56px; margin: -7px; }
  .hero h1 { font-size: 2rem; }
  .summary, .chips, .cta { grid-column: 1 / -1; }
  .summary { margin-top: 10px; font-size: 1rem; }
  .chips { margin-top: 12px; }
  .chips .num { display: none; }
  .cta { justify-items: stretch; width: 100%; margin-top: 16px; gap: 4px; }
  .cta .button { margin-bottom: 6px; }
}

/* Gallery */
.gallery { margin-bottom: clamp(48px, 7vw, 88px); }
.viewer { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.track::-webkit-scrollbar { display: none; }
.slide {
  margin: 0; scroll-snap-align: start; scroll-snap-stop: always;
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background: var(--media-bg);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.slide video { background: #111214; }
.arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: color-mix(in srgb, var(--surface-hi) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: opacity 0.25s, scale 0.25s var(--ease-out), background-color 0.2s;
}
.arrow:hover { background: var(--surface-hi); scale: 1.06; }
@media (min-width: 1100px) { .arrow.prev { left: -22px; } .arrow.next { right: -22px; } }
@media (hover: hover) and (pointer: fine) {
  .arrow { opacity: 0; }
  .viewer:hover .arrow:not(:disabled), .viewer:focus-within .arrow:not(:disabled) { opacity: 1; }
}
.video-slide { position: relative; }
.play {
  position: absolute; left: 16px; bottom: 16px;
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: color-mix(in srgb, var(--surface-hi) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: scale 0.25s var(--ease-out), background-color 0.2s;
}
.play:hover { background: var(--surface-hi); scale: 1.06; }
.play svg { width: 18px; height: 18px; }
.play .i-pause, .playing .play .i-play { display: none; }
.playing .play .i-pause { display: block; }
.reduced:not(.playing) .play { left: 50%; top: 50%; bottom: auto; translate: -50% -50%; width: 64px; height: 64px; }
.reduced:not(.playing) .play svg { width: 26px; height: 26px; }
.arrow:disabled { opacity: 0; pointer-events: none; }
.arrow svg { width: 20px; height: 20px; }
.arrow.prev { left: 16px; }
.arrow.next { right: 16px; }
.thumbs { position: relative; justify-content: safe center; display: flex; gap: 12px; margin: 18px 0 0; padding: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button {
  position: relative; flex: 0 0 auto; width: 152px; aspect-ratio: 16 / 10; padding: 0;
  border: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--media-bg);
  box-shadow: 0 0 0 1px var(--line);
  filter: saturate(0.7) brightness(0.97);
  transition: filter 0.25s, box-shadow 0.25s;
}
.thumbs button:hover { filter: none; box-shadow: 0 0 0 1px var(--line-hi); }
.thumbs button[aria-current="true"] { filter: none; box-shadow: 0 0 0 2px var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .video-thumb {
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.15), rgba(12, 13, 16, 0.55)), url("media/demo-poster.jpg") center / cover, #2f5d50;
  color: #fbfaf8;
}
.video-thumb span { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--display); padding: 6px 10px 6px 8px; border-radius: 999px; background: rgba(12, 13, 16, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video-thumb svg { width: 14px; height: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .track { grid-auto-columns: 100%; gap: 10px; border-radius: 14px; }
  .slide { border-radius: 14px; }
  .arrow { width: 36px; height: 36px; }
  .arrow.prev { left: 8px; } .arrow.next { right: 8px; }
  .thumbs { gap: 8px; }
  .thumbs button { width: 96px; border-radius: 9px; }
}
@media (hover: none) and (pointer: coarse) { .arrow { display: none; } }

/* Body layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.main { container-type: inline-size; }
.main > section + section { margin-top: clamp(56px, 7vw, 88px); }
.main h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 700; margin-bottom: 18px; }
.lead { font: 600 clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem)/1.35 var(--display); letter-spacing: -0.015em; max-width: 34ch; margin-bottom: 16px; }
.prose { font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 64ch; }
.prose p + p { margin-top: 14px; }
.ui { font-weight: 600; white-space: nowrap; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 760px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; }
.features svg { width: 22px; height: 22px; color: var(--brand-text); margin-top: 1px; }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.needs { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--muted); max-width: 760px; }
.needs svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ink); }
.needs strong { color: var(--ink); font-weight: 600; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-top: 22px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 16px;
  font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums;
  background: var(--surface-hi); color: var(--ink); border: 1px solid var(--line-hi);
  position: relative; z-index: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 39px; left: 44px; right: -18px; height: 1px; background: var(--line-hi); }
.steps h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.015em; }
.steps p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13.5px; color: var(--ink); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.legend .t i { color: var(--tight); } .legend .s i { color: var(--snug); } .legend .g i { color: var(--good); } .legend .l i { color: var(--loose); }
@container (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding: 0 0 26px; }
  .steps li::before { grid-row: span 3; margin: 0; }
  .steps li:not(:last-child)::after { top: 34px; bottom: 0; left: 17px; right: auto; width: 1px; height: auto; }
}

/* Privacy card */
.privacy-card {
  position: relative; overflow: hidden;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius);
  background: var(--surface-hi); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.privacy-card .lock { width: 44px; height: 44px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 18px -8px rgba(20, 22, 26, 0.4); }
.privacy-card .lock svg { width: 22px; height: 22px; }
.privacy-card h2 { margin-bottom: 10px; }
.privacy-card ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.privacy-card li { position: relative; padding-left: 18px; font-size: 16px; }
.privacy-card li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-text); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.more svg { width: 16px; height: 16px; transition: translate 0.3s var(--ease-out); }
.more:hover svg { translate: 3px 0; }

/* Details panel */
.details { position: sticky; top: 84px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (max-width: 960px) { .details { position: static; } }
.details h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em; }
.details h3 { font-size: 0.95rem; font-weight: 600; margin: 24px 0 6px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.perms { list-style: none; padding: 0; margin: 0; }
.perms li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.perms code { display: inline-block; margin-bottom: 4px; color: var(--ink); }
.perms b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; font-size: 14px; }
.links { list-style: none; padding: 0; margin: 4px 0 0; display: grid; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background-color 0.2s; }
.links a:hover { background: var(--hover); }
.links svg { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer nav a { display: inline-block; padding: 4px 0; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .brand { font-size: 14px; color: var(--ink); }
.footer .brand img { width: 24px; height: 24px; margin: -2px; }

/* Privacy policy page */
.policy { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 120px); }
.policy .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; margin-bottom: 28px; }
.policy .back svg { width: 16px; height: 16px; }
.policy h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.2rem); font-weight: 700; letter-spacing: -0.035em; }
.policy .updated { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.policy .intro { margin-top: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); font: 500 clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem)/1.5 var(--display); letter-spacing: -0.01em; }
.policy h2 { font-size: 1.4rem; font-weight: 700; margin: 48px 0 14px; }
.policy p, .policy li { font-size: 17.5px; line-height: 1.7; max-width: 68ch; }
.policy p + p { margin-top: 14px; }
.policy ul { padding-left: 1.2em; margin: 12px 0 0; }
.policy li { padding-left: 4px; }
.policy li + li { margin-top: 8px; }
.policy ul + p { margin-top: 18px; }
.policy li::marker { color: var(--brand-text); }
.policy strong { font-weight: 600; }

/* One entrance for the header, from a visible default. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s var(--ease-out) both; }
  .rise-2 { animation-delay: 0.08s; }
  .rise-3 { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0.001; translate: 0 10px; filter: blur(4px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .track { scroll-behavior: auto; }
}
