/* ==========================================================================
   Justice Freed Investing — site styles
   Plain CSS, mobile-first. Colors and sizes are set once in :root below.
   The Liquid Glass look is one block at the end of this file.
   ========================================================================== */

:root {
  /* Color: white, near-black, one yellow accent, soft gray.
     Yellow is a fill with dark text on top of it. It is never used as text or
     as a thin line on white, because it is too faint to read there. */
  --ink: #0a0b0d;
  --ink-2: #30343c;
  --muted: #5b616e;
  --line: #e3e5ea;
  --line-strong: #868c98;
  --soft: #f4f5f7;
  --white: #ffffff;
  --accent: #ffd000;
  --accent-hover: #f2c200;
  --accent-soft: #fff3bf;
  --accent-on-dark: #ffd84a;

  /* Type: two families */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Shape and layout */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --gutter: 20px;
  --max: 1160px;
  --header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.625rem, 9.2vw, 5.5rem); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.125rem, 5.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.1; letter-spacing: -0.022em; }
p { text-wrap: pretty; }

.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--ink); font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em; }
.eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.45; color: var(--ink-2); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.arrow { display: inline-block; transition: transform .18s ease; }
/* Arrow in a yellow circle on the main text links */
.text-link .arrow, .card__link .arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 0.9375rem; line-height: 1; }
a:hover > .arrow { transform: translateX(3px); }

