/* ============================================================
   Mailwynx — shared design system  (PAPERCRAFT / ORIGAMI)
   Concept: email folded up and carried by hand from one home to
   another. Warm paper, kraft tan, sage + clay. No blue, no cloud-tech.
   Class names are kept identical to the previous system so every page
   reskins at once; only the palette, type and texture change.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

/* ---- Tokens ---- */
:root {
  color-scheme: light;

  --bg:        #ECE3CE;   /* oatmeal paper            */
  --bg-2:      #E4D9BF;   /* deeper paper             */
  --surface:   #F6EFDD;   /* raised / card paper      */
  --surface-2: #EDE4CF;   /* cream                    */
  --border:    #D8CBAC;
  --border-2:  #C9B793;
  --text:      #2E2A22;   /* warm ink                 */
  --muted:     #5C564A;
  --muted-2:   #857C6A;

  --ink:       #2E2A22;   /* dark bands               */
  --paper-hi:  #F6EFDD;

  --source:    #C4562F;   /* clay  — the "from" home  */
  --dest:      #5F7548;   /* sage  — the "to" home    */
  --intact:    #4C5F39;   /* deep sage — kept intact  */
  --warn:      #B08D57;   /* kraft — competitor pain  */

  --flow: linear-gradient(90deg, var(--source), var(--dest));

  --radius:    16px;
  --radius-sm: 11px;
  --maxw:      1160px;
  --gutter:    24px;

  --shadow: 0 22px 46px -30px rgba(60,45,20,.6);

  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1rem; max-width: 68ch; }
a  { color: var(--source); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 700; }
code, kbd, samp { font-family: var(--f-mono); }

.lead { font-size: 1.22rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding: clamp(56px, 8vw, 108px) 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 0;
  color: var(--intact);
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--dest); border-radius: 3px 4px 3px 4px; transform: rotate(12deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 14px 13px 15px 12px;
  border: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  color: #FFF5EC;
  background: var(--source);
  box-shadow: 0 2px 0 #a4441f, 0 12px 22px -10px rgba(105,50,25,.55);
}
.btn-primary:hover { box-shadow: 0 4px 0 #a4441f, 0 18px 28px -12px rgba(105,50,25,.55); }
.btn-ghost {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--warn);
}
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--source); }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(236,227,206,.82);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 800; font-size: 1.24rem; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
/* Nav logo: use the REAL Mailwynx artwork (assets/LogoMailwynx.png), cropped to the
   envelope+arrow mark so the tall square lockup doesn't shrink to an "ant". The
   "Mailwynx" text node in the markup provides the wordmark beside it. */
.brand .logo, .brand img.logo { display: none !important; }
.brand::before {
  content: "";
  width: 44px; height: 30px; flex: none; display: block;
  background: url("LogoMailwynx.png") -23px -15px / 88px 88px no-repeat;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: .97rem; padding: 8px 13px; border-radius: 9px;
  font-family: var(--f-body); font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content:""; display:block; height:2.5px; background:var(--flow); border-radius:2px; margin-top:5px; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--warn); border-radius: 10px; width: 42px; height: 40px; color: var(--text); cursor: pointer; font-size: 1.1rem; }

/* ---- Hero ---- */
.hero { padding-top: clamp(48px, 7vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { font-size: .92rem; color: var(--muted-2); line-height: 1.6; }
.hero-note .dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px 3px 2px 3px; background: var(--dest); transform: rotate(12deg); margin-right: 9px; vertical-align: middle; }

/* Slogan ticker */
.hero:has(.slogan-ticker) { padding-top: clamp(20px, 3.5vw, 46px); }
.slogan-ticker {
  overflow: hidden;
  margin: 0 0 clamp(30px, 5vw, 64px);
  padding: 13px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.slogan-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: slogan-scroll 34s linear infinite; }
.slogan-ticker:hover .slogan-track { animation-play-state: paused; }
.slogan-item { font-family: var(--f-body); font-weight: 600; font-size: .9rem; color: var(--muted); padding: 0 24px; }
.slogan-sep { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 2px 3px 2px 3px; background: var(--source); opacity: .7; transform: rotate(12deg); }
@keyframes slogan-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .slogan-track { animation: none; } .slogan-ticker { overflow-x: auto; } }

