/* Mermer — mermer.live
   Accent teal matches the app's AccentColor (dark variant #4CC7D6). */

:root {
  --ink: #0a0f12;
  --ink-2: #10171b;
  --ink-3: #172128;
  --line: #22303a;
  --text: #e8f0f3;
  --muted: #9db0bb;
  --teal: #4cc7d6;
  --teal-dim: #2aabbe;
  --shell: 68rem;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

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

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--teal);
  text-decoration-color: rgba(76, 199, 214, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--teal);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 650;
}

h3 {
  font-size: 1.12rem;
  font-weight: 640;
}

p {
  margin: 0 0 1rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 18, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 680;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark img {
  border-radius: 8px;
  display: block;
}

.masthead nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.95rem;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current] {
  color: var(--text);
}

.masthead nav a[aria-current] {
  box-shadow: inset 0 -2px 0 var(--teal);
}

/* ---------- hero ---------- */

main {
  padding-bottom: 4rem;
}

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(60rem 26rem at 18% -12%, rgba(42, 171, 190, 0.16), transparent 70%),
    linear-gradient(var(--ink), var(--ink-2));
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 640;
  color: var(--teal);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.03rem, 2vw, 1.16rem);
  color: var(--muted);
  max-width: 40ch;
}

h1 + .lede {
  margin-top: 1.2rem;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

/* transcript card in the hero */

.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.card__bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5484d;
  flex: none;
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-left: auto;
}

.wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--teal-dim);
}

.turn {
  margin-bottom: 0.95rem;
}

.turn:last-child {
  margin-bottom: 0;
}

.turn__who {
  font-size: 0.79rem;
  font-weight: 660;
  letter-spacing: 0.03em;
  color: var(--teal);
  margin: 0 0 0.2rem;
}

.turn__who span {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.5rem;
}

.turn p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
}

.turn mark {
  background: rgba(76, 199, 214, 0.22);
  color: var(--text);
  border-radius: 3px;
  padding: 0 2px;
}

/* ---------- sections ---------- */

section {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.5rem 2rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.75rem 2rem;
}

.steps li {
  counter-increment: step;
  padding-top: 2.6rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 680;
  color: var(--ink);
  background: var(--teal);
}

.steps h3 {
  margin-bottom: 0.45rem;
}

.steps p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

.callout {
  margin-top: 2.25rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.callout strong {
  color: var(--text);
}

/* ---------- inner pages ---------- */

.page-head {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(1.5rem, 3vw, 2rem);
}

.updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1.25rem;
}

.prose {
  max-width: 46rem;
  padding-bottom: 2rem;
}

.prose h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: 1.34rem;
}

.prose ul {
  color: var(--muted);
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose p {
  color: var(--muted);
}

.prose strong,
.prose em {
  color: var(--text);
}

.prose .callout p {
  color: var(--muted);
}

/* FAQ */

.faq {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.25rem 1.1rem 0;
  font-weight: 600;
  position: relative;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq__body {
  padding: 0 0 1.15rem;
}

.faq__body p:last-child,
.faq__body ul:last-child {
  margin-bottom: 0;
}

/* contact */

.contact {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-top: 1rem;
}

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

.contact__address {
  font-size: 1.14rem;
  font-weight: 620;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

footer nav {
  display: flex;
  gap: 1.35rem;
}

footer nav a {
  color: var(--muted);
  text-decoration: none;
}

footer nav a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
