/* ShopShot Studio. A photo studio on paper: seamless-paper ground, studio-black ink,
   a cobalt "lighting gel" accent, and amber sticker highlights.
   Shared by every page. The home page adds /assets/home/home.css on top (tokens prefixed --h-),
   which remaps the accent tokens under body.home; nothing home-only lives in this file. */
:root {
  --paper: #f1f0ec;
  --paper-2: #e7e5df;
  --surface: #fbfbf9;
  --ink: #111014;
  --ink-2: #3c3a43;
  --muted: #6b6873;
  --line: #d9d6cf;
  --cobalt: #2f45ff;
  --cobalt-deep: #1d2bc4;
  --cobalt-soft: #e2e5ff;
  --amber: #ffb627;
  --dark: #0e0d12;
  --dark-2: #1a1920;
  --dark-ink: #f3f2ef;
  --dark-muted: #a3a0ad;
  --dark-line: #2e2c35;
  --good: #1d7a45;
  --danger: #b42318;
  /* Names the order and policy pages already use. */
  --bg: var(--paper);
  --tint: var(--paper-2);
  --accent: var(--cobalt);
  --accent-hover: var(--cobalt-deep);
  --accent-soft: var(--cobalt-soft);
  --ink-soft: var(--ink-2);
  --radius: 14px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgba(17, 16, 20, 0.06), 0 14px 34px rgba(17, 16, 20, 0.1);
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps anchor targets and focused controls clear of the sticky header (66px
   plus its 1px border) on every page; the home page adds its phone rail in base.css. */
html { scroll-behavior: smooth; scroll-padding-top: 79px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* z-index 21: one above the sticky header (20), so the focused link is never painted under it. */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 21; }
.skip-link:focus { left: 8px; }

/* Camera-readout labels */
.readout, .eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.readout-rec::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: #ff3b30; vertical-align: 1px; animation: rec 1.6s steps(2, jump-none) infinite;
}
@keyframes rec { 50% { opacity: 0.2; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 8px 16px; font-size: 15px; }
.btn-large { padding: 15px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(241, 240, 236, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo span { white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; }
/* The mark's inner dot: cobalt everywhere, amber-deep on the home page (which sets --logo-dot).
   A class rather than an inline style because the site's Content-Security-Policy blocks inline styles. */
.logo-dot { fill: var(--logo-dot, #2f45ff); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 7px 12px; border-radius: 999px; }
.main-nav a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
.main-nav .btn { margin-left: 8px; }
/* 899px matches the home page's phone rail, so the six links never show twice (header and rail)
   and never wrap to two lines beside the logo on tablets. */
@media (max-width: 899px) { .main-nav a:not(.btn) { display: none; } }
@media (max-width: 420px) {
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .main-nav .btn-small { padding: 7px 12px; font-size: 14px; }
}

/* Shared section type */
.section { padding: 88px 0; }
.section-tinted { background: var(--paper-2); }
.section-title {
  font: 900 clamp(40px, 5.6vw, 76px)/0.92 var(--display);
  text-transform: uppercase; letter-spacing: -0.005em;
}
.section-title em { font: italic 400 1.02em/1 var(--serif); text-transform: none; letter-spacing: 0; color: var(--cobalt); }
.section-lead { color: var(--ink-2); max-width: 60ch; margin-bottom: 36px; }
.page-title { font: 900 clamp(40px, 5vw, 64px)/0.95 var(--display); text-transform: uppercase; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 58ch; }

/* Steps (used on other pages) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 36px 0 0; list-style: none; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: left; }
.step h3 { font-size: 20px; }
.step p { color: var(--ink-2); margin: 0; }
.step-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cobalt-soft); color: var(--cobalt-deep); font-weight: 800; margin-bottom: 14px; }
.steps-compact { margin: 32px 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing: prints on a table (generated partial; restyled under #home-pricing on the home page) ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; margin-top: 12px; }
.price-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 32px 26px 26px; box-shadow: var(--shadow); transition: rotate 0.3s ease, translate 0.3s ease, box-shadow 0.3s ease;
}
.price-card:nth-child(1) { rotate: -1.4deg; }
.price-card:nth-child(2) { rotate: 0.8deg; translate: 0 -10px; }
.price-card:nth-child(3) { rotate: 1.5deg; }
.price-card:hover { rotate: 0deg; translate: 0 -14px; box-shadow: 0 2px 4px rgba(17, 16, 20, 0.06), 0 26px 50px rgba(17, 16, 20, 0.16); }
.price-card.featured { border: 2px solid var(--ink); }
.price-card h3 { font: 900 30px/1 var(--display); text-transform: uppercase; }
.badge { position: absolute; top: -16px; right: 20px; margin: 0; rotate: 4deg; background: var(--amber); color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 11px; }
.price { margin: 4px 0 18px; color: var(--muted); }
.price .amount { font: 900 64px/1 var(--display); color: var(--ink); }
.price-card .btn { margin-top: auto; }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card:nth-child(n) { translate: none; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--cobalt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%231d2bc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.checklist.small li { font-size: 15px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 28px/0.8 var(--font); color: var(--cobalt); transition: rotate 0.2s ease; }
details[open] summary::after { rotate: 45deg; }
details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; max-width: 64ch; }

/* Closing call to action */
.cta { background: var(--cobalt); color: #fff; padding-block: 104px; }
.cta-inner { text-align: center; }
.cta h2 { font: 900 clamp(52px, 9vw, 128px)/0.88 var(--display); text-transform: uppercase; margin-bottom: 20px; }
.cta h2 em { font: italic 400 1.04em/1 var(--serif); text-transform: none; color: var(--amber); }
.cta p { color: #dfe3ff; font-size: 19px; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--amber); color: var(--ink); }

/* ---------- Order page ---------- */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; } }
.order-form { margin-top: 24px; }
.field-group { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 22px 24px 24px; margin: 0 0 20px; min-width: 0; }
.field-group legend { font: 900 24px/1 var(--display); text-transform: uppercase; padding: 0 6px; margin-left: -6px; }
.field-label { display: block; font-weight: 650; margin: 18px 0 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-small); padding: 11px 13px;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.hint { color: var(--muted); font-size: 15px; }

.package-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 640px) { .package-options { grid-template-columns: 1fr; } }
.package-option { position: relative; cursor: pointer; }
.package-option input { position: absolute; opacity: 0; }
.package-body { display: flex; flex-direction: column; gap: 2px; height: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-small); padding: 14px; background: var(--paper); }
.package-option input:checked + .package-body { border-color: var(--cobalt); background: var(--cobalt-soft); box-shadow: 0 0 0 1px var(--cobalt); }
.package-option input:focus-visible + .package-body { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.package-name { font-weight: 700; }
.package-price { font: 900 30px/1.1 var(--display); }
.package-detail { font-size: 14px; color: var(--ink-2); }

.subgroup { border: 0; padding: 0; margin: 0; min-width: 0; }
.subgroup legend { padding: 0; }
.style-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 4px; }
.style-option { position: relative; cursor: pointer; }
.style-option input { position: absolute; opacity: 0; }
.style-body { display: flex; flex-direction: column; gap: 2px; height: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-small); padding: 11px 13px; background: var(--paper); }
.style-option input:checked + .style-body { border-color: var(--cobalt); background: var(--cobalt-soft); box-shadow: 0 0 0 1px var(--cobalt); }
.style-option input:focus-visible + .style-body { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.style-name { font-weight: 700; font-size: 15px; }
.style-detail { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin-top: 10px; padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; text-align: center; transition: border-color 0.15s ease, background-color 0.15s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--cobalt); background: var(--cobalt-soft); }
.dropzone-title { font-weight: 700; color: var(--cobalt-deep); }
#photos:focus-visible + .previews, #photos:focus-visible ~ .dropzone { outline: 3px solid var(--cobalt); }
.previews { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.previews li { width: 96px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.previews img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 4px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--cobalt); flex: none; }
.form-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c2bd; border-radius: var(--radius-small); padding: 12px 14px; margin-bottom: 14px; font-weight: 550; }
.notice { background: var(--cobalt-soft); border: 1px solid #c3cafe; border-radius: var(--radius-small); padding: 12px 14px; margin: 16px 0; }
.status { min-height: 1.6em; margin-top: 12px; color: var(--ink-2); font-weight: 550; text-align: center; }

.order-summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.order-summary h2 { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.summary-package { font-size: 22px; font-weight: 750; margin: 0; }
.summary-detail { color: var(--ink-2); margin: 2px 0 8px; }
.summary-price { font: 900 52px/1 var(--display); margin-bottom: 18px; }

/* Prose pages */
.prose h2 { font-size: 23px; margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 15px; }
address { font-style: normal; line-height: 1.6; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h2 { margin-top: 0; font-size: 18px; }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 52px 0 24px; color: var(--ink-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 28px; }
.footer-grid h2 { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.footer-name { font: 900 28px/1 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
