/* Plutus Exchange pages (product page, privacy policy, support). Shared by /plutus/ only.
   Palette, type roles and spacing follow the Plutus style brief. */

:root {
  color-scheme: light dark;

  --ground: #F3F1EA;
  --card: #1A1A18;
  --text: #141413;
  --text-secondary: #5F5F5A;
  --card-text: #FFFFFF;
  --card-secondary: rgba(255, 255, 255, 0.62);
  --card-hairline: rgba(255, 255, 255, 0.20);
  --hairline: rgba(20, 20, 19, 0.12);

  --sans: -apple-system, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;

  --side: 20px;
  --section-gap: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E0E0D;
    --card: #2C2C2A;
    --text: #F3F1EA;
    --text-secondary: #8F8F89;
    --card-text: #FFFFFF;
    --card-secondary: rgba(255, 255, 255, 0.60);
    --card-hairline: rgba(255, 255, 255, 0.18);
    --hairline: rgba(255, 255, 255, 0.12);
  }
}

[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Links: text colour, 1px underline, opacity on hover. Default focus ring kept. */
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  opacity: 0.62;
}

/* Page frame */
.page {
  max-width: calc(1040px + 2 * var(--side));
  margin: 0 auto;
  padding: 48px var(--side) 0;
}

/* Header: eyebrow, hairline, big title */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

/* Eyebrow link to /plutus: same look; inline padding widens the tap target
   to 44px without moving anything. */
.eyebrow a {
  padding: 15px 0;
}

h1 {
  margin-top: 16px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: var(--text-secondary);
}

.intro {
  margin-top: 32px;
  max-width: 64ch;
}

/* Ink card: fill only, no border, no shadow */
.card {
  margin-top: 32px;
  padding: 20px 16px 26px;
  border-radius: 22px;
  background: var(--card);
  color: var(--card-text);
}

.card-label {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--card-secondary);
}

.statement {
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 7.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.statement-mail {
  font-size: clamp(22px, 6.4vw, 48px);
  overflow-wrap: anywhere;
}

/* Privacy card: body-size text, names in heavy weight */
.card-title {
  max-width: 64ch;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
}

.card-label + .card-title,
.card-label + .card-text {
  margin-top: 24px;
}

.card-title strong {
  font-weight: 800;
}

.card-title + .card-title {
  margin-top: 16px;
}

.card-text {
  margin-top: 12px;
  max-width: 64ch;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--card-secondary);
}

.card-rule {
  height: 1px;
  margin: 24px 0 0;
  border: 0;
  background: var(--card-hairline);
}

.card-rule + .card-text {
  margin-top: 24px;
}

/* Sections: ground hairline, then label and text */
.section {
  margin-top: var(--section-gap);
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.section h2 {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.section-body {
  margin-top: 12px;
  max-width: 64ch;
}

.section-body p + p {
  margin-top: 16px;
}

.qa + .qa {
  margin-top: 24px;
}

.qa h3 {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  color: var(--text);
}

.qa p {
  margin-top: 4px;
}

/* Footer: hairline, one quiet row */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
  margin-top: 96px;
  padding-bottom: 32px;
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 768px) {
  :root {
    --side: 48px;
  }

  .page {
    padding-top: 64px;
  }

  .card {
    padding: 32px;
  }

  .card-rule {
    margin-left: -16px;
    margin-right: -16px;
  }
}

@media (min-width: 880px) {
  :root {
    --section-gap: 64px;
  }

  .section {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 32px;
    align-items: baseline;
  }

  .section-body {
    margin-top: 0;
  }
}

/* ------------------------------------------------------------------
   Product page (/plutus). Every rule is scoped under body.product so the
   support and privacy pages render exactly as before.
   ------------------------------------------------------------------ */

/* Stronger ground hairlines on this page only. */
.product {
  --hairline: rgba(20, 20, 19, 0.24);
}

@media (prefers-color-scheme: dark) {
  .product {
    --hairline: rgba(255, 255, 255, 0.24);
  }
}

.product .page {
  max-width: calc(720px + 2 * var(--side));
  padding-top: 96px;
  text-align: center;
}

/* Plutus mark above the title, in the text colour (inline SVG, currentColor). */
.product-logo {
  display: block;
  width: auto;
  height: 72px;
  margin: 0 auto;
}

.product h1 {
  margin-top: 32px;
  font-size: clamp(48px, 12vw, 104px);
  line-height: 1.02;
}

.product-title-line {
  display: block;
}

/* Description: left-aligned, full column width (720px at most, about
   75-80 characters per line at 17px). */
.product-intro {
  margin-top: 48px;
  text-align: left;
}

.product-intro p + p {
  margin-top: 16px;
}

/* Reel: one screenshot at a time. Moving to another slide sweeps the current
   one out and the new one in from the opposite side (reel.js sets the
   is-entering-* / is-leaving-* classes). The viewport clips the sweep. */
.reel {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--hairline);
}

