/* help.skycomm.com.au: one page, no third-party requests, no inline style (strict CSP).
 * Theme = the www.skycomm.com.au website (Tailwind): navy primary, orange accent, gray/slate neutrals, Inter.
 * Navy carries every primary action; orange is accent only (white on orange is ~2.2:1 and fails WCAG). */

/* Inter (variable, latin, wght 100-900), @fontsource-variable/inter 5.3.0, SIL OFL 1.1: fonts/Inter-OFL-LICENSE.txt */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.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 {
  --primary: #1e3a5f;
  --primary-dark: #152a45;
  --primary-light: #2a4f7f;
  --accent: #f7941d;
  --accent-dark: #d97b0a;
  --accent-light: #ffad42;
  --heading: #111827;        /* gray-900 */
  --text: #374151;           /* gray-700 */
  --muted: #4b5563;          /* gray-600 */
  --border: #e5e7eb;         /* gray-200 */
  --border-strong: #cbd5e1;  /* slate-300, form controls */
  --panel: #f9fafb;          /* gray-50 */
  --bg: #ffffff;
  --error: #b42318;
  --error-bg: #fef3f2;
  --notice-bg: #fff7ed;      /* orange-50 */
  --radius: 0.75rem;         /* rounded-xl */
  --radius-sm: 0.5rem;       /* rounded-lg */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 8px 12px; z-index: 10; border-radius: var(--radius-sm);
}
.skip:focus { left: 8px; top: 8px; }

/* Header: the website's (white, border-b gray-200, shadow-sm, 80px) plus a thin orange accent line. */
.top { background: #fff; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.top .wrap { max-width: 1280px; }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 77px; }
.brand { display: block; line-height: 0; }
.logo { display: block; height: 52px; width: auto; }
.top-label { color: var(--muted); font-size: 15px; font-weight: 500; border-left: 1px solid var(--border); padding-left: 16px; }
.back { margin-left: auto; color: var(--primary); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--primary-dark); text-decoration: underline; }
.back-short { display: none; }

main.wrap { padding-top: 36px; padding-bottom: 48px; }

h1 { color: var(--heading); font-size: 32px; line-height: 1.2; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; }
h1:focus { outline: none; }
h2 { color: var(--heading); font-size: 21px; font-weight: 700; margin: 36px 0 14px; letter-spacing: -0.01em; }
h3 { color: var(--heading); font-size: 18px; font-weight: 600; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; }
.help { color: var(--muted); font-size: 15px; }
.nowrap { white-space: nowrap; }
strong { color: var(--heading); font-weight: 600; }

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

.key-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px; margin: 22px 0;
}
.key-form label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.key-row { display: flex; gap: 10px; flex-wrap: wrap; }
.key-row input {
  flex: 1 1 220px; min-width: 0;
  font: 600 28px/1.2 ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border: 2px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--heading);
}
.key-row input:focus-visible { border-color: var(--primary); }
.key-row input[aria-invalid="true"] { border-color: var(--error); }
.key-row input::placeholder { color: #9ca3af; }

.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.2;
  padding: 14px 24px; border-radius: var(--radius-sm); border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-primary[disabled] { opacity: 0.65; cursor: progress; }
.btn-big { font-size: 19px; padding: 16px 30px; box-shadow: var(--shadow-sm); }

.error { color: var(--error); background: var(--error-bg); border-radius: var(--radius-sm); padding: 10px 12px; margin: 12px 0 0; }
.notice { background: var(--notice-bg); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 14px; }
.caution { color: var(--muted); font-size: 15px; }

.download { margin: 24px 0 10px; }

.steps { list-style: none; padding: 0; margin: 0; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px; margin-bottom: 14px;
}
.step img { flex: 0 0 auto; width: 200px; height: auto; border-radius: var(--radius-sm); background: var(--panel); }
.num {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent); color: var(--primary-dark); font-size: 15px; font-weight: 700;
}

.restart { margin-top: 18px; }

.privacy { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 4px; font-size: 15px; color: var(--muted); }
.privacy h2 { font-size: 18px; }

.open-full { font-size: 15px; }

/* Footer: the website's navy band. */
.foot { background: var(--primary); color: #fff; font-size: 15px; padding: 28px 0 32px; }
.foot .wrap { max-width: 1280px; }
.foot p { margin: 0 0 6px; }
.foot a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--accent-light); }
.foot a:focus-visible { outline-color: var(--accent-light); }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-title { font-weight: 600; }
.foot-right { text-align: right; }
.copy { color: #cbd5e1; }

[hidden] { display: none !important; }

/* Embedded in the skycomm.com.au Remote support page (app.js sets .framed): no own header/footer, less air. */
.framed .top, .framed .foot, .framed .skip { display: none; }
.framed main.wrap { padding-top: 8px; padding-bottom: 8px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
  .wrap { padding: 0 16px; }
  .top-row { min-height: 64px; gap: 12px; }
  .logo { height: 40px; }
  .top-label { display: none; }
  .back-long { display: none; }
  .back-short { display: inline; }
  .step { flex-direction: column; }
  .step img { width: 100%; max-width: 320px; }
  .key-row .btn { width: 100%; }
  .btn-big { width: 100%; }
  .foot-right { text-align: left; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease; }
}
