/*
  NRFI NET LLC — company site.

  No web fonts, no scripts, no third-party requests. That is a feature: the
  privacy notice on legal.html says this site sets no cookies and loads nothing
  from anyone else, and that stays true only while this file keeps it so.
*/

:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #12161f;
  --muted: #5a6170;
  --line: #e2ded3;
  --accent: #b8860b;
  --accent-ink: #12161f;
  --gold: #f0c03e;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f16;
    --surface: #141924;
    --ink: #eef0f4;
    --muted: #9aa2b2;
    --line: #242b3a;
    --accent: #f0c03e;
    --accent-ink: #0c0f16;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.wordmark .logo { display: block; height: 40px; width: auto; }
.wordmark .logo .gold { fill: var(--gold); }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-products { display: flex; align-items: center; gap: 16px; padding-left: 16px; border-left: 1px solid var(--line); }
.brand-products a { display: block; line-height: 0; }
.brand-products img { display: block; width: 32px; height: 32px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 64px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 16ch; }
.hero p { font-size: 19px; color: var(--muted); max-width: 58ch; margin: 0; }
.hero.split { padding-top: 32px; padding-bottom: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 40px; align-items: center; }
/* The tagline spans both columns as a strip above the headline and gallery. */
.hero.split .eyebrow { grid-column: 1 / -1; }
/* The Products section's top padding makes the gap below the hero 48px taller
   than the gap above. Shifting both columns down by half centres them between
   the tagline and Products. */
.hero.split .hero-text, .hero.split .gallery { position: relative; top: 24px; }

/* Hero gallery: two overlapping phones at staggered heights, each fading to its second shot and back. */
.gallery { position: relative; height: 560px; }
.phone { position: absolute; margin: 0; width: 248px; aspect-ratio: 556 / 1106; border-radius: 34px; border: 8px solid #05070b; background: #05070b; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgba(0, 0, 0, 0.45); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.phone img + img { opacity: 0; animation: phone-fade 12s ease-in-out infinite; }
.phone.back { top: 0; left: 8%; }
.phone.front { bottom: 0; right: 8%; }
.phone.front img + img { animation-delay: -6s; }
@keyframes phone-fade { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .phone img + img { animation: none; } }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head img { width: 48px; height: 48px; border-radius: 10px; }
.card h3 { margin: 0; font-size: 21px; }
.card .tag { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }
.card p { margin: 0; color: var(--muted); }
.card .meta { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.card .links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.card .go { white-space: nowrap; font-weight: 700; text-decoration: none; color: var(--accent); }
.card .go:hover { text-decoration: underline; }
/* The official badge PNG carries its own clear space; pull it in so it lines up with the text link. */
.card .play { display: block; margin: -10px -10px -10px -4px; line-height: 0; }
.card .play img { display: block; width: 155px; height: 60px; }
.card.soon { background: transparent; border-style: dashed; }
.soon-mark { width: 48px; height: 48px; border-radius: 10px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 24px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px 40px; align-items: start; }
/* The heading and tagline span both columns so the facts box lines up with the first paragraph. */
.about-grid h2, .motto { grid-column: 1 / -1; margin: 0; }
.about-grid p:first-child { margin-top: 0; }
.motto { font-size: 21px; font-weight: 700; line-height: 1.35; border-left: 3px solid var(--accent); padding-left: 16px; margin-bottom: 4px; }
.motto b { color: var(--accent); }
.motto span { display: block; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Contact */
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; }
.contact-list a:hover { border-color: var(--accent); }
.contact-list strong { display: block; }
.contact-list span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

/* Legal page */
.doc { max-width: 760px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.policy-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.policy-table th, .policy-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.policy-table tr:last-child td { border-bottom: 0; }
.policy-table td a { margin-right: 14px; white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { padding-top: 56px; padding-bottom: 40px; }
  .hero.split { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 0; }
  .hero.split .hero-text, .hero.split .gallery { top: 0; }
  .gallery { height: 400px; max-width: 360px; width: 100%; margin: 32px auto 0; }
  .phone { width: 170px; border-width: 6px; border-radius: 26px; }
  .phone img { border-radius: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .site-nav { gap: 14px; }
  .policy-table th:first-child, .policy-table td:first-child { white-space: nowrap; }
}
