/* ==========================================================================
   The Sunday Kit Co. — styles
   Warm off-white paper, charcoal ink, restrained forest green.
   EB Garamond for display type, Inter for everything else.
   ========================================================================== */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/EBGaramond-Regular.ttf") format("truetype"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/EBGaramond-Medium.ttf") format("truetype"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/EBGaramond-Italic.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); }

:root {
  color-scheme: light;

  --paper: #F5F2EB;
  --paper-deep: #EEEAE1;
  --surface: #FBFAF7;
  --white: #FFFFFF;
  --ink: #22251F;
  --ink-2: #3D413A;
  --muted: #5F635B;
  --line: #DDD8CC;
  --line-soft: #E7E3D9;
  --green: #2F4A37;
  --green-dark: #233829;
  --green-tint: #E5EBE3;
  --error: #9B3222;
  --error-tint: #F8E9E5;

  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; }

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

.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.fine { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14.5px; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:focus-visible { outline-color: var(--ink); }
.btn-secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: #BDB6A6; background: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-deep); }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13.5px; }
.btn-lg { min-height: 48px; padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn.is-done { background: var(--green-tint); border-color: #C5D1C2; color: var(--green-dark); }

.text-link { color: var(--ink); font-weight: 500; font-size: 14.5px; text-underline-offset: 4px; text-decoration-color: var(--line); }
.text-link:hover { text-decoration-color: var(--ink); }

/* ----------------------------------------------------------------- Header */

.site-header { border-bottom: 1px solid var(--line-soft); background: var(--paper); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.6rem; line-height: 1; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wm-small { font-style: italic; font-weight: 400; color: var(--ink-2); }
.wordmark-sm { font-size: 1.35rem; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 4px; }
.nav-link:hover { color: var(--ink); background: var(--paper-deep); }
.nav-kit { display: none; }
body.is-kit .nav-home { display: none; }
body.is-kit .nav-kit { display: flex; }

@media (max-width: 760px) {
  .nav-link { display: none; }
  .wordmark { font-size: 1.35rem; }
  .nav-kit .btn-ghost { display: none; }
}

/* ------------------------------------------------------------------- Hero */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-media { position: absolute; inset: 0 0 0 40%; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 22%, #000 50%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 22%, #000 50%);
}
.hero-inner { position: relative; min-height: clamp(520px, 62vh, 640px); display: flex; align-items: center; }
.hero-copy { max-width: 640px; padding-block: 72px 80px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.7rem, 1.4rem + 4.1vw, 4.6rem);
  line-height: 1.01; letter-spacing: -0.018em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.h1-line { display: block; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 470px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 16px; }

@media (max-width: 860px) {
  .hero-media { position: relative; inset: auto; height: 240px; order: 2; }
  .hero-media img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
    object-position: 40% 60%;
  }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { min-height: 0; }
  .hero-copy { padding-block: 48px 8px; }
}

/* ------------------------------------------------------------- Sections */

.section { padding-block: clamp(56px, 8vw, 100px); }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 640px; }
.section-head h2, .form-panel h2, .zip-bar h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem);
  line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 10px;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 16px; }
.section-head-split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* What you'll get */
.deliverables { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.deliverables li { padding: 24px 22px 26px 0; border-bottom: 1px solid var(--line); }
.deliverables li:not(:nth-child(4n+1)) { padding-left: 22px; border-left: 1px solid var(--line-soft); }
.deliverables .num { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--green); margin-bottom: 14px; }
.deliverables h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.deliverables p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deliverables li:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .deliverables li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-soft); }
}
@media (max-width: 480px) {
  .deliverables { grid-template-columns: 1fr; }
  .deliverables li:nth-child(even) { padding-left: 0; border-left: 0; }
  .deliverables li { padding: 18px 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; }
  .deliverables .num { grid-row: span 2; margin: 3px 0 0; }
}

