@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-400-normal-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-600-normal-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #090806;
  --ink: #f0e5cc;
  --muted: #baad91;
  --ember: #d99b45;
  --line: rgba(217, 155, 69, 0.28);
  --panel: rgba(31, 25, 17, 0.82);
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -15%, rgba(217, 155, 69, 0.17), transparent 38rem),
    linear-gradient(180deg, #12100c 0%, var(--night) 42%, #070604 100%);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.7;
}

a { color: #f4c77f; text-underline-offset: 0.2em; }
a:hover { color: #ffe0ad; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav { display: flex; gap: 1rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: #f4c77f; }

.shell {
  width: min(46rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0 5rem;
}

.sigil {
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ember);
  font-size: 1.25rem;
  box-shadow: 0 0 2rem rgba(217, 155, 69, 0.12);
}

.kicker {
  margin: 1.25rem 0 0.35rem;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.meta { margin: 1rem 0 0; color: #8f846e; font-size: 0.9rem; }

.summary {
  margin: 3rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.22);
}

.summary h2 { margin-top: 0; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

h2 {
  margin: 2.8rem 0 0.65rem;
  color: #f3d59f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

p, li { color: #d3c7ad; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.45rem; }

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(244, 199, 127, 0.5);
  border-radius: 0.45rem;
  color: #f8dfb7;
  background: rgba(217, 155, 69, 0.1);
  font-weight: 600;
  text-decoration: none;
}

.small { color: #8f846e; font-size: 0.9rem; }

.site-footer {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0.2rem 0; color: #8f846e; font-size: 0.88rem; }

@media (max-width: 36rem) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .shell { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Product showcase */

.product-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 20%, rgba(142, 22, 17, 0.2), transparent 27rem),
    radial-gradient(circle at 48% 5%, rgba(224, 157, 61, 0.13), transparent 34rem),
    linear-gradient(180deg, #100b07 0%, #090705 48%, #050403 100%);
}

.review-bar {
  padding: 0.65rem 1rem;
  color: #1b1209;
  background: #d7a757;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.product-page .site-header {
  position: relative;
  z-index: 10;
  width: min(74rem, calc(100% - 3rem));
}

.product-page .site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-page main {
  position: relative;
}

.product-page h1,
.product-page h2,
.product-page h3 {
  text-wrap: balance;
}

.product-page h2 {
  max-width: 14ch;
  margin: 0;
  color: #f4e7cf;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.product-page h3 {
  margin: 0.6rem 0 0.45rem;
  color: #f0dec0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.product-page p {
  color: #cabea5;
}

/* The hero glow ring below sits at right: -20rem by design. Clip horizontal overflow at the
   full-width main so the ring still bleeds off the edge without widening the document.
   hidden is the fallback for browsers without overflow: clip. */
.product-page main {
  overflow-x: hidden;
  overflow-x: clip;
}

.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.8fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  width: min(74rem, calc(100% - 3rem));
  min-height: min(52rem, calc(100vh - 7.5rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.product-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(56rem, 90vw);
  height: min(56rem, 90vw);
  top: 50%;
  right: -20rem;
  border: 1px solid rgba(211, 155, 69, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(157, 28, 20, 0.025),
    0 0 0 10rem rgba(211, 155, 69, 0.02);
  transform: translateY(-50%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.product-hero .kicker {
  margin-top: 0;
}

.product-hero h1 {
  max-width: 9ch;
  font-size: clamp(4.3rem, 9.5vw, 8.6rem);
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.product-hero .lede {
  max-width: 33rem;
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.product-page .button {
  min-width: 9.5rem;
  margin: 0;
  padding: 0.86rem 1.2rem;
  border-radius: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.button-primary {
  border-color: #dcb368;
  color: #20150b;
  background: #dcb368;
  box-shadow: 0 0.8rem 2.6rem rgba(179, 98, 28, 0.2);
}

.button-primary:hover {
  color: #160e08;
  background: #efd39b;
}

.button-quiet {
  background: rgba(21, 15, 10, 0.66);
}

.proof-line {
  margin: 1.3rem 0 0;
  color: #8f806a !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
}

.hero-visual {
  position: relative;
  width: min(23rem, 100%);
  margin: 0 auto;
}

.phone-frame,
.screen-shot,
.terms-screen,
.screen-gallery figure {
  margin: 0;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 192, 123, 0.38);
  border-radius: 2.2rem;
  background: #e8dec7;
  box-shadow:
    0 3rem 7rem rgba(0, 0, 0, 0.62),
    0 0 5rem rgba(155, 34, 24, 0.12);
  transform: rotate(1.5deg);
}

.phone-frame img,
.screen-shot img,
.terms-screen img,
.screen-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-icon {
  position: absolute;
  z-index: 3;
  width: clamp(7.5rem, 13vw, 10.5rem);
  height: auto;
  top: -2rem;
  right: -3.5rem;
  border: 1px solid rgba(239, 198, 126, 0.42);
  border-radius: 22%;
  box-shadow:
    0 2rem 4rem rgba(0, 0, 0, 0.55),
    0 0 3rem rgba(172, 31, 22, 0.35);
  transform: rotate(4deg);
}

.ritual-section,
.duel-section,
.terms-section,
.gallery-section,
.closing-section {
  width: min(74rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) 0;
}

.section-heading {
  max-width: 49rem;
}

.section-heading > p:last-child {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--ember) !important;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.ritual-grid article {
  min-height: 17rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    linear-gradient(145deg, rgba(36, 27, 18, 0.96), rgba(13, 10, 7, 0.98));
}

.number {
  color: #9e2720;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1;
}

.ritual-grid p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.duel-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(30rem, 1.2fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
}

.duel-copy p:not(.eyebrow) {
  max-width: 34rem;
  font-size: 1.08rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: #edc683;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link::after {
  content: "  ↓";
}

.screen-pair {
  position: relative;
  min-height: 44rem;
}

.screen-shot {
  position: absolute;
  width: min(19rem, 58%);
  overflow: hidden;
  border: 1px solid rgba(231, 192, 124, 0.34);
  border-radius: 1.5rem;
  background: #e9dec6;
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.48);
}

.screen-shot-back {
  top: 0;
  left: 3%;
  transform: rotate(-5deg);
}

.screen-shot-front {
  right: 2%;
  bottom: 0;
  transform: rotate(4deg);
}

.terms-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.65fr) minmax(18rem, 1fr);
  gap: clamp(3rem, 10vw, 9rem);
  align-items: center;
  padding-right: clamp(0rem, 8vw, 7rem);
  padding-left: clamp(0rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.terms-screen {
  overflow: hidden;
  border: 1px solid rgba(232, 194, 129, 0.33);
  border-radius: 1.4rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
}

.terms-copy p:not(.eyebrow) {
  max-width: 34rem;
  font-size: 1.1rem;
}

.plain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9c8a8;
  font-size: 0.78rem;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 4rem;
}

.screen-gallery figure {
  min-width: 0;
}

.screen-gallery img {
  overflow: hidden;
  border: 1px solid rgba(232, 194, 129, 0.28);
  border-radius: 1.2rem;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.36);
}

.screen-gallery figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0.15rem 0;
  color: #8f8069;
  font-size: 0.82rem;
  line-height: 1.45;
}

.screen-gallery figcaption strong {
  color: #e8d5b4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.closing-section {
  max-width: 44rem;
  text-align: center;
}

.closing-section img {
  width: 8rem;
  height: auto;
  border: 1px solid rgba(232, 194, 129, 0.35);
  border-radius: 22%;
  box-shadow: 0 1.7rem 4rem rgba(0, 0, 0, 0.45);
}

.closing-section .eyebrow {
  margin-top: 2rem;
}

.closing-section h2 {
  max-width: none;
}

.closing-section p:not(.eyebrow) {
  margin: 1.1rem 0 1.6rem;
  font-size: 1.05rem;
}

.product-page .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.product-page .site-footer p {
  margin: 0;
}

.product-page a:focus-visible {
  outline: 2px solid #f2c675;
  outline-offset: 4px;
}

@media (max-width: 55rem) {
  .product-hero {
    grid-template-columns: 1fr 0.72fr;
    gap: 2rem;
  }

  .hero-icon {
    right: -1.5rem;
  }

  .duel-section {
    grid-template-columns: 1fr;
  }

  .duel-copy {
    max-width: 40rem;
  }

  .screen-pair {
    width: min(36rem, 100%);
    margin: 0 auto;
  }

  .screen-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  .review-bar {
    font-size: 0.61rem;
    letter-spacing: 0.13em;
  }

  .product-page .site-header {
    align-items: center;
    width: min(100% - 2rem, 74rem);
  }

  .product-page .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .product-page .site-nav a {
    font-size: 0.7rem;
  }

  .product-hero {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 74rem);
    padding-top: 3.5rem;
  }

  .product-hero h1 {
    font-size: clamp(3.35rem, 15.8vw, 4.8rem);
    line-height: 0.9;
  }

  .hero-visual {
    width: min(18rem, 82vw);
    margin-top: 2rem;
  }

  .hero-icon {
    top: -1.3rem;
    right: -1.2rem;
    width: 7.5rem;
  }

  .ritual-section,
  .duel-section,
  .terms-section,
  .gallery-section,
  .closing-section {
    width: min(100% - 2rem, 74rem);
  }

  .ritual-grid {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .ritual-grid article {
    min-height: auto;
  }

  .screen-pair {
    min-height: 34rem;
  }

  .screen-shot {
    width: 58%;
  }

  .terms-section {
    grid-template-columns: 1fr;
    padding-right: 0;
    padding-left: 0;
  }

  .terms-screen {
    width: min(17rem, 78vw);
    margin: 0 auto;
  }

  .screen-gallery {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: 2.5rem;
    padding: 0 0 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .screen-gallery figure {
    flex: 0 0 72vw;
    scroll-snap-align: start;
  }

  .product-page .site-footer {
    display: block;
    text-align: center;
  }

  .product-page .site-footer p + p {
    margin-top: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame,
  .hero-icon,
  .screen-shot-back,
  .screen-shot-front,
  .terms-screen {
    transform: none;
  }
}
