/* Antere Software — site styles
   No external requests: system fonts only. */

:root {
  --paper: #f8f9fb;
  --ink: #1a2130;
  --slate: #5a6473;
  --line: #d6dbe3;
  --sea: #0e5a6b;
  --sea-dark: #0a434f;
  --measure: 62ch;
  --wrap: 64rem;

  --sans: ui-sans-serif, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141821;
    --ink: #e8eaef;
    --slate: #a3abb8;
    --line: #2a3140;
    --sea: #6fc3d3;
    --sea-dark: #9adbe6;
  }
}

/* Embedded mode (?embed=1): bare document for in-app WebViews.
   Hides site navigation and tightens vertical spacing. */

.embed .site-header,
.embed .site-footer { display: none; }
.embed .page { padding: 1.25rem 0 2rem; }
.embed .hero { padding: 1.5rem 0 1rem; }

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-dark); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
}

/* Wordmark: "Antere" set tight and heavy, "re" in the accent, "Software" light. */
.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.03em;
  line-height: 1;
}
.brand .re { color: var(--sea); }
.brand .co { font-weight: 400; color: var(--slate); letter-spacing: -.01em; }
.brand:hover .co { color: var(--ink); }

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--sans);
  font-size: .95rem;
}
.site-nav a { color: var(--slate); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* Hero */

.hero { padding: 5.5rem 0 4.5rem; }

.hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.028em;
  margin: 0 0 1.6rem;
  max-width: 18ch;
}

.hero p {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--slate);
  max-width: 44ch;
  margin: 0;
}

/* Labelled sections: label on the left, content on the right */

.row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2rem 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.row > h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: .2rem 0 0;
}

.row .content { max-width: var(--measure); }
.row .content > p { margin: 0 0 1.1rem; }
.row .content > p:last-child { margin-bottom: 0; }
.row .content h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.6rem 0 .4rem;
}
.row .content h3:first-child { margin-top: 0; }

/* Product entry on the home page */

.product a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.product a:hover { color: var(--sea-dark); text-decoration: underline; }
.product-status {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--slate);
  margin-left: .6rem;
}

/* Definition list for company facts */

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .55rem 1.75rem;
  margin: 0;
}
.facts dt { font-family: var(--sans); font-size: .92rem; color: var(--slate); padding-top: .12rem; }
.facts dd { margin: 0; }

/* App product page */

.app-hero {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2rem;
  align-items: start;
  padding: 4rem 0 3rem;
}
.app-hero img {
  width: 6rem; height: 6rem;
  border-radius: 1.35rem;
  display: block;
}
.app-hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0 0 1rem;
}
.app-hero .tagline {
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--slate);
  max-width: 46ch;
  margin: 0;
}
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { margin: 0 0 .9rem; padding-left: 1.1rem; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: .4rem; height: .4rem; border-radius: 50%; background: var(--sea);
}
.feature-list strong { font-family: var(--sans); font-weight: 600; font-size: .98rem; }

@media (max-width: 40rem) {
  .app-hero { grid-template-columns: 1fr; gap: 1.2rem; padding: 2.5rem 0 2rem; }
  .app-hero img { width: 4.5rem; height: 4.5rem; border-radius: 1rem; }
}

/* Long-form pages (privacy, terms) */

.page { padding: 3.5rem 0 2rem; }
.page h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -.022em;
  line-height: 1.1;
  margin: 0 0 .5rem;
}
.page .meta { font-family: var(--sans); color: var(--slate); font-size: .95rem; margin: 0 0 2.5rem; }

.prose { max-width: var(--measure); }
.prose h2 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 2.4rem 0 .6rem;
}
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .4rem; }
.prose address { font-style: normal; }

/* Footer */

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--slate);
}
.site-footer nav { display: flex; gap: 1.3rem; }
.site-footer a { color: var(--slate); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Small screens */

@media (max-width: 40rem) {
  .site-header { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .row { grid-template-columns: 1fr; gap: .9rem; padding: 2.2rem 0; }
  .facts { grid-template-columns: 1fr; gap: .2rem; }
  .facts dd { margin-bottom: .7rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color .12s ease; }
}