/* ----------------------------------------------------------------- Cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.card-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.card h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.35; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-head { margin-bottom: 16px; }
.output {
  font-size: 14.5px; line-height: 1.65; color: var(--ink-2);
  white-space: pre-wrap; overflow-wrap: anywhere;
  margin: 0 0 20px;
}
.output-subject { font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line-soft); border-radius: 4px; padding: 10px 12px; margin-bottom: 14px; overflow-wrap: anywhere; }
.output-subject span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.card-note { font-size: 12.5px; color: var(--muted); margin: -8px 0 16px; }

.timeline { list-style: none; margin: 0 0 20px; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline .t-title { font-size: 14.5px; font-weight: 600; }
.timeline .t-date { font-size: 13px; color: var(--green); font-weight: 500; }
.timeline ul { margin: 6px 0 0; padding-left: 16px; font-size: 13.5px; color: var(--ink-2); }
.timeline ul li { padding: 0; }
.timeline ul li::before, .timeline ul li::after { display: none; }
.timeline .t-copy { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-2); margin-top: 6px; overflow-wrap: anywhere; }

.doc-preview {
  background: var(--paper-deep);
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 20px;
  display: flex; justify-content: center;
}
.doc-preview canvas {
  width: 100%; max-width: 250px; aspect-ratio: 8.5 / 11; height: auto;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(34,37,31,.08), 0 8px 24px rgba(34,37,31,.10);
}
.doc-preview.is-loading canvas { opacity: .4; }
.doc-preview .doc-fallback { font-size: 13px; color: var(--muted); align-self: center; text-align: center; }

/* ---------------------------------------------------------------- Example */

