@import url("fonts.css");

:root {
  --navy: #17306b;
  --blue: #1d4ed8;
  --accent: #c2410c;
  --accent-dark: #b03a0a;
  --text: #1f2328;
  --text-2: #3d4550;
  --text-3: #4a525c;
  --text-4: #57606a;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #e4e1d8;
  --line-blue: #d6dceb;
  --tint: #e8eefb;
  --tint-2: #eef3fd;
  --on-navy: #dce4f7;
  --on-navy-2: #c9d4f0;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --serif: Georgia, serif;
  --wrap: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--navy);
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.subhead {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  font-family: var(--body);
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 16px 28px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  color: var(--white);
  filter: brightness(0.92);
}

.btn--outline {
  padding: 14px 26px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
}

.btn--outline:hover,
.btn--light:hover {
  color: var(--navy);
}

.btn--small {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
}

/* Nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.site-header nav a:not(.btn) {
  text-decoration: none;
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line-blue);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.lead {
  font-size: 20px;
  color: var(--text-2);
  max-width: 560px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--text-3);
}

.ticks li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-cover {
  flex: 1 1 340px;
  display: flex;
  justify-content: center;
}

.hero-cover img {
  width: 340px;
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 24px 48px -12px rgba(23, 48, 107, 0.45);
  transform: rotate(-2deg);
}

/* Numbers */
.numbers {
  background: var(--navy);
  color: var(--white);
}

.numbers ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.numbers li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--on-navy-2);
  font-size: 15px;
}

.numbers strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--white);
}

/* Audience */
.audience {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 96px;
  padding-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.card p {
  color: var(--text-3);
  font-size: 16px;
}

/* Contents */
.contents {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
  padding-top: 64px;
  padding-bottom: 64px;
}

.contents-main {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  font-size: 16px;
  counter-reset: chapter;
}

.chapters li {
  display: flex;
  gap: 10px;
  counter-increment: chapter;
}

.chapters li::before {
  content: counter(chapter);
  flex: none;
  width: 24px;
  font-weight: 700;
  color: var(--accent);
}

.extras {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.extras li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.extras svg {
  flex: none;
  margin-top: 2px;
  stroke: var(--accent);
}

.extras strong {
  color: var(--navy);
}

.rhythm {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

.rhythm ol {
  counter-reset: step;
}

.rhythm li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-blue);
  counter-increment: step;
}

.rhythm li:last-child {
  border-bottom: 0;
}

.rhythm li::before {
  content: counter(step);
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Method */
.method {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
  padding-top: 96px;
  padding-bottom: 96px;
}

.method-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.method-copy .heading > p:last-child {
  color: var(--text-2);
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: principle;
}

.principles li {
  display: flex;
  gap: 16px;
  counter-increment: principle;
}

.principles li::before {
  content: counter(principle, lower-alpha);
  flex: none;
  width: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
}

.principles h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.principles p {
  color: var(--text-3);
  font-size: 16px;
}

.preview {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  background: var(--white);
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 18px 40px -16px rgba(23, 48, 107, 0.3);
  padding: 36px 36px 32px;
  font-family: var(--serif);
  font-size: 16px;
}

.preview figcaption {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
}

.preview-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.preview-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-box > p:first-child {
  font-weight: 700;
}

.preview-box--example,
.preview-box--mistake {
  border-radius: 8px;
  padding: 16px 18px;
}

.preview-box--example {
  background: var(--tint-2);
}

.preview-box--example > p:first-child {
  color: var(--blue);
}

.preview-box--mistake {
  background: #fdf1ea;
}

.preview-box--mistake > p:first-child {
  color: var(--accent-dark);
}

.preview-hint {
  color: var(--text-4);
  font-size: 15px;
}

/* Sample */
.sample {
  padding-top: 96px;
  padding-bottom: 48px;
}

.sample-box {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  padding: 48px;
}

.sample-box > div {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sample-box h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.sample-box p {
  color: var(--on-navy);
}

/* Author */
.author {
  display: flex;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.author-card {
  flex: 0 1 820px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

.author-card img {
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid var(--tint);
}

.author-card > div {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.author-card h2 {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.6;
  letter-spacing: 0;
}

.author-card p:last-child {
  color: var(--text-2);
}

/* Buy */
.buy {
  display: flex;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 96px;
}

.buy-card {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 24px 48px -24px rgba(23, 48, 107, 0.35);
}

.buy-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.buy-head h2 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}

.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.1;
  color: var(--navy);
}

.buy-head p:last-child {
  color: var(--text-4);
  font-size: 15px;
}

.buy form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  color: var(--navy);
}

.field input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #8c939d;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

.buy form .btn {
  justify-content: center;
  margin-top: 6px;
  padding: 16px;
}

.form-error {
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 600;
}

.payment {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--tint-2);
  border-radius: 14px;
  padding: 24px;
  font-size: 15px;
}

.payment h3 {
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.payment dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 16px;
}

.payment dt {
  color: var(--text-3);
}

.payment dd {
  font-weight: 600;
  word-break: break-word;
}

.payment dd span {
  display: block;
  font-weight: 400;
  color: var(--text-3);
}

.payment > p {
  color: var(--text-2);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq .wrap {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 96px;
  padding-bottom: 96px;
}

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

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

summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

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

summary::after {
  content: "+";
  flex: none;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s;
}

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

details p {
  margin-top: 12px;
  color: var(--text-2);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
}

.site-footer p:first-child {
  color: var(--white);
  font-weight: 600;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a,
.site-footer a:hover {
  color: var(--white);
}

/* Legal pages */
.legal {
  max-width: 820px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.legal h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-2);
  margin-bottom: 10px;
}

.legal ol,
.legal ul {
  padding-left: 24px;
}

.legal ol {
  list-style: decimal;
}

.legal ul {
  list-style: disc;
}

@media (max-width: 600px) {
  .hero .wrap {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-cover img {
    width: 260px;
  }

  .audience,
  .sample {
    padding-top: 64px;
  }

  .method .wrap,
  .faq .wrap {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .sample-box,
  .buy-card,
  .rhythm,
  .author-card {
    padding: 24px;
  }

  .preview {
    padding: 24px;
  }

  .price {
    font-size: 48px;
  }

  .payment dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .payment dd {
    margin-bottom: 8px;
  }
}

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

  summary::after {
    transition: none;
  }
}