.pill-label {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink-2); font-size: 0.875rem; font-weight: 500;
}
.pill-label > span { color: var(--line-strong); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); }
.site-header.is-open { background: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.brand__logo { width: auto; height: 28px; }
.brand__name { display: none; padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; font-weight: 500; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
}
.nav-toggle path { transition: transform .2s ease; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__top { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bottom { transform: translateY(-4px) rotate(-45deg); }

.site-nav ul { display: flex; flex-direction: column; }
.site-nav a { display: block; text-decoration: none; font-weight: 500; }

/* Mobile menu: a panel under the header. Without JavaScript it simply shows as a wrapped row. */
@media (max-width: 899px) {
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    padding: 8px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .js .site-header.is-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
  .js .site-nav a.site-nav__cta {
    margin-top: 20px; padding: 15px 24px; border: 0; border-radius: 999px;
    background: var(--ink); color: var(--white); text-align: center;
    font-family: var(--font-body); font-size: 1rem; letter-spacing: 0;
  }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav { height: auto; flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  html:not(.js) .site-nav a { padding: 6px 0; font-size: 0.9375rem; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 2px; }
  .site-nav a { padding: 9px 14px; border-radius: 999px; color: var(--ink-2); font-size: 0.9375rem; transition: background-color .15s ease, color .15s ease; }
  .site-nav a:hover, .site-nav a[aria-current="true"] { background: var(--soft); color: var(--ink); }
  .site-nav a.site-nav__cta { margin-left: 10px; padding-inline: 18px; background: var(--ink); color: var(--white); font-weight: 600; }
  .site-nav a.site-nav__cta:hover, .site-nav a.site-nav__cta[aria-current="true"] { background: var(--accent); color: var(--ink); }
}
@media (min-width: 1080px) { .brand__name { display: inline; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 11vw, 128px) 0 clamp(56px, 8vw, 104px); text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 0%, transparent 72%);
  opacity: .7;
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 11.5em; margin-top: 24px; }
.hero__lede { text-wrap: balance; max-width: 34em; margin-top: 24px; font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.45; color: var(--ink-2); }
.hero .btn-row { justify-content: center; margin-top: 32px; }

@media (max-width: 479px) {
  .hero { text-align: left; }
  .hero__inner { align-items: flex-start; }
  .hero .btn-row { width: 100%; flex-direction: column; }
  .hero .btn { width: 100%; }
  .pill-label { justify-content: flex-start; }
}

/* ---------- Sections ---------- */
/* Each section adds space below itself. A "ruled" section also gets a top line and space above. */
.section { padding-bottom: clamp(72px, 10vw, 136px); }
.section--ruled { border-top: 1px solid var(--line); padding-top: clamp(72px, 10vw, 136px); }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { max-width: 12em; }
.section-head__aside { margin-top: 20px; display: grid; gap: 20px; justify-items: start; color: var(--ink-2); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
@media (min-width: 900px) {
  .section-head--split { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .section-head__aside { margin-top: 0; padding-bottom: 6px; }
}

/* ---------- Card grids (ventures, websites) ---------- */
.card-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--ink); }
.card:focus-within { border-color: var(--ink); }
.card__art { display: grid; place-items: center; aspect-ratio: 2 / 1; max-height: 230px; width: 100%; border-radius: 19px; background: var(--soft); overflow: hidden; }
.card__art svg { width: min(78%, 280px); height: auto; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 14px 14px; }
.card__tag { color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.card__title { margin-top: 6px; font-size: 1.625rem; }
.card__desc { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.card__link { margin-top: auto; padding-top: 22px; }
.card__link a, .card__link span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.card__link a { color: var(--ink); text-decoration: none; }
.card__link a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); } /* whole card is the link */
.card__link a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.card__link .placeholder { color: var(--muted); font-weight: 500; font-size: 0.9375rem; }

/* Website cards: screenshot in a small browser frame */
.shot { width: 100%; border-radius: 19px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.shot__bar { display: flex; align-items: center; gap: 10px; height: 34px; padding-inline: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; font-weight: 500; white-space: nowrap; overflow: hidden; }
.shot__bar span { overflow: hidden; text-overflow: ellipsis; }
.dots { display: inline-flex; gap: 5px; flex: none; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #c5c9d2; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.shot__empty { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 16px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }

/* ---------- Feature rows (alternating text and visual) ---------- */
.feature { display: grid; gap: 28px; margin-top: clamp(64px, 9vw, 120px); }
.feature > *, .panel > *, .about > *, .horizons > * { min-width: 0; } /* lets wide content (code) scroll inside its card instead of stretching the page */
.feature__kicker { margin-bottom: 14px; color: var(--muted); font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.feature__kicker span { color: var(--line-strong); margin-inline: 2px; }
.feature__text h3 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); letter-spacing: -0.028em; max-width: 14em; }
.feature__text p:not(.feature__kicker) { margin-top: 14px; max-width: 30em; color: var(--ink-2); }
.feature__text .text-link { margin-top: 20px; }
.feature--stack .feature__text { margin-bottom: 4px; }
@media (min-width: 900px) {
  .feature:not(.feature--stack) { grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
  .feature.feature--flip { grid-template-columns: 6fr 5fr; }
  .feature--flip .feature__text { order: 2; }
}

/* Apps list */
.app-list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; }
.app-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; }
.app-list li + li { border-top: 1px solid var(--line); }
.app__name { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.app__desc { margin-top: 3px; color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }
.status { flex: none; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }

/* Pine Script example */
.code-card { border-radius: var(--r-lg); background: #0d0f14; color: #e8eaf0; overflow: hidden; }
.code-card__bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px; color: #a8aebb; font-size: 0.8125rem; font-weight: 500; }
.code-card__dots { display: inline-flex; gap: 5px; }
.code-card__dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a3f4b; }
.code-card__chart { width: 100%; padding: 6px 12px 0; }
.code-card__code { margin-top: 8px; padding: 18px 20px 24px; border-top: 1px solid #23262e; overflow-x: auto; font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.75; tab-size: 2; }
.code-card__code:focus-visible { outline-color: var(--accent-on-dark); outline-offset: -4px; }
.code-card__code .c { color: #9197a3; }
.code-card__code .f, .code-card__code .k { color: var(--accent-on-dark); }
.code-card__code .s { color: #c9d3ea; }

/* ---------- Panels (Mamoru, Contact) ---------- */
.panel { display: grid; gap: 36px; padding: clamp(28px, 6vw, 76px); border-radius: clamp(28px, 4vw, 40px); }
.panel--soft { background: var(--soft); }
.panel--dark { background: var(--ink); color: var(--white); }
.panel__text > * + * { margin-top: 20px; }
.panel__text .eyebrow { margin-bottom: 0; }
.panel__text h2 { margin-top: 14px; max-width: 10em; }
.panel__text .btn { margin-top: 28px; }
@media (min-width: 900px) { .panel { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

.panel--dark h2 { color: var(--white); }
.panel--dark .eyebrow { color: var(--white); }
.panel--dark .lede { color: #cdd2dc; }
.panel--dark :focus-visible { outline-color: var(--accent-on-dark); }

/* Mamoru case styles */
.style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.style-card { padding: 20px 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); text-align: center; }
.style-card__photo { width: auto; height: clamp(170px, 30vw, 290px); margin-inline: auto; }
.design-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 16px; }
.design-picker__label { color: var(--muted); font-size: 0.875rem; }
.design-picker__label span { color: var(--ink); font-weight: 500; }
.design-picker__row { display: flex; gap: 8px; }
.swatch { display: grid; place-items: center; width: 46px; height: 62px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .15s ease; }
.swatch img { width: 100%; height: 100%; object-fit: contain; }
.swatch:hover { border-color: var(--line-strong); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* Case photos in the Mamoru venture card. Multiply lets their white background take the card's gray. */
.card__art--photos { display: flex; align-items: center; justify-content: center; gap: 5%; }
.card__art--photos img { width: 21%; max-width: 104px; height: auto; mix-blend-mode: multiply; }
.style-card h3 { margin-top: 16px; font-size: 1.25rem; }
.style-card p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
@media (min-width: 600px) { .style-grid { gap: 20px; } .style-card { padding: 32px 24px 28px; } }

/* ---------- Chita Trading ---------- */
.step-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.step__num { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: clamp(28px, 5vw, 64px); }
.step p { margin-top: 10px; color: var(--ink-2); }
@media (min-width: 760px) { .step { padding: 28px; } }

.horizons { display: grid; gap: 24px; margin-top: 20px; padding: 24px; border-radius: var(--r-lg); background: var(--soft); }
.horizons__head p { margin-top: 10px; color: var(--ink-2); max-width: 26em; }
.horizons__list { display: grid; gap: 12px; }
.horizons__list > div { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.horizons__list dt { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; }
.horizons__list dd { margin-top: 6px; color: var(--ink-2); font-size: 1rem; }
@media (min-width: 900px) {
  .horizons { grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 40px; }
  .horizons__list { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.notice { display: flex; gap: 12px; align-items: baseline; margin-top: 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-2); font-size: 0.9375rem; }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; }
.about__text > p + p { margin-top: 18px; }
.about__text p:not(.eyebrow) { max-width: 34em; color: var(--ink-2); }
.about__text h2 { margin-bottom: 24px; max-width: 11em; }
.about__photo { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.about__photo--empty { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 16px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.875rem; font-weight: 500; text-align: center; }
.placeholder-text { padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--muted) !important; font-size: 0.9375rem; }
.facts { margin-top: 20px; }
.facts > div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { flex: none; color: var(--muted); font-size: 0.9375rem; }
.facts dd { font-weight: 500; text-align: right; }
@media (min-width: 900px) { .about { grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; } }

/* ---------- Contact ---------- */
.contact-list { margin-top: 32px !important; }
.contact-list > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid #2b2e36; }
.contact-list > div:last-child { border-bottom: 1px solid #2b2e36; }
.contact-list dt { color: #a8aebb; font-size: 0.9375rem; }
.contact-list dd { overflow-wrap: anywhere; font-weight: 500; }
.contact-list a { text-underline-offset: 4px; }
.contact-list a:hover { color: var(--accent-on-dark); }
.contact-list dd a + a { margin-left: 16px; }

.form { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-md); background: var(--white); color: var(--ink); }
@media (min-width: 600px) { .form { padding: 32px; border-radius: var(--r-lg); } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--white); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.panel--dark .field input:focus-visible, .panel--dark .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); box-shadow: 0 0 0 5px var(--accent-soft); }
.panel--dark .form :focus-visible { outline-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form__status { min-height: 1.4em; font-size: 0.9375rem; color: var(--ink-2); }
.form__status.is-error { color: #b3261e; }
.form__status.is-success { color: #0f6b3a; font-weight: 500; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 8vw, 88px) 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.footer-brand { grid-column: 1 / -1; color: var(--muted); font-size: 0.9375rem; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-title { margin-bottom: 10px; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--ink); }
.site-footer li { color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.site-footer li a { display: inline-block; padding: 7px 0; text-decoration: none; }
.site-footer li:not(:has(a)) { padding: 7px 0; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: grid; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.footer-legal p { max-width: 68em; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
  .footer-brand { grid-column: auto; }
}

.noscript-note { color: var(--ink-2); }
.noscript-note a { color: var(--ink); font-weight: 600; }

/* ---------- Motion: short fade-ins on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .js .reveal { opacity: 1; transform: none; }
  .site-header { position: static; }
}

/* ==========================================================================
   LIQUID GLASS THEME
   --------------------------------------------------------------------------
   Everything below turns the flat surfaces above into glass: a soft tinted
   backdrop, translucent panels with a bright top edge and a soft shadow, and
   a floating glass navigation bar that blurs whatever scrolls beneath it.
   To go back to the flat look, delete from this banner to the end of the file.
   ========================================================================== */
:root {
  --page: #f6f6f3;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .54));
  --glass-inner: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .7));
  --glass-panel: linear-gradient(135deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .36));
  --glass-edge: rgba(255, 255, 255, .95);
  --glass-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(10, 11, 13, .03), 0 1px 2px rgba(10, 11, 13, .05), 0 18px 40px -22px rgba(10, 11, 13, .28);
  --glass-shadow-lift: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(10, 11, 13, .03), 0 2px 4px rgba(10, 11, 13, .06), 0 28px 54px -24px rgba(10, 11, 13, .38);
  --glass-blur: blur(22px) saturate(180%) brightness(1.06);
  --hairline: rgba(10, 11, 13, .08);
  --well: rgba(10, 11, 13, .045);
  --accent-glass: linear-gradient(180deg, #ffe25c 0%, var(--accent) 58%, #f7c600 100%);
}

/* Backdrop: soft yellow and silver light that stays put while the page scrolls over it */
body { background: var(--page); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48vmax 48vmax at 4% 2%, rgba(255, 208, 0, .26), transparent 62%),
    radial-gradient(46vmax 46vmax at 102% 34%, rgba(160, 168, 186, .24), transparent 62%),
    radial-gradient(52vmax 52vmax at 28% 106%, rgba(255, 208, 0, .2), transparent 62%);
}
.hero::before { opacity: .4; }

/* Floating glass navigation bar */
.site-header {
  top: 10px; margin-top: 10px; padding-inline: var(--gutter);
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0;
}
.site-header.is-open { background: transparent; }
.site-header .nav { position: relative; max-width: var(--max); height: 58px; padding-inline: 16px 9px; border-radius: 999px; }
.site-header .nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .62));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled .nav::before { box-shadow: var(--glass-shadow-lift); }
.brand { gap: 10px; }
.brand__logo { height: 36px; }
.brand__mark { font-size: 1.5rem; }
.brand__name { border-left-color: var(--hairline); }
.nav-toggle { margin-right: 0; }
.nav-toggle:hover { background: var(--well); }
.site-nav a.site-nav__cta { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 8px 16px -8px rgba(10, 11, 13, .55); }

@media (max-width: 899px) {
  .js .site-nav {
    top: calc(100% + 8px); padding: 6px 20px 20px;
    border: 1px solid var(--glass-edge); border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
    box-shadow: var(--glass-shadow-lift);
  }
  .js .site-nav a { border-bottom-color: var(--hairline); }
  .js .site-nav li:nth-last-child(2) a { border-bottom-color: transparent; }
}
@media (min-width: 900px) {
  .site-nav a:hover, .site-nav a[aria-current="true"] { background: rgba(10, 11, 13, .06); }
}

/* Buttons and small yellow pieces: glass with a bright top edge */
.btn--primary {
  background: var(--accent-glass); border-color: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(120, 90, 0, .16), 0 12px 24px -12px rgba(214, 160, 0, .8), 0 1px 2px rgba(10, 11, 13, .08);
}
.btn--primary:hover { background: linear-gradient(180deg, #ffdb3d, var(--accent-hover)); }
.btn--ghost {
  background: var(--glass); border-color: var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); }
.text-link .arrow, .card__link .arrow, .step__num {
  background: var(--accent-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 5px 10px -5px rgba(214, 160, 0, .75);
}
.status { background: linear-gradient(180deg, #fffae0, var(--accent-soft)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(214, 160, 0, .22); }
.eyebrow::before { background: var(--accent-glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 5px -1px rgba(214, 160, 0, .7); }

/* Glass surfaces */
.pill-label, .card, .step, .app-list, .notice {
  background: var(--glass); border-color: var(--glass-edge); box-shadow: var(--glass-shadow);
}
.card:hover { border-color: var(--glass-edge); box-shadow: var(--glass-shadow-lift); }
.card:focus-within { border-color: var(--glass-edge); }
.card__art { background: var(--well); }
.shot { border-color: var(--hairline); background: rgba(255, 255, 255, .7); }
.shot__bar { border-bottom-color: var(--hairline); }
.app-list li + li { border-top-color: var(--hairline); }

.panel--soft, .horizons { background: var(--glass-panel); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.style-card, .horizons__list > div { background: var(--glass-inner); border-color: var(--glass-edge); box-shadow: var(--glass-shadow); }
/* Case photos have a white background. Multiply lets the glass show through it. */
.style-card__photo, .swatch img { mix-blend-mode: multiply; }
.swatch { background: rgba(255, 255, 255, .7); border-color: var(--hairline); }
.swatch { overflow: hidden; }
.swatch img { width: auto; max-width: 100%; height: 52px; }

.panel--dark {
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(255, 208, 0, .17), transparent 58%),
    radial-gradient(60% 90% at 0% 100%, rgba(160, 168, 186, .14), transparent 60%),
    linear-gradient(180deg, #171a20, #0a0b0d);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 34px 60px -34px rgba(10, 11, 13, .6);
}
.form { box-shadow: inset 0 1px 0 #fff, 0 26px 50px -26px rgba(0, 0, 0, .7); }
.code-card {
  background: linear-gradient(180deg, #181b22, #0d0f14);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 26px 50px -28px rgba(10, 11, 13, .6);
}
.about__photo--empty, .placeholder-text { background: rgba(255, 255, 255, .45); }
.section--ruled, .site-footer, .footer-legal { border-top-color: var(--hairline); }
.facts > div { border-top-color: var(--hairline); }
.facts > div:last-child { border-bottom-color: var(--hairline); }

/* Browsers without background blur, and visitors who ask for less transparency, get solid surfaces */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header .nav::before, .js .site-nav { background: rgba(255, 255, 255, .97); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #fff; --glass-inner: #fff; --glass-panel: #fff; }
  body::before { display: none; }
  .site-header .nav::before, .js .site-nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn--ghost { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print { body::before { display: none; } }

/* Chart screenshot in the TradingView indicators row */
.chart-shot { padding: 10px; border: 1px solid var(--glass-edge); border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--glass-shadow); }
.chart-shot img { width: 100%; border-radius: 19px; border: 1px solid var(--hairline); }
