/* Pinnacle's colours are midas's: gold and orange, here on a deep teal-black. */

@font-face {
  font-family: "Inter Site";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0a0f11;
  --bg-2: #0e1517;
  --surface: #121a1d;
  --raised: #182225;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef3f3;
  --dim: #a3b4b7;
  --faint: #6a7d80;
  --gold: #d9b45a;
  --gold-light: #f5dc96;
  --orange: #fd6012;
  --accent: linear-gradient(135deg, #f5dc96 0%, #e9a640 45%, #fd6012 100%);
  --measure: 72rem;
  --radius: 1.25rem;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 "Inter Site", system-ui, -apple-system, "Segoe UI", "Adwaita Sans", Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-underline-offset: 0.2em; }
a:hover { color: var(--orange); }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }

/* Gold where a browser cannot clip a background to text (Flitz): only the
   fill goes transparent, so the text never disappears. */
.gradient-text {
  color: #e9a640;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wrap { width: min(100% - 3rem, var(--measure)); margin-inline: auto; }
section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
section.tight { padding-top: 0; }
section.band { background: var(--bg-2); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { color: var(--dim); font-size: 1.15rem; margin-top: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* The bar on every page. */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 15, 17, 0.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
header.site nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
header.site nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
header.site nav a:hover { color: var(--text); }
header.site nav a[aria-current="page"] { color: var(--text); background: var(--raised); }
header.site nav a.cta { color: var(--bg); background: var(--text); font-weight: 600; margin-left: 0.5rem; }
header.site nav a.cta:hover { background: var(--gold-light); }
@media (max-width: 640px) {
  header.site .wrap { height: auto; padding-block: 0.7rem; flex-wrap: wrap; gap: 0.5rem; }
  header.site nav { margin-left: -0.8rem; width: calc(100% + 0.8rem); }
  header.site nav a { padding: 0.35rem 0.7rem; font-size: 0.9rem; }
  header.site nav a.cta { margin-left: auto; }
}

/* Buttons. */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.button:hover { color: var(--text); border-color: var(--gold); transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #1a0f05; border-color: transparent; }
.button.primary:hover { color: #1a0f05; filter: brightness(1.06); }
.button .arrow { transition: transform 0.15s; }
.button:hover .arrow { transform: translateX(3px); }

/* The opening: what it is, and the system itself on a laptop and a phone. */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(253, 96, 18, 0.13), transparent 60%),
    radial-gradient(50rem 30rem at 10% 0%, rgba(245, 220, 150, 0.10), transparent 60%);
}
.hero .wrap { display: grid; justify-items: center; text-align: center; }
.hero h1 { max-width: 19ch; }
.hero .lead { max-width: 40rem; margin-top: 1.5rem; font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--dim); }
.hero .actions { justify-content: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  padding: 0.35rem 0.95rem 0.35rem 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  font-size: 0.88rem;
}
.pill b {
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0f05;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.devices {
  position: relative;
  width: min(100%, 60rem);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding-bottom: 3rem;
}
.laptop {
  border-radius: 1rem 1rem 0 0;
  padding: 0.7rem 0.7rem 0;
  background: linear-gradient(180deg, #2a3336, #192124);
  box-shadow: var(--shadow);
}
.laptop img { border-radius: 0.45rem 0.45rem 0 0; width: 100%; }
.laptop::after {
  content: "";
  display: block;
  height: 1.1rem;
  margin: 0 -2.5rem;
  border-radius: 0 0 1.2rem 1.2rem;
  background: linear-gradient(180deg, #3a4447, #1c2427);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}
.phone {
  position: absolute;
  right: -4rem;
  bottom: 0;
  width: clamp(8rem, 24%, 14rem);
  padding: 0.45rem;
  border-radius: 1.8rem;
  background: linear-gradient(160deg, #343e41, #141b1d);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.phone img { border-radius: 1.4rem; width: 100%; }
@media (max-width: 640px) {
  .phone { right: 0; width: 34%; }
  .laptop::after { margin: 0 -0.8rem; }
}

/* Facts under the hero. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}
.facts div { background: var(--bg); padding: 1.5rem 1.6rem; }
.facts svg { width: 1.6rem; height: 1.6rem; margin-bottom: 0.9rem; stroke: var(--gold-light); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.facts b { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.facts span { color: var(--dim); font-size: 0.95rem; }

/* What it does: a picture and a few lines, side by side, turn about. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--dim); font-size: 1.1rem; margin-top: 1rem; }
.feature-text ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.feature-text li { position: relative; padding-left: 1.75rem; color: var(--dim); }
.feature-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: radial-gradient(circle, transparent 0.22rem, #000 0.24rem);
  mask: radial-gradient(circle, transparent 0.22rem, #000 0.24rem);
}
.feature-text li b { color: var(--text); font-weight: 600; }
.feature-media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.75rem;
  background:
    radial-gradient(30rem 20rem at 50% 0%, rgba(245, 220, 150, 0.10), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.feature-media .phone { position: static; width: min(48%, 15rem); }
.feature-media .phone.small { width: min(40%, 12.5rem); margin-bottom: 1.5rem; }
.feature-media .screen { border-radius: 0.8rem; box-shadow: var(--shadow); width: 100%; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-text { order: 0; }
}

/* A grid of small cards. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--dim);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover { border-color: var(--border-strong); color: var(--dim); transform: translateY(-2px); }
.card h3 { color: var(--text); }
.card .more { margin-top: auto; padding-top: 0.75rem; color: var(--gold-light); font-weight: 600; font-size: 0.95rem; }
.glyph {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  border-radius: 0.8rem;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

/* The Store: an app a card, as a store shows them. */
.store-head {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
  background: radial-gradient(50rem 24rem at 80% 0%, rgba(253, 96, 18, 0.12), transparent 60%);
}
.store-head p { color: var(--dim); font-size: 1.2rem; max-width: 40rem; margin-top: 1.25rem; }
.shelf-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.shelf-title h2 { font-size: 1.6rem; }
.shelf-title a { font-weight: 600; text-decoration: none; }
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}
.app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.app:hover { border-color: var(--border-strong); }
.app-icon {
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  background: var(--accent);
  color: #1a0f05;
  font-size: 1.9rem;
  font-weight: 750;
  box-shadow: 0 8px 20px -8px rgba(253, 96, 18, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.app-icon[data-hue="1"] { background: linear-gradient(135deg, #8fd3c7, #2b8a7e); box-shadow: 0 8px 20px -8px rgba(43, 138, 126, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.app-icon[data-hue="2"] { background: linear-gradient(135deg, #b9c6ff, #5a6fd8); box-shadow: 0 8px 20px -8px rgba(90, 111, 216, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.app-icon[data-hue="3"] { background: linear-gradient(135deg, #ffb3c1, #d9485f); box-shadow: 0 8px 20px -8px rgba(217, 72, 95, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.app-body h3 { font-size: 1.15rem; }
.app-body p { color: var(--dim); font-size: 0.95rem; margin-top: 0.2rem; }
.app-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.tag {
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.8rem;
  white-space: nowrap;
}
.tag.right { color: var(--gold-light); border-color: rgba(217, 180, 90, 0.35); background: rgba(217, 180, 90, 0.08); }
.store-note { color: var(--faint); font-size: 0.9rem; margin-top: 1.25rem; }

.builtin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: 1.5rem 1rem;
}
.builtin figure { margin: 0; }
.builtin img { border-radius: 1rem; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.builtin figcaption { margin-top: 0.8rem; font-size: 0.92rem; color: var(--dim); }
.builtin figcaption b { display: block; color: var(--text); font-size: 1rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  counter-reset: step;
}
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #1a0f05;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Code. */
pre {
  margin: 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: #070b0c;
  border: 1px solid var(--border);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}
code { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; color: #d8e3e4; }
p code, li code { background: var(--raised); padding: 0.1rem 0.4rem; border-radius: 0.35rem; font-size: 0.9em; }
pre .c { color: var(--faint); }
pre .k { color: var(--orange); }
pre .s { color: var(--gold-light); }
pre .t { color: #8fd3c7; }
.code-window { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.code-window .bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--raised);
  color: var(--faint);
  font-size: 0.82rem;
}
.code-window .bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #3a4649; }
.code-window .bar span { margin-left: 0.6rem; }
.code-window pre { border: 0; border-radius: 0; }
.feature-media.code { display: block; padding: 0; background: none; border: 0; }

.status { margin-top: 1.25rem; font-size: 0.92rem; color: var(--faint); }
.status b { color: var(--dim); font-weight: 600; }

/* Download. */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}
.platforms .card pre { margin-top: 0.75rem; }

/* Closing call. */
.closing { text-align: center; }
.closing .wrap {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background:
    radial-gradient(40rem 20rem at 50% 120%, rgba(253, 96, 18, 0.18), transparent 70%),
    var(--surface);
}
.closing p { color: var(--dim); font-size: 1.15rem; margin: 1rem auto 0; max-width: 36rem; }
.closing .actions { justify-content: center; }

footer.site { border-top: 1px solid var(--border); padding: 3rem 0 3.5rem; color: var(--faint); font-size: 0.9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
footer.site .brand { font-size: 1rem; margin-bottom: 0.6rem; }
footer.site p { max-width: 22rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-content: flex-start; }
footer.site nav a { color: var(--dim); text-decoration: none; }
footer.site nav a:hover { color: var(--text); }

/* The Store's featured app: its text, and the app running beside it. */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem 4rem;
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 2rem;
  border: 1px solid var(--border);
  background:
    radial-gradient(36rem 24rem at 100% 100%, rgba(143, 211, 199, 0.12), transparent 70%),
    radial-gradient(30rem 20rem at 0% 0%, rgba(245, 220, 150, 0.10), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.featured h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.featured p { color: var(--dim); font-size: 1.15rem; margin: 1rem 0 1.5rem; max-width: 32rem; }
.featured .app-meta { border: 0; padding: 0; }
.featured .phone { position: static; width: clamp(10rem, 22vw, 15rem); margin-bottom: -6rem; transform: rotate(3deg); }
@media (max-width: 700px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured .phone { justify-self: center; }
}

/* Keyboard focus, visible on every control. */
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 0.4rem; }
.button:focus-visible, header.site nav a:focus-visible { border-radius: 999px; }
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus { top: 0.75rem; color: var(--bg); }

/* A store card's picture of the app running. */
.app-shot {
  grid-column: 1 / -1;
  margin: -1.25rem -1.25rem 0.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
  background: #0f1216;
}
.app-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.app:hover .app-shot img { transform: scale(1.03); }

/* Each feature's picture gets a glow of its own colour. */
.feature-media[data-glow="teal"] { background: radial-gradient(30rem 20rem at 50% 0%, rgba(143, 211, 199, 0.13), transparent 70%), var(--surface); }
.feature-media[data-glow="blue"] { background: radial-gradient(30rem 20rem at 50% 0%, rgba(120, 150, 255, 0.13), transparent 70%), var(--surface); }
.feature-media[data-glow="orange"] { background: radial-gradient(30rem 20rem at 50% 0%, rgba(253, 96, 18, 0.13), transparent 70%), var(--surface); }

@media (max-width: 640px) {
  header.site nav a.wide-only { display: none; }
  .hero h1 { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 640px) {
  .facts div { padding: 1.1rem 1rem; }
  .facts svg { margin-bottom: 0.6rem; }
  .facts span { font-size: 0.88rem; }
  .featured { margin-bottom: 2.5rem; }
}
