/* The homepage has its own palette. The checkout dialog keeps the styles in styles.css. */
html,
body {
  background: #000;
}

.mach-page {
  --mach-paper: #f5f5ed;
  --mach-lime: #d9ff52;
  --mach-muted: #aaa9ac;
  --mach-rule: #29292b;
  color-scheme: dark;
  background: #000;
  color: var(--mach-paper);
  font: 15px/1.45 Arial, Helvetica, sans-serif;
}

.mach-wrap {
  width: min(1400px, calc(100% - clamp(64px, 9vw, 160px)));
  margin-inline: auto;
}

.mach-main {
  display: block;
  padding: 0;
}

.mach-page :is(a, button):focus-visible {
  outline: 2px solid var(--mach-lime);
  outline-offset: 4px;
}

.mach-header,
.mach-footer,
.mach-footer nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mach-header { height: 80px; }
.mach-header-nav { display: flex; align-items: center; gap: 12px; }
.mach-page a { color: inherit; text-decoration: none; }

.mach-logo {
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.064em;
}

.mach-logo b {
  color: var(--mach-lime);
  font-size: 1.2em;
  line-height: .6;
  margin-left: 1px;
}

.mach-how-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  font-size: 13px;
}

.mach-hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  grid-template-rows: 1.25fr 1fr;
  grid-template-areas: "intro film" "offer film";
  column-gap: clamp(26px, 5vw, 88px);
  row-gap: clamp(24px, 4vh, 52px);
  height: clamp(530px, calc(100vh - 80px), 810px);
  height: clamp(530px, calc(100svh - 80px), 810px);
}

.mach-intro { grid-area: intro; align-self: end; }

.mach-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -.1px;
}

.mach-new strong {
  padding: 4px 6px;
  color: #050505;
  background: var(--mach-lime);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .5px;
}

.mach-intro h1 {
  margin: 23px 0 0;
  font-size: clamp(86px, 11.4vw, 176px);
  font-weight: 900;
  line-height: .83;
  letter-spacing: -.075em;
}

.mach-intro h1 span,
.mach-how h2 span {
  color: var(--mach-lime);
  font-weight: inherit;
}

.mach-film {
  grid-area: film;
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  background: #000;
  overflow: hidden;
}

.mach-film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mach-film button {
  position: absolute;
  color: var(--mach-paper);
  background: #0d0e0bdc;
  right: 10px;
  bottom: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #78797099;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.15px;
}

.mach-offer {
  grid-area: offer;
  align-self: start;
  width: min(100%, 430px);
}

.mach-hook {
  margin-bottom: 18px;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.18;
  letter-spacing: -.6px;
  font-weight: 500;
}

.mach-hook span { color: var(--mach-muted); }

.mach-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 13px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--mach-lime);
  color: #111507;
  text-align: left;
  font-size: 16px;
  letter-spacing: -.3px;
}

.mach-cta strong { font-size: 20px; font-weight: 400; letter-spacing: -.8px; white-space: nowrap; }
.mach-cta [data-start-label] { font-weight: 700; }
.mach-terms { margin-top: 7px; color: var(--mach-muted); font-size: 10px; line-height: 1.5; text-align: center; }

.mach-designs {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(32px, 6vw, 88px);
}

.mach-designs,
.mach-how {
  padding-block: clamp(36px, 6vw, 78px);
  border-top: 1px solid var(--mach-rule);
}

.mach-designs h2,
.mach-how h2 {
  margin: 0 0 clamp(22px, 3.5vw, 50px);
  font-size: clamp(39px, 5vw, 80px);
  line-height: .98;
  letter-spacing: -.065em;
}

