/*
  notract marketing site
  A self-contained, mobile-first system using only the shipped brand palette.
*/

:root {
  color-scheme: dark;
  --ink: #020001;
  --surface: #1b191c;
  --line: #383639;
  --crimson-deep: #7a0e1e;
  --crimson-bright: #d04452;
  --destabilize: #e5484d;
  --purple-graphic: #4b2e86;
  --purple-text: #806ca7;
  --text: #fffeff;
  --muted: #a8a8a8;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: min(1180px, calc(100% - 32px));
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 84% 8%, rgba(75, 46, 134, 0.2), transparent 32%),
    radial-gradient(circle at 14% 42%, rgba(122, 14, 30, 0.12), transparent 28%);
  pointer-events: none;
  content: "";
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
summary {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 3px solid var(--crimson-bright);
  outline-offset: 4px;
}

::selection {
  background: var(--purple-graphic);
  color: var(--text);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--text);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(56, 54, 57, 0.75);
  background: rgba(2, 0, 1, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 70px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  width: 14px;
  height: 18px;
  filter: drop-shadow(0 0 8px rgba(75, 46, 134, 0.5));
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
}

.nav-links {
  position: absolute;
  top: calc(100% + 1px);
  right: 16px;
  left: 16px;
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(2, 0, 1, 0.7);
}

.nav-links[data-open="true"] {
  display: block;
}

.nav-links ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(56, 54, 57, 0.48);
  color: var(--text);
}

.nav-links .nav-cta {
  margin-top: 6px;
  background: var(--text);
  color: var(--ink);
  text-align: center;
}

.hero {
  position: relative;
  min-height: calc(100svh - 71px);
  padding: 62px 0 54px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--purple-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.018em;
  line-height: 0.94;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.25rem, 15vw, 6rem);
}

h1 .accent {
  color: var(--crimson-bright);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 11vw, 5rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.app-store-button,
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  border: 1px solid var(--text);
  border-radius: 14px;
  background: var(--text);
  color: var(--ink);
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.app-store-button:hover,
.button:hover {
  transform: translateY(-2px);
  background: var(--crimson-bright);
}

.app-store-button svg {
  width: 22px;
  height: 22px;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface);
}

.micro-note {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.droplet-console {
  --droplet-tint: rgb(51, 32, 87);
  position: relative;
  width: min(100%, 530px);
  justify-self: center;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(27, 25, 28, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 254, 255, 0.07), 0 32px 100px rgba(2, 0, 1, 0.6);
}

.console-topline,
.range-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.live-indicator::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--droplet-tint);
  box-shadow: 0 0 10px var(--droplet-tint);
  content: "";
}

.droplet-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
}

#droplet-canvas {
  width: 100%;
  height: 330px;
}

.stage-axis {
  position: absolute;
  right: 7px;
  display: grid;
  height: 72%;
  align-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.range-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(2, 0, 1, 0.55);
}

.range-panel label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.range-panel output {
  color: var(--text);
  font-weight: 900;
}

input[type="range"] {
  width: 100%;
  height: 38px;
  margin: 7px 0 0;
  accent-color: var(--droplet-tint);
  cursor: ew-resize;
}

.range-readout {
  margin-top: -1px;
}

.range-readout strong {
  color: var(--text);
  letter-spacing: 0.04em;
}

.disclaimer-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.disclaimer-line svg {
  flex: 0 0 15px;
  margin-top: 2px;
  color: var(--purple-text);
}

.section {
  padding: 88px 0;
}

.section-rule {
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-intro > p:last-child,
.thesis-copy p,
.rule-copy > p,
.cta-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.thesis-layout {
  display: grid;
  gap: 38px;
  align-items: start;
}

.thesis-statement {
  max-width: 620px;
  font-family: var(--display);
  font-size: clamp(2.65rem, 11vw, 6.5rem);
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
}

.thesis-statement .soft {
  color: var(--purple-text);
}

.thesis-copy {
  max-width: 540px;
  padding-top: 4px;
}

.truth-label {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--purple-text);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.step p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 12px;
}

