/* Stitchfields Sportswear — main stylesheet. Mobile-first. Brand: navy #081D3D, greens #1C974D / #36B566 / #0E683C. */
:root {
  --ink: #081D3D;
  --ink-2: #0F2A52;
  --ink-3: #1B3B6B;
  --paper: #F5F6F3;
  --card: #FFFFFF;
  --line: #E1E4DE;
  --muted: #5A6676;
  --green: #1C974D;
  --green-bright: #36B566;
  --green-deep: #0E683C;
  --accent: #168443;        /* button green: AA contrast with white */
  --accent-2: #0E683C;
  --accent-soft: #E3F5EA;
  --ok: #128A4D;
  --ok-soft: #DDF5E7;
  --sky: #E3EAF5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(8,29,61,.06), 0 8px 24px rgba(8,29,61,.08);
  --shadow-lg: 0 24px 60px rgba(8,29,61,.2);
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 .5em; }
h1, h2 { font-style: italic; font-weight: 900; font-stretch: 108%; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; font-stretch: 104%; font-weight: 750; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
small, .fine { font-size: .86rem; color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; border-radius: 4px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: linear-gradient(90deg, var(--green-bright), var(--green-deep)); transform: skewX(-30deg); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font: 700 .98rem/1.1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(22,132,67,.3); }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Top bar + header */
.topbar { background: var(--ink); color: #D5DEEA; font-size: .88rem; text-align: center; padding: 8px var(--gutter); }
.topbar p { margin: 0; }
.topbar a { color: var(--green-bright); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .logo { height: 44px; width: auto; }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .ic { width: 24px; height: 24px; }
.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; box-shadow: var(--shadow); max-height: calc(100vh - 100px); overflow-y: auto; }
.site-nav.open { display: block; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; }
.site-nav li > a, .menu-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 4px; text-decoration: none; font: 600 1rem/1.3 var(--body); color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.chev { width: 16px; height: 16px; transition: transform .2s; margin-left: auto; }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega { display: none; padding: 8px 0 12px; }
.has-menu.open .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-grid a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.mega-grid a:hover { background: var(--accent-soft); color: var(--ink); }
.mega-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--sky); color: var(--ink); flex: none; }
.mega-ic .ic { width: 20px; height: 20px; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; margin: 8px 10px 0; font-weight: 700; color: var(--accent); text-decoration: none; font-size: .92rem; }
.nav-cta { display: grid; gap: 10px; margin-top: 16px; }
.nav-account a { gap: 6px; }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex !important; align-items: center; gap: 14px; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; gap: 2px; align-items: center; }
  .site-nav li > a, .menu-btn { border: 0; padding: 8px 11px; border-radius: 8px; font-size: .95rem; width: auto; }
  .site-nav li > a:hover, .menu-btn:hover { background: rgba(8,29,61,.06); color: var(--ink); }
  .chev { margin-left: 0; }
  .has-menu { position: relative; }
  .mega { position: absolute; top: calc(100% + 10px); left: -20px; width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; }
  .has-menu.open .mega, .has-menu:focus-within .mega { display: block; }
  .nav-cta { display: flex; margin: 0; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }

