/* Swiss Pilates — warm minimal. System fonts only (CSP: font-src 'none'). */
:root {
  --cream: #f5efe6;
  --paper: #fbf8f3;
  --sand: #ece3d5;
  --sand-deep: #e1d4c1;
  --oak: #b68a5c;
  --olive: #4d5a42;
  --olive-deep: #3d4834;
  --ink: #24211c;
  --ink-soft: #3a352e;
  --muted: #6c655b;
  --line: #ddd2c1;
  --line-soft: #e8dfd1;
  --white: #fffdf9;
  --danger: #9b3b2c;
  --success: #3f6b45;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --radius-s: 12px;
  --radius: 22px;
  --radius-l: 34px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --shadow: 0 1px 2px rgb(60 48 30 / 6%), 0 18px 40px -24px rgb(60 48 30 / 28%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sand-deep); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Typography */
.display { font: 400 clamp(2.6rem, 5.4vw, 4.6rem)/1.04 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.display-hero { font-size: clamp(3rem, 7vw, 6.1rem); line-height: .98; }
.display em { color: var(--olive); font-style: italic; }
.display-2 { font: 400 clamp(2rem, 3.8vw, 3.3rem)/1.1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.h2 { font: 400 clamp(1.9rem, 3.2vw, 2.75rem)/1.12 var(--serif); letter-spacing: -.012em; }
.h3 { font: 400 clamp(1.5rem, 2.4vw, 1.9rem)/1.2 var(--serif); }
.lead { max-width: 36em; margin-top: 22px; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; }
.fine-print { margin-top: 22px; color: var(--muted); font-size: .86rem; }
.text-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--oak); padding-bottom: 3px; transition: gap .2s var(--ease), color .2s; }
.text-link:hover { gap: .8em; color: var(--olive); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--olive-deep); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-outline-light { border-color: rgb(245 239 230 / 40%); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--cream); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(245 239 230 / 86%); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: var(--olive); stroke-width: 1.5; }
.brand-name { font: 400 1.42rem/1 var(--serif); letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.site-nav > a:not(.btn) { position: relative; padding: 6px 0; color: var(--ink-soft); font-size: .97rem; text-decoration: none; }
.site-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--oak); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav > a:not(.btn):hover::after, .site-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav > a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.menu-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px); }
.hero-copy .lead { margin-top: 28px; }
.hero-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-l); background: var(--sand); box-shadow: var(--shadow); }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(36 33 28 / 0%) 55%, rgb(36 33 28 / 28%)); }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.media-toggle { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid rgb(251 248 243 / 55%); border-radius: 50%; background: rgb(36 33 28 / 35%); color: var(--white); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.media-toggle .icon-play { display: none; }
.media-toggle[aria-pressed="true"] .icon-pause { display: none; }
.media-toggle[aria-pressed="true"] .icon-play { display: block; }

/* Sections */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.section-flush { padding-top: 0; }
.section-sand { background: var(--sand); }
.section-title { margin-bottom: clamp(28px, 4vw, 48px); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.product-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { min-width: 0; }
.product-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.product-link:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }
.product-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-link:hover .product-media img { transform: scale(1.04); }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px); }
.product-name { font: 400 clamp(1.45rem, 2.2vw, 1.85rem)/1.15 var(--serif); }
.product-go { display: inline-flex; flex: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; transition: background-color .25s var(--ease), border-color .25s, color .25s; }
.product-link:hover .product-go { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* CTA */
.cta { background: var(--olive-deep); color: var(--cream); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 64px; padding-block: clamp(64px, 9vw, 112px); }
.cta-text { max-width: 32em; margin-top: 16px; color: rgb(245 239 230 / 78%); }
.cta .actions { margin-top: 0; }

/* Page hero and breadcrumbs */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(36px, 5vw, 60px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); color: var(--muted); font-size: .9rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb-sep { color: var(--line); }

/* Product detail */
.product-detail { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.detail-media figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; }
.zoom-trigger { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius-l); background: var(--sand); cursor: zoom-in; }
.zoom-trigger img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.zoom-trigger:hover img { transform: scale(1.03); }
.zoom-hint { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgb(251 248 243 / 88%); font-size: .88rem; font-weight: 600; }
.detail-info { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.zoom-dialog { width: min(1200px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); box-shadow: 0 30px 80px rgb(0 0 0 / 35%); }
.zoom-dialog::backdrop { background: rgb(36 33 28 / 72%); backdrop-filter: blur(4px); }
.zoom-dialog img { width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; background: var(--sand); }
.zoom-close { position: absolute; top: 14px; right: 14px; display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; box-shadow: var(--shadow); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); }
.about-media figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; }
.about-copy { display: grid; gap: 18px; justify-items: start; }
.about-copy .lead { margin-top: 0; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.4; }
.about-copy p:not(.lead) { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact-cards { position: sticky; top: 100px; display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
a.contact-card:hover { border-color: var(--oak); transform: translateY(-2px); }
.contact-card > .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--olive); }
.contact-label { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.contact-value { display: block; margin-top: 2px; font: 400 1.3rem/1.3 var(--serif); }
.contact-note { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }
.form-card { padding: clamp(22px, 4vw, 48px); border: 1px solid var(--line-soft); border-radius: var(--radius-l); background: var(--paper); box-shadow: var(--shadow); }

/* Form */
.form-intro p { margin-top: 8px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 30px; }
.field { display: grid; gap: 7px; min-width: 0; }
.quote-form > .field { margin-top: 26px; }
.field-label { font-weight: 600; font-size: .95rem; }
.field-hint { margin-top: 2px; color: var(--muted); font-size: .9rem; }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 600; }
.input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.input:hover { border-color: var(--sand-deep); }
.input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgb(77 90 66 / 18%); }
.input[aria-invalid="true"] { border-color: var(--danger); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.picks { margin: 30px 0 0; padding: 0; border: 0; min-width: 0; }
.picks legend { padding: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.pick { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pick.is-selected { border-color: var(--olive); background: #f3f1e8; box-shadow: 0 0 0 1px var(--olive) inset; }
.pick-label { display: grid; grid-template-columns: auto 64px 1fr; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; }
.pick-check { width: 20px; height: 20px; margin: 0; accent-color: var(--olive); }
.pick-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--sand); }
.pick-name { font: 400 1.2rem/1.2 var(--serif); }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 14px; }
.qty-label { color: var(--muted); font-size: .92rem; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.qty-step { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.qty-step:hover { background: var(--sand); }
.qty-input { width: 72px; height: 42px; border: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }
.qty-control:focus-within { border-color: var(--olive); box-shadow: 0 0 0 3px rgb(77 90 66 / 18%); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin-top: 26px; color: var(--muted); font-size: .92rem; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-status.is-info { color: var(--olive); }
.quote-form .actions { margin-top: 22px; }

/* Review dialog */
.review-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-l); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / 30%); }
.review-dialog::backdrop { background: rgb(36 33 28 / 62%); backdrop-filter: blur(3px); }
.review-inner { padding: clamp(24px, 4vw, 40px); }
[data-done-step] > p { margin-top: 12px; color: var(--ink-soft); }
[data-done-step] > .fine-print { color: var(--muted); }
.review-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin-top: 22px; padding: 20px; border-radius: var(--radius-s); background: var(--cream); }
.review-list dt { color: var(--muted); font-size: .92rem; }
.review-list dd { margin: 0; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; font: 400 1.6rem/1.25 var(--serif); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; color: var(--ink-soft); }

