@font-face { font-family: 'Bricolage'; src: url('assets/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('assets/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --paper: #f5f7f0;
  --white: #fdfefb;
  --ink: #14261a;
  --muted: #47584b;
  --field: #1d4a2c;
  --grass: #8cbf45;
  --grass-soft: #e4eed2;
  --sky: #dde9e8;
  --poppy: #b8321a;       /* accent d'acció */
  --poppy-dark: #942512;
  --sun: #f2b84b;
  --line: #cfd8c8;
  --mark: #ffe58a;
  --r: 14px;              /* targetes i fotos */
  --r-in: 10px;           /* camps */
  --pill: 999px;          /* botons */
  --shadow: 0 18px 40px -24px rgb(20 38 26 / .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 'Figtree', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: 'Bricolage', 'Figtree', sans-serif; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--field); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--poppy); outline-offset: 3px; }
main:focus { outline: none; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec-tight { padding-block: clamp(36px, 5vw, 64px); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 10px 14px; }
.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
[data-icon] { display: inline-flex; }

/* ---------- marques de contingut inventat ---------- */
mark, .f { background: var(--mark); color: #2b2300; border-radius: 3px; padding: 0 .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fblock { outline: 2px dashed #c99b00; outline-offset: 8px; border-radius: 6px; }
.ftag { display: inline-block; background: var(--mark); color: #2b2300; font: 700 .75rem/1 'Figtree', sans-serif; padding: 6px 9px; border-radius: 5px; margin-bottom: 14px; letter-spacing: 0; }
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--grass-soft); }
.photo > img { width: 100%; height: 100%; object-fit: cover; }
.sample { position: absolute; right: 8px; bottom: 8px; background: var(--mark); color: #2b2300; font: 700 .7rem/1 'Figtree', sans-serif; padding: 5px 8px; border-radius: 4px; z-index: 2; pointer-events: none; }
body.clean .f { background: transparent; color: inherit; padding: 0; }
body.clean .fblock { outline: 0; }
body.clean .ftag, body.clean .sample, body.clean .demobar-txt { display: none; }

.demobar { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--ink); color: #eef3e8; padding: 7px 20px; font-size: .86rem; }
.demobar p { margin: 0; }
.demobar mark { padding: 0 .3em; }
.demobar > div { display: flex; gap: 14px; align-items: center; flex: none; }
.demobar a { color: #eef3e8; }
.demobar button { font: inherit; background: none; color: inherit; border: 1px solid #6f8573; border-radius: var(--pill); padding: 3px 12px; cursor: pointer; }

/* ---------- capçalera ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; padding-inline: max(20px, (100% - 1240px) / 2); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand img { height: 50px; width: auto; }
#nav { display: flex; gap: 28px; }
#nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
#nav a:hover, #nav a[aria-current="page"] { border-color: var(--grass); }
.top-actions { display: flex; gap: 8px; }
.cartbtn { display: flex; align-items: center; gap: 8px; font: 700 .98rem 'Figtree', sans-serif; background: var(--field); color: #fff; border: 0; border-radius: var(--pill); padding: 10px 12px 10px 18px; cursor: pointer; }
.badge { background: var(--white); color: var(--field); border-radius: var(--pill); min-width: 26px; height: 26px; display: grid; place-items: center; font-size: .85rem; }
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menubtn { display: none; }
.iconbtn, .menubtn { background: none; border: 1px solid var(--line); border-radius: var(--pill); width: 44px; height: 44px; place-items: center; justify-content: center; align-items: center; cursor: pointer; color: var(--ink); }
.iconbtn { display: inline-flex; }

/* ---------- botons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 700 1rem/1.2 'Figtree', sans-serif; padding: 14px 24px; border-radius: var(--pill); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .2s, transform .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--poppy); color: #fff; }
.btn-primary:hover { background: var(--poppy-dark); }
.btn-ghost { border-color: currentColor; color: var(--field); background: transparent; }
.btn-ghost:hover { background: var(--grass-soft); }
.btn-light { color: #fff; border-color: #fff; background: rgb(10 24 15 / .35); }
.btn-light:hover { background: rgb(10 24 15 / .65); }
.btn[disabled] { background: #d9dfd3; color: #4c594f; cursor: not-allowed; border-color: transparent; }
.btn-block { width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- portada ---------- */
.hero { position: relative; min-height: min(680px, calc(100dvh - 118px)); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(9 25 14 / .86) 0%, rgb(9 25 14 / .55) 45%, rgb(9 25 14 / .05) 78%), linear-gradient(0deg, rgb(9 25 14 / .6), transparent 45%); }
.hero-in { padding-block: 64px 56px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); max-width: 9ch; margin-bottom: .22em; line-height: .98; }
.hero p { font-size: 1.25rem; max-width: 36ch; margin-bottom: 28px; }
.hero .sample { top: 14px; bottom: auto; right: 14px; }

.notice { background: var(--sun); color: #271a00; }
.notice-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 18px; }
.notice p { margin: 0; font-size: 1.08rem; }
.notice a { color: #271a00; font-weight: 700; }

/* apartats */
.doors { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 270px 270px; gap: 16px; }
.door { position: relative; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; display: flex; align-items: flex-end; padding: 24px; isolation: isolate; background: var(--field); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.door::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(9 25 14 / .88), rgb(9 25 14 / .1) 70%); }
.door:hover img { transform: scale(1.05); }
.door h3 { font-size: 1.6rem; margin: 0 0 4px; }
.door p { margin: 0; font-size: .98rem; max-width: 34ch; }
.door-a { grid-row: span 2; }
.door-b { grid-column: span 2; }
.door .sample { top: 10px; bottom: auto; }

/* el corral que es mou */
.rotation { background: var(--field); color: #f3f7ec; }
.rotation .lead { color: #d4e2cd; }
.field { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-block: 34px 18px; }
.plot { position: relative; height: 150px; border-radius: 8px; background: var(--grass); transition: background-color .45s; overflow: hidden; }
.plot::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, rgb(255 255 255 / .2) 0 2px, transparent 2px 9px); }
.plot[data-s="rest"] { background: #7d6a3c; }
.plot[data-s="rest"]::before { opacity: .35; }
.plot[data-s="regrow"] { background: #5f8a3c; }
.plot[data-s="regrow"]::before { opacity: .6; }
.plot[data-s="coop"] { background: #6f8f3e; }
.plot span { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-size: .78rem; font-weight: 700; color: #10200f; z-index: 1; }
.plot[data-s="rest"] span, .plot[data-s="regrow"] span { color: #fff; }
.coop { position: absolute; left: 8%; right: 8%; top: 34px; height: 72px; z-index: 1; }
.coop::before { content: ''; position: absolute; inset: 0 0 34px; background: #f4f4ec; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.coop::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; border: 3px solid #4a2f14; background: repeating-linear-gradient(90deg, #4a2f14 0 2px, transparent 2px 11px), #e8dfae; }
.range { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.range input { flex: 1; min-width: 220px; accent-color: var(--sun); height: 30px; }
.range output { font: 700 1.3rem 'Bricolage', sans-serif; min-width: 6ch; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 18px; border-radius: 4px; display: inline-block; border: 1px solid #f3f7ec; }

/* fila de productes */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head h2 { margin: 0; }
.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 22px; }
.product { display: flex; flex-direction: column; }
.product .photo { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.product h3 { margin-bottom: 4px; }
.product .desc { color: var(--muted); font-size: .98rem; margin-bottom: 12px; }
.product .meta { font-size: .9rem; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 2px solid var(--ink); }
.price { font: 800 1.55rem 'Bricolage', sans-serif; font-variant-numeric: tabular-nums; }
.product .btn { padding: 11px 18px; }
.soon .photo img { filter: saturate(.55); }
.soon-label { color: var(--poppy); font-weight: 800; }

/* recollida */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.place { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.place .photo { border-radius: 0; aspect-ratio: 16 / 8; }
.place-body { padding: 22px 24px 26px; }
.line { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 8px; }
.line .ic { margin-top: .18em; color: var(--field); }

/* pàgines interiors */
.page-head { background: var(--sky); }
.page-head .wrap { padding-block: clamp(44px, 6vw, 76px); }
.page-head h1 { margin-bottom: .25em; }
.page-head p { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .photo { aspect-ratio: 5 / 4; }
.banner-photo { aspect-ratio: 21 / 8; border-radius: var(--r); }
.principles { columns: 2; column-gap: 56px; }
.principle { break-inside: avoid; margin-bottom: 30px; padding-left: 20px; border-left: 5px solid var(--grass); }
.principle h3 { margin-bottom: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; max-width: 780px; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 0 0 30px; }
.timeline time { font: 700 1.05rem 'Bricolage', sans-serif; color: var(--field); }
.timeline h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }
.tinted { background: var(--grass-soft); }

.ways { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.way { border-radius: var(--r); padding: 28px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.way > .ic { width: 38px; height: 38px; color: var(--field); margin-bottom: 14px; }
.way .btn { margin-top: auto; }
.way-main { background: var(--field); color: #f3f7ec; border-color: var(--field); }
.way-main > .ic { color: var(--sun); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { counter-increment: s; padding: 0 22px 0 0; border-top: 3px solid var(--field); padding-top: 18px; }
.steps li::before { content: counter(s); font: 800 2.4rem/1 'Bricolage', sans-serif; color: var(--field); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { font-size: .96rem; color: var(--muted); }

.shops { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; }
.shops ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.shops li { break-inside: avoid; margin-bottom: 8px; }

details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-in); padding: 14px 20px; margin-bottom: 10px; max-width: 820px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* formularis */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
.fieldset legend { font: 750 1.4rem 'Bricolage', sans-serif; margin-bottom: 14px; padding: 0; }
.inp { display: flex; flex-direction: column; gap: 6px; }
.inp.full { grid-column: 1 / -1; }
.inp label { font-weight: 600; font-size: .95rem; }
.inp input, .inp select, .inp textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #8b9a8d; border-radius: var(--r-in); background: var(--white); color: var(--ink); width: 100%; }
.inp [aria-invalid="true"] { border-color: var(--poppy); border-width: 2px; }
.err { color: var(--poppy-dark); font-size: .9rem; font-weight: 600; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--field); flex: none; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: block; height: 100%; background: var(--white); border: 1.5px solid #8b9a8d; border-radius: var(--r); padding: 16px 18px; }
.choice input:checked + span { border: 3px solid var(--field); padding: 14.5px 16.5px; background: var(--grass-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--poppy); outline-offset: 3px; }
.choice strong { display: flex; align-items: center; gap: 9px; font-size: 1.08rem; }
.choice small { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; }

.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.summary { position: sticky; top: 100px; background: var(--white); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.sum-row { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 2px solid var(--ink); padding-top: 12px; font: 800 1.4rem 'Bricolage', sans-serif; }

/* carret */
.scrim { position: fixed; inset: 0; background: rgb(9 20 12 / .5); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--paper); z-index: 31; display: flex; flex-direction: column; transform: translateX(102%); visibility: hidden; transition: transform .35s cubic-bezier(.16,1,.3,1), visibility 0s .35s; }
.drawer.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.16,1,.3,1); box-shadow: -20px 0 50px -20px rgb(9 20 12 / .5); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.item { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; margin-bottom: 20px; }
.item img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--r-in); }
.item h3 { font-size: 1rem; margin: 0 0 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: var(--pill); color: var(--ink); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty b { min-width: 24px; text-align: center; }
.item-end { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-variant-numeric: tabular-nums; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.empty { text-align: center; padding: 50px 10px; }
.empty .ic { width: 56px; height: 56px; color: var(--field); margin: 0 auto 14px; }

/* passarel·la */
dialog { border: 0; border-radius: var(--r); padding: 0; width: min(430px, calc(100% - 30px)); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .55); color: var(--ink); background: var(--white); }
dialog::backdrop { background: rgb(9 20 12 / .65); }
.gw { padding: 28px; }
.gw h2 { font-size: 1.5rem; }
.gw-warn { background: var(--sky); border-radius: var(--r-in); padding: 12px 14px; font-size: .93rem; }
.gw-box { border: 1.5px dashed #8b9a8d; border-radius: var(--r-in); padding: 14px 16px; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.gw .btn { margin-bottom: 10px; }
.spinner { width: 46px; height: 46px; border: 5px solid var(--grass-soft); border-top-color: var(--field); border-radius: 50%; margin: 26px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* confirmació, correu i factura */
.ok-head .ic:first-child { width: 62px; height: 62px; color: var(--field); margin-bottom: 8px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button { font: 700 .98rem 'Figtree', sans-serif; background: var(--white); border: 1.5px solid var(--field); color: var(--field); border-radius: var(--pill); padding: 10px 18px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--field); color: #fff; }
.ok-head .wrap, .tabs-wrap { max-width: 820px; }
.sheet { margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); max-width: 820px; overflow: hidden; }
.mail-meta { padding: 18px 28px; background: #eef2ea; font-size: .93rem; }
.mail-meta p { margin: 0; overflow-wrap: anywhere; }
.mail-body, .invoice { padding: 28px; }
.attach { display: inline-flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-in); padding: 10px 16px; font: 600 .95rem 'Figtree', sans-serif; background: #fff; cursor: pointer; color: var(--ink); }
.invoice { position: relative; font-size: .95rem; }
.watermark { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%) rotate(-22deg); font: 800 clamp(1.5rem, 5vw, 3.1rem)/1.15 'Bricolage', sans-serif; color: rgb(184 50 26 / .2); text-align: center; width: 100%; pointer-events: none; }
.inv-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.inv-top img { height: 54px; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
th { text-align: left; border-bottom: 2px solid var(--ink); padding: 8px 6px; font-size: .85rem; }
td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
th:not(:first-child), td:not(:first-child) { text-align: right; }
.totals { margin-left: auto; max-width: 300px; }

.truth { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.truth > div { background: var(--white); border-radius: var(--r); padding: 26px 28px; border: 1px solid var(--line); }
.truth li { margin-bottom: 9px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: var(--pill); font-weight: 600; opacity: 0; pointer-events: none; transition: .3s; z-index: 40; width: max-content; max-width: calc(100% - 30px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.foot { background: var(--ink); color: #d7e2d3; padding-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 32px; }
.foot h2 { font-size: 1.05rem; color: #fff; }
.foot a { display: block; color: #d7e2d3; margin-bottom: 7px; }
.foot p { margin-bottom: 7px; overflow-wrap: anywhere; }
.foot img { width: 200px; height: auto; }
.foot-claim { font: 700 1.5rem 'Bricolage', sans-serif; color: #b9dc7e; margin-top: 16px; }
.foot-end { border-top: 1px solid #36503c; padding-block: 18px; margin-top: 40px; font-size: .87rem; }

.js-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.js-reveal.in { opacity: 1; transform: none; }
.hero-in > * { animation: rise .8s cubic-bezier(.16,1,.3,1) both; }
.hero-in > :nth-child(2) { animation-delay: .1s; }
.hero-in > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 1060px) {
  .menubtn { display: inline-flex; }
  #nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: var(--shadow); }
  #nav.open { display: flex; }
  #nav a { padding: 13px 0; }
  .grid-products { grid-template-columns: 1fr 1fr; }
  .ways { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .demobar { padding-inline: 14px; font-size: .78rem; }
  .demobar-txt { display: none; }
  .cartbtn-label { display: none; }
  .brand img { height: 42px; }
  .hero { min-height: calc(100dvh - 130px); }
  .hero::after { background: linear-gradient(0deg, rgb(9 25 14 / .9) 20%, rgb(9 25 14 / .3) 80%); }
  .doors { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .door-a, .door-b { grid-row: auto; grid-column: auto; }
  .split, .places, .checkout, .shops, .truth, .grid-products, .form, .choices { grid-template-columns: 1fr; }
  .summary { position: static; }
  .principles { columns: 1; }
  .banner-photo { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .field { grid-template-columns: repeat(5, 1fr); }
  .plot { height: 104px; }
  .coop { top: 14px; transform: scale(.85); }
  .plot span { font-size: .68rem; }
  .mail-body, .invoice, .mail-meta { padding-inline: 16px; }
}
@media (max-width: 440px) { .shops ul { columns: 1; } .foot-grid { grid-template-columns: 1fr; } }

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

@media print {
  .demobar, .top, .foot, .tabs, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .sheet { box-shadow: none; border: 0; max-width: none; }
  .sec, .sec-tight { padding: 0; }
  .watermark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- panell d'administració ---------- */
.adm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.adm-row { display: grid; grid-template-columns: 76px minmax(0, 1.3fr) minmax(0, 1.2fr) auto; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.adm-row > img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--r-in); }
.adm-name h3 { font-size: 1.08rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.adm-name p { margin: 0; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.adm-data { display: grid; grid-template-columns: 1fr .6fr 1.1fr; gap: 10px; font-variant-numeric: tabular-nums; }
.adm-data small { display: block; font-size: .78rem; color: var(--muted); }
.pill { display: inline-block; font-size: .82rem; padding: 2px 10px; border-radius: var(--pill); background: var(--grass-soft); white-space: nowrap; }
.pill-soon { background: var(--sky); }
.pill-hidden { background: #e1e3de; }
.adm-actions { display: flex; gap: 8px; }
.adm-actions .btn { padding: 8px 14px; font-size: .92rem; }
.adm-del { color: var(--poppy-dark); }
.adm-del:hover { background: #f8e3de; }
#adm-dialog { width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.adm-photo { flex-direction: row !important; gap: 16px !important; align-items: flex-start; }
.adm-photo > img { width: 130px; height: 100px; object-fit: cover; border-radius: var(--r-in); }
.adm-photo > div { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.adm-photo input[type=file] { padding: 8px; font-size: .9rem; }
.adm-foot { margin-top: 18px; }
@media (max-width: 960px) {
  .adm-row { grid-template-columns: 64px minmax(0, 1fr); }
  .adm-row > img { width: 64px; height: 64px; }
  .adm-data, .adm-actions { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  #adm-dialog .form { grid-template-columns: 1fr; }
  .adm-photo { flex-direction: column !important; }
}
