/* sensin1 — shared design system for inner pages.
   Palette mirrors the app: espresso base, dusty-rose accent, cream type. */

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

:root {
  --bg-deep: #100c0a;
  --bg: #16120f;
  --bg-mid: #1a1410;
  --surface: rgba(255, 252, 248, 0.035);
  --surface-strong: rgba(36, 28, 24, 0.55);
  --border: rgba(255, 250, 240, 0.1);
  --border-soft: rgba(255, 250, 240, 0.06);
  --border-accent: rgba(212, 160, 168, 0.3);
  --text: #faf6f0;
  --text-secondary: rgba(250, 246, 240, 0.68);
  --text-muted: rgba(250, 246, 240, 0.45);
  --rose: #d4a0a8;
  --rose-bright: #e8b8be;
  --rose-deep: #a8707c;
  --keep: #b8e6c4;
  --slow: #d4b896;
  --move: #f0a8a8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --max: 1080px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--rose-bright);
}

::selection {
  background: rgba(212, 160, 168, 0.35);
  color: var(--text);
}

/* ---------- Living backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 8% -10%, rgba(48, 32, 24, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 50% 115%, rgba(168, 112, 124, 0.06), transparent 65%),
    linear-gradient(115deg, #16120f 0%, #1a1410 42%, #100c0a 100%);
}

.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
}

.backdrop::before {
  width: 480px;
  height: 480px;
  top: -12%;
  right: -8%;
  background: #c48a94;
  animation: glowDrift 26s ease-in-out infinite alternate;
}

.backdrop::after {
  width: 420px;
  height: 420px;
  bottom: -14%;
  left: -10%;
  background: #a8707c;
  animation: glowDrift 32s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-6vw, 5vh) scale(1.12);
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 12, 10, 0.6);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(16, 12, 10, 0.82);
  border-bottom-color: var(--border-soft);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.95rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text);
  line-height: 1;
}

.brand:hover {
  color: var(--text);
}

.brand span {
  font-size: 1.35em;
  color: var(--rose);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header__nav a:not(.site-header__cta) {
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header__nav a:not(.site-header__cta):hover {
  color: var(--text);
}

.site-header__nav a:not(.site-header__cta)[aria-current="page"] {
  color: var(--rose);
  border-bottom-color: var(--border-accent);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--rose-bright);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header__cta:hover {
  background: rgba(212, 160, 168, 0.1);
  border-color: rgba(212, 160, 168, 0.6);
  color: var(--rose-bright);
}

@media (max-width: 680px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .site-header__nav {
    width: 100%;
    justify-content: flex-start;
    gap: 1.1rem;
  }

  .site-header__cta {
    display: none;
  }
}

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

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad-x) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.page-hero__sub {
  max-width: 560px;
  margin: 1.1rem auto 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.page-hero__sub em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--text);
}

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x);
}

.section--tight {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 0.6rem;
}

.section__sub {
  max-width: 520px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-secondary);
}

/* ---------- Cards ---------- */

.glass-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem 1.6rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-accent);
  background: rgba(255, 252, 248, 0.05);
  transform: translateY(-3px);
}

.card-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step-card .step-card__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--rose);
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0.45rem;
}

.step-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
}

/* ---------- Verdict cards ---------- */

.verdict-card {
  text-align: left;
  overflow: hidden;
}

.verdict-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.16;
  background: var(--verdict-color, var(--rose));
  pointer-events: none;
}

.verdict-card--keep {
  --verdict-color: var(--keep);
}

.verdict-card--slow {
  --verdict-color: var(--slow);
}

.verdict-card--move {
  --verdict-color: var(--move);
}

.verdict-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verdict-color);
  margin-bottom: 0.85rem;
}

.verdict-card__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--verdict-color);
  box-shadow: 0 0 10px var(--verdict-color);
}

.verdict-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.verdict-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
}

/* ---------- Pattern chips ---------- */

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 680px;
  margin: 0 auto;
}

.chip {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--surface);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.chip:hover {
  border-color: var(--border-accent);
  color: var(--rose-bright);
  transform: translateY(-2px);
}

/* ---------- Orbit visual ---------- */

.orbit-vis {
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 1;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
}

.orbit-vis__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 168, 0.16);
  animation: orbitSpin 44s linear infinite;
}

.orbit-vis__ring--inner {
  inset: 30%;
  animation-duration: 26s;
}

.orbit-vis__ring--mid {
  inset: 15%;
  animation-duration: 38s;
  animation-direction: reverse;
}

.orbit-vis__ring--outer {
  inset: 0;
  border-style: dashed;
  border-color: rgba(240, 168, 168, 0.22);
  animation-duration: 58s;
}

.orbit-vis__dot {
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-color, var(--rose));
  box-shadow: 0 0 14px var(--dot-color, var(--rose));
}