/* The stage may use the side padding so the 44px arrows fit at 320px. */
.reel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: calc(-1 * var(--side));
  margin-right: calc(-1 * var(--side));
}

.reel-viewport {
  --reel-shift: calc(100% + 16px);
  --reel-sweep: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  flex: none;
  width: min(62vw, 320px, 34.5vh);
  width: min(62vw, 320px, 34.5svh);
  overflow: hidden;
  border-radius: 22px;
  touch-action: pan-y;
}

.reel-slide {
  grid-area: 1 / 1;
  visibility: hidden;
}

.reel-slide.is-active,
.reel-slide.is-leaving-left,
.reel-slide.is-leaving-right,
.reel-slide.is-entering-left,
.reel-slide.is-entering-right {
  visibility: visible;
}

.reel-slide.is-active,
.reel-slide.is-leaving-left,
.reel-slide.is-leaving-right {
  transition: var(--reel-sweep);
}

.reel-slide.is-entering-right,
.reel-slide.is-leaving-right {
  transform: translateX(var(--reel-shift));
}

.reel-slide.is-entering-left,
.reel-slide.is-leaving-left {
  transform: translateX(calc(-1 * var(--reel-shift)));
}

/* Set by reel.js for one frame when a newer move cuts a sweep short. */
.reel-viewport.is-instant .reel-slide {
  transition: none;
}

.reel-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1564;
  border-radius: 22px;
  -webkit-user-drag: none;
  user-select: none;
}

/* Reduced motion: no movement, a plain 0.2s crossfade. */
@media (prefers-reduced-motion: reduce) {
  .reel-slide {
    opacity: 0;
  }

  .reel-slide.is-entering-left,
  .reel-slide.is-entering-right,
  .reel-slide.is-leaving-left,
  .reel-slide.is-leaving-right {
    transform: none;
  }

  .reel-slide.is-active {
    opacity: 1;
  }

  .reel-slide.is-active,
  .reel-slide.is-leaving-left,
  .reel-slide.is-leaving-right {
    transition: opacity 0.2s ease;
  }
}

.reel-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.reel-button svg {
  display: block;
}

.reel-button:hover {
  opacity: 0.62;
}

.reel-count {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Links: stacked quiet utilities in the primary text colour, on the same
   left edge as the description. */
.product-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: left;
}

.product-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.product .product-footer {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 16px;
  text-align: left;
}

@media (min-width: 768px) {
  .product .page {
    padding-top: 160px;
  }

  .product-logo {
    height: 96px;
  }

  .product h1 {
    margin-top: 48px;
  }

  .product-intro {
    margin-top: 64px;
  }

  .reel {
    margin-top: 128px;
    padding-top: 96px;
  }

  .product-links {
    margin-top: 96px;
    padding: 32px 0;
  }

  .product .product-footer {
    padding-top: 24px;
  }
}
