/* ==========================================================================
   Pixtore — design tokens, self-hosted type, and Basecoat overrides.
   Loaded after assets/vendor/basecoat.cdn.min.css so the overrides win.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Montserrat (self-hosted, extracted from the design bundle).
   Google serves one variable file per subset, so a single @font-face per
   subset with a 400–800 range replaces the design's 25 duplicated rules.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Palette — the "indigo" theme the design applies at runtime.
   The inline fallbacks in the mockup (purple #6a5be0 etc.) are never what
   renders; these values are.
   -------------------------------------------------------------------------- */
:root {
  --a1: #4c51a0;   /* accent, gradient start */
  --a2: #a5b4fc;   /* accent, gradient end */
  --a3: #e0e7ff;   /* accent, lightest */
  --lbl: #b4bdfc;  /* eyebrow labels, link hover */
  --on: #0e1030;   /* text ON the light indigo gradient — deliberately dark */
  --glowc: 99, 102, 241; /* raw channels, used inside rgba() glows */

  --bg: #090a14;   /* page */
  --s0: #0f101c;   /* raised surface, gradient top */
  --s1: #141626;   /* card */
  --s2: #22253a;   /* border, track */
  --s3: #33374f;   /* strong border, muted display type */
  --ink: #07081a;  /* deepest, device bodies */

  /* Text ramp — hardcoded in the mockup rather than themed. */
  --text-1: #ffffff;
  --text-2: #b5b3c0;
  --text-3: #8f8d9b;
  --text-nav: #c9c7d3;
  --text-strong: #e6e6ee; /* body text inside the legal info cards */
  --text-4: #5f5e72;      /* the small uppercase labels on the setup guide */
  --ok: #4ade80;

  /* Paper — the light steps card on the setup guide. It is the one surface on
     the site that inverts, so it needs its own ramp; the dark one reads as
     mud on it. */
  --paper: #f6f5fb;
  --paper-card: #ffffff;
  --paper-line: #e2dfec;
  --paper-line-soft: #e9e7f1;
  --paper-chip: #eceafd;
  --paper-text: #16151a;
  --paper-text-2: #4a4957;
  --paper-text-3: #6b6a78;
  --paper-text-4: #8a889a;

  /* rgb(20,22,38) is --s1. The Home artboard still carries rgba(27,26,34,.85)
     left over from the pre-indigo palette; the sub-pages use this one, and a
     header that changes colour between pages would read as a bug. */
  --header-bg: rgba(20, 22, 38, 0.85);
  --shell: 1200px;

  /* ---- Bridge into Basecoat's shadcn tokens ---- */
  --background: var(--bg);
  --foreground: var(--text-1);
  --card: var(--s1);
  --card-foreground: var(--text-1);
  --popover: var(--s1);
  --popover-foreground: var(--text-1);
  --primary: var(--a2);
  --primary-foreground: var(--on);
  --secondary: var(--s2);
  --secondary-foreground: var(--text-1);
  --muted: var(--s2);
  --muted-foreground: var(--text-3);
  --accent: var(--s2);
  --accent-foreground: var(--text-1);
  --border: var(--s2);
  --input: var(--s2);
  --ring: var(--lbl);
  --radius: 0.75rem;

  --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', monospace;
}

/* Basecoat scopes its dark variants to `html.dark`; the site is dark-only, so
   `dark` sits on <html> permanently and these re-assert our palette over the
   neutral grays Basecoat ships in that block. */
html.dark {
  --background: var(--bg);
  --foreground: var(--text-1);
  --card: var(--s1);
  --card-foreground: var(--text-1);
  --popover: var(--s1);
  --popover-foreground: var(--text-1);
  --primary: var(--a2);
  --primary-foreground: var(--on);
  --secondary: var(--s2);
  --secondary-foreground: var(--text-1);
  --muted: var(--s2);
  --muted-foreground: var(--text-3);
  --accent: var(--s2);
  --accent-foreground: var(--text-1);
  --border: var(--s2);
  --input: var(--s2);
  --ring: var(--lbl);
}

/* --------------------------------------------------------------------------
   Basecoat component overrides — the design's shapes are pill buttons and
   large-radius cards, neither of which are Basecoat defaults.
   -------------------------------------------------------------------------- */

