/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --warm-white: #FAFAF8;
  --stone:      #E8E3DC;
  --ink:        #1A1A1A;
  --ink-mid:    #3D3935;
  --muted:      #7A7570;
  --clay:       #C4622D;
  --clay-light: #F2E8E1;
  --clay-dark:  #9E4A1E;
  --border:     #DDD8D0;
  --white:      #FFFFFF;

  /* calculator tokens — kept for the embedded tool */
  --bg:     #F5F2EE;
  --panel:  #FFFFFF;
  --line:   #DDD8D0;
  --accent: #C4622D;
  --grid:   rgba(196,98,45,0.45);

  --font-sans:     'Inter', system-ui, sans-serif;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-logo:     'Playfair Display', Georgia, serif;
  --hero-font-weight: 700;
  --hero-letter-spacing: -0.03em;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
.display {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
}
h2.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.logo-mark span {
  border-radius: 2px;
  background: var(--clay);
  opacity: 0.3;
}
.logo-mark span:nth-child(2) { opacity: 0.7; }
.logo-mark span:nth-child(4) { opacity: 0.6; }
.logo-mark span:nth-child(5) { opacity: 1; }
.logo-mark span:nth-child(6) { opacity: 0.5; }
.logo-mark span:nth-child(8) { opacity: 0.85; }
.logo-name {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.logo-name em {
  font-style: italic;
  color: var(--clay);
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  transition: color .2s;
}
nav a:hover { color: var(--clay); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  transition: border-color .2s, color .2s;
}
.header-phone:hover { border-color: var(--clay); color: var(--clay); }
.header-phone svg { flex-shrink: 0; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--warm-white);
  padding: 90px 32px 80px;
}
/* Mosaic tile background — the signature element */
.hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 3px;
  padding: 3px;
  opacity: 0.07;
  pointer-events: none;
}
.hero-mosaic span {
  border-radius: 3px;
  background: var(--clay);
}
.hero-mosaic span:nth-child(3n) { opacity: 0.4; }
.hero-mosaic span:nth-child(5n) { opacity: 0.7; }
.hero-mosaic span:nth-child(7n) { opacity: 0.2; }
.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text {}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--clay-light);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
}
.hero-h1 {
  font-family: var(--font-heading);
  font-weight: var(--hero-font-weight);
  font-size: clamp(38px, 5.5vw, 66px);
  line-height: 1.05;
  letter-spacing: var(--hero-letter-spacing);
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-h1__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}
.hero-h1__line:last-child {
  margin-bottom: 0;
  padding-bottom: 0.22em;
}
.hero-h1__line-inner {
  display: block;
  transform: translate3d(0, 115%, 0);
  opacity: 0;
  will-change: transform, opacity;
}
.hero.is-inview .hero-h1__line-inner {
  animation: hero-title-line-in 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s + (var(--hero-line-i, 0) * 0.13s));
}
@keyframes hero-title-line-in {
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-h1__line-inner {
    transform: none;
    opacity: 1;
    animation: none !important;
  }
}
.hero-h1 em {
  font-style: italic;
  color: var(--clay);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 440px;
}
.hero-sub p {
  margin: 0;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 9px;
  transition: background .2s, transform .15s;
  cursor: pointer;
  border: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  transition: border-color .2s, color .2s;
  cursor: pointer;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--clay); color: var(--clay); }
