:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --white: #fffdf8;
  --ink: #1d1a17;
  --muted: #6f6a63;
  --line: #d9d2c5;
  --accent: #c96f4a;
  --accent-dark: #a95535;
  --sage: #7d8f69;
  --gold: #c9a227;
  --shadow: 0 30px 80px rgba(29, 26, 23, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 5% -8%, rgba(201, 162, 39, 0.2), transparent 62%),
    radial-gradient(1000px 600px at 100% 4%, rgba(125, 143, 105, 0.18), transparent 58%),
    var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(201, 111, 74, 0.5);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent);
}

.shell {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 26px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: 0.16em;
}

.brand-text small {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 13px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

/* Hero */

.hero {
  padding: clamp(28px, 5vw, 66px) 0 clamp(36px, 6vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7.4vw, 84px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

h1 em {
  color: var(--accent);
  font-style: italic;
}

.lead {
  max-width: 52ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}

.code-form {
  margin-top: 30px;
  max-width: 520px;
}

.code-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.code-row input {
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.code-row input::placeholder {
  color: rgba(111, 106, 99, 0.38);
}

.code-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(201, 111, 74, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(201, 111, 74, 0.28);
  white-space: nowrap;
}

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

.button-dark {
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.button-dark:hover {
  background: #000;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status {
  min-height: 20px;
  margin: 6px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
}

.form-status.is-error {
  color: #a3342b;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

.trust-row li {
  position: relative;
  padding-left: 16px;
}

.trust-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 10%;
  background: radial-gradient(closest-side, rgba(201, 111, 74, 0.18), transparent 70%);
  filter: blur(18px);
}

.canvas-art {
  position: relative;
  transform: rotate(1.4deg);
  filter: drop-shadow(0 26px 44px rgba(29, 26, 23, 0.18));
}

/* Success */

.hero-grid > .success-panel {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding: 0;
}

.success-card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(22px, 3.5vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.success-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.success-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(125, 143, 105, 0.16);
  color: var(--sage);
  font-size: 23px;
  font-weight: 700;
}

.success-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.success-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.item-picker {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.item-picker label {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.item-picker select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.success-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.success-bot {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.success-bot img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background: #fff;
}

.success-bot h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.success-bot p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.link-button {
  display: block;
  margin: 16px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--accent-dark);
}

/* Sections */

.section {
  padding: clamp(46px, 7vw, 92px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.section-head > p:last-child {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
}

.section-head.light h2 {
  color: var(--paper);
}

.section-head.light > p:last-child {
  color: rgba(246, 241, 231, 0.68);
}

.section-dark {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(201, 111, 74, 0.22), transparent 60%),
    #1d1a17;
  color: var(--paper);
}

.section-dark .eyebrow {
  color: #e2a184;
}

/* Cards */

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

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 26px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(29, 26, 23, 0.06);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% 20%;
  height: 180px;
  border-radius: 50%;
  opacity: 0.16;
  background: var(--gold);
}

.card-a4::after {
  background: var(--sage);
}

.card-big::after {
  background: var(--accent);
}

.card-index {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.card h3 {
  position: relative;
  z-index: 1;
  margin: 28px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card ul {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.card li {
  position: relative;
  padding-left: 16px;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* Steps */

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

.steps li {
  padding: 24px 20px;
  border: 1px solid rgba(246, 241, 231, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.steps h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.steps p {
  margin: 0;
  color: rgba(246, 241, 231, 0.66);
  font-size: 13.5px;
}

/* Formats */

.formats-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.formats-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.formats-copy > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.specs {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.specs > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.specs dt {
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.format-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  min-height: 460px;
  padding: 30px 10px;
}

.paper {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(29, 26, 23, 0.14);
}

.paper span {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-a4 {
  width: min(44%, 210px);
  transform: rotate(-3deg);
}

.paper-big {
  width: min(54%, 270px);
  transform: rotate(2deg) translateY(-16px);
}

/* Gift */

.gift {
  background:
    radial-gradient(800px 420px at 80% 20%, rgba(201, 162, 39, 0.2), transparent 60%),
    var(--paper-2);
}

.gift-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.gift h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.02;
}

.gift p:not(.eyebrow) {
  max-width: 50ch;
  margin: 18px 0 24px;
  color: var(--muted);
}

.gift-art {
  display: grid;
  place-items: center;
  width: min(100%, 330px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 253, 248, 0.9), transparent 42%),
    linear-gradient(145deg, #c96f4a, #a95535);
  color: #fff;
  box-shadow: 0 30px 70px rgba(169, 85, 53, 0.35);
}

.gift-art span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(90px, 12vw, 140px);
  line-height: 0.8;
}

.gift-art small {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner strong {
  margin-right: 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.12em;
}

.footer-inner p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .formats-grid,
  .gift-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 540px);
  }

  .hero-grid > .success-panel {
    grid-column: 1;
    grid-row: auto;
  }

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

  .card {
    min-height: 0;
  }

  .card ul {
    margin-top: 18px;
  }

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

  .format-visual {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

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

  .button-primary {
    width: 100%;
  }

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

  .specs > div {
    grid-template-columns: 92px 1fr;
  }

  .success-bot {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .success-bot p {
    max-width: 34ch;
  }
}

@media (max-width: 480px) {
  .shell,
  .site-header {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding-top: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding-top: 20px;
  }

  .format-visual {
    flex-direction: column;
    align-items: center;
  }

  .paper-a4,
  .paper-big {
    width: min(80%, 260px);
    transform: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .button,
  .code-row input {
    transition: none;
  }

  .canvas-art,
  .paper-a4,
  .paper-big {
    transform: none;
  }
}
