/* Kinetic New Tab site
   Palette: mist #e6eaf0, paper #f6f8fb, ink #172036, slate #566079, line #c8cfda, signal #2f5bea
   Type: Anybody (variable width + weight, display), Instrument Sans (text) */

:root {
  --mist: #e6eaf0;
  --paper: #f6f8fb;
  --ink: #172036;
  --slate: #566079;
  --line: #c8cfda;
  --signal: #2f5bea;
  --hero-ui: #eafff6;
  --hero-bg: #030712;
  --hero-accent: #3dffb0;
  --display: "Anybody", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}

img { max-width: 100%; display: block; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-variation-settings: "wdth" 88; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 1rem/1 var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-hero { background: var(--hero-ui); color: var(--hero-bg); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.btn-ink { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  color: var(--hero-ui);
  background: var(--hero-bg);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s ease;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font: 700 1.125rem/1 var(--display);
  font-variation-settings: "wdth" 95;
}
.brand img { border-radius: 7px; }
.brand.dark { color: var(--ink); }
.bar nav { display: flex; align-items: center; gap: 26px; }
.bar nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; opacity: 0.85; }
.bar nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }

.hero-body {
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 48px;
  padding: 24px 0 40px;
  pointer-events: none;
}
.hero-body a, .hero-body button { pointer-events: auto; }

.kinetic {
  font-size: clamp(3.2rem, 8.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 80, "wght" 560;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.18);
  max-width: 13ch;
}
.kinetic .w { display: inline-block; white-space: nowrap; }
.kinetic .l { display: inline-block; transition: font-variation-settings 0.12s linear; }

.lede { margin-top: 28px; max-width: 44ch; font-size: 1.1875rem; line-height: 1.55; opacity: 0.88; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.try { font-size: 0.9375rem; opacity: 0.7; }

.faux { justify-self: end; display: grid; justify-items: center; gap: 6px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2); }
.faux-greet { letter-spacing: 0.06em; opacity: 0.75; }
.faux-clock { font: 200 clamp(4rem, 9vw, 7.5rem)/1 var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.faux-search {
  margin-top: 18px;
  width: min(340px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hero-ui) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-ui) 22%, transparent);
  backdrop-filter: blur(12px);
  font-size: 0.9375rem;
  opacity: 0.9;
}
.faux-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: 0.7; }

.switcher {
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chips { min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chip, .sw-step {
  flex: none;
  border: 1px solid color-mix(in srgb, var(--hero-ui) 26%, transparent);
  background: color-mix(in srgb, var(--hero-ui) 8%, transparent);
  color: var(--hero-ui);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font: 500 0.875rem/1 var(--text);
  cursor: pointer;
}
.chip { padding: 9px 14px; }
.sw-step { width: 36px; height: 36px; font-size: 1.3rem; line-height: 1; }
.chip[aria-pressed="true"] { background: var(--hero-ui); color: var(--hero-bg); border-color: var(--hero-ui); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section-head h2 { max-width: 16ch; }
.section-head p { color: var(--slate); max-width: 42ch; }

/* themes gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
.tile button {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}
.tile .shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
  outline: 1px solid rgba(23, 32, 54, 0.1);
}
.tile canvas { width: 100%; height: 100%; display: block; }
.tile button:focus-visible .shot { outline: 3px solid var(--signal); outline-offset: 3px; }
.tile h3 { margin-top: 14px; font-size: 1.375rem; font-variation-settings: "wdth" 92; font-weight: 650; }
.tile p { margin-top: 4px; color: var(--slate); font-size: 0.96875rem; line-height: 1.5; }

/* customize */
.customize { background: var(--paper); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: stretch; }
.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #f3efe6;
  box-shadow: 0 30px 60px -30px rgba(23, 32, 54, 0.45), 0 0 0 1px rgba(23, 32, 54, 0.08);
  align-self: center;
}
.screen iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; }
.panel-frame {
  height: 600px;
  border-radius: 14px;
  overflow: hidden;
  background: #12141c;
  box-shadow: 0 30px 60px -30px rgba(23, 32, 54, 0.45);
}
.panel-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.facts { margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 40px; }
.facts div { border-top: 2px solid var(--ink); padding-top: 14px; }
.facts dt { font: 650 1.25rem/1.1 var(--display); font-variation-settings: "wdth" 92; }
.facts dd { margin: 6px 0 0; color: var(--slate); }

/* privacy */
.private { background: var(--ink); color: var(--paper); }
.private-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; }
.private h2 { max-width: 12ch; }
.private-copy { display: grid; gap: 18px; font-size: 1.125rem; color: #c9d1e3; max-width: 52ch; }
.private a { color: #fff; }
.private :focus-visible { outline-color: #9db4ff; }

/* closer */
.closer-inner { display: grid; justify-items: start; gap: 26px; }
.closer h2 { font-size: clamp(2.4rem, 6vw, 4.75rem); max-width: 18ch; font-variation-settings: "wdth" 76; }
.fine { color: var(--slate); font-size: 0.875rem; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot nav a:hover { text-decoration: underline; }
.foot .fine { flex-basis: 100%; }

/* ---------- document pages (privacy, support, 404) ---------- */
.doc-bar { background: var(--ink); color: var(--paper); }
.doc-bar .bar { padding: 18px 0; }
.doc { padding: clamp(56px, 8vw, 96px) 0 110px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-variation-settings: "wdth" 84; }
.doc .updated { margin-top: 12px; color: var(--slate); }
.doc .intro { margin-top: 26px; font-size: 1.1875rem; }
.doc h2 { font-size: 1.5rem; margin: 48px 0 12px; font-variation-settings: "wdth" 92; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin: 10px 0 0; }
.doc li + li { margin-top: 8px; }
.doc kbd { font: 600 0.875em var(--text); padding: 1px 7px; border-radius: 5px; border: 1px solid var(--line); background: var(--paper); }

.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font: 650 1.25rem/1.25 var(--display);
  font-variation-settings: "wdth" 92;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 24px; color: #2c3550; }
.faq .answer p + p, .faq .answer ol, .faq .answer ul { margin-top: 10px; }
.faq ol { padding-left: 1.3em; margin: 0; }

.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.not-found h1 { font-size: clamp(3rem, 10vw, 7rem); font-variation-settings: "wdth" 70; }
.not-found p { margin: 18px auto 30px; color: var(--slate); max-width: 36ch; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio { grid-template-columns: 1fr; }
  .panel-frame { max-width: 420px; width: 100%; justify-self: center; }
}
@media (max-width: 860px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faux { justify-self: start; justify-items: start; }
  .faux-clock { font-size: 4rem; }
  .bar nav a:not(.btn) { display: none; }
  .section-head, .private-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .faux { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .sw-step { display: none; }
  .btn { width: 100%; white-space: normal; text-align: center; }
  .bar .btn { width: auto; }
}
