/* ==========================================================================
   Tymate TPMS — shared styles
   ========================================================================== */

:root {
  --bg: #04080f;
  --surface: rgba(14, 27, 44, 0.78);
  --line: rgba(128, 180, 232, 0.16);
  --line-strong: rgba(128, 200, 255, 0.34);
  --text: #e9f4ff;
  --muted: #93a9c2;
  --cyan: #34e3f4;
  --green: #37e0a5;
  --radius: 20px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 72% -8%, rgba(52, 227, 244, 0.13), transparent 62%),
    radial-gradient(900px 520px at -8% 24%, rgba(59, 143, 247, 0.1), transparent 62%);
}

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

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

p,
ul,
ol {
  margin: 0;
}

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

::selection {
  background: rgba(52, 227, 244, 0.3);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--cyan);
  color: #04121b;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(52, 227, 244, 0.9);
}

.grad {
  background: linear-gradient(100deg, var(--cyan) 5%, #8fd4ff 52%, #a9a7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.section {
  padding: 88px 0;
  position: relative;
}

.section--tight {
  padding: 64px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(100deg, var(--cyan), #7cd7ff);
  color: #04121b;
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(14, 27, 44, 0.7);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(20, 40, 64, 0.9);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 186px;
  padding: 10px 18px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 26, 43, 0.9);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(19, 38, 61, 0.95);
}

.store-btn__icon {
  width: 27px;
  height: 27px;
  flex: none;
}

.store-btn small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.store-btn strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(4, 8, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.08rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.brand span small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
}

.nav__links a[aria-current="page"] {
  color: var(--cyan);
}

.nav__links .btn--primary,
.nav__links .btn--primary:hover {
  color: #04121b;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14, 27, 44, 0.7);
  cursor: pointer;
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

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

.hero {
  position: relative;
  padding: 76px 0 88px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  margin: 18px 0 20px;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 48ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__points svg {
  width: 15px;
  height: 15px;
  color: var(--green);
  flex: none;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  max-width: 120%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(52, 227, 244, 0.2), rgba(59, 143, 247, 0.08) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 3 / 4.4;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(128, 200, 255, 0.28);
  background: #081426;
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* ---------- Feature cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 26px 22px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 24, 40, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgba(52, 227, 244, 0.1);
  border: 1px solid rgba(52, 227, 244, 0.22);
  color: var(--cyan);
}

.feature__icon svg {
  width: 23px;
  height: 23px;
}

.feature h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

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

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #081426;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

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

.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq details p {
  padding: 0 40px 22px 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.footer {
  padding: 52px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 19, 0.72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer__brand .brand {
  margin-bottom: 14px;
}

.footer__brand p {
  max-width: 36ch;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer ul a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer ul a:hover {
  color: var(--cyan);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

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

.footer__bottom a:hover {
  color: var(--cyan);
}

/* ---------- Page hero (legal / support) ---------- */

.page-hero {
  padding: 60px 0 38px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 14px 0;
}

.page-hero p {
  max-width: 66ch;
  color: var(--muted);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}

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

/* ---------- Legal pages ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 56px;
  padding: 44px 0 80px;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  font-size: 0.88rem;
}

.toc h2 {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 6px 0 6px 13px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc a:hover {
  color: var(--text);
  border-left-color: var(--cyan);
}

.legal-content {
  max-width: 780px;
  font-size: 0.97rem;
}

.legal-content h2 {
  font-size: 1.38rem;
  margin: 42px 0 14px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 26px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

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

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin: 12px 0;
}

.legal-content li {
  margin: 7px 0;
}

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

.legal-content a {
  color: var(--cyan);
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(52, 227, 244, 0.25);
  background: rgba(52, 227, 244, 0.07);
}

.callout p {
  color: #cfe8f7;
}

.contact-block {
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 26, 43, 0.6);
}

.contact-block p {
  margin: 4px 0;
}

.back-row {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ---------- Support page ---------- */

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  margin-bottom: 44px;
}

.support-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 24, 40, 0.6);
}

.support-card h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.support-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.support-card .btn {
  margin-top: 20px;
}

.support-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(52, 227, 244, 0.1);
  border: 1px solid rgba(52, 227, 244, 0.22);
  color: var(--cyan);
}

.support-card__icon svg {
  width: 21px;
  height: 21px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button-row .btn {
  margin-top: 0;
}

.support-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.support-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.support-links a:hover {
  border-color: var(--cyan);
  background: rgba(52, 227, 244, 0.06);
}

.support-links span {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding: 24px 22px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 24, 40, 0.55);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.step h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.88rem;
  color: var(--muted);
}

.support-section {
  margin-top: 56px;
}

.support-section > h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 26, 43, 0.55);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .feature-grid,
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: rgba(6, 13, 23, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    display: block;
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    order: 2;
  }

  .phone {
    width: min(100%, 300px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 36px;
  }

  .toc {
    display: none;
  }

  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

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

  .section {
    padding: 64px 0;
  }

  .section--tight {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.5vw, 3rem);
  }

  .hero__lead {
    font-size: 1rem;
  }

  .store-btn {
    min-width: 0;
    flex: 1 1 168px;
    padding: 10px 14px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shots {
    gap: 10px;
  }

  .shot figcaption {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .page-hero {
    padding: 40px 0 32px;
  }

  .legal-content h2 {
    font-size: 1.24rem;
    margin-top: 34px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .nav,
  .footer,
  .toc,
  .skip-link,
  .back-row {
    display: none !important;
  }

  .page-hero,
  .legal-layout {
    padding: 0;
    border: 0;
  }

  .legal-layout {
    display: block;
  }

  .legal-content {
    max-width: none;
    font-size: 11pt;
  }

  .legal-content h1,
  .legal-content h2,
  .legal-content p,
  .legal-content li,
  .legal-content strong {
    color: #111;
  }

  a {
    color: #111;
    text-decoration: underline;
  }
}