/* Buttons: fully rounded, taller than the shadcn default, weight 700. */
.btn {
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn:not([data-size]),
.btn[data-size='default'] {
  height: auto;
  padding: 12px 20px;
  font-size: 14px;
}

.btn[data-size='lg'] {
  height: auto;
  padding: 16px 28px;
  font-size: 15px;
  border-radius: 999px;
}

.btn[data-size='sm'] {
  height: auto;
  padding: 7px 11px;
  font-size: 12px;
  border-radius: 999px;
}

/* The primary CTA is the indigo gradient with dark text on top. */
.btn:not([data-variant]),
.btn[data-variant='primary'] {
  background-color: transparent;
  background-image: linear-gradient(135deg, var(--a1), var(--a2));
  color: var(--on);
}

.btn:not([data-variant]):hover,
.btn[data-variant='primary']:hover {
  background-color: transparent;
  filter: brightness(1.1);
}

/* Solid white button — "See how it works", the footer CTA. */
.btn[data-variant='light'] {
  background-color: #fff;
  color: var(--ink);
}

.btn[data-variant='light']:hover {
  background-color: #e9e4ff;
}

/* Near-black button on the gradient CTA panel. */
.btn[data-variant='ink'] {
  background-color: var(--ink);
  color: #fff;
}

.btn[data-variant='ink']:hover {
  background-color: #000;
}

.btn[data-variant='outline'] {
  border-color: var(--s3);
  background-color: transparent;
  color: var(--text-nav);
  font-weight: 600;
  box-shadow: none;
}

.btn[data-variant='outline']:hover {
  background-color: rgba(127, 127, 127, 0.14);
  color: var(--text-1);
}

/* Outline on the gradient CTA panel, where the border follows the text. */
.btn[data-variant='outline-on'] {
  border-color: currentColor;
  background-color: transparent;
  color: var(--on);
  font-weight: 600;
}

.btn[data-variant='outline-on']:hover {
  background-color: rgba(127, 127, 127, 0.18);
}

.btn[data-variant='ghost'] {
  background-color: transparent;
  color: var(--text-nav);
}

/* Links to pages that do not exist yet stay visible but do nothing. */
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn[data-variant='ghost']:hover {
  background-color: var(--s2);
  color: var(--text-1);
}

/* Cards: the design uses 24px and 28px radii, both larger than shadcn's. */
.card {
  gap: 18px;
  border: 1px solid var(--s2);
  border-radius: 28px;
  background-color: var(--s1);
  padding: 32px;
  color: var(--text-1);
  box-shadow: none;
}

.card[data-size='sm'] {
  gap: 16px;
  border-radius: 24px;
  padding: 28px;
}

/* Cards filled with the accent gradient carry dark text. */
.card[data-variant='accent'] {
  border-color: transparent;
  background-image: linear-gradient(135deg, var(--a1), var(--a2));
  color: var(--on);
}

.card[data-variant='accent'] p {
  color: var(--on);
}

.card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.card[data-size='sm'] h3 {
  font-size: 18px;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.card[data-size='sm'] p {
  font-size: 13px;
  line-height: 1.5;
}

/* Badges: the uppercase eyebrow labels above section headings. */
.badge {
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lbl);
}

/* Badges inside the storage cards read as a live status line. */
.badge[data-variant='status'] {
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  color: var(--ok);
}

/* Accordion: flush rows separated by hairlines, +/- glyph on the right. */
.accordion > details {
  border-top: 1px solid var(--s2);
}

.accordion > details:last-of-type {
  border-bottom: 1px solid var(--s2);
}

.accordion > details > summary {
  gap: 20px;
  border: 0;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
  align-items: center;
}

.accordion > details > summary:hover {
  color: var(--lbl);
}

/* Basecoat's default chevron is replaced by the mockup's +/- indicator. */
.accordion > details > summary::after {
  content: '+';
  flex: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-3);
  background-image: none;
}

.accordion > details[open] > summary::after {
  content: '−';
}

.accordion > details > section {
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 720px;
}

/* Compact: the setup guide's sidebar, where the accordion is a side note
   beside the steps rather than a section of the page. Its own label sits
   above it, so the first row drops the rule over it. */
.accordion[data-size='sm'] > details:first-of-type {
  border-top: 0;
}

.accordion[data-size='sm'] > details > summary {
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-nav);
  align-items: flex-start;
}

.accordion[data-size='sm'] > details > summary::after {
  font-size: 16px;
  line-height: 1.4;
}

.accordion[data-size='sm'] > details > section {
  padding: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-3);
}

/* Progress: two heights in the design, both with a gradient fill. */
.progress {
  height: 12px;
  border-radius: 999px;
  background-color: var(--s2);
}

.progress > span {
  border-radius: 999px;
  background-image: linear-gradient(90deg, var(--a1), var(--a2));
}

.progress[data-size='sm'] {
  height: 6px;
}

/* On the gradient card the track and fill invert to translucent white. */
.progress[data-variant='on-accent'] {
  background-color: rgba(255, 255, 255, 0.18);
}

.progress[data-variant='on-accent'] > span {
  background-image: none;
  background-color: #fff;
}

.progress[data-variant='on-accent'][data-state='paused'] > span {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Flat fill for the "iPhone 128 GB" bar, which is a single accent colour. */
.progress[data-variant='flat'] > span {
  background-image: none;
  background-color: var(--a1);
}

/* Dropdown menu — only used by the mobile navigation. */
.dropdown-menu > [data-popover] {
  border: 1px solid var(--s2);
  border-radius: 20px;
  background-color: var(--s1);
  padding: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.dropdown-menu [role='menuitem'] {
  gap: 10px;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-nav);
  cursor: pointer;
}

.dropdown-menu [role='menuitem']:hover,
.dropdown-menu [role='menuitem'].active {
  background-color: var(--s2);
  color: var(--text-1);
}

.dropdown-menu [role='separator'] {
  margin: 8px 4px;
  border-top: 1px solid var(--s2);
}