/* Sections */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-dark { background: var(--ink); color: #E9EEF5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: #B6C3D6; }
.section-white { background: #fff; }
.section-head { margin-bottom: 36px; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* Home hero with photo */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,29,61,.55) 0%, rgba(8,29,61,.85) 55%, #081D3D 100%); }
.hero-inner { position: relative; padding-top: 56px; padding-bottom: 48px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { color: var(--green-bright); }
.hero .lead { color: #D2DCEA; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 26px; }
.hero .trust-row li { color: #E3EAF3; }
.hero .trust-row .ic { color: var(--green-bright); }
.hero-swoosh { width: 120px; height: 10px; margin-bottom: 18px; }
@media (min-width: 960px) {
  .hero-media { left: 42%; }
  .hero-media::after { background: linear-gradient(90deg, #081D3D 0%, rgba(8,29,61,.6) 28%, rgba(8,29,61,0) 60%), linear-gradient(0deg, rgba(8,29,61,.5), transparent 40%); }
  .hero-inner { padding-top: 104px; padding-bottom: 112px; }
  .hero-copy { max-width: 600px; }
}

.page-hero { padding: 36px 0 44px; }
.page-hero h1 { max-width: 20ch; }
.page-hero.dark { background: var(--ink); color: #fff; }
.page-hero.dark h1 { color: #fff; }
.page-hero.dark .lead { color: #C7D3E2; }
.page-hero .hero-actions { margin-bottom: 0; }
.hero-split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .hero-split { grid-template-columns: 1.05fr .95fr; gap: 48px; } }

/* Trust row */
.trust-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 18px; }
.trust-row li { display: flex; gap: 8px; align-items: center; font-size: .93rem; font-weight: 550; }
.trust-row .ic { color: var(--green); }
@media (min-width: 720px) { .trust-row { display: flex; flex-wrap: wrap; } }

/* Answer box (AEO) */
.answer-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; box-shadow: var(--shadow); color: var(--ink); }
.answer-q { font: 750 .8rem/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px; }
.answer-a { margin: 0; font-size: 1.04rem; }

/* Grid + cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .ic-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--green-deep); margin-bottom: 14px; }
.card .ic-badge .ic { width: 24px; height: 24px; }
.card-link { text-decoration: none; display: block; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-link .more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--accent); margin-top: 8px; }
.section-dark .card { background: var(--ink-2); border-color: #23406A; box-shadow: none; }
.section-dark .card p { color: #B6C3D6; }
.section-dark .card .ic-badge { background: rgba(54,181,102,.15); color: var(--green-bright); }
.tag { display: inline-block; font: 700 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--sky); color: var(--ink-3); }
.tag-hot { background: var(--accent-soft); color: var(--green-deep); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }

/* Sport tiles */
.sport-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 720px) { .sport-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1040px) { .sport-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.sport-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.sport-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green); color: var(--ink); }
.sport-tile .tile-art { background: radial-gradient(120% 90% at 50% 10%, #fff 0%, #E8ECF2 100%); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.sport-tile canvas { width: 82%; height: auto; aspect-ratio: 400/460; }
.sport-tile .tile-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-weight: 700; }
.sport-tile .tile-name .ic { color: var(--green); }

.preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.preview-pair figure { margin: 0; background: radial-gradient(120% 90% at 50% 10%, #fff 0%, #E8ECF2 100%); border: 1px solid var(--line); border-radius: 18px; padding: 18px 14px 10px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.preview-pair canvas { width: 100%; height: auto; aspect-ratio: 400 / 460; }
a.chip { text-decoration: none; }
a.chip span { gap: 8px; }
a.chip .ic { width: 18px; height: 18px; color: var(--green); }
a.chip:hover span { border-color: var(--ink); }
.page-hero .eyebrow .ic { width: 18px; height: 18px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0,1fr)); } .steps.four { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font: italic 900 2.2rem/1 var(--display); font-stretch: 115%; color: var(--green); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
.section-dark .steps li { background: var(--ink-2); border-color: #23406A; }
.section-dark .steps li::before { color: var(--green-bright); }
.section-dark .steps p { color: #B6C3D6; }
.timeline { list-style: none; padding: 0; margin: 0; }

/* Checklists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23128A4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.crosses li::before { background: #FDE3E3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0392B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Split */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.rev > :first-child { order: 2; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; aspect-ratio: 1 / 1; }
.gallery .wide { grid-column: span 2; aspect-ratio: auto; }
.gallery .wide img { aspect-ratio: 16 / 7; }
.gallery figure { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #EEF1EC; font: 700 .8rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; }
.compare td:nth-child(2) { color: var(--green-deep); font-weight: 700; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font: 650 1.03rem/1.4 var(--body); letter-spacing: 0; }
.faq-icon { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--paper); position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--ink); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 20px 18px; color: #2C3A4B; }
.faq-a p { margin: 0; }

/* CTA band */
.cta-band { background: radial-gradient(800px 300px at 90% 0%, #1B3B6B 0%, transparent 60%), var(--ink); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -5%; bottom: 18px; width: 70%; height: 10px; background: linear-gradient(90deg, var(--green-bright), var(--green) 40%, transparent); transform: skewX(-40deg); opacity: .5; }
.cta-inner { display: grid; gap: 22px; align-items: center; position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.08rem; color: #C7D3E2; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* Footer */
.site-footer { background: #05142C; color: #A3B2C6; padding: 56px 0 96px; font-size: .95rem; }
.site-footer a { color: #DCE5F0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand .logo { height: 54px; }
.cols-2 { columns: 2; column-gap: 16px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1.2fr 1fr 1fr; } }
.footer-brand p { margin: 16px 0; max-width: 42ch; }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.site-footer .social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #0F2A52; color: #fff; transition: background .15s, transform .15s; }
.site-footer .social a:hover { background: var(--accent); transform: translateY(-2px); text-decoration: none; }
.site-footer .social .ic { width: 22px; height: 22px; }
.footer-legal { border-top: 1px solid #1A2D4C; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; }
.footer-legal p { margin: 0; }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }

/* Mobile sticky CTA */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .mobile-cta { display: none; } }
body.builder-page .mobile-cta, body.no-mobile-cta .mobile-cta { display: none; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { min-width: 0; }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #CDD3CB; border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(28,151,77,.15); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1.5px solid #CDD3CB; border-radius: 999px; font-size: .9rem; font-weight: 550; background: #fff; transition: all .15s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before { content: "✓"; color: var(--green-bright); font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--green-bright); }
.dropzone { border: 2px dashed #C4CCC2; border-radius: var(--radius); padding: 22px; text-align: center; background: #FAFBF9; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--green); background: var(--accent-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .ic { width: 30px; height: 30px; margin: 0 auto 6px; color: var(--green); }
.dz-compact { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; }
.dz-compact .ic { margin: 0; width: 26px; height: 26px; }
.file-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.file-list:empty { display: none; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; background: #EEF1EC; border-radius: 8px; margin-top: 6px; }
.file-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 550; }
.form-msg.err { background: #FDE3E3; color: #8E1E1E; }
.form-msg.ok { background: var(--ok-soft); color: var(--ok); }
.form-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); }
@media (min-width: 720px) { .form-card { padding: 32px; } }
.form-card .form-head { margin-bottom: 18px; }
.form-card .form-head h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card .form-head p { margin: 0; color: var(--muted); }
.rfq-title { font-size: 1.5rem; }
.rfq-assure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 0; font-size: .88rem; font-weight: 600; color: var(--green-deep); }
.rfq-assure .ic { width: 16px; height: 16px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.checkbox-grid label { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1.5px solid #CDD3CB; border-radius: var(--radius-sm); background: #fff; font-weight: 500; cursor: pointer; }

/* Stats + meters */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font: italic 900 2rem/1 var(--display); font-stretch: 112%; color: var(--ink); margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .92rem; }
.meter { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; font-size: .86rem; margin-bottom: 6px; }
.meter-bar { height: 8px; background: #E6EAE3; border-radius: 99px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-bright), var(--green-deep)); border-radius: 99px; }
.swatch-fabric { height: 120px; border-radius: 12px; margin-bottom: 16px; background-color: #12305C; position: relative; overflow: hidden; }
.fab-interlock180 { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); }
.fab-micromesh160 { background-image: radial-gradient(circle, rgba(0,0,0,.45) 1.1px, transparent 1.6px); background-size: 6px 6px; }
.fab-birdseye150 { background-image: radial-gradient(ellipse 2px 1.4px, rgba(255,255,255,.18) 98%, transparent), radial-gradient(ellipse 2px 1.4px, rgba(255,255,255,.18) 98%, transparent); background-size: 8px 8px; background-position: 0 0, 4px 4px; }
.fab-flex190 { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px), repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px); }
.fab-heavy220 { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 2px 4px); background-color: #0B2246; }
.calc { display: grid; gap: 20px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr .9fr; } }
.calc-result { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; align-self: start; }
.calc-result .big { font: italic 900 3.2rem/1 var(--display); color: #fff; }
.seg { display: inline-flex; background: #E8ECE6; border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: .92rem; }
.seg input:checked + span { background: #fff; box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--green-bright); }

/* Article / prose */
.prose { font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose .table-wrap { margin: 1.2em 0 1.6em; }
.meta-line { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc strong { display: block; margin-bottom: 6px; }

.ref-pill { display: inline-block; font: italic 900 1.4rem/1 var(--display); letter-spacing: .04em; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.flex { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--muted); }
.notice { background: #FFF8E6; border: 1px solid #F3DFA8; border-radius: var(--radius-sm); padding: 14px 16px; font-size: .94rem; }

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