/* Footer */
.site-footer { padding-top: clamp(48px, 7vw, 72px); background: var(--sand); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.footer-nav, .footer-contact { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a, .footer-contact a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--ink); text-decoration: underline; }
.footer-contact a { font-weight: 600; }
.footer-bottom { position: relative; margin-top: 40px; padding-block: 20px 26px; color: var(--muted); font-size: .86rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 980px) {
  .hero, .detail-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; }
  .contact-cards { position: static; }
  .product-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header.has-menu .menu-toggle { display: inline-flex; }
  .site-header.has-menu .site-nav { display: none; }
  .site-header.has-menu.is-open .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 4px; padding: 12px var(--gutter) 22px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgb(60 48 30 / 35%); }
  .site-header.has-menu.is-open .site-nav > a:not(.btn) { padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
  .site-header.has-menu.is-open .site-nav > a:not(.btn)::after { display: none; }
  .site-header.has-menu.is-open .site-nav .btn { margin-top: 12px; }
  .site-header:not(.has-menu) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .site-header:not(.has-menu) .site-nav { flex-wrap: wrap; }
  .product-grid, .product-grid-three, .form-grid, .pick-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .actions .btn { flex: 1 1 auto; }
  .review-list { grid-template-columns: 1fr; gap: 2px; }
  .review-list dd { margin-bottom: 10px; }
}

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