/* ---- Migration flow diagram (hero motif) ---- */
.flow { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.flow-rail { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.cloud { border: 1px solid var(--border-2); border-radius: 12px; padding: 16px 14px; text-align: center; background: var(--surface-2); }
.cloud .cloud-name { font-family: var(--f-head); font-weight: 700; font-size: .98rem; }
.cloud .cloud-sub  { font-size: .78rem; color: var(--muted-2); font-family: var(--f-mono); }
.cloud.src { border-color: rgba(196,86,47,.5); }
.cloud.dst { border-color: rgba(95,117,72,.5); }
.cloud-ico { width: 30px; height: 30px; margin: 0 auto 8px; display: block; }
.flow-pipe { position: relative; height: 66px; width: 74px; }
.flow-pipe .line { position: absolute; top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); background: linear-gradient(90deg, rgba(196,86,47,.4), rgba(95,117,72,.4)); border-radius: 3px; }
.flow-pipe .pkt { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border-radius: 2px 3px 2px 3px; transform: translate(-50%,-50%) rotate(12deg); background: var(--source); box-shadow: 0 1px 4px rgba(105,50,25,.4); animation: pkt 2.6s linear infinite; }
.flow-pipe .pkt:nth-child(3){ animation-delay: .65s; }
.flow-pipe .pkt:nth-child(4){ animation-delay: 1.3s; }
.flow-pipe .pkt:nth-child(5){ animation-delay: 1.95s; }
@keyframes pkt { 0%{left:2%;opacity:0} 12%{opacity:1} 88%{opacity:1} 100%{left:98%;opacity:0} }
.flow-carry { margin-top: 20px; border-top: 1px dashed var(--border-2); padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.carry-item { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--text); }
.carry-item svg { flex: none; color: var(--intact); }
.flow-cap { margin-top: 14px; font-family: var(--f-mono); font-size: .74rem; color: var(--muted-2); text-align: center; }

/* ---- Trust strip ---- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust .wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; padding-block: 26px; }
.trust p { margin: 0; font-family: var(--f-body); font-weight: 600; font-size: .82rem; color: var(--muted-2); }
.trust .badges { display: flex; gap: 26px; flex-wrap: wrap; margin-left: auto; }
.trust .badges span { color: var(--muted); font-family: var(--f-head); font-weight: 700; font-size: 1rem; opacity: .85; }

/* ---- Cards / features ---- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 14px 26px -22px rgba(60,45,20,.6); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.feat-ico {
  width: 46px; height: 46px; border-radius: 13px 11px 14px 10px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(196,86,47,.1);
  border: 1px solid rgba(196,86,47,.28);
  color: var(--source);
}
.card.accent-dst .feat-ico { background: rgba(95,117,72,.12); border-color: rgba(95,117,72,.32); color: var(--dest); }
.card.accent-int .feat-ico { background: rgba(76,95,57,.12); border-color: rgba(76,95,57,.32); color: var(--intact); }

/* comparison two-up */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.versus .card { padding: 28px; }
.versus .them { border-color: rgba(176,141,87,.5); }
.versus .us { border-color: rgba(95,117,72,.5); }
.vlist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 11px; }
.vlist li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; color: var(--muted); }
.vlist li svg { flex: none; margin-top: 3px; }
.us .vlist li svg { color: var(--intact); }
.them .vlist li svg { color: var(--warn); }

/* ---- Steps ---- */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 22px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: 0 14px 26px -22px rgba(60,45,20,.6);
}
.step-num {
  counter-increment: step;
  width: 54px; height: 54px; border-radius: 15px 12px 16px 11px;
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; font-size: 1.35rem;
  color: #FFF5EC; background: var(--dest); transform: rotate(-4deg);
  box-shadow: 0 2px 0 var(--intact);
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }

