:root {
  --ink: #1c1915;
  --muted: #5e584e;
  --paper: #f4efe6;
  --paper-2: #e7e0d4;
  --card: #fffdf8;
  --line: #ddd4c6;
  --spot: #d94a32;
  --spot-dark: #a93220;
  --navy: #1e3f66;
  --gold: #e2b33c;
  --ok: #1d7a46;
  --danger: #9d2c2c;
  --table: #121418;
  --shadow: 0 18px 50px rgba(40, 32, 20, 0.08);
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --arabic: "Noto Naskh Arabic", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, #fff 0%, transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 0.2rem 0 0.8rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.6rem; }
p { margin: 0.4rem 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  padding: 1rem 0 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand strong { display: block; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.03em; }
.brand span { display: block; color: var(--muted); font-size: 0.82rem; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links a:hover { color: var(--spot); }

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: #f7f3eb;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { background: var(--spot); color: white; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.secondary:hover { background: var(--ink); color: white; }
.button.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }
.button.full { width: 100%; }
button.linkish {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; padding: 1.5rem 0 2.5rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; font-weight: 600; color: var(--spot); margin: 0; }
.lede { font-size: 1.15rem; max-width: 38rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

.hero-films { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.hero-film {
  background: white;
  min-height: 150px;
  border-radius: 8px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-film::before, .hero-film::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.hero-film::before { width: 28px; height: 2px; top: 14px; left: 10px; box-shadow: 0 120px 0 var(--ink); }
.hero-film::after { width: 2px; height: 28px; top: 8px; left: 18px; }
.hero-film i {
  position: absolute;
  inset: 34px 22px 28px;
  background: var(--swatch, var(--spot));
  clip-path: polygon(10% 20%, 80% 0, 100% 70%, 20% 100%);
}
.hero-film:nth-child(2) i { clip-path: circle(36% at 60% 45%); background: var(--gold); }
.hero-film:nth-child(3) i { clip-path: polygon(0 30%, 100% 20%, 100% 80%, 0 70%); background: var(--navy); }
.hero-film:nth-child(4) i { clip-path: inset(20% 15% 25% 20%); background: #1d7a46; }

.section { padding: 1rem 0 2.4rem; }
.steps, .split, .size-grid, .film-grid, .compare { display: grid; gap: 1rem; }
.steps { grid-template-columns: repeat(5, 1fr); }
.step, .card, .pay-card, .quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.step b {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--spot);
}
.split { grid-template-columns: 1fr 1fr; }
.muted { color: var(--muted); }
.legal { font-family: var(--arabic); font-size: 1.15rem; }

.quote-table, .admin-table { width: 100%; border-collapse: collapse; }
.quote-table td { padding: 0.35rem 0; }
.quote-table td:last-child, .admin-table td:last-child { text-align: right; }
.total-line { font-size: 1.35rem; font-family: var(--serif); }
.admin-table th, .admin-table td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table a { font-weight: 600; }

.order-layout { display: grid; grid-template-columns: 1.45fr 0.8fr; gap: 1rem; align-items: start; }
.size-grid { grid-template-columns: repeat(3, 1fr); }
.size-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 92px;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.size-card input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size-card:has(input:checked) { border-color: var(--spot); box-shadow: inset 0 0 0 1px var(--spot); }
.size-card:has(input:focus-visible) { outline: 2px solid var(--spot); outline-offset: 2px; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field { margin: 0.9rem 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}
textarea { min-height: 90px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--spot); }
.field-error { color: var(--danger); display: block; font-size: 0.92rem; margin-top: 0.25rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 0.25rem; }
.pay-card { position: sticky; top: 1rem; }
.colors-readout { font-family: var(--serif); font-size: 2rem; }

.flash, .banner, .notice {
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
}
.flash-ok, .notice { background: #e5f5eb; color: #145232; }
.flash-error { background: #fde8e4; color: var(--danger); }
.banner { background: #fff4d6; color: #6a4b00; }

.compare { grid-template-columns: 1fr 1fr; }
.compare > *, .film-grid > *, .order-layout > *, .split > *, .hero > * { min-width: 0; }
.compare figure, .film-sheet { margin: 0; min-width: 0; }
.compare img, .film-sheet img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #efe8dc;
  border-radius: 8px;
}
.compare img { max-height: 520px; }
.film-sheet img { max-height: 280px; background: white; }
.compare figcaption, .film-sheet figcaption { margin-top: 0.45rem; font-size: 0.92rem; }

.light-table {
  background: radial-gradient(circle at 20% 0%, #2a3142, var(--table) 45%);
  color: #f6f1e8;
  border-radius: 22px;
  padding: 1.2rem;
  margin: 1rem 0;
}
.light-table h2 { color: white; }
.film-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.film-sheet { background: white; color: var(--ink); padding: 0.45rem; border-radius: 10px; }
.swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.25);
  vertical-align: -2px;
  margin-right: 0.25rem;
}

.stepper, .timeline { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.stepper { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stepper li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.88rem;
}
.stepper .is-done { background: #d9efe3; }
.stepper .is-current { background: var(--ink); color: white; }
.timeline li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.tracking-code { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.03em; margin: 0.2rem 0; }
.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.85rem;
  font-weight: 600;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
.filters a { text-decoration: none; padding: 0.35rem 0.7rem; border-radius: 999px; color: var(--ink); background: var(--paper-2); }
.filters a.is-on { background: var(--ink); color: white; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.site-footer { padding: 2rem 0 3rem; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.color-presets { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.swatch-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
}
.swatch-btn.is-on { outline: 2px solid var(--spot); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.studio-toolbar, .text-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 0.6rem 0; }
.text-tools { align-items: center; }
.text-tools input[type="text"], .text-tools select { width: auto; min-width: 10rem; }
.studio-canvas {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  touch-action: none;
  background: white;
  cursor: grab;
}
.proof-live img {
  display: block;
  width: 100%;
  max-width: 520px;
  max-height: 640px;
  object-fit: contain;
  border-radius: 12px;
  background: #efe8dc;
}
.ink-editor { display: flex; flex-direction: column; gap: 0.55rem; margin: 0.6rem 0 1rem; }
.ink-row { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.ink-row input[type="color"] { width: 48px; height: 36px; padding: 0; border: 0; background: transparent; }

@media (max-width: 900px) {
  .hero, .steps, .split, .order-layout, .compare, .size-grid, .row-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pay-card { position: static; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
@media print {
  .nav, .site-footer, .no-print, .flash, .banner { display: none !important; }
  body { background: white; }
  .light-table { background: white; color: black; }
}
