/*
 * AirNote's own site, on top of EMIAC's site.css and the AirNote product sections in
 * airnote.css. Only what this site adds lives here: the product brand in the header and
 * footer, the status pill drawn the way the app now draws it, and the changelog, guide and
 * legal pages. Same tokens, same type, same column as the company site.
 */

/* ---------- Brand: AirNote, by EMIAC ---------- */

/* The light-theme lockup from the app: EMIAC-blue bars on a white tile. */
.an-brand img {
  border-radius: 7px;
  box-shadow: 0 1px 2px rgb(15 18 22 / 0.06);
}

.an-by {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* The chip belongs to the name: 10px from it, not the bar's 36px gap. */
  margin-left: -26px;
  padding: 4px 9px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.an-by span {
  color: var(--faint);
}

.an-by img {
  width: auto;
  height: 12px;
}

/* The menu links carry 12px of padding; pull them in so the first word sits one
   bar-gap (36px) from the chip, the way EMIAC's menu sits from its name. */
.an-by + .menu {
  margin-left: -12px;
}

.an-by:hover {
  border-color: #cfd3d8;
  color: var(--ink);
}

.an-apple {
  width: 15px;
  height: 15px;
  margin: -2px 7px 0 -2px;
  fill: currentColor;
}

.nav-sales .an-apple {
  width: 13px;
  height: 13px;
  margin-right: 6px;
}

@media (max-width: 960px) {
  .an-by {
    display: none;
  }
}

.an-foot-line {
  max-width: 260px;
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.an-foot-line a {
  color: var(--ink);
}

/* "AirNote" is two letters longer than "EMIAC"; the mark keeps the same width. */
.an-foot-mark span {
  font-size: clamp(80px, 20.5vw, 350px);
  letter-spacing: -0.06em;
}

/* ---------- The status pill, as the app draws it now ---------- */
/* A small ink capsule: a red live dot and nine dots that rise with the voice, a check
   that draws itself when the text lands, a label row for notes. */

.an-hud {
  width: auto;
  height: 34px;
  padding: 0 14px 0 13px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #1c1c21, #0e0e12);
  box-shadow:
    inset 0 0.5px 0 rgb(255 255 255 / 0.14),
    inset 0 0 0 0.5px rgb(255 255 255 / 0.08),
    0 1px 2px rgb(8 10 20 / 0.3),
    0 10px 26px -8px rgb(8 10 20 / 0.5);
  color: #f2f3f7;
  font-size: 13px;
}

.an-hud-state {
  gap: 9px;
}

.an-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5596a;
  animation: an-live 1.2s ease-in-out infinite;
}

@keyframes an-live {
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgb(245 89 106 / 0.2);
  }
}

.an-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.an-dots i {
  width: 3.5px;
  height: 3.5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  animation: an-dot 0.9s ease-in-out infinite alternate;
}

.an-dots i:nth-child(1),
.an-dots i:nth-child(9) {
  --h: 7px;
  animation-delay: -0.1s;
}
.an-dots i:nth-child(2),
.an-dots i:nth-child(8) {
  --h: 11px;
  animation-delay: -0.45s;
}
.an-dots i:nth-child(3),
.an-dots i:nth-child(7) {
  --h: 14px;
  animation-delay: -0.25s;
}
.an-dots i:nth-child(4),
.an-dots i:nth-child(6) {
  --h: 17px;
  animation-delay: -0.6s;
}
.an-dots i:nth-child(5) {
  --h: 18px;
  animation-delay: -0.35s;
}

@keyframes an-dot {
  from {
    height: 3.5px;
  }
  to {
    height: var(--h, 12px);
  }
}

.an-hud-check {
  width: 34px;
  padding: 0;
}

.an-hud-check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #9fb4ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.an-hud-label {
  padding: 0 5px 0 12px;
}

.an-hud-label .an-hud-state {
  gap: 8px;
}

.an-hud-label .an-book {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #9fb4ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.an-hud-label b {
  color: #fff;
  font-weight: 600;
}

.an-hud-label em {
  margin-left: 2px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgb(159 180 255 / 0.14);
  color: #9fb4ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.an-rule-list em {
  font-style: normal;
}

