/**
 * site.css — frinet.fi, the company site.
 *
 * Written in the Limo family's design language (limoaudio.com, limonote.app,
 * limostudio.ai — the shared kit in limoaudio-web/css/site.css): a thin black
 * nav, light-weight headings, one wide row per product with a real screenshot,
 * mono uppercase fact lines, a dark column footer. Accents only on the bold half
 * of a wordmark and its button.
 *
 * Dark by default, like the family's other sites; the header's toggle stores
 * 'light' | 'dark' in localStorage 'frinet.theme' (js/theme-init.js applies it
 * before the first paint). System fonts, no dependencies.
 */

:root {
  --bg: #111114;
  --bg-alt: #17171b;
  --ink: #ececf0;
  --ink-2: #b4b4bd;
  --muted: #83838d;
  --line: #2a2a31;
  --line-2: #3a3a41;
  --nav: #0b0b0d;
  --footer: #0b0b0d;
  --accent: #00a3a3; /* house teal, where no product accent applies */
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);

  --font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Inter, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1180px;
  --radius: 6px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --ink: #1d1d1f;
  --ink-2: #4b4b52;
  --muted: #7a7a83;
  --line: #e6e6e9;
  --line-2: #cfcfd4;
  --nav: #101012;
  --footer: #1a1a1d;
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

strong,
b {
  font-weight: 600;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 8px 14px;
  background: #fff;
  color: #1d1d1f;
  border: 1px solid #e6e6e9;
}

.skip:focus {
  left: 12px;
}

/* ---- Header: the family's thin black bar ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav);
  color: #fff;
}

.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 52px;
  font-size: 14.5px;
  line-height: 1;
  font-weight: 400;
}

.site-header a {
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-right: 8px;
}

.brand svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.links a {
  color: #d0d0d6;
}

.links a:hover,
.links a:focus-visible {
  color: #fff;
}

.bar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme,
.menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  color: #fff;
  background: none;
  border: 1px solid #3a3a41;
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
}

.theme {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
}

.theme svg {
  width: 16px;
  height: 16px;
}

.theme:hover,
.menu summary:hover {
  border-color: #fff;
}

.theme:focus-visible,
.menu summary:focus-visible,
.site-header a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Narrow: the inline links move into a <details> drop-down (no script needed). */
.menu {
  display: none;
}

.menu summary {
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  background: var(--nav);
  border-top: 1px solid #2a2a31;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.8);
}

.menu-panel a {
  display: block;
  padding: 15px 24px;
  color: #d0d0d6;
  border-bottom: 1px solid #22222a;
  font-size: 15px;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  color: #fff;
  background: #1b1b21;
}

@media (max-width: 720px) {
  .bar { gap: 12px; }
  .links { display: none; }
  .menu { display: block; }
}

/* ---- Wordmark: Limo<b>Note</b> ---- */
.wordmark {
  font-weight: 300;
  letter-spacing: -0.02em;
}

.wordmark b {
  font-weight: 700;
  color: var(--acc, var(--ink));
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 15px/1 var(--font);
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-acc {
  color: var(--acc-ink, #101012);
  background: var(--acc, var(--accent));
}

.btn-acc:hover {
  filter: brightness(0.92);
}

.btn-quiet {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--line-2);
}

.btn-quiet:hover {
  border-color: var(--ink);
}

.btn:focus-visible,
.link-more:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.link-more {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.link-more:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---- Intro band ---- */
.intro {
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
}

.intro h1 {
  font-size: clamp(32px, 4.8vw, 54px);
  max-width: 24ch;
  margin-inline: auto;
}

.intro h1 b {
  font-weight: 700;
  color: var(--accent);
}

.intro p {
  margin: 20px auto 0;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 18px;
}

.intro-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.intro .meta {
  margin-top: 26px;
  font: 400 13px/1.6 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Product rows ---- */
.product-row {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 88px) 0;
}

.row-inner {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .row-inner {
    grid-template-columns: 1.15fr 1fr;
  }
  .row-inner.flip .row-media {
    order: 2;
  }
}

.row-media {
  display: block;
  text-decoration: none;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.row-copy .wordmark {
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.05;
}

.row-tagline {
  margin-top: 10px;
  font-size: 20px;
  color: var(--ink-2);
}

.row-summary {
  margin-top: 18px;
  max-width: 48ch;
  font-size: 16px;
  color: var(--ink-2);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.row-formats {
  margin-top: 18px;
  font: 400 12px/1.8 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-pill {
  display: inline-block;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  margin-bottom: 14px;
}

.acc-note { --acc: #00a3a3; --acc-ink: #101012; }
.acc-studio { --acc: #00cccc; --acc-ink: #101012; }
.acc-audio { --acc: #9c6bff; --acc-ink: #ffffff; }
.acc-pages { --acc: #34d399; --acc-ink: #101012; }

/* ---- Sections ---- */
.section {
  border-top: 1px solid var(--line);
  padding: clamp(52px, 7vw, 96px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.section .lede {
  margin-top: 14px;
  max-width: 64ch;
  font-size: 18px;
  color: var(--ink-2);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cols {
  display: grid;
  gap: 36px 40px;
  margin-top: clamp(28px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.cols h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 8px;
}

.cols p {
  font-size: 15.5px;
  color: var(--ink-2);
}

.cols p + p {
  margin-top: 10px;
}

.cols a {
  color: var(--ink);
}

/* Facts: the company details and the support table */
.facts {
  display: grid;
  margin: clamp(24px, 3vw, 40px) 0 0;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

/* Six facts read as two rows of three, not four and two. */
.facts-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.fact {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -1px -1px 0;
}

.fact dt {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.fact dd small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-2);
}

.fact dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}

.fact dd a:hover {
  border-color: var(--ink);
}

/* ---- Legal pages ---- */
.legal {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
}

.legal article {
  max-width: 72ch;
}

.legal h1 {
  font-size: clamp(32px, 4.4vw, 46px);
}

.legal .updated {
  margin-top: 12px;
  font: 400 13px/1.6 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal h2 {
  margin: 40px 0 10px;
  font-size: 22px;
  font-weight: 500;
}

.legal p,
.legal li {
  font-size: 16px;
  color: var(--ink-2);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal ul + p {
  margin-top: 12px;
}

.legal a {
  color: var(--ink);
}

.legal strong {
  color: var(--ink);
}

/* ---- Footer ---- */
footer {
  background: var(--footer);
  color: #b9b9c0;
  padding: 52px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.footer-grid a {
  display: block;
  color: #b9b9c0;
  text-decoration: none;
  margin-bottom: 7px;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #fff;
}

.footer-grid p {
  color: #9a9aa3;
  line-height: 1.55;
}

.footer-grid p a {
  display: inline;
  margin: 0;
}

.footer-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #2c2c31;
  font-size: 13px;
  color: #8a8a93;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
