:root {
  --paper: #faf8f5;
  --ink: #271e24;
  --muted: #6c6267;
  --ruby: #af294c;
  --line: #ded8d5;
  --pink: #f4dce2;
  --dark: #24151c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

button {
  font: inherit;
}

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

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

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 22px;
}

em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.wrap {
  width: min(1280px, calc(100% - 96px));
  margin: auto;
}

.section {
  padding: 96px 0;
}

.top-none {
  padding-top: 0;
}

.eyebrow {
  font: 12px/1.5 monospace;
  letter-spacing: 0.13em;
  color: var(--ruby);
  margin-bottom: 22px;
}

.light {
  color: #e5b9c6;
}

.brand {
  text-decoration: none;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.brand span {
  font-size: 12px;
  vertical-align: top;
  margin-left: 4px;
  letter-spacing: 0;
}

header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.nav nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav nav a {
  font-size: 14px;
  text-decoration: none;
}

.nav nav a:hover,
.nav nav a[aria-current] {
  color: var(--ruby);
}

.nav-free {
  border: 1px solid var(--line);
  padding: 11px 17px;
  border-radius: 6px;
}

.menu-toggle {
  display: none;
}

.hero {
  background: var(--dark);
  color: #fff9f6;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 700px;
  padding-top: 68px;
  padding-bottom: 70px;
}

.hero h1 {
  font-size: clamp(3.5rem, 5.4vw, 5.3rem);
}

.hero h1 em {
  color: #efa3b8;
}

.hero-copy > p:not(.eyebrow) {
  color: #d3c7cc;
  max-width: 440px;
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ruby);
  color: white;
  padding: 15px 24px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}

.button:hover {
  background: #8d1d3c;
  transform: translateY(-2px);
}

.button.outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button.dark {
  background: var(--dark);
}

.text-link {
  font-size: 14px;
}

.hero-meta {
  display: flex;
  gap: 22px;
  font: 12px monospace;
  color: #c3b1bb;
  margin-top: 43px;
}

.hero-art {
  position: relative;
  padding-bottom: 60px;
  min-width: 0;
}

.hero-art > img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 180px 180px 10px 10px;
  animation: float 7s ease-in-out infinite;
}

.code-card {
  position: absolute;
  bottom: 5px;
  left: -32px;
  background: #30222bf2;
  border: 1px solid #6b505d;
  border-radius: 10px;
  width: 350px;
  box-shadow: 0 20px 45px #11081055;
  transform: rotate(-3deg);
  animation: floatCode 7s ease-in-out infinite;
}

.code-head {
  display: flex;
  justify-content: space-between;
  color: #c7aebb;
  font: 12px monospace;
  padding: 12px 18px;
  border-bottom: 1px solid #6b505d;
}

.code-card pre {
  padding: 5px 20px 14px;
  font: 14px/1.85 monospace;
  white-space: pre-wrap;
}

.code-pink {
  color: #f9acc8;
}

.code-green {
  color: #c6debc;
}

.cursor {
  animation: blink 1s step-end infinite;
}

