/* Together-Pad product page. Self-contained: together-pad.com serves this folder as its root,
   so nothing here may reference files outside site/together-pad/. */
:root {
  color-scheme: dark;
  --ink: #f4f8fb;
  --muted: #9fb2c0;
  --navy: #020f18;
  --line: rgba(244, 248, 251, 0.12);
  /* Together-Pad brand gradient (wordmark "Pad") and logo blue */
  --tp-violet: #7c3aed;
  --tp-pink: #ec4899;
  --tp-orange: #f97316;
  --tp-blue: #1a94f8;
}

@font-face {
  font-family: "Michroma";
  src: url("assets/Michroma-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(26, 148, 248, 0.14), transparent 30rem),
    radial-gradient(circle at 85% 35%, rgba(236, 72, 153, 0.1), transparent 28rem),
    linear-gradient(160deg, #020b12 0%, var(--navy) 55%, #031723 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  width: min(100% - 5rem, 64rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0 2.5rem;
}

/* Language switch (every page) and language hint (created by assets/lang-hint.js) */
.lang-switch {
  position: absolute;
  top: 1.75rem;
  right: 0;
  z-index: 1;
  display: flex;
  gap: 0.9rem;
  font-family: "Michroma", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.lang-switch a {
  color: rgba(244, 248, 251, 0.68);
  text-decoration: none;
  transition: color 160ms ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch [aria-current] {
  color: var(--tp-blue);
}

.lang-hint {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  padding: 0.7rem 3rem 0.7rem 1rem;
  border-bottom: 1px solid rgba(26, 148, 248, 0.25);
  background: rgba(26, 148, 248, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.lang-hint a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

.lang-hint button {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lang-hint button:hover,
.lang-hint button:focus-visible {
  color: var(--tp-blue);
}

/* Hero */
.hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero__logo {
  display: block;
  width: clamp(6.5rem, 14vw, 9rem);
  height: auto;
  margin-bottom: 1.5rem;
}

.wordmark {
  width: min(100%, 34rem);
  margin: 0;
  line-height: 0;
}

.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.wordmark__text {
  font-family: "Michroma", sans-serif;
  font-size: 650px;
  font-weight: 400;
  stroke-width: 40px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.wordmark__together {
  fill: var(--ink);
  stroke: var(--ink);
}

.tagline {
  max-width: 36rem;
  margin: 2.25rem 0 0;
  font-family: "Michroma", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.intro {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 2.5rem 0 0;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(244, 248, 251, 0.78);
  font-family: "Michroma", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tp-violet), var(--tp-orange));
  box-shadow: 0 0 0 0.3rem rgba(236, 72, 153, 0.12);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(4rem, 9vw, 6rem);
}

.feature {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(244, 248, 251, 0.025);
}

.feature::before {
  position: absolute;
  top: -1px;
  left: 1.75rem;
  width: 2.5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tp-violet), var(--tp-pink), var(--tp-orange));
  content: "";
}

.feature h2 {
  margin: 0 0 0.75rem;
  font-family: "Michroma", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  hyphens: auto;
  overflow-wrap: break-word;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.manual {
  max-width: 38rem;
  margin: 3rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.platforms {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

/* Footer */
.footer {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: clamp(4rem, 9vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  margin: 0;
}

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

.footer__nav {
  display: flex;
  gap: 1.5rem;
  font-family: "Michroma", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.footer__nav a {
  color: rgba(244, 248, 251, 0.68);
  text-decoration: none;
}

.footer__license {
  color: rgba(159, 178, 192, 0.55);
  font-family: "Michroma", sans-serif;
  font-size: 0.5rem;
  line-height: 1.7;
}

a {
  color: var(--ink);
  text-underline-offset: 0.2em;
  transition: color 160ms ease;
}

.footer__license a {
  color: inherit;
}

a:hover,
a:focus-visible,
.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--tp-blue);
}

@media (max-width: 800px) {
  .page {
    width: min(100% - 3rem, 36rem);
    padding-top: 3.5rem;
  }

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

  .feature {
    padding: 1.5rem 1.35rem 1.35rem;
  }

  .feature::before {
    left: 1.35rem;
  }

  .footer__license {
    font-size: 0.44rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > *,
  .feature {
    animation: reveal 700ms both cubic-bezier(0.22, 1, 0.36, 1);
  }

  .wordmark {
    animation-delay: 80ms;
  }

  .tagline,
  .intro {
    animation-delay: 160ms;
  }

  .status {
    animation-delay: 240ms;
  }

  .feature {
    animation-delay: 300ms;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(1rem);
    }
  }
}