.example { background: var(--surface); }
.example-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.details-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 24px; }
.details-list { margin: 8px 0 0; }
.details-list div { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.details-list div:first-child { border-top: 0; padding-top: 4px; }
.details-list dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.details-list dd { margin: 2px 0 0; font-size: 14.5px; overflow-wrap: anywhere; }
.example-kicker { margin-left: 2px; }
.example-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.example-cards .card { background: var(--paper); }
.example-cards .doc-preview { background: var(--paper-deep); }
@media (max-width: 960px) {
  .example-grid { grid-template-columns: 1fr; }
  .details-card { position: static; }
}
@media (max-width: 640px) { .example-cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- Form */

.create-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.form-panel { background: var(--paper-deep); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.form-intro { color: var(--muted); font-size: 15px; margin-bottom: 26px; max-width: 560px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.span-2 { grid-column: span 2; }
.field { min-width: 0; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--error); margin-left: 1px; }
.opt { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.span-all { grid-column: 1 / -1; }

input[type="text"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid #D4CEC1;
  border-radius: 4px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #8C8F86; }
input:hover, select:hover, textarea:hover { border-color: #BDB6A6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 74, 55, .18); }
textarea { resize: vertical; min-height: 110px; }
select {
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
[aria-invalid="true"] { border-color: var(--error) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(155, 50, 34, .15) !important; }

.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.help-row { display: flex; justify-content: space-between; gap: 16px; }
.help.count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.field-error { font-size: 13px; color: var(--error); margin-top: 6px; font-weight: 500; }

.form-errors { background: var(--error-tint); border: 1px solid #E6C2B9; border-radius: 4px; padding: 14px 18px; margin-bottom: 24px; }
.form-errors:focus { outline: 2px solid var(--error); outline-offset: 2px; }
.form-errors-title { font-weight: 600; font-size: 14.5px; color: var(--error); }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.form-errors a { color: var(--error); }

.form-actions { margin-top: 28px; }
.form-actions .fine { margin-top: 10px; text-align: center; }

.create-aside { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 28px; color: var(--ink-2); font-size: 15px; }
.create-aside p + p { margin-top: 12px; }
.aside-title { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; color: var(--ink); margin-bottom: 16px; }
.create-aside hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.aside-small { font-size: 13.5px; color: var(--muted); }
.aside-small strong { color: var(--ink); font-weight: 600; }

@media (max-width: 960px) { .create-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .field-grid { grid-template-columns: 1fr; gap: 18px; }
  .span-2 { grid-column: auto; }
  .help-row { flex-direction: column; gap: 0; }
  .help.count { align-self: flex-end; margin-top: 2px; }
}

/* --------------------------------------------------------------- How it works */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: flex; gap: 16px; padding: 4px 28px 4px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
}
.steps h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 600; margin: 4px 0 6px; }
.steps p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li, .steps li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .steps li:first-child { border-top: 0; padding-top: 0; }
}

/* ---------------------------------------------------------------- Pricing */

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; position: relative; }
.price-card-featured { border-color: #B9C4B6; background: var(--white); }
.price-card h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.price { margin: 8px 0 18px; }
.price .amount { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.price .per { font-size: 14px; color: var(--muted); }
.badge { position: absolute; top: -11px; left: 26px; background: var(--green-tint); color: var(--green-dark); border: 1px solid #C5D1C2; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.checks { list-style: none; margin: 0 0 24px; padding: 0; font-size: 14.5px; color: var(--ink-2); }
.checks li { position: relative; padding: 5px 0 5px 24px; }
.checks li::before {
  content: ""; position: absolute; left: 3px; top: 10px;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}
.price-card .btn, #price-cta { margin-top: auto; align-self: flex-start; }
.price-note { grid-column: 1 / -1; max-width: 720px; padding: 8px 4px; font-size: 14px; color: var(--muted); }
.price-note h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 960px) {
  .price-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ----------------------------------------------------------------- Footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 44px 52px; font-size: 13.5px; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.6fr 1.3fr; gap: 32px; }
.footer-brand .wordmark { display: inline-block; margin-bottom: 8px; }
.footer-privacy h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.footer-meta p + p { margin-top: 8px; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; gap: 20px; } }

/* -------------------------------------------------------------------- Kit */

.kit { padding-block: 36px 72px; }
.kit-head { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-bottom: 28px; }
.kit-thumb { width: 132px; height: 92px; object-fit: cover; object-position: 30% 60%; border-radius: 4px; }
.kit-head .eyebrow { margin-bottom: 6px; }
.kit-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); line-height: 1.08; letter-spacing: -0.01em;
  overflow-wrap: anywhere; text-wrap: balance;
}
.kit-head h1:focus { outline: none; }
.kit-meta { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.kit-meta span { overflow-wrap: anywhere; }
.kit-head-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.kit-jump { display: flex; gap: 4px 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.kit-jump a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; padding: 10px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.kit-jump a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kit-grid .card { scroll-margin-top: 20px; }

.notice { border-radius: 4px; padding: 12px 16px; margin-bottom: 20px; font-size: 14.5px; }
.notice-error { background: var(--error-tint); border: 1px solid #E6C2B9; color: var(--error); }

.zip-bar {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.zip-bar h2 { font-size: 1.6rem; margin-bottom: 4px; }
.zip-bar p { color: var(--ink-2); font-size: 14.5px; }
.zip-bar .fine { margin-top: 6px; color: var(--muted); font-size: 13px; }
.kit-privacy { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 720px; }

@media (max-width: 1080px) { .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .kit-head { grid-template-columns: 1fr; gap: 16px; }
  .kit-thumb { display: none; }
  .kit-head-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .kit-grid { grid-template-columns: 1fr; }
  .kit-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .kit-jump::-webkit-scrollbar { display: none; }
  .kit-jump a { white-space: nowrap; }
  .zip-bar { flex-direction: column; align-items: stretch; padding: 22px; }
  .zip-bar .btn { white-space: normal; }
  .card { padding: 20px; }
}

/* ------------------------------------------------------------------ Print */

@media print {
  .site-header, .site-footer, .kit-jump, .card-actions, .zip-bar, .kit-head-actions { display: none !important; }
  body { background: #fff; }
}

/* The ZIP panel sits in the kit grid: it fills the last cell of the
   three-column layout and spans the full width otherwise. */
.kit-grid .zip-bar { margin-top: 0; flex-direction: column; align-items: flex-start; justify-content: center; }
@media (max-width: 1080px) {
  .kit-grid .zip-bar { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}
@media (max-width: 700px) {
  .kit-grid .zip-bar { flex-direction: column; align-items: stretch; }
}

/* Flyer design picker (event kit only) */
.design-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 16px; }
.design-picker-label { width: 100%; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.design-option[aria-pressed="true"] { background: var(--green-tint); border-color: #B9C4B6; color: var(--green-dark); }

/* Logo image (replaces the typeset wordmark) */
.wordmark { display: inline-flex; align-items: center; line-height: 0; }
.wordmark img { display: block; height: 42px; width: auto; }
.wordmark-sm img { height: 34px; }
@media (max-width: 760px) { .wordmark img { height: 32px; } }
@media (max-width: 400px) { .wordmark img { height: 27px; } }

/* "More designs": additional flyer directions, collapsed by default */
.design-choices { margin: -6px 0 16px; }
.design-choices .design-picker { margin: 0; }
.design-more { margin-top: 8px; }
.design-more > summary { cursor: pointer; font-size: 12.5px; color: var(--muted); width: fit-content; }
.design-more > summary:hover { color: var(--green-dark); }
.design-more .design-picker { margin-top: 6px; }
.design-more .design-picker-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Photo for the flyer: the file input is hidden behind a styled label */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.photo-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.photo-status { font-size: 14px; color: var(--ink-2, var(--ink)); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--green); text-decoration: underline; cursor: pointer; }

/* Flyer card design tools */
.flyer-photo { margin: -6px 0 16px; }
.photo-line { font-size: 14px; margin: 2px 0 8px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.design-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 12px; }
.design-thumb { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font: inherit; color: var(--ink); position: relative; }
.design-thumb:hover { border-color: #B9C4B6; }
.design-thumb[aria-pressed="true"] { background: var(--green-tint); border: 2px solid var(--green); padding: 7px 5px 9px; }
.design-thumb .thumb-art { display: flex; align-items: center; justify-content: center; width: 100%; height: 128px; }
.design-thumb canvas { display: block; width: auto; max-width: 100%; max-height: 128px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.thumb-name { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.25; }
.thumb-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--green); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.rec-note { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
.rec-note strong { color: var(--ink); font-weight: 600; }
.design-check { margin: 4px 0 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.design-check:empty { display: none; }
.design-check .design-picker-label { margin-bottom: 6px; }
.check-ok { font-size: 13.5px; color: var(--green-dark); }
.check-note { font-size: 13.5px; margin-bottom: 8px; }
.check-list { list-style: none; margin: 0 0 8px; padding: 0; }
.check-item { font-size: 13.5px; padding: 8px 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.check-item:first-child { border-top: 0; padding-top: 2px; }
.check-high > span::before { content: "\2022  "; color: var(--error); font-weight: 700; }
.copy-review { width: 100%; margin-top: 4px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.copy-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 2px; }
.copy-text { font-size: 14px; }
.copy-removed { font-size: 14px; color: var(--muted); text-decoration: line-through; }
@media (max-width: 400px) { .design-thumbs { gap: 6px; } .design-thumb .thumb-art { height: 104px; } .design-thumb canvas { max-height: 104px; } }

/* ------------------------------------------------------- Design studio */
/* The flyer card spans the kit: the live preview beside the gallery.   */

.kit-grid .card-flyer { grid-column: 1 / -1; }
.flyer-studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.studio-preview { position: sticky; top: 16px; min-width: 0; }
.studio-preview .doc-preview { padding: 26px; margin-bottom: 12px; }
.studio-preview .doc-preview canvas { max-width: 420px !important; }
.studio-current { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.studio-current strong { color: var(--ink); font-weight: 600; }
.studio-tools { min-width: 0; }
.gallery { margin-bottom: 8px; }
.gallery-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.gallery-tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.gallery-tab:hover { color: var(--green-dark); }
.gallery-tab[aria-selected="true"] { color: var(--green-dark); border-bottom-color: var(--green); font-weight: 600; }
.gallery-section { margin-bottom: 6px; }
.gallery-heading { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.gallery-note { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.gallery .design-thumbs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 12px; }
.thumb-sub { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.3; }
@media (max-width: 900px) {
  /* One column: preview, size, then the gallery and photo tools, then the download. */
  .flyer-studio { display: flex; flex-direction: column; gap: 0; }
  .studio-preview { display: contents; }
  .studio-preview > .doc-preview { order: 1; }
  .studio-preview > .studio-current { order: 2; }
  .studio-preview > .design-picker { order: 3; }
  .studio-tools { order: 4; }
  .studio-preview > .size-note { order: 5; }
  .studio-preview > .card-actions { order: 6; }
}
@media (max-width: 400px) {
  .gallery .design-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-preview .doc-preview { padding: 14px; }
}

/* "Browse free photos on Unsplash": a quiet line under the photo button. */
.photo-source { margin-top: 6px; }
.photo-source a { color: var(--green); }


/* Purchase panel above the event form (only when checkout is switched on). */
.purchase { margin: 0 0 22px; }
.purchase-buy { padding: 18px 20px; background: var(--white); border: 1px solid #B9C4B6; border-radius: var(--radius); }
.purchase-buy p { font-size: 14.5px; color: var(--ink-2, var(--ink)); margin-bottom: 12px; }
.purchase-buy .purchase-title { font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.purchase-status { font-size: 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--green-tint); color: var(--green-dark); }
.purchase-status.is-error { background: #F6E3DF; color: #7A2A1C; }

/* Watermarked preview before purchase: a banner with the way to buy; no downloads. */
.preview-banner { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; background: var(--white); border: 1px solid #B9C4B6; border-radius: var(--radius); }
.preview-banner p { font-size: 14.5px; color: var(--muted); max-width: 680px; }
.preview-banner .preview-title { font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.preview-banner .btn { flex: none; }
body.is-preview [data-action="download-all"], body.is-preview .kit-jump { display: none; }
@media (max-width: 640px) { .preview-banner { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------- Pricing: one offer */
/* One kit, one price: a single card across the width of the page, with   */
/* its content centred.                                                    */

.offer { position: relative; margin-top: 8px; padding: 44px 40px 36px; background: var(--white); border: 1px solid #B9C4B6; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(34, 37, 31, .04), 0 12px 32px rgba(34, 37, 31, .06); text-align: center; }
.offer .badge { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.offer-head { display: flex; flex-direction: column; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.offer-kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.offer-title { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1.1; color: var(--ink); }
.offer-price { order: 2; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; white-space: nowrap; }
.offer-amount { font-family: var(--serif); font-weight: 500; font-size: 4.5rem; line-height: .9; color: var(--ink); letter-spacing: -.01em; }
.offer-terms { font-size: 13px; line-height: 1.45; color: var(--muted); text-align: left; }
.offer-lede { order: 3; margin: 16px auto 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 36em; }
.offer-head > div { display: contents; }
.offer-includes { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 8px 72px; padding: 28px 0 10px; text-align: left; }
.offer-group { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.offer .checks { margin: 0; }
.offer-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 26px; margin-top: 16px; border-top: 1px solid var(--line-soft); }
.offer-foot #price-cta { margin: 0; align-self: center; }
.offer-zip { font-size: 14px; color: var(--muted); }
.offer-note { margin: 14px auto 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 46em; }
@media (max-width: 640px) {
  .offer { padding: 36px 22px 26px; }
  .offer-title { font-size: 1.9rem; }
  .offer-amount { font-size: 3.6rem; }
  .offer-includes { grid-template-columns: max-content; gap: 20px; padding-top: 22px; }
  .offer-foot #price-cta { align-self: stretch; }
  .offer-foot .btn { width: 100%; justify-content: center; text-align: center; }
}