.art-label {
  position: absolute;
  right: 0;
  bottom: 18px;
  font: 11px monospace;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.ribbon {
  background: var(--pink);
  padding: 19px 48px;
  display: flex;
  justify-content: space-around;
  font: 12px monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  gap: 20px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.intro > div:last-child {
  padding-top: 35px;
  font-size: 18px;
  color: var(--muted);
}

.under-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.collection {
  background: #f0ede9;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}

.section-top > p {
  color: var(--muted);
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 26px;
}

.product-card {
  min-width: 0;
}

.cover {
  position: relative;
  overflow: hidden;
  border: 1px solid #ead9db;
  border-radius: 8px;
  background: #f3e2e5;
  display: block;
  text-decoration: none;
  aspect-ratio: 1.1;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cover:hover img {
  transform: scale(1.045);
}

.cover-top {
  position: absolute;
  top: 17px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font: 11px monospace;
  letter-spacing: 0.1em;
  color: #651b34;
}

.cover-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 46px 22px 22px;
  background: linear-gradient(transparent, #f7e9e9f5);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cover-title small {
  display: block;
  font: 11px monospace;
  letter-spacing: 0.11em;
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 8px;
  align-items: start;
}

.card-meta h3 {
  font-size: 20px;
  margin: 0;
}

.card-meta a {
  text-decoration: none;
}

.price {
  font-size: 16px;
  white-space: nowrap;
}

.product-card > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  font: 12px monospace;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
}

.center {
  text-align: center;
  margin-top: 45px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.banner-art {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.banner-art img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.banner-art > span {
  position: absolute;
  bottom: 25px;
  left: 26px;
  font: 12px monospace;
  letter-spacing: 0.15em;
}

.mission-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.benefits {
  padding-top: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  margin-top: 50px;
}

.benefit-grid p {
  color: var(--muted);
  font-size: 15px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  width: 49px;
  height: 49px;
  border-radius: 12px;
  color: var(--ruby);
  font: 25px monospace;
  margin-bottom: 24px;
}

.free-block {
  background: var(--pink);
  padding: 75px 0;
}

.free-block > .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 50px;
}

.free-code {
  border: 1px solid #bca3aa;
  border-radius: 8px;
  transform: rotate(3deg);
  padding: 35px 25px;
  background: #f9eef1;
}

.free-code span {
  color: #947581;
  font: 15px monospace;
  margin-right: 20px;
}

.free-code code {
  font-size: clamp(14px, 1.7vw, 22px);
  color: var(--ruby);
}

.free-code small {
  display: block;
  margin: 20px 0 0 45px;
  font: 12px monospace;
  color: var(--muted);
}

.faq-home {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 85px;
}

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

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  padding: 22px 0;
  line-height: 1.4;
}

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

summary span {
  color: var(--ruby);
  font-size: 24px;
}

details[open] summary span {
  transform: rotate(45deg);
}

details > p {
  color: var(--muted);
  max-width: 850px;
  font-size: 16px;
  line-height: 1.75;
}

.footer {
  background: var(--dark);
  color: #e3d5da;
  padding: 60px 0 22px;
}

.footer .brand {
  font-size: 36px;
  color: #fff9f6;
}

.footer-tag {
  color: #af97a4;
  font-size: 14px;
  margin: 8px 0 45px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 90px;
}

.footer h2 {
  font-size: 18px;
  letter-spacing: 0;
  color: #fff9f6;
}

.footer h3 {
  font-size: 14px;
  margin: 22px 0 10px;
}

.footer-grid a {
  display: block;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-grid p {
  font-size: 14px;
  margin: 5px 0;
  color: #c8b7bf;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid #55414c;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #af97a4;
}

.social,
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 12px;
}

.social a,
.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0;
}

.social svg,
.footer-social-links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  fill: currentColor;
}

.social-unset {
  font-size: 13px;
  color: inherit;
  opacity: 0.8;
}

.page-head {
  padding: 78px 0 60px;
}

.page-head h1 {
  max-width: 1000px;
}

.lead {
  max-width: 710px;
  font-size: 19px;
  color: var(--muted);
}

.prose-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 85px;
}

.prose h2,
.policy h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
  margin-top: 35px;
}

.prose p,
.policy p {
  color: var(--muted);
}

.policy {
  max-width: 850px;
  padding-bottom: 80px;
}

.policy section {
  padding-bottom: 12px;
}

.policy section:first-child h2 {
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.panel {
  background: #eee9e6;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 8px;
}

.panel h2 {
  font-size: 27px;
}

.panel p {
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.contact-grid > article > h2 {
  font-size: 30px;
}

.faq-full {
  max-width: 950px;
}

.curriculum-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 30px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.curriculum-row .num {
  font: 22px monospace;
  color: var(--ruby);
}

.curriculum-row h2 {
  font-size: 25px;
}

.curriculum-row p {
  color: var(--muted);
  font-size: 14px;
}

.curriculum-row ul {
  margin: 0;
  padding-left: 22px;
}

.update-row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 35px;
  border-top: 1px solid var(--line);
  padding: 35px 0 60px;
}

.update-row time {
  font: 14px monospace;
  color: var(--muted);
}

.update-row h2 {
  font-size: 32px;
  margin-top: 20px;
}

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.breadcrumbs {
  font-size: 14px;
  margin-bottom: 35px;
  color: var(--muted);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 75px;
  align-items: start;
}

.product-visual .cover {
  aspect-ratio: 1;
}

.product-visual .cover-title {
  font-size: 40px;
}

.product-copy h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
}

.product-copy .tagline {
  font-size: 23px;
  line-height: 1.35;
}

.buy-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  margin: 25px 0;
}

.product-price {
  font-size: 30px;
  margin-bottom: 15px;
}

.fine {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.buy-panel .button {
  width: 100%;
}

.buy-panel p {
  margin: 15px 0 0;
}

.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  margin-top: 65px;
}

.product-content h2 {
  font-size: 30px;
}

