/* MerchForm site. Colours are the app's own (MFColor), light theme.
   Ember is a fill, never text, and appears at most twice per screen. */
:root {
  --wool: #F5F1EA;
  --bone: #FBF8F3;
  --sand: #E8E1D5;
  --stone: #CFC6B8;
  --ink: #12100E;
  --ink-2: #4A453E;
  --muted: #6B655C;
  --faint: #9A9288;
  --ember: #FF5A1F;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(18, 16, 14, .06), 0 18px 50px -12px rgba(18, 16, 14, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wool);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--wool); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* ---------- Type ---------- */
h1, h2, .display {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: -.02em; line-height: .98; margin: 0;
}
h1 { font-size: clamp(48px, 9vw, 104px); }
h2 { font-size: clamp(38px, 6vw, 68px); }
h1 em, h2 em { font-style: italic; }
h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.005em; }
p { margin: 0; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  padding: 17px 26px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ember { background: var(--ember); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 90, 31, .7); }
.btn-ink { background: var(--ink); color: var(--wool); }
.btn-ghost { color: var(--ink); border: 1px solid var(--stone); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-small { padding: 11px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 241, 234, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font: 400 28px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-header nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.site-header nav a:not(.btn):hover { color: var(--ink); }
.nav-links { display: none; gap: 28px; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---------- Phone frame (screenshots keep their own proportions) ---------- */
.phone {
  position: relative; width: 100%;
  padding: 3.2%; border-radius: 13% / 6%;
  background: linear-gradient(145deg, #2c2925, #0d0c0a 60%);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: auto; border-radius: 10.5% / 4.9%; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--stone); background: var(--bone);
}

.hero-visual { position: relative; max-width: 560px; margin: 0 auto; width: 100%; padding: 0 0 20px; }
.hero-visual .phone { width: 56%; margin: 0 auto; position: relative; z-index: 2; }
.float {
  position: absolute; width: 40%; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--bone);
}
.float img, .float video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.float-a { left: 0; top: 14%; transform: rotate(-6deg); z-index: 1; }
.float-b { right: 0; top: 46%; transform: rotate(5deg); z-index: 3; }
.tag {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(251, 248, 243, .92); color: var(--ink);
  padding: 5px 9px; border-radius: 999px;
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 40px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { margin: 14px 0 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lede { margin: 0 auto; }

/* Garment rail: one row that scrolls on a phone, a gallery on a desktop */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 16px 18px; margin: 0 -16px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  background: var(--bone); border: 1px solid rgba(207, 198, 184, .6);
}
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card figcaption { padding: 14px 16px 16px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card figcaption b { font-size: 15px; }
.card figcaption span { font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
  .rail { grid-auto-columns: 38%; margin: 0 -32px; padding: 4px 32px 18px; }
}
@media (min-width: 1100px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .rail .card.wide { grid-column: span 2; }
  .rail .card.wide img { aspect-ratio: 8 / 5; object-position: center 40%; }
}

/* Feature rows: phone beside copy */
.feature { display: grid; gap: 40px; align-items: center; padding-top: 96px; }
.feature .phone { width: 72%; max-width: 330px; margin: 0 auto; }
.feature h2 { margin: 14px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.ticks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F5F1EA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks b { color: var(--ink); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; }
  .feature.flip .feature-media { order: 2; }
}

/* Finishes */
.finish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.finish { margin: 0; border-radius: 18px; overflow: hidden; background: var(--bone); border: 1px solid rgba(207, 198, 184, .6); }
.finish img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.finish figcaption { padding: 12px 14px 14px; }
.finish b { display: block; font-size: 15px; }
.finish span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
@media (min-width: 760px) { .finish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* Art library mosaic */
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.art {
  aspect-ratio: 1; border-radius: 16px; background: var(--bone);
  border: 1px solid rgba(207, 198, 184, .6);
  display: grid; place-items: center; padding: 14%;
}
.art img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.art { min-width: 0; overflow: hidden; }
.art.dark { background: var(--ink); border-color: var(--ink); }
.art.dark img { filter: invert(1) sepia(.15); }
.art.sand { background: var(--sand); }
@media (min-width: 900px) { .art-grid { gap: 12px; } }

/* Exports */
.export-grid { display: grid; gap: 14px; margin-top: 8px; }
.export-card {
  background: var(--bone); border: 1px solid rgba(207, 198, 184, .6);
  border-radius: var(--radius); padding: 24px;
}
.export-card .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.export-card .display { font-size: 34px; margin: 8px 0 10px; }
.export-card p { color: var(--ink-2); font-size: 15.5px; }
.export-card.video { padding: 0; overflow: hidden; display: grid; }
.export-card.video video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.export-card.video > div { padding: 22px 24px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.checker {
  margin-top: 18px; border-radius: 14px; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background-color: #fff;
  background-image: conic-gradient(#ECE7DE 25%, transparent 0 50%, #ECE7DE 0 75%, transparent 0);
  background-size: 18px 18px;
}
.checker img { height: clamp(120px, 22vw, 240px); width: auto; }
@media (min-width: 900px) {
  .export-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .export-card.video { grid-row: span 3; align-content: start; }
  .export-card.video video { aspect-ratio: auto; height: 100%; max-height: 620px; }
}

/* Free vs Pro */
.plans { display: grid; gap: 14px; }
.plan { border-radius: var(--radius); padding: 28px; border: 1px solid var(--stone); background: var(--bone); }
.plan.pro { background: var(--ink); color: var(--wool); border-color: var(--ink); }
.plan .display { font-size: 40px; margin-bottom: 6px; }
.plan p { color: var(--muted); }
.plan.pro p, .plan.pro li { color: #CFC6B8; }
.plan ul { margin: 20px 0 0; padding-left: 20px; display: grid; gap: 8px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; } }

/* Closing band */
.closing {
  margin-top: 112px; border-radius: 32px; overflow: hidden;
  background: var(--sand); display: grid; align-items: center;
}
.closing-copy { padding: 48px 28px; }
.closing-copy h2 { margin: 14px 0 18px; }
.closing-copy .lede { margin-bottom: 28px; }
.closing-media { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.closing-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .closing { grid-template-columns: 1.1fr 1fr; }
  .closing-copy { padding: 64px 56px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--stone); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 28px; padding-bottom: 44px; font-size: 14px; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .brand { font-size: 24px; color: var(--ink); }

/* ---------- Long-form pages ---------- */
.doc { max-width: 720px; padding-top: 56px; }
.doc h1 { font-size: clamp(44px, 7vw, 72px); margin: 14px 0 12px; }
.doc h2 { font-size: 30px; margin: 44px 0 12px; line-height: 1.1; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li { margin-bottom: 8px; }
.doc a { text-underline-offset: 3px; }
.faq details { border-bottom: 1px solid var(--stone); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--serif); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 10px; }
.contact-card {
  background: var(--bone); border: 1px solid var(--stone); border-radius: var(--radius);
  padding: 26px; margin: 28px 0 8px;
}
.contact-card a.mail { font: 400 30px/1.1 var(--serif); text-decoration: none; word-break: break-all; }

/* ---------- Gentle reveal; content is visible without JavaScript ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