.hero-visual {
  position: relative;
}
.hero-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.hero-tile {
  aspect-ratio: 1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
/* Each tile gets a unique hand-crafted gradient to simulate printed tiles */
.ht-1  { background: linear-gradient(135deg, #d4956a 0%, #b06a3a 100%); }
.ht-2  { background: linear-gradient(135deg, #8fb5c8 0%, #5a8fa8 100%); }
.ht-3  { background: linear-gradient(135deg, #c8b89a 0%, #9a8570 100%); }
.ht-4  { background: linear-gradient(135deg, #7aaa8a 0%, #4a7a5a 100%); }
.ht-5  { background: linear-gradient(135deg, #e8d5b8 0%, #c4aa88 100%); }
.ht-6  { background: linear-gradient(135deg, #c4622d 0%, #9e4a1e 100%); }
.ht-7  { background: linear-gradient(135deg, #9580aa 0%, #6a5a80 100%); }
.ht-8  { background: linear-gradient(135deg, #d4c5b0 0%, #a89880 100%); }
.ht-9  { background: linear-gradient(135deg, #e8a870 0%, #c07840 100%); }
.ht-10 { background: linear-gradient(135deg, #a8c8d8 0%, #78a0b8 100%); }
.ht-11 { background: linear-gradient(135deg, #c8d8b0 0%, #98a880 100%); }
.ht-12 { background: linear-gradient(135deg, #e8c8a0 0%, #c0985a 100%); }
.ht-13 { background: linear-gradient(135deg, #b8a0c8 0%, #887098 100%); }
.ht-14 { background: linear-gradient(135deg, #d8c8b0 0%, #b09878 100%); }
.ht-15 { background: linear-gradient(135deg, #a0c8b0 0%, #609878 100%); }
.ht-16 { background: linear-gradient(135deg, #e8d0b8 0%, #c8a080 100%); }
/* Tile grain overlay */
.hero-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }

/* ── STATS BAR ───────────────────────────────────────── */
.stats-bar {
  background: var(--stone);
  color: var(--ink);
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  justify-content: space-around;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  padding: 8px 32px;
}
.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

/* ── SECTIONS (shared) ───────────────────────────────── */
.section {
  padding: 96px 32px;
}
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}
.section-header p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── HOW IT WORKS ────────────────────────────────────── */
.how-section { background: var(--stone); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--clay);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── EXAMPLES ────────────────────────────────────────── */
.examples-section { background: var(--warm-white); }
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.example-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform .25s, box-shadow .25s;
}
.example-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.example-card:first-child { grid-column: span 2; }
.example-visual {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.example-card:first-child .example-visual { aspect-ratio: 2/1; }
/* Simulated tile art previews using CSS patterns */
.ev-kitchen {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 58px, rgba(255,255,255,.4) 58px, rgba(255,255,255,.4) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 58px, rgba(255,255,255,.4) 58px, rgba(255,255,255,.4) 60px),
    linear-gradient(135deg, #e8c5a0 0%, #c4622d 40%, #8fb5c8 70%, #4a7a5a 100%);
}
.ev-bathroom {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(255,255,255,.35) 38px, rgba(255,255,255,.35) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(255,255,255,.35) 38px, rgba(255,255,255,.35) 40px),
    linear-gradient(160deg, #8fb5c8 0%, #5a8fa8 50%, #3a6a88 100%);
}
.ev-mural {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(0,0,0,.12) 28px, rgba(0,0,0,.12) 30px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(0,0,0,.12) 28px, rgba(0,0,0,.12) 30px),
    linear-gradient(120deg, #c8d8b0 0%, #7aaa8a 30%, #c4622d 65%, #e8c890 100%);
}
.ev-commercial {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,255,255,.3) 48px, rgba(255,255,255,.3) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,.3) 48px, rgba(255,255,255,.3) 50px),
    linear-gradient(45deg, #1a1a1a 0%, #3d3935 50%, #c4622d 100%);
}
.ev-patio {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 46px, rgba(255,255,255,.25) 46px, rgba(255,255,255,.25) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 46px, rgba(255,255,255,.25) 46px, rgba(255,255,255,.25) 48px),
    linear-gradient(135deg, #c8b89a 0%, #9a8570 40%, #7aaa8a 100%);
}
.ev-portrait {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,.2) 24px, rgba(255,255,255,.2) 26px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255,255,255,.2) 24px, rgba(255,255,255,.2) 26px),
    radial-gradient(ellipse at 40% 40%, #e8c5a0 0%, #c4622d 45%, #3d3935 100%);
}
.example-info { padding: 18px 20px; }
.example-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--clay-light);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.example-info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.example-info p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.example-visual .example-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── CALCULATOR SECTION ──────────────────────────────── */
.calc-section { background: var(--stone); }

/* Override calculator internals to match site palette */
.calc-wrap {
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.calc-preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #c8e6d4;
  background: #edf8f1;
  color: #1f6b45;
  font-size: 14px;
}
.calc-preview-banner span {
  color: var(--ink-mid);
}
.calc-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 22px 28px;
}
.calc-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
}
.calc-header p { font-size: 14px; color: var(--muted); }

.calc-gate {
  padding: 48px 28px 56px;
  display: flex;
  justify-content: center;
}
.calc-gate__card {
  max-width: 520px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}
.calc-gate__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.calc-gate__message {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.calc-gate__message p:last-child { margin-bottom: 0; }
.calc-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Calculator inner layout */
.calc-body { padding: 20px; }
.calc-body .wrap {
  display: flex;
  gap: 20px;
  padding: 0;
  flex-wrap: wrap;
}
.calc-body .controls {
  flex: 0 0 300px;
  width: 300px;
  max-width: 100%;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  height: fit-content;
}
.calc-body .stage-col { flex: 1; min-width: 0; }
.calc-body label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 14px 0 5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.calc-body label:first-child { margin-top: 0; }
.calc-body .row { display: flex; gap: 10px; }
.calc-body .row > div { flex: 1; }
.calc-body label.calc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
}
.calc-body label.calc-toggle[hidden] {
  display: none;
}
.calc-toggle__label { line-height: 1.3; }
.calc-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.calc-toggle__track {
  flex-shrink: 0;
  width: 34px;
  height: 18px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}
.calc-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}
.calc-toggle__input:checked + .calc-toggle__track {
  background: var(--clay);
}
.calc-toggle__input:checked + .calc-toggle__track .calc-toggle__thumb {
  transform: translateX(16px);
}
.calc-toggle__input:focus-visible + .calc-toggle__track {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.calc-band-panel {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--warm-white);
}
.calc-band-panel__intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.calc-band-panel__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.calc-band-panel__meta strong {
  color: var(--ink);
  font-weight: 700;
}
.calc-body .stat--wide {
  grid-column: 1 / -1;
}
.area-split {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  transform: translateY(-50%);
  pointer-events: none;
}
.area-split__line {
  height: 2px;
  background: var(--clay);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}
.area-split__handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 16px;
  border: 2px solid var(--clay);
  border-radius: 999px;
  background: var(--white);
  cursor: ns-resize;
  pointer-events: auto;
  padding: 0;
}
.area-split__handle:hover,
.area-split__handle:focus-visible {
  background: var(--clay-light);
  outline: none;
}
.calc-body input[type="number"],
.calc-body select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  font-family: var(--font-sans);
  color: var(--ink);
}
.calc-file-upload {
  margin-top: 2px;
  min-width: 0;
  max-width: 100%;
}
.calc-file-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.calc-file-upload__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: var(--clay);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-sans);
  border: 1.5px solid transparent;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}
.calc-body label.calc-file-upload__trigger {
  display: flex;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
.calc-file-upload__trigger:hover,
.calc-body label.calc-file-upload__trigger:hover {
  background: var(--clay-dark);
  color: #fff;
  transform: translateY(-1px);
}
.calc-file-upload__trigger:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.calc-file-upload__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.calc-file-upload__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.calc-file-upload__meta[hidden] {
  display: none;
}
.calc-file-upload__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--ink-mid);
}
.calc-file-upload__clear {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--clay);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
}
.calc-file-upload__clear:hover {
  color: var(--clay-dark);
}
.calc-file-upload.has-file .calc-file-upload__trigger,
.calc-file-upload.has-file label.calc-file-upload__trigger {
  background: var(--white);
  color: var(--clay);
  border-color: var(--clay);
}
.calc-file-upload.has-file .calc-file-upload__trigger:hover,
.calc-file-upload.has-file label.calc-file-upload__trigger:hover {
  background: var(--clay-light);
  color: var(--clay-dark);
  transform: none;
}
.calc-body .opacity-row { display: flex; align-items: center; gap: 10px; }
.calc-body .opacity-row input[type="range"] { flex: 1; accent-color: var(--clay); }
.calc-stage-toolbar {
  margin-bottom: 12px;
}
.calc-stage-toolbar[hidden] {
  display: none;
}
.calc-stage-toolbar .calc-btn-row {
  margin-top: 0;
}
.calc-stage-toolbar .btn {
  margin-top: 0;
}
.calc-body .stage {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
}
.calc-body .area {
  position: relative;
  margin: 0 auto;
  background: #fafbfc;
  border: 2px solid var(--ink);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  cursor: grab;
  overflow: hidden;
}
.calc-body .area.is-masonry {
  background-image: none;
}
.calc-body .area-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.calc-body .area.dragging { cursor: grabbing; }
.calc-body .area img {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  transform-origin: top left;
  z-index: 1;
}
.calc-body .headline {
  margin-top: 16px;
  background: var(--clay);
  color: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.calc-body .headline .hl-n { font-size: 40px; font-weight: 800; line-height: 1; font-family: var(--font-heading); }
.calc-body .headline .hl-l { font-size: 15px; font-weight: 600; opacity: .92; }
.calc-body .headline .hl-l span { font-weight: 400; opacity: .8; }
.calc-body .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.calc-body .stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.calc-body .stat .n { font-size: 22px; font-weight: 700; }
.calc-body .stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.calc-body .divider { border: none; border-top: 1px solid var(--border); margin: 14px 0 2px; }
.calc-body .pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.calc-body .price-card {
  border-radius: 10px;
  padding: 14px 12px;
  border: 1px solid var(--border);
}
.calc-body .price-card.tile-cost  { background: #EFF6FF; border-color: #BFDBFE; }
.calc-body .price-card.print-cost { background: #F0FDF4; border-color: #BBF7D0; }
.calc-body .price-card.total-cost { background: #FEF9EE; border-color: #FDE68A; }
.calc-body .pc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 5px; }
.calc-body .pc-amount { font-size: 20px; font-weight: 800; color: var(--ink); }
.calc-body .pc-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.calc-body .hint { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.calc-body .calc-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.calc-body .calc-btn-row .btn {
  flex: 1;
  margin-top: 0;
  width: auto;
}
.calc-body .btn {
  margin-top: 12px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-sans);
  transition: background .15s;
}
.calc-body .btn:hover { background: var(--stone); }

/* ── CTA BANNER ──────────────────────────────────────── */
.cta-section {
  background: var(--clay);
  padding: 96px 32px;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-section p { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.btn-white {
  background: #fff;
  color: var(--clay);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 10px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.cta-section .hero-ctas { justify-content: center; margin-top: 8px; }
.cta-section .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.cta-section .btn-outline:hover {
  color: #fff;
  border-color: #fff;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-logo .logo-name { color: var(--ink); }
.footer-logo p { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 260px; line-height: 1.6; }
.footer-links h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--clay); }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-contact a:hover { color: var(--clay); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .examples-grid { grid-template-columns: 1fr; }
  .example-card:first-child { grid-column: span 1; }
  nav { display: none; }
  .calc-body .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
  .stats-bar-inner { flex-direction: column; gap: 20px; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--border); padding-top: 20px; }
  .section { padding: 64px 20px; }
  .contact-page .contact-section { padding: 48px 20px 64px; }
  .contact-page .contact-hero-header { margin-bottom: 32px; }
  .hero { padding: 64px 20px; }
  .calc-body .controls { flex: 1 1 100%; width: auto; }
}

/* ── SUBMISSION PANEL (Formidable) ───────────────────── */
.tilecraft-submission-panel {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.tilecraft-submission-panel[hidden] {
  display: none;
}
.tilecraft-submission-panel.is-open {
  animation: tilecraft-panel-in 0.35s ease;
}
@keyframes tilecraft-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tilecraft-submission-panel__header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--warm-white);
}
.tilecraft-submission-panel__header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.tilecraft-submission-panel__header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.tilecraft-submission-panel__notice {
  margin: 18px 28px 0;
  padding: 12px 14px;
  background: var(--clay-light);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
}
.tilecraft-submission-panel__notice[hidden] {
  display: none;
}
.tilecraft-submission-panel__body {
  padding: 24px 28px 28px;
}
.tilecraft-submission-panel .frm_forms {
  max-width: none;
}
.tilecraft-submission-panel .frm_form_fields > fieldset {
  padding: 0;
}
.tilecraft-form-notice {
  font-size: 14px;
  color: var(--muted);
  padding: 16px;
  background: var(--stone);
  border-radius: 8px;
}

/* ── CONTACT PAGE ────────────────────────────────────── */
.contact-page .contact-section {
  padding: 56px 32px 96px;
  background: var(--stone);
}
.contact-page .contact-hero-header {
  margin-bottom: 40px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 28px;
  align-items: start;
}
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
}
.contact-card h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.contact-card__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color .2s;
}
a.contact-card__value:hover {
  color: var(--clay);
}
.contact-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.contact-card--accent {
  background: var(--clay-light);
  border-color: rgba(196,98,45,.25);
}
.contact-card--accent h2 {
  color: var(--clay);
}
.contact-card--accent .btn-primary {
  margin-top: 14px;
  display: inline-block;
}
.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.contact-form-panel__header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--warm-white);
}
.contact-form-panel__header h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.contact-form-panel__header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.contact-form-panel__body {
  padding: 24px 28px 28px;
}
.tilecraft-form-panel .frm_forms {
  max-width: none;
}
.tilecraft-form-panel .frm_form_fields > fieldset {
  padding: 0;
}
.tilecraft-form-panel .frm_button_submit,
.tilecraft-form-panel .frm_final_submit {
  background: var(--clay) !important;
  border-color: var(--clay) !important;
  border-radius: 9px !important;
  font-weight: 600 !important;
  padding: 12px 22px !important;
}
.tilecraft-form-panel .frm_button_submit:hover,
.tilecraft-form-panel .frm_final_submit:hover {
  background: var(--clay-dark) !important;
  border-color: var(--clay-dark) !important;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ── THANK YOU PAGE ────────────────────────────────── */
.thank-you-page .thank-you-section {
  padding: 72px 32px 96px;
  background: var(--stone);
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}
.thank-you-inner {
  max-width: 640px;
  margin: 0 auto;
}
.thank-you-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px 36px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(28, 24, 20, .06);
}
.thank-you-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--clay-light);
  color: var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thank-you-header {
  margin-bottom: 28px;
}
.thank-you-header .section-title {
  margin-bottom: 12px;
}
.thank-you-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.thank-you-intro p {
  margin: 0;
}
.thank-you-ref {
  display: inline-block;
  margin: 0 0 28px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--stone);
  border-radius: 999px;
}
.thank-you-next {
  text-align: left;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.thank-you-next h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
}
.thank-you-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thank-you-steps li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@media (max-width: 640px) {
  .thank-you-page .thank-you-section {
    padding: 48px 20px 64px;
  }
  .thank-you-card {
    padding: 32px 22px 28px;
  }
  .thank-you-actions {
    flex-direction: column;
  }
  .thank-you-actions .btn-primary,
  .thank-you-actions .btn-outline {
    width: 100%;
    text-align: center;
  }
}

/* ── ARTWORK QUEUE ─────────────────────────────────── */
.artwork-queue__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.artwork-queue__repair-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #b8dfc8;
  border-radius: 10px;
  background: #edf8f1;
  color: #1f6b45;
  font-size: 14px;
}
.artwork-queue__filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
  background: var(--white);
}
.artwork-queue__filter:hover,
.artwork-queue__filter.is-active {
  border-color: var(--clay);
  color: var(--clay-dark);
  background: var(--clay-light);
}
.artwork-queue__empty {
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.artwork-queue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.artwork-queue__card {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.artwork-queue__card.is-updating {
  opacity: 0.72;
}
.artwork-queue__card.is-updated {
  border-color: #1f6b45;
  box-shadow: 0 12px 28px rgba(31, 107, 69, 0.12);
}
.artwork-queue__card.is-error {
  border-color: #b44;
}
.artwork-queue__card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}
.artwork-queue__card-link:hover {
  color: inherit;
}
.artwork-queue__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 26, 26, 0.08);
}
.artwork-queue__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--stone);
}
.artwork-queue__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artwork-queue__thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}
.artwork-queue__file-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--stone) 0%, #ebe4dc 100%);
}
.artwork-queue__file-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--clay-dark);
}
.artwork-queue__file-name {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.artwork-queue__status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-mid);
}
.artwork-queue__status--pending {
  color: #9e4a1e;
  background: #f2e8e1;
}
.artwork-queue__status--approved {
  color: #1f6b45;
  background: #e6f4ec;
}
.artwork-queue__status--rejected {
  color: #8b2f2f;
  background: #fdecec;
}
.artwork-queue__incomplete-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b5a2f;
  background: rgba(255, 255, 255, 0.92);
}
.artwork-queue__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px 16px 0;
  border-top: 1px solid var(--border);
  background: #faf8f6;
}
.artwork-queue__footer-status {
  padding-bottom: 12px;
}
.artwork-queue__footer-status .artwork-queue__status-control {
  width: 100%;
}
.artwork-queue__footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 -16px;
  padding: 12px 16px 14px;
}
.artwork-queue__footer-status + .artwork-queue__footer-links {
  border-top: 1px solid var(--border);
}
.artwork-queue__status-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.artwork-queue__status-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.artwork-queue__status-select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
}
.artwork-queue__open-entry {
  font-size: 12px;
  font-weight: 600;
  color: var(--clay-dark);
  text-decoration: none;
  white-space: nowrap;
}
.artwork-queue__open-entry:hover {
  text-decoration: underline;
}
.artwork-queue__open-calculator {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
  white-space: nowrap;
}
.artwork-queue__open-calculator:hover {
  color: var(--clay-dark);
  text-decoration: underline;
}
.artwork-queue__body {
  padding: 16px 18px 18px;
}
.artwork-queue__title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}
.artwork-queue__meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.artwork-queue__stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-mid);
}
.tilecraft-artwork-queue-admin .artwork-queue {
  max-width: 1200px;
  margin-top: 16px;
}
.artwork-queue-page .section-inner {
  max-width: 1200px;
}
