/* Ketchup No Mayo, site styles. Clean, modern, image-led. Tokens are shared with app.css and pages.css. */
:root {
  --cream: #FFFFFF;          /* page background */
  --surface: #F5F5F3;        /* alternate sections, tiles */
  --paper: #FFFFFF;          /* cards */
  --ink: #0E0E0E;
  --ink-2: #2A2A2A;
  --muted: #6F6F6B;
  --line: #E8E7E3;
  --ketchup: #E2321F;
  --ketchup-dark: #B5240F;
  --ketchup-tint: #FDEDEA;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 12px 32px -16px rgba(14, 14, 14, .18);
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16.5px/1.6 var(--body); letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ketchup); outline-offset: 3px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .8rem/1 var(--body); letter-spacing: .02em; color: var(--muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ketchup); }
.accent { color: var(--ketchup); }
.muted { color: var(--muted); }
.section { padding: clamp(80px, 11vw, 144px) 0; }
.section-sub { color: var(--muted); max-width: 580px; font-size: 1.05rem; }
.tag {
  display: inline-block; font: 500 .72rem/1 var(--body); letter-spacing: .01em;
  padding: 7px 10px; border-radius: 999px; background: rgba(14, 14, 14, .82); color: #fff; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tag-light { background: rgba(255, 255, 255, .9); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none; font: 500 .95rem/1 var(--body);
  padding: 15px 22px; border-radius: 999px; border: 1px solid var(--ink);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--ketchup); border-color: var(--ketchup); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.btn-small { padding: 10px 16px; font-size: .9rem; }
