/* Radiary LLC — corporate site. No tracking. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-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;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-italic.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;
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext-italic.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000000;
  --bg-elev: #0b0b0b;
  --bg-card: #111111;
  --gold: #c9a64a;
  --gold-soft: #e0c56c;
  --gold-deep: #a6852e;
  --gold-dim: rgba(201, 166, 74, 0.16);
  --gold-line: rgba(201, 166, 74, 0.38);
  --white: #ffffff;
  --text: #f3f3f3;
  --muted: #a8a8a8;
  --faint: #7a7a7a;
  --border: #242424;
  --store-card: #f7f7f7;
  --store-text: #111111;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --header-h: 5.25rem;
  --max: 72rem;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-soft); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: #000;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 999px;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

 .logo img {
  height: 4.15rem;
  width: auto;
}

.logo-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-llc {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--white);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--gold);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.lang-toggle {
  margin-left: 0.4rem;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle:hover { background: var(--gold-dim); color: var(--gold-soft); }

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(201, 166, 74, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(201, 166, 74, 0.06), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 4.6vw, 3.85rem); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); text-wrap: balance; }
h3 { font-size: 1.2rem; letter-spacing: 0; }

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40rem;
}

.hero-logo {
  justify-self: center;
  width: min(100%, 26rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { color: #000; transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: #000;
}
.btn-gold:hover { background: var(--gold-soft); color: #000; }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #000; }

/* Sections */
main { flex: 1; }
.section { padding: 4.25rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.card-media {
  background: #000;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  border-bottom: 1px solid var(--border);
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card.card-store .card-media {
  background: var(--store-card);
}
.card-body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card-body h3 { margin: 0; }
.tagline {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}
.card-body p { color: var(--muted); font-size: 0.98rem; }
.card-actions { margin-top: auto; padding-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.prose { max-width: 46rem; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--muted); }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--gold); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.split-logo {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-logo.light { background: var(--store-card); }
.split-logo img { width: min(100%, 26rem); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1rem 0 0;
}
.meta-row strong { color: var(--gold); font-weight: 600; }

/* Legal hub */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.legal-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.legal-card:hover { border-color: var(--gold); transform: translateY(-2px); color: inherit; }
.legal-card h3 { color: var(--gold); margin-bottom: 0.45rem; }
.legal-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.legal-doc { max-width: 46rem; }
.legal-doc h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.legal-updated { color: var(--faint); font-size: 0.88rem; margin-bottom: 2rem; }
.legal-doc h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.7rem;
  padding-top: 0.4rem;
  color: var(--gold-soft);
}
.legal-doc p, .legal-doc li { color: #cfcfcf; }
.legal-doc a { color: var(--gold); }

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 32rem;
}
.contact-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.contact-list .label {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.address { font-style: normal; color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--gold-line);
  padding: 2.5rem 0 2rem;
  background: #000;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand img { height: 5.5rem; width: auto; margin-bottom: 0.8rem; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

.notice {
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--text);
  font-size: 0.95rem;
}

/* 404 */
.page-404 { text-align: center; padding: 5rem 0 6rem; }
.page-404 h1 { margin-bottom: 0.8rem; }

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cards,
  .legal-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero { padding: 2.5rem 0 3rem; }
  .hero-logo { order: -1; width: min(100%, 18rem); }
  .cards { gap: 1rem; }
}

@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 1.5rem), var(--max)); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #000;
    border-bottom: 1px solid var(--gold-line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.25rem 1.1rem;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
  .lang-toggle { margin: 0.8rem 0 0.3rem; align-self: flex-start; }
  .logo img { height: 3.35rem; }
  .header-inner { min-height: 4.5rem; }
  .section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .legal-card { transition: none; }
  .card:hover, .legal-card:hover, .btn:hover { transform: none; }
}

/* Language blocks: avoid a flash of the wrong language */
html[lang="en"] .i18n-es { display: none !important; }
html:not([lang="en"]) .i18n-en { display: none !important; }
