:root {
  --ink: #101416;
  --charcoal: #20272b;
  --muted: #6f797d;
  --paper: #fbfbf8;
  --line: #dfe3e2;
  --red: #d82017;
  --red-dark: #a9120c;
  --blue: #ddecf7;
  --blue-strong: #1d64c8;
  --green: #1e7a58;
  --mint: #dceee6;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --shadow: 0 22px 60px rgba(16, 20, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 40px;
  background: rgba(12, 14, 15, 0.86);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
  width: max-content;
}

.brand span {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a {
  opacity: 0.88;
  transition: opacity 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  opacity: 1;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.menu-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.icon-button:hover,
.icon-button:focus-visible,
.menu-button:hover,
.menu-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.icon-button i,
.menu-button i {
  font-size: 22px;
}

.cart-button {
  position: relative;
}

.cart-button span {
  position: absolute;
  top: 6px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
}

.menu-button {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 72px 0 auto;
  z-index: 25;
  display: none;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 10px 20px 20px;
  background: rgba(12, 14, 15, 0.96);
  color: var(--white);
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 720px;
  height: 92vh;
  max-height: 920px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34) 44%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 32%, rgba(0, 0, 0, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 48px));
  margin-left: clamp(24px, 6vw, 72px);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--blue);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.95;
}

h1 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: 76px;
}

h2 {
  margin-bottom: 18px;
  font-size: 48px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.2;
}

.hero p:not(.eyebrow) {
  max-width: 420px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
}

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

.primary-button,
.secondary-button,
.package-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.primary-button.red {
  background: var(--red);
  color: var(--white);
}

.primary-button.red:hover,
.primary-button.red:focus-visible {
  background: var(--red-dark);
  transform: translateY(-1px);
  outline: none;
}

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

.secondary-button.light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.62);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.secondary-button.light:hover,
.secondary-button.light:focus-visible {
  border-color: var(--white);
}

.down-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 34px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  column-gap: 12px;
  min-height: 86px;
  padding: 18px 36px;
  background: var(--blue);
}

.proof-strip i {
  grid-row: span 2;
  font-size: 32px;
}

.proof-strip span {
  font-weight: 800;
}

.proof-strip small {
  color: var(--charcoal);
  font-size: 12px;
}

.section {
  padding: 86px clamp(24px, 5vw, 72px);
  scroll-margin-top: 86px;
}

.section-heading {
  width: min(1240px, 100%);
  margin: 0 auto 42px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 60px;
  align-items: end;
}

.split h2 {
  max-width: 560px;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--blue-strong);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.examples-section {
  background: var(--paper);
}

