/* Blurn shell (dark, keycaps, Instrument Sans + Geist Mono) with Wrapped story moments inside. */

:root {
  --bg: #08090a;
  --text: #f4f5f7;
  --text-2: #c9cbd1;
  --text-3: #9a9da5;
  --blue: #2a62f5;
  --green-text: #9bea63;
  --chip: #1b1c20;
  --panel: #121316;
  --gutter: 16px;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;

  --ink: #161412;
  --cream: #f3eee3;
  --orange: #e2653a;
  --lime: #c8f43a;
  --violet: #6c4bff;
  --pink: #ff7ab8;
  --sky: #55c6f5;
  --sun: #ffc53d;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}

@media (min-width: 640px) {
  :root { --gutter: 20px; }
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid #5b8cff;
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
}

.brand,
.headerEnd {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.headerEnd { gap: 8px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.logo span { color: var(--blue); }

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.product {
  display: none;
  align-items: center;
  min-height: 44px;
  padding-left: 12px;
  border-left: 1px solid var(--chip);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}

.repoLink {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}

.repoLink:hover,
.product:hover { color: var(--text); }

.wide { display: none; }

@media (min-width: 720px) {
  .product,
  .repoLink { display: inline-flex; }
  .wide { display: inline; }
  .narrow { display: none; }
}

.langSwitch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 13px;
  background: var(--panel);
}

.langSwitch a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-decoration: none;
}

.langSwitch a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(180deg, #2a2b31 0%, #1e1f24 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    inset 0 -2px 0 rgb(0 0 0 / 35%);
}

/* Keycap buttons: values from the Blurn app (mobile Key.tsx + theme tokens). Pressed: the base drops to 1px and the key sinks onto it. */

.key,
.keyPrimary {
  --depth: 3px;
  --sheen: linear-gradient(180deg, rgb(255 255 255 / 5%) 0%, rgb(255 255 255 / 0%) 60%);
  --face: linear-gradient(180deg, #2a2b31 0%, #1e1f24 100%);
  --highlight: rgb(255 255 255 / 12%);
  --shade: rgb(0 0 0 / 35%);
  --edge: #050506;
  --drop: 0 9px 14px -8px rgb(0 0 0 / 70%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--sheen), var(--face);
  color: #f4f5f7;
  box-shadow:
    inset 0 1px 0 var(--highlight),
    inset 0 -1px 0 var(--shade),
    0 var(--depth) 0 var(--edge),
    var(--drop);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.keyBlue,
.keyPrimary {
  --sheen: linear-gradient(180deg, rgb(255 255 255 / 16%) 0%, rgb(255 255 255 / 6%) 40%, rgb(255 255 255 / 0%) 75%);
  --face: linear-gradient(180deg, #5b8cff 0%, #2a62f5 58%, #1f52e3 100%);
  --highlight: rgb(255 255 255 / 45%);
  --shade: rgb(0 0 0 / 22%);
  --edge: #1238a8;
  color: #fff;
}

.keyPrimary {
  --depth: 4px;
  --drop: 0 14px 22px -12px rgb(42 98 245 / 60%);
  height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  font-size: 17px;
  line-height: 22px;
}

.key:active,
.keyPrimary:active {
  transform: translateY(calc(var(--depth) - 1px));
  box-shadow:
    inset 0 1px 0 var(--highlight),
    inset 0 -1px 0 var(--shade),
    0 1px 0 var(--edge),
    0 3px 6px -4px rgb(0 0 0 / 60%);
}

.copyKey { min-width: 92px; }

/* Shared text */

.main {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-text);
}

.title {
  margin: 0;
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 520px;
  color: var(--text-2);
}

.note {
  font-size: 13px;
  color: var(--text-3);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* Hero */

.hero {
  display: grid;
  gap: 48px;
  padding-top: clamp(16px, 6vh, 64px);
}

.heroText {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 64px;
  }
}

.promptBox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin-bottom: 24px;
}

.promptBox[hidden] { display: none; }

.promptBox textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed #3a3b42;
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.steps li > span:last-child {
  display: flex;
  flex-direction: column;
}

.steps strong { font-weight: 650; }

.steps li > span:last-child > span {
  font-size: 15px;
  color: var(--text-3);
}

.stepNum {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a2b31 0%, #1e1f24 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    0 2px 0 #050506;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green-text);
}

/* Live demo in a phone */

.demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  isolation: isolate;
}

.phone {
  width: min(100%, 340px);
  padding: 9px;
  border-radius: 42px;
  background: #16171a;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 10%),
    0 0 0 1.5px #24252a,
    0 30px 80px rgb(0 0 0 / 60%);
}

.phone iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 33px;
  background: var(--ink);
}