.feature-card {
  position: relative;
  min-height: 235px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card::after {
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(128, 108, 167, 0.18);
  border-radius: 50%;
  content: "";
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 40px;
  place-items: center;
  border: 1px solid var(--purple-text);
  border-radius: 13px;
  color: var(--purple-text);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.screens-grid {
  display: grid;
  gap: 56px;
  max-width: 940px;
  margin-inline: auto;
}

.phone-figure {
  margin: 0;
}

.phone {
  position: relative;
  max-width: 390px;
  margin-inline: auto;
  padding: 9px;
  overflow: hidden;
  border: 1px solid #383639;
  border-radius: 48px;
  background: #020001;
  box-shadow: 0 42px 90px rgba(2, 0, 1, 0.62), 0 0 0 5px #1b191c;
}

.phone::before {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 50%;
  width: 31%;
  height: 27px;
  transform: translateX(-50%);
  border: 1px solid #1b191c;
  border-radius: 999px;
  background: #020001;
  content: "";
}

.phone img {
  width: 100%;
  border-radius: 39px;
}

.phone-figure figcaption {
  max-width: 390px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.phone-figure figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.rule-section {
  position: relative;
  overflow: hidden;
}

.rule-section::before {
  position: absolute;
  top: 8%;
  right: -20%;
  width: 75vw;
  height: 75vw;
  max-width: 760px;
  max-height: 760px;
  border: 1px solid rgba(208, 68, 82, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(122, 14, 30, 0.06), 0 0 0 160px rgba(75, 46, 134, 0.035);
  content: "";
}

.rule-layout {
  position: relative;
  display: grid;
  gap: 42px;
  align-items: center;
}

.rule-clock {
  display: grid;
  width: min(84vw, 400px);
  aspect-ratio: 1;
  justify-self: center;
  place-content: center;
  border: 1px solid var(--crimson-bright);
  border-radius: 50%;
  background: rgba(27, 25, 28, 0.62);
  box-shadow: inset 0 0 70px rgba(122, 14, 30, 0.24), 0 0 70px rgba(122, 14, 30, 0.15);
  text-align: center;
}

.rule-clock strong {
  font-family: var(--display);
  font-size: clamp(5rem, 24vw, 9rem);
  letter-spacing: -0.04em;
  line-height: 0.75;
}

.rule-clock span {
  margin-top: 22px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rule-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.rule-list svg {
  width: 18px;
  margin-top: 4px;
  color: var(--crimson-bright);
}

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

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

.faq-list summary {
  position: relative;
  padding: 24px 46px 24px 0;
  color: var(--text);
  font-size: clamp(1rem, 3vw, 1.22rem);
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  position: absolute;
  top: 22px;
  right: 8px;
  color: var(--purple-text);
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 400;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 720px;
  padding: 0 40px 24px 0;
  color: var(--muted);
}

.cta-band {
  padding: 90px 0;
  background: var(--crimson-deep);
}

.cta-layout {
  display: grid;
  gap: 28px;
  align-items: end;
}

.cta-band .eyebrow,
.cta-band .cta-copy p {
  color: var(--text);
}

.cta-band h2 {
  max-width: 740px;
  margin-bottom: 22px;
}

.cta-band .app-store-button:hover {
  background: var(--surface);
  color: var(--text);
}

.site-footer {
  padding: 48px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: grid;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-meta p {
  margin-bottom: 4px;
}

/* Legal and support pages share one deliberately plain reading layout. */
.legal-hero {
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 980px;
  margin-bottom: 20px;
}

.legal-hero p {
  max-width: 720px;
  color: var(--muted);
}

.last-updated {
  color: var(--purple-text) !important;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  gap: 42px;
  padding: 54px 0 90px;
}

.legal-toc {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.legal-toc strong {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 0 0 34px;
  scroll-margin-top: 100px;
}

.legal-content h2 {
  margin-bottom: 16px;
  font-family: var(--body);
  font-size: clamp(1.45rem, 5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
}

.legal-content h3 {
  margin-top: 26px;
}

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

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

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

.legal-content ul,
.legal-content ol {
  padding-left: 1.2rem;
}

.legal-content li + li {
  margin-top: 9px;
}

.notice {
  margin: 8px 0 28px;
  padding: 18px;
  border-left: 3px solid var(--crimson-bright);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
}

.notice p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  width: 100%;
  margin: 20px 0 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.support-card-grid {
  display: grid;
  gap: 14px;
  margin: 26px 0 10px;
}

.support-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.support-card svg {
  width: 26px;
  margin-bottom: 18px;
  color: var(--purple-text);
}

.support-card p:last-child {
  margin-bottom: 0;
}

.todo-marker {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--crimson-bright);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.74rem;
}

@media (min-width: 700px) {
  :root {
    --page: min(1180px, calc(100% - 64px));
  }

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

  .feature-card:nth-child(1),
  .feature-card:nth-child(6) {
    grid-column: span 2;
  }

  .screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .phone-figure:nth-child(2) {
    margin-top: 110px;
  }

  .cta-layout,
  .footer-layout {
    grid-template-columns: 1fr auto;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (min-width: 880px) {
  .nav-shell {
    grid-template-columns: auto 1fr;
    gap: 34px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-links ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .nav-links .nav-cta {
    margin: 0 0 0 10px;
    padding-inline: 18px;
  }

  .hero {
    padding: 74px 0 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: 44px;
  }

  h1 {
    font-size: clamp(5.3rem, 8vw, 7.8rem);
  }

  .section {
    padding: 128px 0;
  }

  .thesis-layout {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 70px;
  }

  .step {
    grid-template-columns: 70px minmax(200px, 0.75fr) 1.25fr;
    gap: 28px;
    align-items: start;
    padding: 34px 0;
  }

  .step h3 {
    margin: 0;
  }

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

  .feature-card:nth-child(1),
  .feature-card:nth-child(6) {
    grid-column: span 1;
  }

  .feature-card:nth-child(2),
  .feature-card:nth-child(5) {
    transform: translateY(18px);
  }

  .rule-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
  }

  .legal-layout {
    grid-template-columns: 230px minmax(0, 760px);
    gap: 68px;
    justify-content: center;
  }

  .legal-toc {
    position: sticky;
    top: 96px;
  }
}

@media (min-width: 1200px) {
  .droplet-console {
    padding: 20px;
  }

  .droplet-stage,
  #droplet-canvas {
    min-height: 390px;
    height: 390px;
  }
}

@media (max-width: 359px) {
  :root {
    --page: calc(100% - 24px);
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions > *:not(.micro-note) {
    width: 100%;
  }

  .droplet-console {
    padding: 11px;
    border-radius: 22px;
  }

  .droplet-stage,
  #droplet-canvas {
    min-height: 285px;
    height: 285px;
  }

  .feature-card {
    padding: 20px;
  }

  .phone {
    border-radius: 40px;
  }
}

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

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