/*
Theme Name: AlpVentory
Theme URI: https://alpventory.com/
Author: AlpVentory
Author URI: https://alpventory.com/
Description: Thème officiel léger pour le site public AlpVentory.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: alpventory
*/

:root {
  --ink: #122326;
  --muted: #627477;
  --line: #dbe5e6;
  --paper: #ffffff;
  --canvas: #f4f8f8;
  --soft: #e7f4f2;
  --brand: #0f766e;
  --brand-dark: #0a5652;
  --navy: #123d4a;
  --mint: #b9eee4;
  --shadow: 0 24px 70px rgba(23, 55, 61, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.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: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-140%); padding: 10px 14px; color: #fff; background: var(--brand-dark); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: .25s ease; }
body.admin-bar .site-header { top: 32px; }
.site-header.scrolled { border-color: rgba(219, 229, 230, .85); background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(15, 65, 67, .06); backdrop-filter: blur(18px); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand-icon { width: 38px; height: 38px; flex: 0 0 auto; }
.custom-brand-icon { object-fit: contain; border-radius: 9px; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: 30px; color: #40575b; font-size: .94rem; font-weight: 650; }
.site-nav a { position: relative; padding-block: 10px; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 4px; height: 2px; transform: scaleX(0); background: var(--brand); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.site-nav .nav-account { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-connected { display: inline-flex; align-items: center; gap: 8px; max-width: 270px; overflow: hidden; color: #0f766e; text-overflow: ellipsis; white-space: nowrap; }
.account-connected::before { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); content: ""; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 19px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; line-height: 1.1; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, summary:focus-visible, .menu-toggle:focus-visible { outline: 3px solid rgba(15,118,110,.28); outline-offset: 3px; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 10px 26px rgba(15,118,110,.2); }
.button-primary:hover { box-shadow: 0 14px 34px rgba(15,118,110,.28); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.65); }
.button.account-connected { color: #0f766e; border-color: rgba(15, 118, 110, .3); background: #ecfdf5; }
.button-link { padding-inline: 4px; color: var(--brand-dark); }
.button-link span { margin-left: 8px; font-size: 1.2em; }
.button-large { min-height: 56px; padding-inline: 26px; border-radius: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 9px; }

.hero { position: relative; overflow: hidden; min-height: 820px; padding: 165px 0 105px; background: linear-gradient(180deg, #f4f9f9 0%, #fff 82%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(15,118,110,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(15,118,110,.055) 1px, transparent 1px); background-size: 50px 50px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
.hero-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.hero-glow-one { top: -260px; right: 5%; background: radial-gradient(circle, rgba(149,229,216,.4), transparent 68%); }
.hero-glow-two { bottom: -330px; left: -180px; background: radial-gradient(circle, rgba(22,78,99,.16), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 58px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--brand-dark); font-size: .77rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 25px; height: 2px; background: currentColor; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(3rem, 5vw, 5.2rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 em { color: var(--brand); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-lead { max-width: 610px; margin: 28px 0 0; color: #52676b; font-size: clamp(1.05rem, 1.4vw, 1.23rem); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 13px 20px; padding: 0; margin: 30px 0 0; list-style: none; color: #53696c; font-size: .9rem; font-weight: 650; }
.trust-list span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 5px; color: var(--brand-dark); background: var(--soft); border-radius: 50%; font-size: .75rem; }

.product-frame { overflow: hidden; transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); border: 1px solid rgba(193,211,213,.9); border-radius: 20px; background: #fff; box-shadow: 0 45px 90px rgba(26,70,74,.2), 0 5px 16px rgba(26,70,74,.08); }
.window-bar { height: 53px; display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid #e2e9ea; color: #7b8d90; background: #fbfcfc; font-size: .74rem; font-weight: 700; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #cbd7d8; }
.status-pill { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 5px 10px; color: #427060; background: #e9f7ef; border-radius: 30px; }
.status-pill b { width: 7px; height: 7px; background: #3a9f69; border-radius: 50%; }
.app-shell { min-height: 470px; display: grid; grid-template-columns: 74px 1fr; }
.app-sidebar { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px 13px; background: #123c42; }
.mini-brand svg { width: 33px; height: 33px; }
.side-line { display: block; width: 35px; height: 8px; opacity: .6; background: #82a3a4; border-radius: 8px; }
.side-line.short { width: 23px; }
.side-line.active { width: 43px; height: 34px; opacity: 1; background: rgba(185,238,228,.16); border: 1px solid rgba(185,238,228,.15); }
.app-content { padding: 28px 26px; background: #f5f8f8; }
.mock-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.mock-heading div { display: flex; flex-direction: column; }
.mock-heading small, .card-title small { color: #849396; font-size: .66rem; }
.mock-heading strong { font-size: 1.16rem; }
.mock-heading button { padding: 8px 13px; border: 0; border-radius: 8px; color: #fff; background: var(--brand); font: inherit; font-size: .65rem; font-weight: 750; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.metric-grid article, .chart-card, .stock-card { padding: 15px; border: 1px solid #e0e8e9; border-radius: 11px; background: #fff; }
.metric-grid article { display: flex; flex-direction: column; min-height: 112px; }
.metric-grid span { color: #74878a; font-size: .62rem; }
.metric-grid strong { margin: 9px 0 4px; font-size: 1.2rem; }
.metric-grid small { color: #819194; font-size: .55rem; }
.metric-grid .positive { color: #278359; }
.metric-grid .warning { color: #b16828; }
.mock-main-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin-top: 12px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .68rem; }
.bars { height: 155px; display: flex; align-items: flex-end; gap: 8px; padding: 16px 4px 0; border-bottom: 1px solid #e5ebec; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(to top, #0f766e, #87d9cc); border-radius: 5px 5px 0 0; }
.stock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid #edf1f2; font-size: .58rem; }
.stock-row:last-child { border-bottom: 0; }
.stock-row span, .mini-table em { padding: 4px 7px; border-radius: 20px; font-style: normal; white-space: nowrap; }
.tag-low { color: #a23d3d; background: #fde8e8; }
.tag-warn { color: #946020; background: #fff1d8; }
.tag-ok { color: #27714c; background: #e6f5ed; }

.proof-strip { border-block: 1px solid var(--line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { display: flex; flex-direction: column; padding: 29px 34px; border-right: 1px solid var(--line); }
.proof-grid div:first-child { padding-left: 0; }
.proof-grid div:last-child { border: 0; }
.proof-grid strong { color: var(--brand-dark); font-size: 1rem; }
.proof-grid span { color: var(--muted); font-size: .82rem; }

.field-story { position: relative; isolation: isolate; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #173e42; }
.field-story > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.field-story-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,38,41,.92) 0%, rgba(8,38,41,.74) 32%, rgba(8,38,41,.18) 62%, rgba(8,38,41,.02) 100%); }
.field-story-content { padding-block: 90px; }
.field-story-content h2 { max-width: 650px; margin: 0; font-size: clamp(2.8rem, 5.4vw, 5.2rem); line-height: 1; letter-spacing: -.058em; text-shadow: 0 4px 28px rgba(0,0,0,.18); }
.field-story-content h2 em { color: var(--mint); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.field-story-content > p:not(.eyebrow) { max-width: 555px; margin: 25px 0 0; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.field-story-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.field-story-tags span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(7,37,40,.35); backdrop-filter: blur(10px); font-size: .78rem; font-weight: 750; }

.section { padding: 120px 0; }
.section-tinted { background: var(--canvas); }
#fonctionnalites { background: linear-gradient(180deg, #edf6f4 0%, #f8fbfa 32%, #fff 100%); }
.section-heading { max-width: 670px; }
.section-heading h2, .security-copy h2, .download-card h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: 1.08; letter-spacing: -.052em; }
.section-heading > p:last-child, .section-intro { color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 54px; }
.feature-card { min-height: 300px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(25,65,68,.09); }
.feature-large { grid-row: span 2; }
.feature-accent { display: flex; flex-direction: column; justify-content: center; color: #fff; background: linear-gradient(140deg, var(--brand), #155164); border-color: transparent; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--brand-dark); background: var(--soft); border-radius: 13px; font-size: 1.35rem; font-weight: 800; }
.feature-accent .feature-icon { color: #fff; background: rgba(255,255,255,.14); }
.feature-kicker { margin: 30px 0 5px; color: var(--brand); font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.feature-accent .feature-kicker { color: var(--mint); }
.feature-card h3 { max-width: 510px; margin: 0; font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: 1.15; letter-spacing: -.04em; }
.feature-card > p:last-of-type { max-width: 530px; color: var(--muted); }
.feature-accent > p:last-of-type { color: rgba(255,255,255,.78); }
.mini-table { margin-top: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; font-size: .78rem; }
.mini-table > div { display: grid; grid-template-columns: 1fr 80px 100px; align-items: center; padding: 13px 15px; border-top: 1px solid #e8eeee; }
.mini-table > div:first-child { border: 0; }
.mini-table-head { color: var(--muted); background: var(--canvas); font-size: .67rem; font-weight: 700; }
.sync-visual { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.sync-visual span { padding: 12px 15px; border: 1px solid rgba(255,255,255,.19); border-radius: 10px; background: rgba(255,255,255,.09); font-size: .78rem; }
.sync-visual i { display: grid; place-items: center; width: 28px; height: 28px; color: var(--brand-dark); background: var(--mint); border-radius: 50%; font-style: normal; font-weight: 900; }

.billing-section { overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f3f8f7 100%); }
.billing-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 85px; }
.billing-copy h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: 1.08; letter-spacing: -.052em; }
.billing-lead { max-width: 610px; color: var(--muted); font-size: 1.08rem; }
.billing-points { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 28px; margin-top: 38px; }
.billing-points > div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.billing-points i { display: grid; place-items: center; width: 36px; height: 36px; color: var(--brand-dark); background: var(--soft); border-radius: 10px; font-size: .68rem; font-style: normal; font-weight: 850; }
.billing-points p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.48; }
.billing-points strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: .94rem; }
.invoice-showcase { overflow: hidden; padding: 13px; border: 1px solid #d7e2e3; border-radius: 25px; background: #eef4f4; box-shadow: 0 35px 75px rgba(25,65,68,.17); }
.invoice-toolbar { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 13px; color: #75878a; font-size: .7rem; font-weight: 750; }
.invoice-toolbar div { display: flex; gap: 5px; }
.invoice-toolbar i { width: 7px; height: 7px; background: #b7c7c9; border-radius: 50%; }
.invoice-paper { min-height: 550px; padding: 42px 38px 32px; border-radius: 14px; background: #fff; box-shadow: 0 9px 30px rgba(35,71,74,.08); }
.invoice-top { display: flex; justify-content: space-between; gap: 25px; }
.invoice-company { display: flex; align-items: flex-start; gap: 13px; }
.invoice-company svg { width: 39px; height: 39px; }
.invoice-company div, .invoice-number { display: flex; flex-direction: column; }
.invoice-company strong { font-size: .78rem; letter-spacing: .04em; }
.invoice-company span, .invoice-meta span, .invoice-meta small { color: #829194; font-size: .56rem; }
.invoice-number { text-align: right; }
.invoice-number span { color: var(--brand); font-size: 1.28rem; font-weight: 850; letter-spacing: .08em; }
.invoice-number strong { color: #738487; font-size: .62rem; }
.invoice-meta { display: grid; grid-template-columns: 1fr auto; gap: 35px; margin-top: 45px; padding: 16px; background: #f5f8f8; border-radius: 9px; }
.invoice-meta div { display: flex; flex-direction: column; }
.invoice-meta strong { font-size: .68rem; }
.invoice-lines { margin-top: 33px; font-size: .62rem; }
.invoice-lines > div { display: grid; grid-template-columns: 1fr 38px 63px 63px; gap: 8px; align-items: center; padding: 13px 7px; border-bottom: 1px solid #e6eded; }
.invoice-lines > div > :not(:first-child) { text-align: right; }
.invoice-lines-head { color: #748689; background: #f5f8f8; border: 0 !important; border-radius: 7px; font-size: .54rem; font-weight: 750; text-transform: uppercase; }
.invoice-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 24px; margin-top: 24px; }
.invoice-total span { color: #75878a; font-size: .68rem; }
.invoice-total strong { color: var(--brand-dark); font-size: 1.05rem; }
.invoice-note { margin-top: 60px; padding-top: 14px; border-top: 1px solid #e2eaeb; color: #8a999b; font-size: .58rem; text-align: center; }
.invoice-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 2px 1px; }
.invoice-actions span { padding: 7px 11px; border: 1px solid #d2dedf; border-radius: 8px; color: #52686b; background: #fff; font-size: .61rem; font-weight: 750; }

.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 55px; }
.step { min-height: 230px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step > span { color: var(--brand); font-family: Georgia, serif; font-size: 2.2rem; }
.step h3 { margin: 35px 0 8px; font-size: 1.22rem; }
.step p { margin: 0; color: var(--muted); }

.security-section { overflow: hidden; color: #fff; background: #103a42; }
.security-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 90px; }
.eyebrow.light { color: var(--mint); }
.security-copy > p:not(.eyebrow) { color: rgba(255,255,255,.72); font-size: 1.08rem; }
.check-list { display: grid; gap: 23px; padding: 0; margin: 38px 0 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 35px 1fr; gap: 14px; }
.check-list i { display: grid; place-items: center; width: 30px; height: 30px; color: #0d554f; background: var(--mint); border-radius: 50%; font-style: normal; font-weight: 900; }
.check-list span { color: rgba(255,255,255,.68); }
.check-list strong { display: block; color: #fff; }
.security-card { position: relative; min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px; text-align: center; border: 1px solid rgba(255,255,255,.15); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); box-shadow: 0 35px 70px rgba(0,0,0,.2); }
.shield { display: grid; place-items: center; width: 100px; height: 112px; color: #0b5953; background: var(--mint); clip-path: polygon(50% 0, 92% 17%, 84% 73%, 50% 100%, 16% 73%, 8% 17%); font-size: 2.5rem; font-weight: 900; }
.security-card div:nth-child(2) { display: flex; flex-direction: column; margin-top: 24px; }
.security-card small, .security-card > span { color: rgba(255,255,255,.62); }
.security-card strong { font-size: 1.5rem; }
.security-card > span { margin-top: 4px; font-size: .75rem; }
.security-line { width: 70%; height: 5px; margin-top: 28px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 5px; }
.security-line i { display: block; width: 100%; height: 100%; background: var(--mint); }

#faq { background: linear-gradient(180deg, #fff 0%, #f2f7f6 100%); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 25px 45px 25px 0; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 5px; color: var(--brand); font-size: 1.5rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -5px 45px 24px 0; color: var(--muted); }

.download-section { padding: 0 0 110px; }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 55px 60px; color: #fff; background: linear-gradient(135deg, #0f766e, #123f50); border-radius: 28px; box-shadow: var(--shadow); }
.download-card p:last-child { margin-bottom: 0; color: rgba(255,255,255,.75); }
.download-actions { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.button-light { color: var(--brand-dark); background: #fff; }
.button[aria-disabled="true"] { cursor: not-allowed; }
.download-actions small { color: rgba(255,255,255,.7); }

.site-footer { padding: 70px 0 25px; color: #d6e2e3; background: #0d292f; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 50px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid p, .footer-grid a { color: #9db1b3; font-size: .88rem; }
.footer-grid p { max-width: 300px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #849c9e; font-size: .78rem; }
.footer-bottom a { color: inherit; }

.legal-main { padding: 145px 0 90px; background: var(--canvas); }
.legal-shell { width: min(100% - 40px, 900px); margin-inline: auto; }
.legal-heading { margin-bottom: 34px; }
.legal-heading h1 { margin: 12px 0 14px; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
.legal-heading > p:last-child { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.legal-document { padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 18px 55px rgba(23,55,61,.08); }
.legal-document section + section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-document h2 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -.02em; }
.legal-document h3 { margin: 22px 0 8px; font-size: 1.02rem; }
.legal-document p, .legal-document li { color: #42575a; }
.legal-document p + p { margin-top: 12px; }
.legal-document ul { margin: 12px 0 0 20px; }
.legal-document li + li { margin-top: 8px; }
.legal-document a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal-address { font-style: normal; line-height: 1.75; }
.legal-updated { margin-top: 36px; color: var(--muted); font-size: .88rem; }
.legal-summary { margin-bottom: 38px; padding: 22px 24px; border: 1px solid #cfe4e1; border-radius: 16px; background: var(--soft); }
.legal-summary strong { display: block; margin-bottom: 10px; color: var(--ink); }
.legal-summary ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 28px; margin: 0; padding-left: 20px; }
.legal-summary li { color: var(--brand-dark); }
.legal-summary a { color: inherit; text-decoration: none; }
.legal-summary a:hover { text-decoration: underline; }
.legal-note { padding: 18px 20px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: #f1f8f7; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .header-inner { gap: 18px; }
  .site-nav { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .trust-list { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .product-frame { width: min(780px, 100%); margin-inline: auto; transform: none; }
  .security-grid { gap: 50px; }
}

@media (max-width: 860px) {
  .site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav a::after { display: none; }
  .site-nav .nav-account { display: block; }
  .site-nav .nav-account-primary { margin-top: 6px; color: #fff; border-radius: 10px; background: var(--brand); text-align: center; }
  .header-actions { display: none; }
  .hero { padding-top: 135px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid div:nth-child(2) { border-right: 0; }
  .proof-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .proof-grid div { padding-left: 25px; }
  .field-story { min-height: 540px; align-items: flex-end; }
  .field-story > img { object-position: 64% center; }
  .field-story-shade { background: linear-gradient(0deg, rgba(7,34,37,.94) 0%, rgba(7,34,37,.68) 55%, rgba(7,34,37,.14) 100%); }
  .field-story-content { padding-block: 160px 65px; }
  .field-story-content > p:not(.eyebrow) { max-width: 650px; }
  .feature-grid, .billing-grid, .split-heading, .security-grid, .faq-grid { grid-template-columns: 1fr; }
  .feature-large { grid-row: auto; }
  .billing-grid { gap: 55px; }
  .invoice-showcase { width: min(630px, 100%); margin-inline: auto; }
  .split-heading, .faq-grid { gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; display: grid; grid-template-columns: 65px 1fr; gap: 15px; }
  .step h3 { margin-top: 2px; }
  .security-card { max-width: 560px; width: 100%; margin-inline: auto; }
  .download-card { align-items: flex-start; flex-direction: column; padding: 45px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 70px; }
  .hero { min-height: auto; padding: 120px 0 75px; }
  .hero h1 { font-size: 3.15rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .trust-list { flex-direction: column; align-items: flex-start; width: max-content; margin-inline: auto; }
  .product-frame { border-radius: 14px; }
  .window-bar { height: 43px; }
  .app-shell { min-height: 355px; grid-template-columns: 48px 1fr; }
  .app-sidebar { padding: 15px 8px; }
  .side-line { width: 25px; }
  .side-line.active { width: 31px; }
  .app-content { padding: 17px 13px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article:nth-child(3) { display: none; }
  .mock-main-grid { grid-template-columns: 1fr; }
  .stock-card { display: none; }
  .bars { height: 110px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div, .proof-grid div:first-child { padding: 19px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .field-story { min-height: 600px; }
  .field-story > img { object-position: 68% center; }
  .field-story-content { padding-block: 210px 55px; }
  .field-story-content h2 { font-size: 3rem; }
  .field-story-content > p:not(.eyebrow) { font-size: 1rem; }
  .section { padding: 82px 0; }
  .feature-grid { margin-top: 35px; }
  .feature-card { min-height: 0; padding: 25px; }
  .billing-points { grid-template-columns: 1fr; }
  .invoice-showcase { padding: 8px; border-radius: 18px; }
  .invoice-paper { min-height: 470px; padding: 28px 20px 22px; }
  .invoice-company span { display: none; }
  .invoice-number span { font-size: 1rem; }
  .invoice-lines > div { grid-template-columns: 1fr 30px 52px; }
  .invoice-lines > div > :nth-child(3) { display: none; }
  .invoice-note { margin-top: 38px; }
  .mini-table > div { grid-template-columns: 1fr 50px; }
  .mini-table > div > :last-child { display: none; }
  .sync-visual { align-items: stretch; flex-direction: column; }
  .sync-visual i { align-self: center; }
  .security-card { min-height: 325px; }
  .download-card { width: calc(100% - 28px); padding: 35px 25px; }
  .download-actions { width: 100%; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 25px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
  .legal-main { padding: 115px 0 70px; }
  .legal-shell { width: min(100% - 28px, 900px); }
  .legal-document { padding: 25px 21px; }
  .legal-summary ol { grid-template-columns: 1fr; }
}

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