.demo figcaption { text-align: center; }

.shape {
  position: absolute;
  z-index: -1;
  fill: currentColor;
  stroke: currentColor;
}

.sun { color: var(--sun); }
.pink { color: var(--pink); }
.lime { color: var(--lime); }

.s1 { top: -24px; right: max(0px, calc(50% - 220px)); width: 120px; }
.s2 { bottom: 60px; left: max(0px, calc(50% - 210px)); width: 130px; }
.s3 { top: 38%; right: max(-10px, calc(50% - 230px)); width: 70px; }

@media (prefers-reduced-motion: no-preference) {
  .s1 { animation: spin 40s linear infinite; }
  .s3 { animation: spin 26s linear infinite reverse; }
  .s2 { animation: bob 7s ease-in-out infinite; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* Sections */

.sec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: 96px;
}

.secHead {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.num {
  font-family: var(--display);
  font-size: clamp(72px, 16vw, 128px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: var(--lime);
}

.sec:nth-of-type(3) .num { color: var(--pink); }
.sec:nth-of-type(4) .num { color: var(--sky); }
.sec:nth-of-type(5) .num { color: var(--sun); }
.sec:nth-of-type(6) .num { color: var(--orange); }

.secHead h2 {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Story moments */

.tiles {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile:nth-child(1), .tile:nth-child(4) { grid-column: span 4; }
  .tile:nth-child(2), .tile:nth-child(3) { grid-column: span 2; }
  .tile:nth-child(5), .tile:nth-child(6) { grid-column: span 3; }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
}

.tile.orange { background: var(--orange); color: #fff6ea; }
.tile.lime { background: var(--lime); }
.tile.violet { background: var(--violet); color: #fff8ee; }
.tile.pink { background: var(--pink); }
.tile.sky { background: var(--sky); }
.tile.sun { background: var(--sun); }

.tileShape {
  top: -30px;
  right: -30px;
  width: 140px;
  color: rgb(255 255 255 / 22%);
}

.tile.lime .tileShape,
.tile.sun .tileShape { color: rgb(22 20 18 / 10%); }

.tile .kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tile .big {
  margin-top: auto;
  font-family: var(--display);
  font-size: clamp(48px, 12vw, 76px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.035em;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.tile .sub {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tile .line {
  max-width: 420px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
}

/* Tools */

.toolList {
  width: 100%;
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toolList li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--chip);
}

.toolList strong {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
}

.toolList span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}

/* Privacy facts */

.facts {
  display: grid;
  gap: 24px 40px;
  max-width: 880px;
  margin: 0;
}

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.facts dt {
  font-size: 19px;
  font-weight: 650;
}

.facts dt::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green-text);
  vertical-align: 2px;
}

.facts dd {
  margin: 6px 0 0;
  color: var(--text-2);
}

/* Ranking */

.rank {
  display: grid;
  gap: 32px;
  width: 100%;
}

@media (min-width: 960px) {
  .rank { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}

.rankText {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.rankText p {
  margin: 0;
  max-width: 520px;
  color: var(--text-2);
}

.rankText .badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 12px;
  padding: 18px 24px 20px;
  border-radius: 24px;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-2deg);
}

.badge span {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}

.badge strong {
  font-family: var(--display);
  font-size: 72px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  line-height: 0.85;
}

.badge em {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.code pre {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #2a2b31;
  border-radius: 20px;
  background: var(--panel);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.code pre code { overflow-wrap: normal; font-size: inherit; }

/* FAQ */

.faq {
  width: 100%;
  max-width: 760px;
}

.faq details { border-bottom: 1px solid var(--chip); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  font-size: 19px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--text-3);
}

.faq details[open] summary::after { content: "−"; }

.faq p {
  margin: 0 0 20px;
  max-width: 640px;
  color: var(--text-2);
}

.faq a,
.doc a {
  color: var(--text);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Footer */

.footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--chip);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
}

.footer p { margin: 0; }

.footer a { color: var(--text-2); }

.footer a:hover { color: var(--text); }

.footer p:first-child a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}

.footerLinks {
  display: flex;
  gap: 4px;
  margin-left: -10px;
}

.footerLinks a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
}

/* Legal document */


.doc {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 720px;
}

.docHead {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.docHead p:last-child { color: var(--text-2); margin: 0; }

.updated {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

.doc section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.doc p,
.doc li {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.doc ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.doc li::marker { color: var(--blue); }

.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgb(255 197 61 / 18%);
  color: var(--sun);
  font-family: var(--mono);
  font-size: 0.85em;
}