.transformation-image {
  width: min(1240px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.quality-preview {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.quality-copy {
  max-width: 320px;
}

.quality-copy p:not(.eyebrow) {
  color: var(--muted);
}

.quality-cards {
  display: grid;
  gap: 22px;
}

.quality-cards article img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.detail-grid div {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-grid i,
.steps i,
.studio-copy i {
  color: var(--blue-strong);
  font-size: 30px;
}

.detail-grid p,
.steps p,
.reviews-copy p,
.studio-copy p,
.package-intro p {
  color: var(--muted);
}

.process-section {
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1240px, 100%);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps article {
  position: relative;
  min-height: 230px;
  padding: 34px;
  background: var(--paper);
}

.steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--blue-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.packages-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.package-intro {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto 42px;
}

.package-intro img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1240px, 100%);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.package-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 270px;
  padding: 34px 26px 26px;
  background: var(--white);
  text-align: center;
}

.package-card.is-selected {
  z-index: 1;
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.package-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.package-card small {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 12px;
  background: var(--blue-strong);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
}

.package-card span {
  min-height: 42px;
  max-width: 210px;
  color: var(--muted);
  font-size: 13px;
}

.package-card strong {
  font-family: var(--serif);
  font-size: 34px;
}

.package-card button {
  width: min(100%, 240px);
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.package-card.is-selected button,
.package-card button:hover,
.package-card button:focus-visible {
  background: var(--red);
  color: var(--white);
  outline: none;
}

.reviews-section {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  background: var(--paper);
}

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

.reviews article {
  min-height: 230px;
  padding: 30px;
  background: var(--paper);
}

.stars {
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.reviews p {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.18;
}

.reviews span {
  color: var(--muted);
  font-size: 13px;
}

.studio-section {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.studio-copy {
  position: sticky;
  top: 102px;
}

.studio-copy ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.studio-copy li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--charcoal);
  font-size: 14px;
}

.studio-copy li i {
  font-size: 21px;
}

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 380px;
  gap: 26px;
  align-items: start;
  min-width: 0;
}

.preview-panel,
.order-panel,
.modal {
  border: 1px solid var(--line);
  background: var(--white);
  min-width: 0;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-toolbar small {
  color: var(--green);
  font-size: 11px;
}

.book-preview {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f6f7f7);
}

.book-preview img,
.book-preview canvas {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.thumbnail-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80px;
  gap: 10px;
  min-height: 96px;
  padding: 16px 20px 20px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.thumbnail-strip img,
.thumbnail-strip .empty-thumb {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f4f6f7;
}

.thumbnail-strip .empty-thumb {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}

.thumbnail-strip .uploaded-thumb-fallback {
  color: var(--green);
  background:
    linear-gradient(135deg, rgba(29, 100, 200, 0.08), transparent 52%),
    #fbfbf8;
  font-weight: 800;
}

.order-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.selected-package span,
.summary-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--blue-strong);
  outline: 2px solid rgba(29, 100, 200, 0.14);
  outline-offset: 0;
}

.upload-box {
  position: relative;
  border: 1px dashed #b7c0c4;
  background: #f8fafb;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.upload-box.is-dragging {
  border-color: var(--blue-strong);
  background: #eef6ff;
}

.upload-box input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-box:focus-within {
  border-color: var(--blue-strong);
  outline: 2px solid rgba(29, 100, 200, 0.14);
  outline-offset: 2px;
}

.upload-box label {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 150px;
  padding: 26px;
  text-align: center;
}

.upload-box i {
  color: var(--blue-strong);
  font-size: 34px;
}

.upload-box span {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
}

.selected-package {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.selected-package span {
  grid-column: 1 / -1;
}

.summary-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #f8fafb;
  border: 1px solid var(--line);
}

.summary-box div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.summary-box strong {
  text-align: right;
  white-space: nowrap;
}

.summary-box div:last-child {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.form-message {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message.is-error {
  color: var(--red-dark);
}

.form-message.is-success {
  color: var(--green);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding: 48px clamp(24px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.site-footer nav {
  display: grid;
  grid-auto-flow: column;
  gap: 28px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.modal {
  width: min(440px, calc(100% - 32px));
  padding: 34px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.52);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--ink);
}

.modal h2 {
  font-size: 38px;
}

.modal p:not(.eyebrow) {
  color: var(--muted);
}

.notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 16px 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 14px;
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 132px 24px 72px;
}

.legal-page h1 {
  color: var(--ink);
  font-size: 54px;
}

.legal-page h2 {
  margin-top: 34px;
  color: var(--ink);
  font-size: 30px;
}

.legal-page p,
.legal-page li {
  color: var(--charcoal);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 220px 1fr auto;
    padding: 0 24px;
  }

  .desktop-nav {
    gap: 18px;
  }

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

  .quality-preview,
  .reviews-section,
  .studio-section,
  .builder,
  .package-intro {
    grid-template-columns: 1fr;
  }

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

  .quality-copy,
  .studio-copy {
    position: static;
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 66px;
    padding: 0 18px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .mobile-menu {
    top: 66px;
  }

  .brand span {
    font-size: 23px;
  }

  .brand small {
    font-size: 9px;
  }

  .hero {
    min-height: 660px;
    height: 88vh;
  }

  .hero img {
    object-position: 60% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 38%, rgba(0, 0, 0, 0.42));
  }

  .hero-content {
    width: min(430px, calc(100% - 36px));
    margin-left: 18px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 38px;
  }

  .proof-strip,
  .split,
  .detail-grid,
  .steps,
  .package-grid,
  .reviews {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    min-height: 72px;
    padding: 14px 22px;
  }

  .section {
    padding: 64px 20px;
  }

  .package-intro img,
  .quality-cards article img {
    aspect-ratio: 4 / 3;
  }

  .book-preview {
    min-height: 300px;
  }

  .site-footer,
  .site-footer nav {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }
}

@media (max-width: 520px) {
  .header-actions .icon-button:not(.cart-button) {
    display: none;
  }

  .hero-actions,
  .studio-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .summary-box div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 31px;
    line-height: 1.02;
  }

  .reviews p {
    font-size: 21px;
  }

  .studio-copy h2,
  .package-intro h2,
  .reviews-copy h2,
  .quality-copy h2 {
    max-width: 330px;
  }
}
