/* ════════════════════════════════════════════════════════════════
   NovoTech Software — landing page styles
   Mobile-first; desktop layout kicks in at 880px.
   Brand tokens live in :root — edit them here to retheme the site.
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #212020;                          /* page background */
  --surface: #1B1A17;                     /* cards */
  --surface-hover: #201E19;
  --text: #E8E2D6;                        /* on-surface text */
  --text-strong: rgba(232, 226, 214, .85);
  --text-body: rgba(232, 226, 214, .72);
  --text-muted: rgba(232, 226, 214, .62);
  --text-faint: rgba(232, 226, 214, .5);
  --gold: #E1A500;                        /* primary accent */
  --gold-hover: #F0B41E;
  --on-gold: #171204;                     /* text on gold buttons */
  --line: rgba(232, 226, 214, .09);       /* section separators */
  --card-line: rgba(232, 226, 214, .1);   /* card borders */
  --pad: clamp(20px, 5vw, 40px);          /* page side padding */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Material Symbols icon glyphs */
.msym {
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  user-select: none;
}

/* ── ① Hero ───────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(36px, 7vw, 72px);
  padding-bottom: clamp(30px, 5vw, 52px);
}

.hero-logo {
  width: min(360px, 72vw);
  height: auto;
  display: block;
  margin-left: -9px; /* optical alignment: the SVG has built-in padding */
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: clamp(20px, 4vw, 32px) 0 12px;
  max-width: 640px;
  text-wrap: pretty;
}

.hero p {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 580px;
  text-wrap: pretty;
}

/* ── ② App carousel ───────────────────────────────────────────── */

.apps-nav { padding-bottom: clamp(36px, 6vw, 60px); }

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-hint {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  /* Mandatory on mobile so a swipe always lands on exactly one card;
     relaxed to proximity at 880px where three are visible at once. */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-top: 16px;
  padding: 4px 0 8px;
}

.carousel::-webkit-scrollbar { display: none; }

/* Cards per view: 1 on phones, 2 from 600px, 3 from 880px (see below).
   Widths subtract the 12px gaps so a whole number of cards fits. */
.card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s ease, background .15s ease;
}

@media (min-width: 600px) {
  .card { width: calc((100% - 12px) / 2); }
}

.card:hover {
  border-color: rgba(225, 165, 0, .55);
  background: var(--surface-hover);
}

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

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(225, 165, 0, .12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon .msym { font-size: 21px; }

.card-app {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 226, 214, .55);
}

.card-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 6px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.ctrl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(232, 226, 214, .22);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color .15s ease, color .15s ease;
}

.ctrl-btn .msym { font-size: 22px; }

.ctrl-btn:hover { border-color: var(--gold); color: var(--gold); }
.ctrl-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── ③ App showcase sections ──────────────────────────────────── */

.app {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 7vw, 84px) 0;
  display: flex;
  flex-direction: column;         /* mobile: text above phone */
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  scroll-margin-top: 24px;        /* breathing room for #deep-links */
}

.app-info { width: 100%; }

.app-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.app-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.app-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.app h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 10px;
}

.app-tagline {
  font-size: clamp(15.5px, 2vw, 17px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-strong);
  margin: 0 0 10px;
  max-width: 520px;
  text-wrap: pretty;
}

.app-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 18px;
  max-width: 520px;
  text-wrap: pretty;
}

.features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 520px;
}

.features .msym {
  font-size: 18px;
  line-height: 1.3;
  color: var(--gold);
  flex: 0 0 auto;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s ease;
}

.play-btn .msym { font-size: 20px; }

.play-btn:hover { background: var(--gold-hover); }
.play-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Button row for every app section — one button (Google Play) for most,
   two where the app also ships elsewhere (Beam — Play + web app).
   1fr tracks inside a fit-content grid size every button to the widest
   one, so they match without stretching to fill the column. Stacked and
   centred on mobile; side by side and left-aligned from 880px. */
.app-actions {
  display: grid;
  grid-auto-columns: 1fr;
  gap: 12px;
  width: fit-content;
  margin-inline: auto;
}

.app-actions .play-btn { justify-content: center; }

/* Outlined companion to .play-btn — same box, secondary weight. */
.play-btn.alt {
  background: transparent;
  color: var(--gold);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.play-btn.alt:hover {
  background: rgba(225, 165, 0, .1);
  color: var(--gold-hover);
}

.play-btn.alt:focus-visible { outline-color: var(--gold); }

.phone {
  width: min(290px, 82vw);
  background: #060606;
  border: 1px solid rgba(232, 226, 214, .16);
  border-radius: 42px;
  padding: 11px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 32px;
}

/* ── ④ Footer ─────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.site-footer .container {
  padding-top: 30px;
  padding-bottom: 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(232, 226, 214, .55);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
}

.footer-links a {
  color: rgba(232, 226, 214, .75);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 226, 214, .25);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}

.footer-links a:hover { color: var(--gold); border-color: var(--gold); }

/* ── Desktop layout ───────────────────────────────────────────── */

@media (min-width: 880px) {
  .carousel { scroll-snap-type: x proximity; }
  .card { width: calc((100% - 24px) / 3); } /* 3 per row */

  .app-actions { grid-auto-flow: column; margin-inline: 0; } /* side by side, left-aligned */

  .app { flex-direction: row; }
  .app:nth-of-type(even) { flex-direction: row-reverse; } /* alternate sides */
  .app-info { flex: 1 1 340px; min-width: 0; width: auto; }
  .app-phone { flex: 0 0 auto; }
}