.mach-designs h2 span { color: var(--mach-lime); }
.mach-tabs { display: flex; width: fit-content; max-width: 100%; gap: 3px; border-radius: 30px; padding: 3px; border: 1px solid #41423d; }
.mach-tabs button { min-height: 42px; padding: 8px clamp(12px, 1.8vw, 26px); border: 0; border-radius: 24px; line-height: 1.15; font-size: 15px; color: var(--mach-muted); background: transparent; }
.mach-tabs button[aria-selected="true"] { background: var(--mach-lime); color: #101308; font-weight: 700; }
.mach-examples { min-width: 0; }
.mach-examples [role="tabpanel"]:focus-visible { outline: 2px solid var(--mach-lime); outline-offset: 3px; }
.mach-design-art { background: #000; border: 1px solid var(--mach-rule); border-radius: 13px; overflow: hidden; aspect-ratio: 1.65; }
.mach-design-art img { display: block; height: 100%; width: 100%; object-fit: contain; }
.mach-examples figcaption { padding: 14px 0 0; }
.mach-examples h3 { font-size: clamp(19px, 2vw, 28px); line-height: 1.15; letter-spacing: -.045em; margin: 0; }
.mach-examples figcaption p { margin: 5px 0 0; font-size: 13px; color: var(--mach-muted); }
.mach-examples figcaption strong { font-weight: 700; color: var(--mach-paper); }
.mach-family-count { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.mach-family-count span { margin-right: 6px; font-size: 14px; }
.mach-family-count button { width: 44px; min-height: 44px; border: 1px solid #55574f; border-radius: 50%; color: var(--mach-paper); background: transparent; }
.mach-family-count button[aria-pressed="true"] { background: var(--mach-paper); color: #101308; border-color: var(--mach-paper); }
.mach-page .mach-to-start { display: inline-flex; gap: 8px; min-height: 44px; align-items: center; margin-top: 10px; color: var(--mach-lime); font-size: 14px; }
.mach-to-start:hover { text-decoration: underline; }
.mach-product-actions { margin-top: 16px; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.mach-resume { min-height: 44px; padding: 8px 0; border: 0; color: var(--mach-muted); background: transparent; text-decoration: underline; font-size: 13px; }
.mach-order-history { margin-top: 10px; color: var(--mach-muted); font-size: 13px; }
.mach-order-history summary { cursor: pointer; padding-block: 9px; }
.mach-order-history button { display: block; }
.order-slots { padding: 0; margin: 16px 0; list-style: none; }
.order-slots li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-slots li div { display: grid; gap: 2px; }
.order-slots li span, .order-slots li small { font-size: 12px; color: var(--muted); }
.order-slots li button { text-decoration: underline; }
#motiv-start { scroll-margin-block: 24px; }

.mach-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 64px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mach-steps li { border-top: 1px solid var(--mach-rule); padding-top: 17px; }
.mach-steps h3 { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.15; letter-spacing: -.045em; margin: 0; }
.mach-steps p { max-width: 37ch; margin: 8px 0 0; color: var(--mach-muted); font-size: 14px; line-height: 1.55; }

.mach-footer {
  border-top: 1px solid var(--mach-rule);
  padding-block: 20px;
  font-size: 11px;
  color: var(--mach-muted);
}

.mach-footer a { display: inline-flex; min-height: 44px; align-items: center; }

@media (hover: hover) {
  .mach-how-link:hover, .mach-footer a:hover { text-decoration: underline; }
  .mach-cta:hover { background: #e5ff8c; }
}

@media (max-width: 799px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
  .mach-page { --mach-edge: max(22px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .mach-wrap { width: 100%; }
  .mach-header { height: 54px; padding: 8px var(--mach-edge) 0; }
  .mach-logo { font-size: 25px; }
  .mach-how-link { font-size: 11px; }
  .mach-hero {
    height: calc(100vh - 54px);
    height: calc(100svh - 54px);
    min-height: 465px;
    max-height: 900px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "intro" "film" "offer";
    gap: 0;
  }
  .mach-intro { padding: 13px var(--mach-edge) 14px; }
  .mach-new { font-size: 11px; }
  .mach-intro h1 { font-size: clamp(78px, 24vw, 100px); margin-top: 14px; }
  .mach-offer { width: 100%; padding: 12px var(--mach-edge) max(14px, env(safe-area-inset-bottom)); }
  .mach-hook { margin-bottom: 11px; font-size: 15px; }
  .mach-cta { min-height: 55px; font-size: 15px; }
  .mach-designs, .mach-how, .mach-footer { width: calc(100% - 2 * var(--mach-edge)); }
  .mach-designs, .mach-how { margin-top: 0; padding-block: 36px; }
  .mach-designs { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .mach-designs h2, .mach-how h2 { margin-bottom: 20px; }
  .mach-tabs { width: 100%; }
  .mach-tabs button { min-height: 44px; flex: 1; }
  .mach-design-art { aspect-ratio: 1.3; }
  .mach-steps { grid-template-columns: 1fr; gap: 15px; }
  .mach-steps li { padding-top: 15px; }
  .mach-steps p { max-width: 46ch; }
  .mach-footer { flex-wrap: wrap; gap: 3px 16px; padding-block: 11px max(11px, env(safe-area-inset-bottom)); }
}

@media (max-width: 799px) and (max-height: 710px) {
  .mach-intro { padding-block: 7px 11px; }
  .mach-intro h1 { font-size: clamp(42px, 14vw, 60px); line-height: .93; margin-top: 9px; }
  .mach-intro h1 br { display: none; }
}

/* Free format/effect choice: two quiet rows, native pressed buttons. */
.design-choices{display:grid;gap:10px;margin-bottom:20px}.design-choices [role=group]{display:flex;gap:8px}.design-choices button{flex:1;min-height:44px;border:1px solid #3b3b35;border-radius:999px;padding:10px 16px;background:transparent;color:#f5f5ec;font:inherit;font-size:14px}.design-choices button[aria-pressed=true]{background:#f5f5ec;color:#10110d;border-color:#f5f5ec}.design-choices button:focus-visible{outline:2px solid #e6ff68;outline-offset:3px}.mach-design-art img{width:100%;height:100%;object-fit:contain}.mach-product-actions .mach-cta{width:100%;font-size:14px;gap:10px}.print-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px}.mach-how>.capture-help{margin-top:30px}.mach-cta span{min-width:0}.mach-cta strong{white-space:nowrap}

@media(max-width:480px){.mach-family-count{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));gap:8px}.mach-family-count>span{grid-column:1/-1}.mach-family-count button{justify-self:center}}

.design-choices [role=group][hidden],.design-choices [data-shape][hidden]{display:none}

.mach-family-count[hidden]{display:none}.mach-design-intro .mach-family-count{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));gap:8px;margin-top:14px}.mach-design-intro .mach-family-count button{justify-self:center}
.mach-how>.capture-help{background:transparent;color:var(--mach-paper);border-top:1px solid var(--mach-rule);border-radius:0;padding:16px 0;margin-top:30px}.mach-how>.capture-help summary{min-height:44px;color:var(--mach-paper);font-size:16px}.mach-how>.capture-help summary::after{color:var(--mach-lime)}.mach-how>.capture-help>div{grid-template-columns:1fr;gap:12px;margin-top:14px}.mach-how>.capture-help p{color:var(--mach-paper);font-size:14px;line-height:1.55;margin:0}.mach-how>.capture-help strong{display:inline;color:var(--mach-paper);margin:0}

/* r032: quiet, touch-friendly photo instructions and two clear file tiers. */
.mach-guide{margin-top:28px}.mach-guide-step{border-top:1px solid var(--mach-rule)}.mach-guide-step:last-child{border-bottom:1px solid var(--mach-rule)}
.mach-guide-step>summary{display:flex;align-items:center;gap:14px;min-height:64px;cursor:pointer;list-style:none;font-size:20px;font-weight:600;letter-spacing:-.035em}.mach-guide-step>summary::-webkit-details-marker{display:none}.mach-guide-step>summary::after{content:'+';margin-left:auto;color:var(--mach-lime);font-size:24px;font-weight:400}.mach-guide-step[open]>summary::after{content:'−'}.mach-guide-step>summary:focus-visible,.mach-file-info summary:focus-visible{outline:2px solid var(--mach-lime);outline-offset:4px}.mach-step-number{color:var(--mach-muted);font-size:13px;font-weight:400;letter-spacing:0;min-width:12px}.mach-step-content{padding:0 0 24px 26px;max-width:680px}.mach-step-content p,.mach-photo-tips{color:var(--mach-paper);font-size:14px;line-height:1.6}.mach-photo-guide{position:relative;margin:0 0 18px;max-width:440px}.mach-photo-guide img{display:block;width:100%;height:auto;border-radius:12px}.mach-photo-marker{position:absolute;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--mach-lime);color:#10110d;font-size:13px;font-weight:700}.mach-marker-camera{left:43%;top:30%}.mach-marker-light{left:76%;top:46%}.mach-photo-tips{padding-left:20px;margin:0}.mach-photo-tips li{padding-left:3px;margin:10px 0}.mach-photo-tips li::marker{color:var(--mach-lime)}.mach-photo-tips strong{font-weight:600}
.mach-file-info{margin-top:32px;max-width:680px}.mach-file-info h3{font-size:24px;letter-spacing:-.04em;margin:0 0 12px}.mach-file-info>p{font-size:14px;line-height:1.6;margin:6px 0;color:var(--mach-paper)}.mach-file-info>.capture-help{background:none;color:var(--mach-paper);padding:0;border-radius:0;margin-top:14px}.mach-file-info>.capture-help summary{min-height:44px;color:var(--mach-paper);font-size:14px}.mach-file-info>.capture-help summary::after{color:var(--mach-lime)}.mach-file-info>.capture-help>div{grid-template-columns:1fr;gap:14px;margin-top:10px}.mach-file-info>.capture-help p{color:var(--mach-paper);font-size:14px;line-height:1.6;margin:0}.mach-file-info>.capture-help strong{display:inline;color:var(--mach-paper)}.capture-pose{display:block;width:100%;max-width:440px;height:auto;border-radius:12px;grid-column:1/-1}
@media(max-width:600px){.mach-step-content{padding-left:0}.mach-guide-step>summary{min-height:60px}.mach-file-info{margin-top:28px}}

/* Scroll-led motion stays on imagery and headings. Controls remain still. */
@media(prefers-reduced-motion:no-preference){
  .motion-ready .mach-intro h1{transform:translate3d(0,var(--motion-shift,0px),0)}
  .motion-ready .mach-film video{transform:translate3d(0,var(--film-shift,0px),0) scale(1.025)}
  .motion-ready :is(.mach-design-intro h2,.mach-how h2,.mach-file-info h3){transform:translate3d(0,var(--reveal-shift,0px),0);opacity:var(--reveal-opacity,1)}
  .motion-ready .mach-design-art img{transform:scale(var(--art-scale,1));transform-origin:center}
}
@media(prefers-reduced-motion:reduce){.mach-page{scroll-behavior:auto}}

#flow-dialog .flow-print-button{display:flex;align-items:center;justify-content:center;min-height:54px;margin-top:16px;padding:12px 16px;border:1px solid #55565a;border-radius:14px;color:var(--ink);text-decoration:none;font-size:14px;font-weight:700;text-align:center}
