/*
 * Noctra — November Reset
 * Uses the same light, restrained visual language as nextflow-apps.com.
 */

:root {
  --bg: #ffffff;
  --text: #111111;
  --secondary: #444444;
  --muted: #666666;
  --line: #eeeeee;
  --line-strong: #dddddd;
  --surface: #fafafa;
  --surface-strong: #f4f4f4;
  --dark: #111111;
  --accent: #0a79df;
  --accent-soft: #eef7ff;
  --success: #1e6b1e;
  --success-soft: #edf7ed;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.1);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
a {
  font-synthesis: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 48px));
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  background: var(--dark);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: var(--dark);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
}

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

h1,
h2,
h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.eyebrow,
.kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-bottom: 1rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #555555;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow span {
  color: #aaaaaa;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid var(--dark);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--dark);
  color: #ffffff;
}

.btn.primary,
.btn.dark {
  background: var(--dark);
  color: #ffffff;
}

.btn.primary:hover,
.btn.dark:hover {
  background: #333333;
}

.btn.ghost {
  border-color: var(--line-strong);
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(10, 121, 223, 0.35);
  outline-offset: 3px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.campaign-hero {
  padding: 64px 0 56px;
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 84px);
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 620px;
}

.hero-copy h1 em {
  display: block;
  margin-top: 0.2em;
  color: var(--text);
  font-style: normal;
  font-weight: 400;
}

.lead {
  max-width: 620px;
  margin-bottom: 0.7rem;
  color: var(--secondary);
  font-size: 1.08rem;
}

