/* ============================================================
   Superset — shared styles
   Swap values below when deploying with brand updates.
   ============================================================ */
:root {
  /* Primary accent */
  --accent: #E8192C;
  /* Page backgrounds */
  --bg: #D1D1D6;
  --bg-soft: #C4C4CA;
  /* Dark text / surfaces */
  --dark: #1F1F1F;
  /* Derived */
  --white: #F7F7F8;
  --muted: #5A5A60;
  --thread: var(--accent);
  --radius: 18px;
  --max: 1100px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Georgia", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Grain overlay (subtle texture) ---------- */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--dark) 10%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid color-mix(in srgb, var(--dark) 18%, transparent);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Progress Thread (page spine) ---------- */
.thread-page {
  position: relative;
}

.thread-rail {
  position: absolute;
  left: max(1.1rem, calc((100% - var(--max)) / 2 + 0.35rem));
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent) 4%,
    var(--accent) 96%,
    transparent 100%
  );
  z-index: 0;
  opacity: 0.85;
}

.thread-rail::before,
.thread-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.thread-rail::before {
  top: 0;
}

.thread-rail::after {
  bottom: 0;
}

.thread-section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 3.5rem 2.4rem;
}

.thread-node {
  position: absolute;
  left: max(1.1rem, calc((100% - var(--max)) / 2 + 0.35rem));
  top: 3.7rem;
  width: 18px;
  height: 18px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  z-index: 2;
}

.day-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.day-label svg {
  width: 14px;
  height: 14px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.brand-title {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.brand-title span {
  color: var(--accent);
}

.subtitle {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.lede {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--dark));
}

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--dark) 22%, transparent);
  color: var(--dark);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-on-dark {
  border-color: color-mix(in srgb, var(--white) 35%, transparent);
  color: var(--white);
}

.btn-on-dark:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.hero-phone {
  position: relative;
  justify-self: center;
  width: min(220px, 58vw);
}

.phone-frame {
  background: var(--dark);
  border-radius: 24px;
  padding: 8px;
  box-shadow:
    0 24px 50px color-mix(in srgb, var(--dark) 28%, transparent),
    0 0 0 1px color-mix(in srgb, var(--dark) 40%, transparent);
  transform: rotate(-4deg);
  transition: transform 0.35s ease;
}

.phone-frame:hover {
  transform: rotate(-1deg) translateY(-6px);
}

.phone-frame img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
  background: var(--bg-soft);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 12px;
  background: var(--dark);
  border-radius: 0 0 10px 10px;
  z-index: 2;
}

.orbit-ring {
  position: absolute;
  inset: -18% -12%;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50%;
  animation: spin 28s linear infinite;
  pointer-events: none;
}

.orbit-dot {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Keyword ribbon ---------- */
.ribbon {
  overflow: hidden;
  border-block: 1px solid color-mix(in srgb, var(--dark) 12%, transparent);
  background: color-mix(in srgb, var(--dark) 4%, transparent);
  margin: 1rem 0 0;
}

.ribbon-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0.85rem 0;
  animation: marquee 32s linear infinite;
}

.ribbon-track span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ribbon-track span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Philosophy ---------- */
.section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.section-copy {
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.25rem;
}

.section-copy + .section-copy {
  margin-top: -0.5rem;
}

/* ---------- Feature chain (not cards) ---------- */
.feature-chain {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.feature-link {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--dark) 12%, transparent);
}

.feature-link:first-child {
  border-top: 1px solid color-mix(in srgb, var(--dark) 12%, transparent);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-link h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feature-link p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

/* ---------- Screenshot gallery ---------- */
.shot-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  align-items: start;
}

.shot {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.shot:nth-child(odd) {
  transform: rotate(-2deg) translateY(8px);
}

.shot:nth-child(even) {
  transform: rotate(2deg) translateY(-4px);
}

.shot:hover {
  transform: rotate(0deg) translateY(-6px);
}

.shot img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  object-position: top;
  background: var(--bg-soft);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--dark) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--dark) 10%, transparent);
}

.shot-caption {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.65rem 0 0;
}

/* ---------- Progress Thread explainer ---------- */
.thread-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.thread-visual {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--dark) 8%, transparent);
}

.thread-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 1.4rem;
}

.thread-steps::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
}

.t-step {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.1rem;
}

.t-step::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 1.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
}

.t-step strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.t-step span {
  color: var(--muted);
  font-size: 0.88rem;
}

.why-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.why-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  background: color-mix(in srgb, var(--white) 55%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
}

.why-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Profile strip ---------- */
.profile-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.profile-pill {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  min-height: 140px;
}

.profile-pill .pill-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 55%, transparent);
  margin-bottom: 0.55rem;
}

.profile-pill h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.profile-pill p {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

.profile-pill:nth-child(2) {
  background: var(--accent);
}

/* ---------- Closing band ---------- */
.close-band {
  margin: 1rem 0 3rem;
  background: var(--dark);
  color: var(--white);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  overflow: hidden;
}

.close-band::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 18px solid color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0.5;
}

.close-band h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  max-width: 16ch;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.close-band p {
  max-width: 48ch;
  color: color-mix(in srgb, var(--white) 75%, transparent);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.close-band .cta-row {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--dark) 12%, transparent);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Legal / contact pages ---------- */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 48ch;
}

.legal {
  padding: 0 0 3.5rem;
}

.legal-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--dark) 8%, transparent);
}

.legal-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.65rem;
}

.legal-block ul {
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}

.legal-block li {
  list-style: disc;
  margin-bottom: 0.4rem;
}

.legal-block strong {
  color: var(--dark);
}

.updated {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  padding-bottom: 3.5rem;
}

.contact-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.contact-card h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.contact-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row .label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 55%, transparent);
}

.contact-row a,
.contact-row span.value {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-row a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--dark) 8%, transparent);
}

.contact-form h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.contact-form .hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid color-mix(in srgb, var(--dark) 16%, transparent);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--bg);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .thread-story,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .shot-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-strip {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    order: -1;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid color-mix(in srgb, var(--dark) 12%, transparent);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--dark) 8%, transparent);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .thread-rail {
    left: 1.15rem;
  }

  .thread-node {
    left: 1.15rem;
  }

  .thread-section {
    padding-left: 2.15rem;
  }

  .shot-rail {
    gap: 0.75rem;
  }

  .shot:nth-child(odd),
  .shot:nth-child(even) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-track,
  .orbit-ring {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
