/* ToneFlush site — palette lifted from the app's Theme.swift (the dark
   appearance) so the web presence and the product read as the same thing. */
:root {
  --bg:        #06090f;
  --bg-deep:   #04070c;
  --panel:     #101822;
  --panel-deep:#03060a;
  --line:      #202a36;
  --text:      #eaf2f8;
  --text-2:    #9bb0c0;
  --text-3:    #6b8091;
  --dim:       #5a6e7e;
  --accent:      #4fd8e8;
  --accent-soft: #8ae8f2;
  --accent-deep: #0e93ae;
  --on-accent:   #04121a;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Header ---- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--panel-deep);
}

header.site .wrap {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--accent-soft), var(--accent-deep));
  display: grid;
  place-items: center;
  color: var(--on-accent);
  font-weight: 700;
  font-size: 17px;
}

.wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 15px;
}

header.site nav a { color: var(--text-3); text-decoration: none; }
header.site nav a:hover { color: var(--accent); }

/* ---- Type ---- */

h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  font-weight: 700;
}

h2 {
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 52px 0 18px;
  font-weight: 600;
}

h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: var(--text-2); }

.lede { font-size: 20px; color: var(--text-2); margin-bottom: 8px; }

a { color: var(--accent); }
a:hover { color: var(--accent-soft); }

small, .fine { font-size: 14px; color: var(--dim); line-height: 1.6; }

ul, ol { color: var(--text-2); }
li { margin-bottom: 6px; }

/* ---- Cards ---- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
}

.card p:last-child { margin-bottom: 0; }

.card ol, .card ul { margin: 0 0 4px; padding-left: 22px; color: var(--text-2); }

/* ---- Feature list ---- */

.features { display: grid; gap: 14px; }

.feature h3 { color: var(--text); }
.feature p { margin-bottom: 0; color: var(--text-3); font-size: 16px; }

/* ---- The limits panel. Deliberately not styled as a warning: it is the
   honest half of the pitch, not a disclaimer hidden at the bottom. ---- */

.limits {
  background: var(--panel-deep);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-deep);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
}

.limits p:last-child { margin-bottom: 0; }

/* ---- Pattern table ---- */

.patterns { display: grid; gap: 10px; }

.pattern {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.pattern .name { font-weight: 600; color: var(--text); flex: none; min-width: 118px; }
.pattern .spec {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--accent);
  flex: none;
}
.pattern .note { color: var(--text-3); font-size: 15px; flex: 1 1 220px; }

/* ---- Contact block ---- */

.contact {
  background: linear-gradient(150deg, #0e1922, var(--panel-deep));
  border: 1px solid var(--accent-deep);
  border-radius: 14px;
  padding: 24px;
}

.contact .email {
  font-size: 21px;
  font-weight: 600;
  word-break: break-all;
}

/* ---- Footer ---- */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--panel-deep);
  padding: 30px 0 40px;
}

footer.site .wrap { padding-bottom: 0; }

footer.site p { color: var(--dim); font-size: 14px; margin-bottom: 10px; }

footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-bottom: 14px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; margin-top: 40px; }
  .lede { font-size: 18px; }
  .wrap { padding: 0 18px 64px; }
  .pattern .name { min-width: 0; }
}