.orbit-vis__ring--inner .orbit-vis__dot {
  --dot-color: var(--keep);
}

.orbit-vis__ring--mid .orbit-vis__dot {
  --dot-color: var(--slow);
}

.orbit-vis__ring--outer .orbit-vis__dot {
  --dot-color: var(--move);
  opacity: 0.75;
}

.orbit-vis__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--rose-bright);
  box-shadow:
    0 0 18px rgba(232, 184, 190, 0.8),
    0 0 56px rgba(212, 160, 168, 0.4);
  animation: corePulse 4.5s ease-in-out infinite;
}

.orbit-vis__label {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes corePulse {
  0%,
  100% {
    box-shadow:
      0 0 18px rgba(232, 184, 190, 0.8),
      0 0 56px rgba(212, 160, 168, 0.4);
  }
  50% {
    box-shadow:
      0 0 26px rgba(232, 184, 190, 0.95),
      0 0 80px rgba(212, 160, 168, 0.55);
  }
}

/* ---------- Pricing ---------- */

.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  padding: 2.4rem 2rem;
  border-radius: 28px;
  border: 1px solid var(--border-accent);
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(212, 160, 168, 0.1), transparent 60%),
    var(--surface);
}

.pricing-card:hover {
  transform: none;
}

.pricing-card__name {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.pricing-card__price {
  margin: 0.85rem 0 0.2rem;
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
}

.pricing-card__price small {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.pricing-card__trial {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--rose-bright);
  margin-bottom: 1.4rem;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.pricing-card li {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-secondary);
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

.pricing-card__note {
  margin-top: 1.4rem;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* ---------- Doc layout (privacy / terms) ---------- */

.doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad-x) clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.doc__toc {
  position: sticky;
  top: 5.5rem;
}

.doc__toc-title {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.doc__toc ol {
  list-style: none;
  border-left: 1px solid var(--border);
}

.doc__toc li a {
  display: block;
  padding: 0.32rem 0 0.32rem 1rem;
  margin-left: -1px;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  border-left: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.doc__toc li a:hover {
  color: var(--text);
}

.doc__toc li a.is-active {
  color: var(--rose);
  border-left-color: var(--rose);
}

.doc__body {
  max-width: 68ch;
}

.doc__body > p:first-of-type {
  font-size: 1rem;
  color: var(--text-secondary);
}

.doc__body h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 2.75rem 0 0.7rem;
  padding-top: 0.5rem;
}

.doc__body h2:first-of-type {
  margin-top: 1.5rem;
}

.doc__body p,
.doc__body li {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(250, 246, 240, 0.85);
}

.doc__body p + p {
  margin-top: 0.85rem;
}

.doc__body ul,
.doc__body ol {
  margin: 0.65rem 0 1rem 1.25rem;
}

.doc__body li {
  margin-bottom: 0.45rem;
  padding-left: 0.25rem;
}

.doc__body li::marker {
  color: var(--border-accent);
}

.doc__body strong {
  font-weight: 500;
  color: var(--text);
}

.doc__body .glass-card:hover {
  transform: none;
}

.doc-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.doc-meta::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 1.4rem auto 0;
  background: var(--border-accent);
}

@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .doc__toc {
    position: static;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
  }

  .doc__toc ol {
    border-left: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
  }

  .doc__toc li a {
    padding: 0.2rem 0;
    border-left: none;
  }

  .doc__toc li a.is-active {
    border-left: none;
  }
}

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

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq details:hover,
.faq details[open] {
  border-color: var(--border-accent);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--rose);
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 1.35rem 1.2rem;
}

.faq p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.faq p + p {
  margin-top: 0.6rem;
}

/* ---------- Contact cards ---------- */

.contact-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 720px;
  margin: 0 auto;
}

.contact-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.contact-card p {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.contact-card a.contact-card__email {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--rose-bright);
  border-bottom: 1px solid var(--border-accent);
  padding-bottom: 0.1rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
}

.cta-band__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) 2rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 90% at 50% 120%, rgba(168, 112, 124, 0.12), transparent 65%),
    var(--surface);
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.cta-band p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.button-pill {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-bright);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.button-pill:hover {
  background: rgba(212, 160, 168, 0.1);
  border-color: rgba(212, 160, 168, 0.6);
  color: var(--rose-bright);
}

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

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(16, 12, 10, 0.5);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.25rem) var(--pad-x) 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 3rem;
}

.site-footer__brand .brand {
  font-size: 1.7rem;
}

.site-footer__tagline {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem clamp(2rem, 6vw, 4.5rem);
}

.site-footer__col h4 {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.site-footer__col a {
  display: block;
  padding: 0.22rem 0;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-footer__col a:hover {
  color: var(--rose-bright);
}

.site-footer__legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad-x) 2rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