.module-list {
  list-style: none;
  counter-reset: mods;
  padding: 0;
}

.module-list li {
  counter-increment: mods;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.module-list li:before {
  content: counter(mods, decimal-leading-zero);
  font: 13px monospace;
  color: var(--ruby);
  margin-right: 18px;
}

.loading-section {
  min-height: 60vh;
  padding: 80px 0;
  display: grid;
  place-items: center;
}

.loading-card {
  max-width: 650px;
  text-align: center;
  padding: 40px;
}

.loading-card h1 {
  font-size: 42px;
}

.loading-card .button {
  margin: 10px;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--pink);
  border-top-color: var(--ruby);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 30px;
}

.notice {
  padding: 22px;
  background: var(--pink);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 10px;
}

.skip:focus {
  top: 10px;
}

:focus-visible {
  outline: 3px solid #c15375;
  outline-offset: 5px;
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatCode {
  50% {
    transform: translateY(6px) rotate(-1deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

@media (min-width: 1000px) {
  .collection .product-grid .product-card:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: 0;
  }
}

@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .nav nav {
    gap: 18px;
  }

  .nav nav a {
    font-size: 13px;
  }

  .nav-free {
    display: none;
  }

  .hero-grid {
    gap: 35px;
  }

  .hero-art > img {
    height: 430px;
  }

  .code-card {
    left: -10px;
    width: 310px;
  }

  .hero-meta {
    gap: 12px;
  }

  .intro,
  .mission-grid,
  .faq-home {
    gap: 40px;
  }

  .footer-grid {
    gap: 40px;
  }

  .benefit-grid {
    gap: 20px;
  }

  .product-layout,
  .product-content {
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .nav {
    min-height: 76px;
  }

  .brand {
    font-size: 25px;
  }

  .menu-toggle {
    display: flex;
    gap: 12px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 14px;
  }

  .nav nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    z-index: 20;
    padding: 20px;
    box-shadow: 0 15px 20px #24151c15;
  }

  .nav nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav nav a {
    font-size: 16px;
    padding: 8px;
  }

  .nav-free {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 40px;
    padding-bottom: 40px;
    min-height: 0;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-art {
    max-width: 440px;
    width: 100%;
    margin: auto;
  }

  .hero-art > img {
    height: 360px;
    border-radius: 150px 150px 8px 8px;
  }

  .code-card {
    left: 5px;
    width: 290px;
  }

  .art-label {
    right: 5px;
  }

  .hero-meta {
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 11px;
  }

  .ribbon {
    padding: 16px 18px;
    justify-content: center;
    font-size: 10px;
  }

  .ribbon span:not(:first-child) {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .top-none {
    padding-top: 0;
  }

  .intro,
  .mission-grid,
  .faq-home,
  .free-block > .wrap,
  .prose-layout,
  .contact-grid,
  .product-layout,
  .product-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro > div:last-child {
    padding-top: 0;
  }

  .section-top {
    display: block;
    margin-bottom: 25px;
  }

  .section-top > p {
    display: none;
  }

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

  .cover-title {
    font-size: 20px;
    padding: 35px 12px 16px;
  }

  .cover-title small {
    font-size: 9px;
  }

  .cover-top {
    font-size: 9px;
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .card-meta {
    display: block;
  }

  .card-meta h3 {
    font-size: 18px;
    margin-bottom: 7px;
  }

  .price {
    font-size: 14px;
  }

  .product-card > p {
    font-size: 13px;
  }

  .card-bottom {
    font-size: 10px;
  }

  .benefits {
    padding-top: 0;
  }

  .benefit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .free-block {
    padding: 55px 0;
  }

  .free-code {
    margin: 15px 5px;
  }

  .faq-home {
    gap: 35px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .footer-grid section:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-head {
    padding: 50px 0 40px;
  }

  .lead {
    font-size: 17px;
  }

  .curriculum-row {
    grid-template-columns: 35px 1fr;
    gap: 15px;
  }

  .curriculum-row ul {
    grid-column: 2;
  }

  .update-row {
    grid-template-columns: 1fr;
  }

  .loading-card {
    padding: 20px 0;
  }

  .loading-card h1 {
    font-size: 34px;
  }

  .product-content {
    margin-top: 40px;
  }

  .product-visual {
    max-width: 480px;
  }

  .product-copy h1 {
    font-size: 3rem;
  }
}

@media (max-width: 370px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .actions {
    gap: 18px;
  }

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

  .code-card {
    width: 265px;
  }
}

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