.campaign-fit {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-offer {
  width: min(100%, 470px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  margin-top: 1.4rem;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-offer > span,
.hero-offer > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-offer strong {
  color: var(--text);
  font-size: 2.55rem;
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.hero-offer sup,
.price sup {
  font-size: 0.45em;
}

.hero-offer b {
  padding: 0 0 0.33rem 0.7rem;
  color: var(--secondary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.availability span {
  color: var(--success);
}

.hero-art {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1734 / 907;
  border-radius: 10px;
  object-fit: contain;
  background: #08090b;
}

figcaption {
  margin: 0;
  padding: 0.75rem 0.45rem 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.campaign-proof {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.proof-grid {
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: stretch;
}

.proof-grid p {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.proof-grid p:first-child {
  border-left: 1px solid var(--line);
}

.proof-grid strong {
  color: var(--text);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.proof-grid span {
  max-width: 160px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.proof-grid > a {
  display: inline-flex;
  align-items: center;
  padding: 20px;
}

.text-link {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.section-head {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-head > p:last-child {
  margin-bottom: 0;
  color: var(--secondary);
}

.why-section {
  background: #ffffff;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(56px, 9vw, 120px);
}

.editorial-grid h2 {
  max-width: 510px;
}

.body-copy {
  padding-top: 0.25rem;
}

.body-copy p {
  color: var(--secondary);
}

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

.body-copy strong {
  color: var(--text);
}

.tools-section {
  background: var(--surface);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tool-grid article,
.rules-grid article,
.permission-grid article {
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.tool-grid article {
  min-height: 245px;
}

.tool-grid article > span,
.rules-grid article > span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.tool-grid h3,
.rules-grid h3 {
  margin-top: 3rem;
}

.tool-grid p,
.rules-grid p,
.permission-grid p {
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 0.86rem;
}

.story-section {
  background: #ffffff;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 8vw, 92px);
}

.story-grid figure {
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.story-grid img {
  width: 100%;
  aspect-ratio: 1734 / 907;
  border-radius: 10px;
  object-fit: contain;
  background: #08090b;
}

.story-grid > div > p:not(.kicker):not(.signature) {
  color: var(--secondary);
}

.signature {
  margin: 1.5rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.video-section {
  overflow: hidden;
  background: var(--surface);
}

.video-shell {
  width: min(100%, 920px);
  margin-inline: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.video-bar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 9px;
  color: var(--muted);
  font-size: 0.67rem;
}

.video-bar > span {
  display: flex;
  gap: 6px;
}

.video-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6d6d6;
}

.video-bar i:first-child {
  background: #111111;
}

.video-bar strong {
  color: var(--secondary);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-bar small {
  justify-self: end;
  color: var(--muted);
  font-size: 0.62rem;
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #000000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-link {
  width: min(100%, 920px);
  margin: 0.8rem auto 0;
  color: var(--secondary);
  font-size: 0.78rem;
  text-align: right;
}

.video-link a:hover {
  color: var(--accent);
}

.steps-section {
  background: #ffffff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 190px;
  padding: 25px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.steps li > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.steps h3 {
  margin-top: 2.4rem;
}

.steps p {
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 0.86rem;
}

.offer-section {
  background: var(--surface);
}

.offer-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(44px, 7vw, 82px);
  padding: clamp(38px, 6vw, 66px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.offer-card h2 span {
  white-space: nowrap;
}

.offer-copy > p:not(.kicker) {
  color: var(--secondary);
}

.offer-copy ul {
  padding-left: 1.2rem;
}

.offer-copy li {
  margin: 0.45rem 0;
}

.fine-print {
  margin: 1.5rem 0 0;
  color: var(--muted) !important;
  font-size: 0.74rem;
}

.price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 42px;
  border-left: 1px solid var(--line-strong);
}

.price > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.price > strong {
  color: var(--text);
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.075em;
}

.price > b {
  margin: 0.35rem 0 1.4rem;
  color: var(--secondary);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-link {
  margin-top: 0.9rem;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 650;
  text-align: center;
}

.privacy-section {
  background: #ffffff;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.permission-grid h3 {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 26px;
}

.legal-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
}

.legal-links a:hover {
  border-color: var(--text);
}

.rules-section {
  background: var(--surface);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rules-grid article {
  min-height: 215px;
}

.rules-note {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--secondary);
  font-size: 0.82rem;
}

.rules-note strong {
  color: var(--text);
}

.faq {
  background: #ffffff;
}

.faq .section-head {
  margin-bottom: 24px;
}

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

.faq details:first-of-type {
  border-top: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 22px 4px;
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  flex: 0 0 auto;
  content: "+";
  color: var(--muted);
  font-size: 1.25rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 760px;
  padding: 0 4px 22px;
  color: var(--secondary);
  font-size: 0.9rem;
}

.final-cta {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.final-cta .kicker {
  margin-inline: auto;
}

.final-cta h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.final-cta > div > p:not(.kicker) {
  color: var(--secondary);
}

.final-cta .btn {
  margin: 0.8rem auto;
}

.final-cta small {
  display: block;
  color: var(--muted);
}

.mobile-cta {
  display: none;
}

.site-footer .brand-mark {
  background: #ffffff !important;
}

.site-footer .brand-mark img {
  object-fit: cover;
}

.site-footer .legal-note {
  max-width: 350px;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    gap: 42px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 62px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    max-width: 760px;
  }

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

  .proof-grid > a {
    grid-column: 1 / -1;
    justify-content: center;
    border-top: 1px solid var(--line);
  }

  .editorial-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .story-grid figure {
    max-width: 760px;
    order: 2;
  }

  .offer-card {
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .container,
  .narrow {
    width: calc(100% - 32px);
  }

  .campaign-hero {
    padding: 44px 0;
  }

  .hero-grid {
    gap: 34px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-offer {
    width: 100%;
  }

  .hero-art,
  .story-grid figure,
  .video-shell {
    padding: 5px;
    border-radius: 12px;
  }

  .hero-art img,
  .story-grid img,
  .video-frame {
    border-radius: 8px;
  }

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

  .proof-grid p,
  .proof-grid p:first-child {
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .proof-grid > a {
    grid-column: auto;
  }

  .section {
    padding: 68px 0;
  }

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

  .tool-grid,
  .steps,
  .permission-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid article,
  .steps li,
  .rules-grid article {
    min-height: 0;
  }

  .video-bar {
    min-height: 36px;
    grid-template-columns: auto 1fr;
  }

  .video-bar strong {
    justify-self: end;
    font-size: 0.58rem;
  }

  .video-bar small {
    display: none;
  }

  .offer-card {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }

  .price {
    padding: 26px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .legal-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .final-cta {
    padding: 80px 0 124px;
  }

  .mobile-cta {
    position: fixed;
    z-index: 60;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(calc(100% + 20px));
    padding: 10px 10px 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
  }

  .mobile-cta.visible {
    transform: none;
  }

  .mobile-cta span {
    display: grid;
  }

  .mobile-cta strong {
    color: var(--text);
    font-size: 0.78rem;
  }

  .mobile-cta small {
    color: var(--muted);
    font-size: 0.62rem;
  }

  .mobile-cta a {
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    background: var(--dark);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
  }
}

@media (max-width: 420px) {
  .legal-links {
    grid-template-columns: 1fr;
  }

  .hero-offer strong {
    font-size: 2.2rem;
  }
}

@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;
  }
}
