/*
 * site.css — the whole design layer of the Smart Mirror product site.
 * ROGR design language (logomanual): blue #008cd2 as the accent, dark grey
 * #3c4141, mono grey #9b9b9b, Open Sans, negative logotype on dark surfaces.
 * Dark only by design (the product is a dark sheet of glass). No framework,
 * no JavaScript, no inline styles (strict CSP). Owned by this repo — every
 * ROGR project carries its own copy of the design, nothing is shared.
 *
 * Contrast bar: text ≥ 4.5:1, UI edges and focus ≥ 3:1 against the surface
 * they sit on (WCAG 2.2 AA). Buttons rest on #0079b8 (4.74:1 with white);
 * the brand blue #008cd2 is kept for large marks and hover states only.
 */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-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;
}

:root {
  color-scheme: dark;
  --blue: #008cd2;
  --blue-btn: #0079b8;
  --blue-hover: #006fa6;
  --blue-active: #00618f;
  --blue-light: #3fa9e0;
  --grey: #3c4141;
  --grey-light: #9b9b9b;
  --line: #4a5050;
  --ctrl-line: #767c7c;
  --bg: #1f2324;
  --surface: #2a2f30;
  --surface-2: #262b2c;
  --field: #1a1e1f;
  --ink: #eceeee;
  --ink-strong: #ffffff;
  --muted: var(--grey-light);
  --focus: #6cc4f0;
  --ok: #75b798;
  --ok-bg: #0f2a1c;
  --err: #ea868f;
  --err-bg: #2c0b0e;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 3.75rem;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: .01em; }
h1 b { font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 300; letter-spacing: .01em; margin-bottom: 1.5rem; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* One focus treatment for everything interactive (8.15:1 on the page, 6.97:1 on the navbar). */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: none;
}

/* ---------- skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--blue-btn); color: #fff; font-weight: 600; font-size: .875rem; padding: .625rem 1.125rem; border-radius: var(--radius); }
.skip:focus { left: var(--gutter); top: .75rem; }

/* ---------- header / navigation (no JS: wraps on phones) ---------- */
.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--grey);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: .625rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; padding: .25rem 0; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; height: 26px; width: auto; }
.brand-sub { color: var(--muted); font-size: .875rem; letter-spacing: .02em; padding-left: .75rem; border-left: 1px solid var(--grey); line-height: 1.2; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex: 1 1 auto; }
.nav-links a { display: inline-block; color: #c4c7c7; padding: .5rem .75rem; border-radius: var(--radius); font-size: .9375rem; white-space: nowrap; }
.nav-links a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }

@media (max-width: 959.98px) {
  .site-head { position: static; }
  html { scroll-padding-top: 1rem; }
  .nav { flex-wrap: wrap; gap: .5rem .75rem; padding-block: .75rem; }
  .brand { flex: 1 1 auto; }
  .nav-actions { order: 2; }
  .nav-links { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 0; margin-top: .25rem; border-top: 1px solid var(--grey); padding-top: .25rem; }
  .nav-links a { padding: .75rem .75rem; min-height: 44px; }
  .btn-sm { min-height: 44px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: .75rem 1.25rem;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-btn); border-color: var(--blue-btn); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-primary:active { background: var(--blue-active); border-color: var(--blue-active); }
.btn-ghost { background: transparent; border-color: var(--ctrl-line); color: #c4c7c7; }
.btn-ghost:hover { background: var(--grey); border-color: var(--grey); color: #fff; }
.btn-lg { font-size: 1.125rem; padding: .875rem 1.75rem; min-height: 52px; }
.btn-sm { font-size: .875rem; padding: .5rem .875rem; min-height: 36px; }

/* ---------- page containers ---------- */
.notice, .hero, .block, .site-foot { padding-inline: var(--gutter); }
.notice {
  max-width: 72rem;
  margin: 1.25rem auto 0;
}
.notice > strong { color: var(--ink-strong); }
.notice { background: var(--surface); border-left: 4px solid var(--blue); border-radius: var(--radius); padding-block: .75rem; }
.block { max-width: 72rem; margin: 0 auto; padding-block: 4.5rem; border-top: 1px solid var(--grey); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 46em; margin-top: -1rem; margin-bottom: 2rem; }

/* ---------- hero ---------- */
.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding-block: 3.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow { color: var(--muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: #c4c7c7; max-width: 34em; margin: 1.5rem 0 0; font-weight: 300; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { color: var(--muted); font-size: .9375rem; margin-top: 1.25rem; }

/* The mirror: a framed 3:4 sheet of black glass showing the real widget layout. */
.mirror {
  --mfg: #dfe4e6;
  --mmuted: #9aa2a6;
  position: relative;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #55605f;
  padding: 12px;
  background: #101314;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px #1c2122;
  color: var(--mfg);
  font-size: clamp(9px, .95vw, 12px);
  line-height: 1.35;
  overflow: hidden;
  text-align: left;
}
.mirror::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 4px;
  background: linear-gradient(160deg, #0b0d0f 0%, #08090b 55%, #0c0f12 100%);
}
.mirror::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .05) 46%, transparent 54%);
}
.mirror > * { position: relative; z-index: 1; }
.m-head { display: flex; justify-content: space-between; align-items: flex-start; padding: .9em 1em .4em; }
.m-greet { font-size: 1.25em; font-weight: 300; margin-top: .55em; }
.m-clock { text-align: right; }
.m-time { display: block; font-size: 3.2em; font-weight: 200; letter-spacing: .04em; line-height: 1; }
.m-date { display: block; font-size: .95em; color: var(--mmuted); margin-top: .35em; }
.m-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 1.2em; padding: .4em 1em 1em; }
.m-col { display: flex; flex-direction: column; gap: 1.1em; min-width: 0; }
.m-label { font-size: .72em; text-transform: uppercase; letter-spacing: .14em; color: var(--mmuted); margin-bottom: .35em; }
.m-temp { font-size: 1.9em; font-weight: 600; line-height: 1.1; }
.m-temp span { font-size: .5em; font-weight: 400; color: var(--mmuted); margin-left: .3em; }
.m-sub { color: var(--mmuted); margin-top: .2em; }
.m-days { display: flex; gap: .7em; margin-top: .5em; color: var(--mmuted); font-size: .9em; }
.m-days span { display: flex; flex-direction: column; align-items: center; gap: .1em; }
.m-days b { color: var(--mfg); font-weight: 400; }
.m-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.m-rooms span { display: block; color: var(--mmuted); font-size: .9em; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: .35em; }
.m-rooms b { display: block; color: var(--mfg); font-size: 1.35em; font-weight: 600; }
.m-row { display: flex; gap: .6em; align-items: baseline; padding: .25em 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.m-row i { font-style: normal; color: var(--mmuted); min-width: 3em; }
.m-rate { justify-content: space-between; }
.m-rate b { font-weight: 600; }
.m-route { display: grid; grid-template-columns: 1fr auto; column-gap: .5em; padding: .3em 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.m-route span { color: var(--mmuted); grid-column: 1 / -1; font-size: .9em; }
.m-route b { font-size: 1.5em; font-weight: 600; line-height: 1; }
.m-route em { font-style: normal; color: #f0b35a; font-size: .9em; align-self: end; }
.m-news { display: grid; grid-template-columns: auto 1fr; gap: .5em; padding: .3em 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.m-news i { font-style: normal; color: var(--mmuted); }

@media (max-width: 899.98px) {
  .hero { grid-template-columns: 1fr; padding-block: 2.5rem 3rem; text-align: left; }
  .mirror { max-width: 22rem; font-size: 10px; }
}
@media (max-width: 575.98px) {
  .cta-row .btn { flex: 1 1 100%; }
  .mirror { max-width: 100%; aspect-ratio: 4 / 5; font-size: clamp(9px, 2.6vw, 11px); }
}

/* ---------- cards ---------- */
.cards { display: grid; gap: 1rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.375rem; min-width: 0; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .9375rem; margin: 0; }
@media (max-width: 991.98px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- bridge (one sentence + one button) ---------- */
.bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.bridge p { margin: 0; color: #c4c7c7; max-width: 40em; }

/* ---------- steps (a real sequence, so the numbers carry meaning) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.375rem; min-width: 0; }
.steps li::before { content: counter(step); display: block; font-size: 2.25rem; font-weight: 200; color: var(--blue); line-height: 1; margin-bottom: .75rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .9375rem; margin: 0; }
@media (max-width: 991.98px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .steps { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem 4rem; align-items: start; }
.contact-form .section-lead { margin-top: -.5rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.form-required { color: var(--muted); font-size: .8125rem; margin-bottom: 1rem; }
.field { margin-bottom: 1.125rem; }
.field label { display: block; color: var(--muted); font-size: .8125rem; margin-bottom: .3rem; }
.field label span[aria-hidden] { color: var(--blue-light); }
input[type="text"], input[type="email"], textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--ctrl-line);
  border-radius: var(--radius);
  padding: .625rem .75rem;
  min-height: 44px;
}
textarea { resize: vertical; min-height: 8rem; }
input::placeholder, textarea::placeholder { color: #8a8f8f; }
input:focus, textarea:focus { border-color: var(--blue); }
.is-invalid { border-color: var(--err); }
.invalid-feedback { color: var(--err); font-size: .875rem; margin-top: .35rem; }
.form-text { color: var(--muted); font-size: .8125rem; margin-top: .35rem; }
.form-privacy { color: var(--muted); font-size: .8125rem; margin: 1rem 0 0; }
.hp { display: none; }
.flash { background: var(--ok-bg); color: var(--ok); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; }
.flash a { color: inherit; text-decoration: underline; }
.alert { background: var(--err-bg); color: var(--err); border-left: 4px solid var(--err); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; }
.contact-aside h3 { margin-bottom: 1rem; }
.faq { margin: 0; }
.faq dt { color: var(--ink-strong); font-weight: 600; margin-top: .9rem; }
.faq dd { margin: .25rem 0 0; color: var(--muted); font-size: .9375rem; }
.contact-direct { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--grey); line-height: 1.7; }
.contact-direct p { margin: 0 0 .5rem; }
.contact-direct a { display: inline-block; padding: .15rem 0; }
@media (max-width: 991.98px) { .contact { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--grey); color: var(--muted); font-size: .875rem; margin-top: 2rem; }
.foot-grid { max-width: 72rem; margin: 0 auto; padding-block: 2rem 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.foot-brand { display: flex; align-items: center; gap: .625rem; color: var(--ink); margin-bottom: .5rem; }
.foot-brand img { height: 18px; width: auto; opacity: .85; }
.foot-company p, .foot-contact p { margin: 0 0 .5rem; max-width: 40em; }
.foot-contact { text-align: right; }
.foot-contact a { display: inline-block; padding: .55rem 0; }
.foot-copy { margin-top: .75rem; }
@media (max-width: 639.98px) { .foot-contact { text-align: left; } }

/* ---------- legal pages ---------- */
.prose { max-width: 70ch; margin: 0 auto; padding: 3rem var(--gutter) 4rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.prose h2 { font-size: 1.25rem; font-weight: 600; margin: 2.25rem 0 .75rem; }
.prose p, .prose li { color: #d5d9d9; }
.prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose .faq dt { margin-top: 1.1rem; }
.prose .faq dd { color: #d5d9d9; font-size: 1rem; }

/* ---------- phone/tablet tap targets (after the button rules so they win) ---------- */
@media (max-width: 959.98px) {
  .nav-actions .btn-sm { min-height: 44px; padding-block: .625rem; }
}
@media (max-width: 575.98px) {
  .nav-links { gap: 0; justify-content: space-between; }
  .nav-links a { font-size: .875rem; padding: .7rem .45rem; }
}
