/* Industry design system — tokens and components */
:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-accent-2: #728fab;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 3.4px; --space-2: 6.8px; --space-3: 10.2px;
  --space-4: 13.6px; --space-6: 20.4px; --space-8: 27.2px;

  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 7px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); text-wrap: pretty;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1{font-size:42px}h2{font-size:32px}h3{font-size:25px}h4{font-size:20px}
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-700); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* Blueprint */
.blueprint {
  position: relative; border: 1px solid var(--color-divider); border-radius: 0;
}
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid var(--color-divider);
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: 0;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }

/* Tags */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px; border-radius: 0;
}
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* Nav */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto; color: var(--color-text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--color-accent); }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* Utility */
.cim-line { display: block; }

/* Clock face-size tokens — changed at breakpoints so vw-based sizes
   reflect the actual container width, not just the viewport. */
:root {
  --clock-fs-sm: clamp(13px, 2.4vw, 26px);    /* theme showcase (2-col) */
  --clock-fs-hero: clamp(20px, 5.4vw, 62px);  /* hero full-width */
  --clock-fs-cast: clamp(22px, 4.8vw, 58px);  /* TV/cast demo */
}

/* Responsive */
.nav-links { display: flex; align-items: center; gap: var(--space-4); }
.nav-cta-mobile { display: none; }

@media (max-width: 700px) {
  .platforms-grid { grid-template-columns: 1fr 1fr !important; }
  .faq-grid { grid-template-columns: 1fr !important; }
  .how-grid { grid-template-columns: 1fr !important; }
  .themes-grid { grid-template-columns: 1fr !important; }
  .cta-grid { grid-template-columns: 1fr !important; }
  .cast-grid { grid-template-columns: 1fr !important; }
  .cast-tv { order: -1; }
  .nav-links { display: none; }
  .nav-cta-mobile { display: inline-flex; }
  /* Themes are now single-column full-width — boost face size */
  :root { --clock-fs-sm: clamp(24px, 7.5vw, 36px); --clock-fs-cast: clamp(18px, 7vw, 36px); }
}
@media (max-width: 480px) {
  .platforms-grid { grid-template-columns: 1fr !important; }
  :root { --clock-fs-hero: clamp(22px, 8vw, 48px); }
}

/* Store badges — fixed 150×44 bounding box, unified 10px corner radius */
.store-badge { display: inline-block; text-decoration: none; }
.store-badge img { width: 150px; height: 44px; object-fit: contain; display: block; border-radius: 10px; }
.store-badge:hover { opacity: 0.85; }

/* Footer language switcher */
.lang-switcher { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--color-divider); }
.lang-switcher a { text-decoration: none; color: inherit; opacity: 0.75; }
.lang-switcher a:hover { opacity: 1; }
.lang-switcher .lang-current { font-weight: 600; opacity: 1; }
