/* Flimmer web pages — the same tokens as ios/Flimmer/Support/Theme.swift.
   Kept in one file so the marketing, privacy, terms and support pages cannot
   drift apart from each other or from the app. */
:root {
  --ink: #0a0a0c;
  --surface: #141418;
  --hairline: #2a2a32;
  --bulb: #ffb454;
  --bulb-light: #ffe2b0;
  --text: #f4f2ee;
  --text-secondary: #9c9aa4;
  --text-tertiary: #85838d;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

main { max-width: 42rem; margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 36px 0 8px;
}

.mark {
  width: 28px;
  height: 30px;
  object-fit: contain;
  flex: none;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
header nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 14px; }
header nav a { color: var(--text-secondary); }
.beta { color: var(--bulb); font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; }
a:focus-visible { outline: 2px solid var(--bulb); outline-offset: 6px; border-radius: 2px; }

.wordmark {
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

h1 {
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 600;
  margin: 28px 0 6px;
}

h2 {
  font-family: "New York", "Iowan Old Style", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  margin: 36px 0 8px;
}

.updated {
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 0 0 28px;
}

p, li { color: var(--text-secondary); }
strong { color: var(--text); font-weight: 600; }

ul { padding-left: 20px; }
li { margin: 6px 0; }

a { color: var(--bulb); text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0;
}

.lede { color: var(--text); font-size: 18px; }

.landing main { max-width: 66rem; }
.hero { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: 32px; padding: 92px 0 76px; }
.eyebrow { color: var(--bulb); font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; margin: 0 0 22px; }
.hero h1 { font-size: clamp(42px, 5.8vw, 72px); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em; margin: 0 0 26px; }
.hero h1 em { color: var(--bulb-light); font-weight: 500; }
.hero .lede { max-width: 33rem; color: var(--text-secondary); line-height: 1.65; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 310px); height: auto; }
.landing-copy { max-width: 42rem; }
.landing .card { border-left: 2px solid var(--bulb); border-radius: 0 14px 14px 0; }
.landing h2 { font-size: 28px; margin-top: 44px; }
.landing footer { margin-top: 76px; }

@media (max-width: 700px) {
  header { padding-top: 26px; }
  header nav { gap: 16px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 52px 0 32px; }
  .hero-art { grid-row: 1; justify-content: flex-start; }
  .hero-art img { width: 100px; }
  .hero h1 { font-size: clamp(42px, 9vw, 62px); }
  .hero .lede { font-size: 17px; }
}

@media (max-width: 360px) {
  header nav .beta { display: none; }
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 0.5px solid var(--hairline);
  color: var(--text-tertiary);
  font-size: 13px;
}

footer a { color: var(--text-secondary); }

table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 0.5px solid var(--hairline);
  vertical-align: top;
  font-size: 15px;
}
th { color: var(--text); font-weight: 600; }
td { color: var(--text-secondary); }

/* The Apple TV setup page (CONTRACT §4.11a). Phone-first: one column, fields
   at 17 px so iOS never zooms into them, and buttons a thumb can find. */
[hidden] { display: none !important; }
.pair main { max-width: 30rem; }
.pair h1 { font-size: 30px; margin-top: 20px; }
.pair h2 { font-size: 19px; margin: 0 0 10px; }
.pair .lede { font-size: 17px; }
.pair .card { margin: 16px 0; }
.pair .flush { margin: 0; }
.pair .eyebrow {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.pair .code-card { text-align: center; }
.pair .code {
  margin: 0;
  color: var(--bulb);
  font: 600 30px/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.pair label {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.pair input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.pair input:focus { outline: none; border-color: var(--bulb); }
.pair input:disabled { opacity: 0.6; }
.pair .fine { font-size: 13px; line-height: 1.5; color: var(--text-tertiary); margin: 14px 0; }
.pair .warning {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  border-left: 2px solid var(--bulb);
  padding-left: 12px;
  margin: 10px 0 4px;
}
.pair .error {
  color: var(--text);
  font-size: 15px;
  border-left: 2px solid var(--bulb);
  padding-left: 12px;
  margin: 14px 0;
}
.pair .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 600 17px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
}
.pair .button:hover { text-decoration: none; }
.pair .button.primary { background: var(--bulb); color: var(--ink); }
.pair .button.primary:disabled { opacity: 0.6; cursor: progress; }
.pair .button.secondary { background: transparent; border-color: var(--hairline); color: var(--text); }
.pair .button.quiet { background: transparent; color: var(--bulb); min-height: 44px; margin-top: 4px; }
.pair .button:focus-visible { outline: 2px solid var(--bulb); outline-offset: 3px; }
.pair .outcome:focus { outline: none; }
.pair footer { margin-top: 36px; }
