/*
 * Uttr website — styles
 * Theme: black, red and white, taken from the Uttr logo.
 */

:root {
  --black: #0d0c0a;        /* page background */
  --ink: #1b1a17;          /* cards and panels (the logo's tile colour) */
  --ink-raised: #252320;   /* hover / alternate sections */
  --line: #33302b;         /* borders */
  --white: #ffffff;
  --cream: #f4f1ea;        /* body text (the logo's "u") */
  --muted: #a8a397;        /* secondary text */
  --red: #e0492f;          /* the logo's sound waves */
  --red-dark: #c73c24;     /* button hover */
  --red-glow: rgba(224, 73, 47, 0.18);
  --radius: 16px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  /* Anchor links land below the sticky nav, not under it. */
  scroll-padding-top: 80px;
}

body {
  background: var(--black);
  color: var(--cream);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.red {
  color: var(--red);
}

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

h1, h2, h3 {
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 40px;
}

h3 {
  font-size: 19px;
  font-weight: 700;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

kbd {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--ink-raised);
  color: var(--white);
  font: 600 0.85em/1.5 "Inter", system-ui, sans-serif;
}

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--ink-raised);
  color: var(--white);
  font-size: 0.9em;
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-outline {
  border: 2px solid var(--line);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--red);
}

.btn-small {
  padding: 8px 16px;
  font-size: 15px;
}

.btn-big {
  padding: 16px 24px;
  font-size: 18px;
  text-align: left;
}

.btn-big svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: currentColor;
}

.btn small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 3px;
}

/* ---------------------------------------------------------------- Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 12, 10, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative;
  padding: 88px 0 96px;
  /* A soft red glow behind the hero. */
  background: radial-gradient(ellipse 60% 55% at 78% 45%, var(--red-glow), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.lead {
  font-size: 19px;
  color: var(--cream);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-buttons.centered {
  justify-content: center;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* The hero image: an article being read by Uttr's bar */
.hero-visual {
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.keys-float {
  position: absolute;
  top: -18px;
  right: -8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-8px); }
}

/* People who've asked their system for less motion get a still page. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .keys-float { animation: none; }
  .btn { transition: none; }
}

/* ---------------------------------------------------------------- Live stats band */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.stats-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 56px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat[hidden] {
  display: none;
}

.stat-icon {
  font-size: 20px;
  align-self: center;
}

.stat-number {
  color: var(--red);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; /* digits don't jiggle while counting up */
}

.stat-label {
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------------------------------------------- Showcase images */

/* The large illustrations (how it works, products, in control, speed). */
.wide-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.caption {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
}

/* Text on one side, picture on the other. */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}

.split h2 {
  margin-bottom: 18px;
}

.split .lead {
  margin-bottom: 0;
  font-size: 18px;
}

.guide-banner {
  margin-bottom: 36px;
}

/* ---------------------------------------------------------------- Sections */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------- Products */

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.product {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink);
  border: 1px solid var(--line);
}

.product h3 {
  font-size: 23px;
}

.product-tag {
  color: var(--muted);
  margin: 4px 0 12px;
}

.product-tag strong {
  color: var(--red);
}

.product .btn {
  margin-top: 18px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  margin: 6px 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--black);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.feature:hover {
  border-color: var(--red);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--red-glow);
}

.feature svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------------------------------------------- Use cases */

.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase {
  padding: 24px;
  border-left: 3px solid var(--red);
  background: var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.usecase h3 {
  margin-bottom: 8px;
}

.usecase p {
  color: var(--muted);
  font-size: 15px;
}

.apps-title {
  margin: 48px 0 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.apps li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 14px;
}

/* ---------------------------------------------------------------- How to use */

.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto 36px;
  padding: 6px;
  border-radius: 14px;
  background: var(--black);
  border: 1px solid var(--line);
}

.tab {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: 600 15px "Inter", system-ui, sans-serif;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--red);
  color: var(--white);
}

/* Without JavaScript, both guides show (the tabs are hidden). */
html:not(.js) .tabs {
  display: none;
}

.guide + .guide {
  margin-top: 48px;
}

.js .guide + .guide {
  margin-top: 0;
}

.guide-title {
  margin: 32px 0 14px;
  font-size: 21px;
}

.guide-title:first-child {
  margin-top: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 50px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
}

.steps strong {
  color: var(--white);
}

.aside {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.guide-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 26px 0 8px;
}

.guide-figure img {
  border-radius: 12px;
}

.guide-figure figcaption {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto; /* wide tables scroll inside themselves on phones */
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

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

tr:last-child td {
  border-bottom: none;
}

th {
  background: var(--black);
  color: var(--white);
}

td:first-child {
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- FAQ */

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

summary {
  position: relative;
  padding: 20px 40px 20px 0;
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

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

/* A red + that turns into − when open. */
summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 26px;
  font-weight: 400;
}

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

details p {
  padding: 0 0 20px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Final CTA */

.cta {
  padding: 96px 0;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, var(--red-glow), transparent 70%), var(--ink);
  border-top: 1px solid var(--line);
}

.cta img {
  margin: 0 auto 20px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line);
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 18px;
}

/* ---------------------------------------------------------------- Footer + terms */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--black);
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-top .brand {
  margin-bottom: 10px;
}

.footer h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-top a:not(.brand) {
  display: block;
  color: var(--muted);
  margin: 6px 0;
}

.footer-top a:not(.brand):hover {
  color: var(--white);
}

.legal {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  max-width: 860px;
}

.legal h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.legal h3 {
  font-size: 15px;
  margin: 22px 0 6px;
}

.legal p + p {
  margin-top: 10px;
}

.copyright {
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------------------------------------------------------------- Smaller screens */

@media (max-width: 960px) {
  .hero-inner,
  .products,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 32px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .features,
  .usecases {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none; /* on phones: logo + Download button only */
  }

  .nav-inner .btn {
    margin-left: auto;
  }

  .section,
  .cta {
    padding: 64px 0;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .product {
    padding: 22px;
  }

  .wide-img,
  .hero-img {
    border-radius: 14px;
  }

  .features,
  .usecases,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .keys-float {
    right: 4px;
  }

  .tab {
    padding: 10px 14px;
  }

  td:first-child {
    white-space: normal;
  }
}
