/* DSK Digital website. Values come from the DSK Digital brand system tokens.json
   (dark theme). The color core is shared with RingWatch; change it there too. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/Inter-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2"); }

:root {
  --true-black: #0A0A0A;
  --dark-surface: #161616;
  --dark-rule: #2A2A2A;
  --warm-gray: #9A9490;
  --off-white: #FAF7F2;
  --antique-gold: #CDA84A;
  --steel-blue: #7FA3C4;

  --background: var(--true-black);
  --surface: var(--dark-surface);
  --divider: var(--dark-rule);
  --text: var(--off-white);
  --text-secondary: var(--warm-gray);
  --accent: var(--steel-blue);
  --gold-text: var(--antique-gold);

  --sans: "Inter", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-18: 72px;

  --radius-button: 8px;
  --radius-card: 16px;

  --page-max: 1080px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space-4); top: var(--space-4); background: var(--surface); padding: var(--space-2) var(--space-4); z-index: 10; }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-6); }

/* Header */
.site-header { border-bottom: 1px solid var(--divider); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); flex-wrap: wrap;
  padding-top: var(--space-6); padding-bottom: var(--space-6);
}
/* Lockup is 251x104; 52px tall = 125px wide, above the 120px brand minimum. */
.brand img { height: 52px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-6); flex-wrap: wrap; }
.site-nav a {
  font-family: var(--mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none;
  padding: var(--space-2) 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Main */
main { flex: 1; padding: var(--space-18) 0; }

.label {
  font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1.4;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-secondary); margin: 0 0 var(--space-4);
}
.label .num { color: var(--accent); }

.display { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 var(--space-6); max-width: 18ch; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 var(--space-6); }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: var(--space-12) 0 var(--space-3); }
p { margin: 0 0 var(--space-4); }
.lead { font-size: 18px; color: var(--text-secondary); max-width: 60ch; }
.prose { max-width: 65ch; }
.prose h2:first-child { margin-top: 0; }
.small { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

.section { margin-top: var(--space-18); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: var(--space-8);
}
.card h2, .card h3 { margin-top: 0; }
.card h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: var(--space-2); }
.app-card { display: grid; gap: var(--space-4); }
.app-card .tagline { color: var(--text-secondary); margin-bottom: var(--space-2); }

.grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card.placeholder { background: transparent; border-style: dashed; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.button {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 20px; border-radius: var(--radius-button);
  border: 1px solid var(--divider); color: var(--text);
}
.button:hover { border-color: var(--text-secondary); color: var(--text); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--true-black); }
.button.primary:hover { background: var(--text); border-color: var(--text); color: var(--true-black); }

.email { font-size: 24px; font-weight: 600; }

.disclaimer { font-size: 12px; line-height: 1.5; color: var(--text-secondary); margin-top: var(--space-6); max-width: 70ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); padding: var(--space-8) 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-6); }
.site-footer a { font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-4); }
  main { padding: var(--space-12) 0; }
  .display { font-size: 40px; }
  h1 { font-size: 28px; }
  .section { margin-top: var(--space-12); }
  .card { padding: var(--space-6); }
  .site-nav ul { gap: var(--space-4); }
}

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

/* Official store badges (files from Apple and Google, never recreated or recolored).
   Gap 10px = Apple's clear space, 1/4 of the 40px badge height. */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; }
.store-badges a { display: block; line-height: 0; }
.store-badges img { height: 40px; width: auto; }
/* Google's PNG has ~16% transparent padding on every side: 60px tall with -10px
   margins makes the visible badge 40px, matching Apple's (Google asks for same size or larger). */
.store-badges img.play-badge { height: 60px; margin: -10px; }
