/* SSIDekick on iceamp.com: the landing and support pages. The same tokens as
   the privacy, license and help pages (legal/, help/), plus the Iceamp Labs
   brand colors for the header mark. */
:root {
  --bg: #0f1418; --ink: #e3e7ea; --muted: #9aa5ad; --rule: #2c353c; --link: #4fd8d9;
  --surface: #161d22; --accent: #3ccfc6; --on-accent: #062a28;
  --brand-bg: #0a0a2e; --brand: #39ff14;
  --excellent: #5bd18b; --good: #b5d96b; --fair: #ff9f43; --poor: #ff5c5c;
  color-scheme: dark;
}
/* Dark is the default; assets/theme.js sets data-theme="light" when the visitor picks light. */
:root[data-theme="light"] {
  --bg: #ffffff; --ink: #1b1f24; --muted: #57606a; --rule: #d0d7de; --link: #00696b;
  --surface: #f4f6f8; --accent: #00696b; --on-accent: #ffffff;
  --excellent: #1b7a43; --good: #57730f; --fair: #a14e00; --poor: #c42b2b;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 0; }
a { color: var(--link); }
main, .wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.5rem; margin: 3rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

/* Header: the Iceamp Labs wordmark (logo/D-wordmark, as in the app's About sheet), the app name, then the page links. */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; margin-right: auto; }
.brand img.labs { height: 30px; width: auto; display: block; }
.brand .app { border-left: 1px solid var(--rule); padding-left: 10px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.brand .app img { width: 26px; height: 26px; border-radius: 22%; }
/* The app icon beside the name, shaped like a launcher icon. */
.app-title { display: flex; align-items: center; gap: 18px; margin-bottom: .5rem; }
.app-title h1 { margin: 0; }
.app-icon { width: 88px; height: 88px; border-radius: 22%; box-shadow: 0 2px 10px rgba(0,0,0,.25); flex: none; }
.top nav a { margin-left: 14px; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.top nav a[aria-current] { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 3rem 0 1rem; }
.hero h1 { font-size: 2.6rem; margin: 0 0 .5rem; }
.hero .lead { font-size: 1.2rem; color: var(--muted); }
.hero figure { margin: 0; justify-self: center; }
.shot { width: 100%; max-width: 270px; border: 1px solid var(--rule); border-radius: 18px; display: block; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 1.5rem 0 .5rem; }
.button { display: inline-block; background: var(--accent); color: var(--on-accent); padding: .7rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.button.secondary { background: transparent; color: var(--link); border: 1px solid var(--rule); }
.button[aria-disabled="true"] { opacity: .65; pointer-events: none; }

/* Feature groups: text and a screenshot side by side, alternating. */
.feature { display: grid; grid-template-columns: 1fr 270px; gap: 32px; align-items: center; padding: 2rem 0; border-top: 1px solid var(--rule); }
.feature:nth-of-type(even) { grid-template-columns: 270px 1fr; }
.feature:nth-of-type(even) figure { order: -1; }
.feature figure { margin: 0; }
.feature ul { padding-left: 1.2rem; margin: .5rem 0 0; }
.feature li { margin: .3rem 0; }
.pro { font-size: .75rem; font-weight: 600; border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; padding: 0 .3rem; vertical-align: 1px; }

/* Free and Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem; }
.plan .price { font-size: 1.6rem; font-weight: 600; margin: .25rem 0 .75rem; }
.plan ul { padding-left: 1.2rem; margin: 0; }

.notice { border-left: 3px solid var(--link); padding: .25rem 0 .25rem 1rem; }

/* Support form */
form { display: grid; gap: 14px; max-width: 40rem; }
label { font-weight: 600; display: grid; gap: 6px; }
label span { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: .6rem .7rem; width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
.tabs { display: flex; gap: 8px; margin: 1rem 0 1.5rem; }
.tabs button, .choice label { font: inherit; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.choice { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.choice legend { font-weight: 600; margin-bottom: 6px; }
.choice input { position: absolute; opacity: 0; }
.choice label { font-weight: 400; display: inline-block; }
.choice input:checked + label { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.choice input:focus-visible + label { outline: 2px solid var(--link); outline-offset: 2px; }
pre.context { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: .75rem; font-size: .8rem; white-space: pre-wrap; margin: 0; }
.status { min-height: 1.6em; }
.status.ok { color: var(--excellent); }
.status.err { color: var(--poor); }

footer { border-top: 1px solid var(--rule); margin-top: 4rem; padding: 1.5rem 0 3rem; color: var(--muted); font-size: .95rem; }
footer a { display: inline-block; margin-right: 14px; white-space: nowrap; }

@media (max-width: 760px) {
  .hero, .feature, .feature:nth-of-type(even), .plans { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) figure { order: 0; }
  .hero h1 { font-size: 2rem; }
  .hero figure, .feature figure { justify-self: center; }
  .top nav { width: 100%; }
  .top nav a { margin: 0 14px 0 0; }
}

.demo { text-align: center; padding: 1rem 0 .5rem; }
.demo video { margin: 0 auto; background: var(--rule); }
