/* Roomtry — mini-site. Colours and type from .factory/design-tokens.json. No trackers, no external requests. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ECECE6;
  --surface: #F7F7F3;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.8);
  --text: #18201B;
  --text-2: #4C5850;
  --accent: #2F5A43;
  --on-accent: #FFFFFF;
  --accent-soft: #DDEDE3;
  --line: rgba(24, 32, 27, 0.10);
  --shadow: 0 8px 22px rgba(24, 32, 27, 0.12);
  --r-s: 12px;
  --r-m: 22px;
  --r-l: 32px;
  --max: 1080px;
  --prose: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101411;
    --surface: #1A201C;
    --glass: rgba(26, 32, 28, 0.6);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text: #F2F4EF;
    --text-2: #A9B3AC;
    --accent: #9FD3B0;
    --on-accent: #0E1210;
    --accent-soft: #24382C;
    --line: rgba(242, 244, 239, 0.12);
    --shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

/* Header / footer */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.2px; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; display: block; flex: none; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--glass); }

.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; color: var(--text-2); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

/* Glass card */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 16px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(47, 90, 67, 0.22);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.secondary { background: var(--glass); color: var(--text); box-shadow: none; border: 1px solid var(--glass-border); }

/* Landing */
.hero { display: grid; gap: 32px; align-items: center; padding: 24px 0 8px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.05; letter-spacing: -1.2px; font-weight: 800; margin: 16px 0 14px; }
.hero p.lead { font-size: 18px; color: var(--text-2); margin: 0 0 24px; max-width: 34ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font-size: 13px; color: var(--text-2); margin-top: 12px; }

.compare { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 900 / 656; background: var(--surface); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,0.25); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.25); display: grid; place-items: center; color: #18201B; font-weight: 800; font-size: 14px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.tag { position: absolute; top: 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.4px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.85); color: #18201B; pointer-events: none; }
.tag.l { left: 14px; }
.tag.r { right: 14px; background: #2F5A43; color: #fff; }

section.block { padding: 56px 0 0; }
section.block h2 { font-size: clamp(26px, 4.5vw, 34px); letter-spacing: -0.6px; line-height: 1.15; margin: 0 0 10px; font-weight: 800; }
section.block > .wrap > p.sub { color: var(--text-2); margin: 0 0 24px; max-width: 60ch; }

.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.styles figure { margin: 0; position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 388 / 520; box-shadow: var(--shadow); }
.styles img { width: 100%; height: 100%; object-fit: cover; }
.styles figcaption { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 800; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,0.88); color: #18201B; }

.pairs { display: grid; gap: 16px; }
.pair { padding: 12px; }
.pair .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair figure { margin: 0; position: relative; border-radius: var(--r-s); overflow: hidden; aspect-ratio: 776 / 1040; }
.pair figure img { width: 100%; height: 100%; object-fit: cover; }
.pair h3 { margin: 12px 6px 2px; font-size: 18px; font-weight: 800; }
.pair p { margin: 0 6px 6px; color: var(--text-2); font-size: 15px; }

.features { display: grid; gap: 12px; }
.feature { padding: 20px; }
.feature h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Documents */
.doc { max-width: var(--prose); margin: 0 auto; padding: 8px 16px 0; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); letter-spacing: -0.8px; line-height: 1.1; font-weight: 800; margin: 16px 0 6px; }
.doc .updated { color: var(--text-2); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; margin: 36px 0 8px; }
.doc h3 { font-size: 17px; font-weight: 800; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .summary { padding: 18px 20px; margin: 0 0 8px; }
.doc .summary ul { margin: 6px 0 0; }
.doc .callout { padding: 16px 18px; margin: 16px 0; }
.doc .callout p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 800; background: var(--accent-soft); color: var(--text); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 14px; }
.faq details > div > :first-child { margin-top: 0; }
.contact-card { padding: 22px; margin: 8px 0 24px; }
.contact-card p { margin: 4px 0; }
.contact-card .email { font-size: 20px; font-weight: 800; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr 1.15fr; padding-top: 40px; }
  .styles { grid-template-columns: repeat(6, 1fr); }
  .styles figcaption { font-size: 13px; left: 10px; bottom: 10px; padding: 6px 10px; max-width: calc(100% - 20px); }
  .pairs { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