.btn-large { font-size: 1rem; padding: 18px 28px; overflow-wrap: anywhere; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 1.12rem/1 var(--display); letter-spacing: -0.03em; }
.logo em { font-style: normal; font-weight: 500; color: var(--muted); }
.logo-dot { width: 22px; height: 22px; flex: none; }
.logo-dot circle { fill: var(--ketchup); }
.logo-dot ellipse { fill: #fff; opacity: .5; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink-2); transition: color .15s; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--ketchup); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 11ch; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 40px; }
.disciplines { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.disciplines li { font-size: .85rem; color: var(--ink-2); background: var(--surface); border-radius: 999px; padding: 7px 12px; }
.hero-visual { position: relative; margin: 0; }
.hero-shot { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.hero-visual > .tag { position: absolute; top: 16px; right: 16px; }
.snapshot-card { position: absolute; left: 16px; bottom: 16px; width: 30%; background: #fff; padding: 6px; border-radius: 14px; box-shadow: var(--shadow); }
.snapshot-card img { border-radius: 9px; aspect-ratio: 1; object-fit: cover; }
.snapshot-card .tag { position: absolute; left: 12px; top: 12px; }

/* Work carousel */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: .3em; }
.carousel-controls { display: flex; gap: 8px; flex: none; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.05rem; cursor: pointer; transition: background .2s, border-color .2s; }
.round-btn:hover { background: var(--surface); border-color: var(--surface); }
.round-btn:disabled { opacity: .35; cursor: default; background: #fff; border-color: var(--line); }
.carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 8px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.card { flex: none; width: clamp(250px, 28vw, 360px); margin: 0; scroll-snap-align: start; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.card-tall img { aspect-ratio: 4 / 5; }
.card-tall { width: clamp(220px, 23vw, 300px); }
.card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px 0; font-size: .92rem; font-weight: 500; }
.card .tag { background: var(--surface); color: var(--ink-2); }

/* Room sets: main photo on top, product silos side by side underneath */
.rooms { background: var(--surface); }
.set-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.set { margin: 0; background: #fff; border-radius: 22px; padding: 10px; display: grid; gap: 10px; align-content: start; }
.set-featured { grid-column: 1 / -1; }
.set-main { position: relative; }
.set-main img { width: 100%; aspect-ratio: 1344 / 768; object-fit: cover; border-radius: 14px; }
.set-main .tag { position: absolute; left: 14px; top: 14px; }
.set-supports { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 10px; }
.set-supports figure { margin: 0; background: var(--surface); border-radius: 12px; padding: 10px 10px 8px; display: grid; gap: 6px; }
.set-supports img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; }
.set-supports figcaption { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.set-supports figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: .82rem; }
.set-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 6px 2px; }
.set-name { font: 600 1.12rem/1.2 var(--display); letter-spacing: -0.02em; }
.set-count { font-size: .82rem; color: var(--muted); }
.set-featured .set-supports figure { padding: 14px 14px 10px; }

/* Before / after */
.compare-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.compare-copy p { color: var(--muted); max-width: 440px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; background: var(--surface); padding: 4px; border-radius: 999px; }
.tabs button { font: 500 .9rem var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer; border: 0; background: transparent; color: var(--ink-2); transition: background .2s, color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.compare { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.05rem; box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within .compare-handle::after { outline: 2px solid var(--ketchup); outline-offset: 2px; }
.compare-label { position: absolute; top: 14px; pointer-events: none; }
.compare-label-before { left: 14px; }
.compare-label-after { right: 14px; }

/* Tools */
.menu { border-top: 1px solid var(--line); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 20px; margin-top: 48px; }
.tool-demo h3 { margin: 18px 0 6px; }
.tool-demo p { color: var(--muted); margin: 0; font-size: .95rem; }
.demo-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.demo-media > img, .demo-media > video { width: 100%; height: 100%; object-fit: cover; }
.demo-white { background: #fff; border: 1px solid var(--line); }
.demo-white > img { object-fit: contain; }
.demo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.demo-strip img { width: 100%; height: 100%; object-fit: cover; }
.demo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.demo-pair img { width: 100%; height: 100%; object-fit: cover; }
.demo-pair .on-white { object-fit: contain; background: #fff; }
.demo-erase img { object-position: 100% 60%; }
.tools-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; }

/* Banner band */
.banner-band { position: relative; min-height: clamp(380px, 52vw, 720px); display: flex; align-items: center; overflow: hidden; }
.banner-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.band-copy { position: relative; width: 100%; }
.band-copy h2 { max-width: 46%; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.band-copy .eyebrow { max-width: 46%; color: var(--ink-2); }

/* Process */
.process { background: var(--surface); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 26px 24px 28px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: inline-block; font: 500 .8rem/1 var(--body); color: var(--ketchup); background: var(--ketchup-tint); padding: 6px 9px; border-radius: 999px; margin-bottom: 22px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Accuracy */
.accuracy { background: var(--ink); color: #fff; }
.accuracy .eyebrow { color: rgba(255, 255, 255, .7); }
.accuracy p { color: rgba(255, 255, 255, .7); max-width: 520px; }
.accuracy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.accuracy-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.accuracy-pair figure { margin: 0; position: relative; }
.accuracy-pair img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
.accuracy-pair .tag { position: absolute; left: 12px; top: 12px; }
.small-head { font-size: 1.1rem; margin-top: 36px; color: #fff; }

/* Made for */
.roster { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; max-width: 1000px; }
.roster span { font: 500 clamp(1rem, 1.6vw, 1.25rem)/1 var(--display); letter-spacing: -0.02em; border: 1px solid var(--line); border-radius: 999px; padding: 14px 20px; }

/* Pricing teaser */
.pricing-teaser { border-top: 1px solid var(--line); }
.teaser-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.teaser-plans > div { display: grid; gap: 6px; background: var(--surface); border-radius: var(--radius); padding: 24px; }
.teaser-plans .tp-pop { background: var(--ink); color: #fff; }
.teaser-plans .tp-pop .tp-credits, .teaser-plans .tp-pop small { color: rgba(255, 255, 255, .65); }
.tp-name { font-weight: 500; font-size: .95rem; }
.tp-price { font: 600 2.4rem/1.05 var(--display); letter-spacing: -0.04em; }
.tp-price small { font: 400 .9rem var(--body); color: var(--muted); letter-spacing: 0; }
.tp-credits { color: var(--muted); font-size: .9rem; }

/* Contact */
.contact { padding-top: 0; }
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 72px); }
.contact-card .eyebrow { color: rgba(255, 255, 255, .7); }
.contact-card h2 { margin-bottom: .35em; }
.contact-card p { color: rgba(255, 255, 255, .72); max-width: 500px; }
.contact-card .btn { background: #fff; color: var(--ink); border-color: #fff; }
.contact-card .btn:hover { background: var(--ketchup); border-color: var(--ketchup); color: #fff; }
.contact-card a:not(.btn) { color: #fff; }
.contact-actions { justify-self: end; text-align: right; }
.fine { font-size: .85rem; margin-top: 14px; }

/* Footer */
.site-footer { padding: 44px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.footer-nav a:hover { color: var(--ink); }
.site-footer .fine { color: var(--muted); margin: 0; width: 100%; }

/* Tablet */
@media (max-width: 1024px) {
  .site-nav { gap: 22px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .teaser-plans { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .set-grid { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header: 60px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .site-nav .btn { margin-top: 16px; }
  .hero-grid, .compare-grid, .accuracy-grid, .contact-card { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .snapshot-card { width: 36%; left: 10px; bottom: 10px; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .carousel-controls { display: none; }
  .card { width: 76vw; }
  .card-tall { width: 64vw; }
  .set { padding: 8px; border-radius: 18px; }
  .set-supports { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .set-supports figure { padding: 8px 8px 6px; }
  .tools-grid, .steps { grid-template-columns: 1fr; }
  .banner-band { min-height: 440px; align-items: flex-start; }
  .banner-band img { object-position: 74% 50%; }
  .band-copy { padding-top: 36px; }
  .band-copy h2 { max-width: 60%; font-size: 2rem; }
  .band-copy .eyebrow { max-width: 60%; }
  .teaser-plans { gap: 10px; }
  .teaser-plans > div { padding: 18px; }
  .tp-price { font-size: 2rem; }
  .contact-actions { justify-self: stretch; text-align: left; }
  .btn-large { width: 100%; }
}

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

/* Silos under each room are shown to scale: --s is the product's size relative to the largest piece in the set. */
.set-supports figure > img { transform: scale(var(--s, 1)); transform-origin: 50% 90%; }
.set-supports figure { overflow: hidden; }
.set-supports figure > img { background: transparent; }
.set-supports figure { background: #fff; border: 1px solid var(--line); }
