:root {
  --ink: #18201c;
  --muted: #647168;
  --paper: #f5f0e6;
  --paper-deep: #e9e1d3;
  --green: #173f32;
  --green-2: #24644d;
  --red: #9f2938;
  --gold: #d5a94e;
  --white: #fffdf8;
  --line: rgba(24, 32, 28, .15);
  --shadow: 0 24px 70px rgba(35, 42, 37, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 42px; color: var(--white); background: var(--green); border-radius: 7px; transform: rotate(-4deg); }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav > a:not(.button) { color: var(--muted); text-decoration: none; font-size: 14px; }

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 9px;
  color: var(--white);
  background: var(--green);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--green-2); box-shadow: 0 10px 24px rgba(23, 63, 50, .17); }
.button-small { min-height: 40px; padding: 0 17px; font-size: 14px; }
.button-secondary { color: var(--green); background: transparent; }
.button-secondary:hover { color: var(--white); }
.button-wide { width: 100%; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.text-link { padding: 0; border: 0; color: var(--green); background: none; font-weight: 750; text-decoration: none; cursor: pointer; }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 670px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 70px;
  align-items: center;
  overflow: hidden;
}
.eyebrow { margin: 0 0 16px; color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero-copy { min-width: 0; overflow-wrap: break-word; }
.hero h1, .editor-heading h1, .status-page h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 7.1vw, 104px); font-weight: 500; line-height: .87; letter-spacing: -.065em; }
.hero-lead { max-width: 630px; margin: 30px 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.trust-row { display: flex; gap: 26px; margin: 30px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: 13px; }
.trust-row li + li::before { content: "•"; margin-right: 26px; color: var(--gold); }

.access-page { max-width: 560px; margin: 70px auto; padding: 0 24px; }
.access-page input { display: block; width: 100%; padding: 12px; margin-top: 8px; }
.access-page .errorlist { color: var(--red); }
.deck-demo { position: relative; min-height: 535px; }
.demo-card {
  position: absolute;
  width: 245px;
  height: 342px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.demo-card-one { top: 112px; left: 20px; transform: rotate(-13deg); z-index: 2; }
.demo-card-two { top: 45px; left: 220px; transform: rotate(7deg); z-index: 3; }
.demo-card-back { top: 174px; left: 335px; display: grid; place-items: center; color: var(--gold); background: repeating-linear-gradient(45deg, #173f32 0 8px, #1e4d3d 8px 16px); transform: rotate(17deg); }
.demo-card-back::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255,255,255,.75); border-radius: 10px; }
.demo-card-back span { font: 100px Georgia, serif; }
.corner { position: absolute; top: 28px; left: 28px; z-index: 2; color: var(--red); font: 700 24px/1 Georgia, serif; }
.corner i { display: inline-block; margin-top: 4px; margin-left: 2px; font-style: normal; }
.corner.black { color: var(--ink); }
.photo-placeholder { height: 248px; display: grid; place-items: center; border-radius: 10px; color: rgba(255,255,255,.85); background: linear-gradient(145deg, #bc7768, #4c6d63); font-size: 13px; }
.photo-placeholder.second { background: linear-gradient(145deg, #859aab, #734c5f); }
.demo-card strong { display: block; margin-top: 12px; text-align: center; }

.formats, .steps { padding: 110px max(20px, calc((100% - 1180px) / 2)); }
.formats { color: var(--white); background: var(--green); }
.section-heading { max-width: 680px; margin-bottom: 45px; }
.section-heading h2 { margin: 0; font: 500 clamp(38px, 5vw, 65px)/.98 Georgia, serif; letter-spacing: -.045em; }
.formats .eyebrow { color: #efbd65; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.format-card { padding: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.055); }
.format-card.featured { background: var(--white); color: var(--ink); }
.format-badge { display: inline-block; padding: 7px 11px; border-radius: 999px; color: var(--red); background: #f6e9e5; font-size: 12px; font-weight: 800; }
.format-badge.muted { color: var(--white); background: rgba(255,255,255,.12); }
.format-card h3 { margin: 25px 0 12px; font: 500 36px/1 Georgia, serif; }
.format-card > p { min-height: 54px; color: inherit; opacity: .74; }
.format-card dl { margin: 30px 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; border-color: rgba(128,128,128,.3); }
.format-card dl div { display: flex; justify-content: space-between; padding: 13px 0; }
.format-card dd { margin: 0; font-weight: 750; }
.format-card:not(.featured) .button-secondary { color: var(--white); border-color: rgba(255,255,255,.55); }

.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 30px 0; border-top: 2px solid var(--ink); }
.steps li > span { color: var(--red); font-weight: 800; }
.steps strong { display: block; margin-top: 70px; font: 500 27px Georgia, serif; }
.steps li p { color: var(--muted); }

.editor-shell { width: min(1380px, calc(100% - 36px)); margin: 55px auto 90px; }
.editor-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 auto 38px; }
.editor-heading h1 { font-size: clamp(48px, 6vw, 82px); }
.editor-heading > div:first-child > p:last-child { max-width: 660px; color: var(--muted); }
.progress-ring { width: 100px; height: 100px; display: grid; place-content: center; border: 8px solid var(--paper-deep); border-top-color: var(--red); border-radius: 50%; text-align: center; }
.progress-ring strong, .progress-ring span { display: block; }
.progress-ring span { color: var(--muted); font-size: 11px; }

.variant-switch { display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: 26px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-deep); }
.variant-switch button { min-width: 190px; padding: 11px 18px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.variant-switch button[aria-checked="true"] { color: var(--ink); background: var(--white); box-shadow: 0 5px 15px rgba(25,32,28,.08); }
.variant-switch strong, .variant-switch span { display: block; }
.variant-switch span { font-size: 12px; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.card-workbench, .order-panel { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.62); box-shadow: 0 18px 60px rgba(40,45,42,.08); }
.card-workbench { padding: 28px; }
.workbench-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.workbench-toolbar h2, .order-panel h2 { margin: 0; font: 500 28px Georgia, serif; }
.workbench-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(82px, 1fr)); gap: 12px; }
.card-slot { position: relative; aspect-ratio: 63/88; padding: 0; overflow: hidden; border: 1px dashed rgba(23,63,50,.34); border-radius: 10px; color: var(--green); background: rgba(255,255,255,.7); cursor: pointer; }
.card-slot:hover { border-style: solid; box-shadow: 0 8px 25px rgba(23,63,50,.12); }
.card-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-slot .slot-rank { position: absolute; top: 6px; left: 7px; z-index: 2; padding: 2px 5px; border-radius: 5px; background: rgba(255,253,248,.9); font: 700 14px Georgia, serif; }
.card-slot .slot-add { position: absolute; inset: 0; display: grid; place-content: center; gap: 5px; text-align: center; }
.card-slot .slot-add b { font-size: 23px; }
.card-slot .slot-add span { font-size: 10px; font-weight: 700; }
.back-summary { display: grid; grid-template-columns: 54px 1fr auto; gap: 15px; align-items: center; margin-top: 24px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.back-thumb { width: 46px; height: 62px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; color: var(--gold); background: var(--green); }
.back-thumb img { width: 100%; height: 100%; object-fit: cover; }
.back-summary p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.order-panel { position: sticky; top: 20px; padding: 26px; }
.price-line { display: flex; justify-content: space-between; gap: 15px; margin: 24px 0 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.price-line span { color: var(--muted); }
.price-line strong span { color: inherit; }
.price-note { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.order-panel label { display: grid; gap: 6px; margin: 14px 0; font-size: 13px; font-weight: 700; }
.order-panel input[type="text"], .order-panel input[type="tel"], .order-panel input[type="email"] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); outline: none; }
.order-panel input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,63,50,.09); }
.order-panel .consent { grid-template-columns: 18px 1fr; align-items: start; font-weight: 450; line-height: 1.35; }
.consent input { margin: 2px 0 0; accent-color: var(--green); }
.form-status { min-height: 20px; margin-bottom: 0; color: var(--red); font-size: 12px; }

.design-dialog {
  width: min(1260px, calc(100% - 24px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.design-dialog::backdrop { background: rgba(10,20,15,.76); backdrop-filter: blur(4px); }
.editor-loading { min-height: 320px; margin: 0; display: grid; place-items: center; color: var(--muted); }

.dialog-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; font-size: 27px; cursor: pointer; }

.status-page { width: min(720px, calc(100% - 40px)); min-height: 680px; margin: 90px auto; text-align: center; }
.status-page h1 { font-size: clamp(52px, 8vw, 86px); }
.order-number { color: var(--muted); font-size: 12px; }
.order-comment { overflow-wrap: anywhere; }
.status-card { margin: 38px 0; padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); text-align: left; }
.status-card div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; }
.status-card div + div { border-top: 1px solid var(--line); }
.status-card span, .muted-copy { color: var(--muted); }
.notice { margin: 25px 0; padding: 18px; border-radius: 10px; background: #ebe4d7; }
.notice.success { color: #164a36; background: #dcece4; }

.site-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 45px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 70px 0; }
  .deck-demo { min-height: 480px; transform: scale(.9); transform-origin: left top; }
  .editor-layout { grid-template-columns: 1fr; }
  .order-panel { position: static; }
  .card-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 720px) {
  .site-header { height: 68px; }
  .site-header nav > a:not(.button) { display: none; }
  .hero { width: min(100% - 28px, 1180px); min-height: auto; padding-top: 55px; }
  .hero h1 { font-size: clamp(40px, 14.5vw, 61px); }
  .hero-actions, .trust-row { align-items: flex-start; flex-direction: column; }
  .trust-row { gap: 7px; }
  .trust-row li + li::before { display: none; }
  .deck-demo { margin-top: 25px; min-height: 360px; transform: scale(.62); width: 570px; }
  .format-grid, .steps ol { grid-template-columns: 1fr; }
  .formats, .steps { padding-top: 70px; padding-bottom: 70px; }
  .format-card { padding: 28px; }
  .editor-heading { align-items: flex-start; }
  .progress-ring { display: none; }
  .variant-switch { width: 100%; }
  .variant-switch button { min-width: 0; }
  .card-workbench { padding: 16px; }
  .workbench-toolbar { align-items: flex-start; flex-direction: column; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .back-summary { grid-template-columns: 50px 1fr; }
  .back-summary button { grid-column: 2; justify-self: start; }
  .site-footer { flex-direction: column; }
}