/* Clario C1: the model inside, in the dark band. */
.an-c1-lede {
  max-width: 620px;
  margin-top: 22px;
  color: rgb(255 255 255 / 0.66);
  font-size: 18px;
  line-height: 1.55;
}

.an-c1-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 56px 0 0;
}

.an-c1-stats div {
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.an-c1-stats dt {
  color: #fff;
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 440;
  letter-spacing: -0.035em;
  line-height: 1;
}

.an-c1-stats dd {
  margin: 12px 0 0;
  color: rgb(255 255 255 / 0.6);
  font-size: 15px;
  line-height: 1.45;
}

.an-trust-more svg {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 800px) {
  .an-c1-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.an-trust-more {
  margin-top: 48px;
}

.an-trust-more a {
  color: #fff;
  font-size: 15px;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .an-live,
  .an-dots i {
    animation: none;
  }
  .an-dots i {
    height: var(--h, 10px);
  }
}

/* ---------- Inner pages: changelog, guide, legal ---------- */

.doc-hero {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 150px 0 56px;
}

.doc-hero .eyebrow {
  margin-bottom: 14px;
}

.doc-hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.doc-hero .lede {
  max-width: 620px;
  margin-top: 20px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

.doc-hero .doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.doc-hero .actions {
  justify-content: flex-start;
  margin-top: 30px;
}

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 72px;
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 24px 0 140px;
  border-top: 1px solid var(--line);
}

.doc-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  padding-top: 28px;
}

.doc-toc p {
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.doc-toc a:hover {
  color: var(--ink);
}

.prose {
  padding-top: 20px;
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
}

.prose h2 {
  margin: 56px 0 14px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  scroll-margin-top: 100px;
}

.prose h2:first-child {
  margin-top: 8px;
}

.prose h3 {
  margin: 30px 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 540;
  letter-spacing: -0.01em;
}

.prose p + p,
.prose ul + p,
.prose p + ul,
.prose table + p {
  margin-top: 14px;
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.prose li {
  margin: 6px 0;
  padding-left: 4px;
}

.prose li::marker {
  color: var(--faint);
}

.prose strong {
  color: var(--ink);
  font-weight: 560;
}

.prose a {
  color: var(--brand);
  text-underline-offset: 3px;
}

.prose code,
.prose kbd {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--sheet);
  color: var(--ink-2);
  font: 500 0.86em/1 var(--mono);
}

/* Keys are set in the system face: the mono face has no ⌘ ⌥ ⇧ ⌃ glyphs. */
.prose kbd,
.keys kbd {
  display: inline-block;
  min-width: 1.75em;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font: 500 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font);
  text-align: center;
}

.prose kbd + kbd,
.keys kbd + kbd {
  margin-left: 3px;
}

.prose code {
  word-break: break-word;
}

.prose table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.prose td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.prose .callout {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--wash);
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.prose .callout b {
  color: var(--ink);
  font-weight: 560;
}

@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .doc-toc {
    display: none;
  }
  .doc-hero {
    padding-top: 120px;
  }
}

/* ---------- Changelog ---------- */

.cl {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding-bottom: 140px;
}

.cl-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 72px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.cl-side {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cl-version {
  color: var(--ink);
  font-size: 28px;
  font-weight: 460;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.cl-side time {
  color: var(--muted);
  font-size: 14px;
}

.cl-tag {
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
}

.cl-tag-soon {
  background: var(--sheet);
  color: var(--muted);
}

.cl-body h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.cl-summary {
  margin-top: 14px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

.cl-group {
  margin-top: 30px;
}

.cl-group h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 540;
}

.cl-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-group li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.55;
}

.cl-group li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-hi);
  opacity: 0.55;
}

.cl-get {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}

.cl-get a {
  color: var(--brand);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .cl-entry {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cl-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
  }
}

/* ---------- Guide ---------- */

.keys {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.keys div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  font-size: 15px;
}

.keys dt {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.keys dd {
  margin: 0;
  color: var(--body);
}

@media (max-width: 600px) {
  .keys div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 140px var(--gutter) 80px;
  text-align: center;
}

.lost h1 {
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.035em;
}

.lost p {
  max-width: 420px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.lost .actions {
  justify-content: center;
  margin-top: 28px;
}