/* code block — stays dark for legibility, on-brand ink */
.code {
  background: #2E2A22; border: 1px solid #46402f; border-radius: 12px;
  font-family: var(--f-mono); font-size: .86rem; color: #EDE4CF;
  padding: 16px 18px; overflow-x: auto; margin: 14px 0 0;
}
.code .c { color: #9c927c; }        /* comment */
.code .p { color: #E39A6E; }         /* prompt/cmd (clay-light) */
.code .v { color: #A9BE86; }         /* value (sage-light) */
.code .g { color: #A9BE86; }         /* success */

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: 0 16px 30px -24px rgba(60,45,20,.6); }
.plan.feature { border: 1.5px solid var(--warn); box-shadow: 0 22px 46px -28px rgba(105,50,25,.5); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 26px; font-family: var(--f-head); font-weight: 700; font-size: .72rem; background: var(--source); color: #FFF5EC; padding: 5px 13px; border-radius: 9px 8px 10px 7px; transform: rotate(-3deg); }
.plan h3 { font-size: 1.15rem; }
.price { font-family: var(--f-head); font-weight: 800; font-size: 2.6rem; margin: 8px 0 2px; letter-spacing: -.03em; }
.price small { font-size: .95rem; color: var(--muted-2); font-weight: 500; font-family: var(--f-body); letter-spacing: 0; }
.plan .desc { color: var(--muted); font-size: .95rem; min-height: 44px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; }
.plan ul li { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); }
.plan ul li svg { flex: none; color: var(--intact); margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 20px 22px; font-family: var(--f-head); font-weight: 600; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-head); color: var(--source); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-body p { margin: 0; }

/* ---- CTA band (dark ink panel for contrast) ---- */
.cta-band { background: var(--ink); border: 1px solid #46402f; border-radius: 22px; padding: clamp(34px, 6vw, 60px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { position: relative; color: var(--paper-hi); }
.cta-band p { position: relative; margin-inline: auto; color: #d9cfb8; }
.cta-band .lead { color: #d9cfb8; }
.cta-band .hero-actions { position: relative; justify-content: center; margin-top: 22px; }
.cta-band a:not(.btn) { color: #E39A6E; }

/* ---- About ---- */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 14px 26px -22px rgba(60,45,20,.6); }
.stat .n { font-family: var(--f-head); font-weight: 800; font-size: 2.4rem; color: var(--source); letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: .95rem; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose p { color: var(--muted); }

/* ---- Contact / forms ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
[hidden] { display: none !important; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; color: var(--muted); font-family: var(--f-head); font-weight: 600; }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 11px;
  color: var(--text); font-family: var(--f-body); font-size: 1rem; padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--source); box-shadow: 0 0 0 3px rgba(196,86,47,.16); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 14px 26px -22px rgba(60,45,20,.6); }
.contact-side .row { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.contact-side .row svg { flex: none; color: var(--source); margin-top: 3px; }
.contact-side .row:last-child { margin-bottom: 0; }
.contact-side .row .t { font-family: var(--f-head); font-weight: 700; }
.contact-side .row .d { color: var(--muted); font-size: .93rem; }
.form-note { font-size: .92rem; color: var(--muted); }

/* ---- Footer (light paper) ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 34px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--f-head); font-size: .82rem; letter-spacing: .04em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid ul a { color: var(--muted); font-size: .95rem; }
.foot-grid ul a:hover { color: var(--text); text-decoration: none; }
.foot-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; margin-top: 14px; }
.foot-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: .87rem; }
.foot-bottom .self { font-family: var(--f-mono); }

/* Rotating tagline */
.tagline-rotator { transition: opacity .32s ease, transform .32s ease; opacity: 1; }
.tagline-rotator.tagline-fade { opacity: 0; transform: translateY(4px); }

/* ---- Screenshot frames ---- */
.shot { margin: 26px 0 6px; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-2); background: var(--surface); box-shadow: 0 30px 60px -34px rgba(60,45,20,.6); }
figure.shot-fig { max-width: 100%; margin: 0; }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.shot-bar .dots { display: flex; gap: 6px; }
.shot-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.shot-bar .dots i:nth-child(1){ background:#C4562F; } .shot-bar .dots i:nth-child(2){ background:#B08D57; } .shot-bar .dots i:nth-child(3){ background:#5F7548; }
.shot-bar .url { flex: 1; text-align: center; font-family: var(--f-mono); font-size: .78rem; color: var(--muted-2); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 4px 10px; margin: 0 8px; }
.shot iframe { width: 100%; border: 0; display: block; background: var(--bg); }
.shot-cap { font-size: .9rem; color: var(--muted); margin: 0 2px 30px; display: flex; gap: 8px; align-items: baseline; }
.shot-cap b { color: var(--text); font-weight: 700; }

/* ---- Docs layout ---- */
.doc-toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 4px; }
.doc-toc a { color: var(--muted); font-size: .93rem; padding: 6px 12px; border-left: 2px solid var(--border); }
.doc-toc a:hover { color: var(--text); border-color: var(--source); text-decoration: none; }
.doc-toc .toc-head { font-family: var(--f-head); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); padding: 6px 12px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
.doc-body { min-width: 0; }
.doc-body > section:first-child { padding-top: 0; }
.doc-body h2 { font-size: 1.6rem; margin: 8px 0 6px; scroll-margin-top: 90px; }
.doc-body h3 { margin: 26px 0 8px; }
.doc-body .anchor { scroll-margin-top: 90px; }
.callout { border: 1px solid var(--border); border-left: 3px solid var(--source); background: var(--surface); border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; color: var(--muted); font-size: .95rem; }
.callout.warn { border-left-color: var(--warn); }
.callout.safe { border-left-color: var(--intact); }
.callout b { color: var(--text); }
.klist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.klist li { position: relative; padding-left: 24px; color: var(--muted); font-size: .97rem; line-height: 1.6; }
.klist li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--source); }
.conf-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.conf-table th, .conf-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.conf-table th { color: var(--muted-2); font-family: var(--f-head); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.conf-table td code { font-family: var(--f-mono); font-size: .86rem; color: var(--source); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 8px; }
  .doc-toc { position: static; flex-direction: row; flex-wrap: wrap; display: none; }
}

/* ---- utility ---- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-int { display:inline-flex; align-items:center; gap:7px; font-family:var(--f-body); font-weight:600; font-size:.78rem; color:var(--intact); border:1px solid rgba(76,95,57,.35); background:rgba(76,95,57,.1); padding:5px 11px; border-radius:9px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid.cols-3, .price-grid, .stat-row { grid-template-columns: 1fr; }
  .grid.cols-2, .versus, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .foot-grid { gap: 28px; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px var(--gutter) 18px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .step { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .flow-pipe .pkt { display: none; }
  .flow-pipe .line { background: var(--flow); }
}

/* ---- Checkout modal (assets/checkout.js) ---- */
.ms-modal-back {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(46, 42, 34, .55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: msFade .16s ease;
}
.ms-modal {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px; color: var(--text);
  font-family: var(--f-body);
}
.ms-modal h3 { font-family: var(--f-head); font-size: 20px; }
@keyframes msFade { from { opacity: 0 } to { opacity: 1 } }

/* ---- Footer legal links row ---- */
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.foot-legal a { color: var(--muted-2); font-size: .85rem; }
.foot-legal a:hover { color: var(--text); text-decoration: none; }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
  background: rgba(246, 239, 221, .97); backdrop-filter: blur(10px);
  border: 1px solid var(--border-2); border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(60,45,20,.5);
  padding: 16px 20px;
  transform: translateY(140%); opacity: 0;
  transition: transform .28s cubic-bezier(.16,.84,.44,1), opacity .28s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cookie-text { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; flex: 1 1 420px; }
.cookie-text a { color: var(--source); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 560px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; text-align: center; justify-content: center; }
}
