/* Deskalong website. Colours and type from Brand/README.md. */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --tide: #0D9488;
  --tide-deep: #0B6E65;
  --tide-tint: #CCF2EC;
  --ink: #0F1B1E;
  --mist: #EEF2F2;
  --bg: #FFFFFF;
  --surface: var(--mist);
  --text: var(--ink);
  --muted: #4B5B5F;
  --link: var(--tide-deep);
  --line: #DCE3E3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1416;
    --surface: #132124;
    --text: #E8EEEE;
    --muted: #9AAAAD;
    --link: #14B8A6;
    --line: #22343A;
    --tide-tint: #113A36;
  }
  .wordmark-ink { display: none; }
}
@media (prefers-color-scheme: light) {
  .wordmark-white { display: none; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 "Inter", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.005em;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }

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

/* Header */
header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header.site .brand { display: flex; align-items: center; gap: 10px; }
header.site .brand img.mark { width: 28px; height: 28px; border-radius: 7px; }
header.site .brand img.word { height: 22px; width: auto; }
header.site nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
header.site nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 48px 0 72px; text-align: center; }
.hero .icon { width: 160px; height: 160px; filter: drop-shadow(0 18px 40px rgba(13, 148, 136, 0.28)); }
.hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 28px 0 14px; font-weight: 650; }
.hero p.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
.button.primary { background: var(--tide); color: #fff; }
.button.primary:hover { background: var(--tide-deep); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { background: var(--surface); }
/* A state, not a broken button. */
.button[aria-disabled="true"] { background: var(--surface); color: var(--muted); border-color: var(--line); pointer-events: none; }
.status { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0; color: var(--text); font-weight: 500; }
.fineprint { font-size: 14px; color: var(--muted); margin-top: 14px; }
#pricing .fineprint { max-width: 820px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; font-weight: 650; }
.section-lede { color: var(--muted); max-width: 640px; margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { font-size: 18px; margin: 10px 0 6px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.chip {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--tide-deep); background: var(--tide-tint); border-radius: 999px; padding: 3px 9px;
}
@media (prefers-color-scheme: dark) { .chip { color: #5EEAD4; } }
.glyph {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--tide-tint); color: var(--tide-deep);
}
@media (prefers-color-scheme: dark) { .glyph { color: #5EEAD4; } }
.glyph svg { width: 20px; height: 20px; }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 720px; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
ol.steps li::before {
  content: counter(step); width: 32px; height: 32px; border-radius: 50%;
  background: var(--tide); color: #fff; font-weight: 650; display: grid; place-items: center;
}
ol.steps strong { display: block; }
ol.steps span { color: var(--muted); }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; }
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: var(--bg); }
.plan.pro { border-color: var(--tide); box-shadow: 0 0 0 1px var(--tide) inset; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 34px; font-weight: 650; letter-spacing: -0.02em; margin: 8px 0 4px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 18px; margin: 14px 0 0; color: var(--muted); }
.plan li { margin: 6px 0; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; padding-right: 26px; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 2px; top: 0; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Long-form pages */
article { padding: 24px 0 72px; }
article h1 { font-size: 40px; letter-spacing: -0.025em; margin: 12px 0 6px; }
article h2 { font-size: 22px; margin: 36px 0 8px; }
article p, article li { color: var(--text); }
article .updated { color: var(--muted); font-size: 15px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-right: 16px; }

/* Phones: one row of header links. */
@media (max-width: 520px) {
  header.site nav a { margin-left: 14px; font-size: 14px; }
  header.site nav a[href="#features"] { display: none; }
  header.site .brand img.word { height: 19px; }
}

/* Problem codes on the support page */
.codes dt { font-weight: 600; margin-top: 0.9em; }
.codes dt.group { margin-top: 1.6em; font-size: 0.8em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.codes dd { margin: 0.2em 0 0; }
.codes code { font-variant-numeric: tabular-nums; margin-right: 0.35em; }

/* The licenses page: long notice texts */
pre.license { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
pre.license.components { color: inherit; }
