/* Nordform: emerald on cream. Classical serif display + clean sans. */
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F4EEE1; --cream: #ECE2CC; --ink: #1D1C19; --muted: #6E675B; --em: #0E5A43; --em-dark: #0A4433; --line: #D6CBB3; --white: #FFFDF8;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--em); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 76px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.6vw, 50px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 720px; }
.eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--em); font-weight: 700; margin-bottom: 14px; }
.lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244,238,225,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.brand span { font-family: var(--serif); font-weight: 600; letter-spacing: .38em; font-size: 16px; color: var(--em); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.nav a.btn { color: var(--paper); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--em); color: var(--paper); border: 0; border-radius: 40px; padding: 15px 28px; font: 700 15px var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--em-dark); transform: translateY(-1px); }
.btn.sm { padding: 10px 18px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--em); border: 1.5px solid var(--em); }
.btn.block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--em); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .lead { margin: 22px 0 30px; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { border-radius: 18px; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 28px; } }

.chip { position: absolute; background: var(--em); color: var(--paper); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 30px; white-space: nowrap; box-shadow: 0 6px 18px rgba(14,90,67,.18); }
.chip.out { background: var(--paper); color: var(--em); border: 1px solid var(--em); }
.chip.bad { background: var(--ink); }

/* sections */
section.block { padding: 72px 0; }
section.alt { background: var(--cream); }
.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .lead { margin-top: 14px; }

/* trust row */
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.trust span::before { content: "✓ "; color: var(--em); }

/* product cards */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card.feature { border: 2px solid var(--em); position: relative; }
.card .badge { position: absolute; top: -13px; left: 24px; background: var(--em); color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; }
.card .preview { background: var(--cream); border-radius: 12px; padding: 18px; display: flex; gap: 12px; justify-content: center; }
.card .preview img { width: 46%; border-radius: 6px; box-shadow: 0 8px 22px rgba(29,28,25,.16); }
.price { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.price small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; }
ul.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.check li { padding-left: 26px; position: relative; font-size: 15px; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--em) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23F4EEE1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border-radius: 16px; padding: 24px; border: 1px solid var(--line); }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--em); color: var(--paper); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.pages { display: flex; gap: 14px; justify-content: center; }
.pages img { width: 31%; border-radius: 8px; box-shadow: 0 14px 30px rgba(29,28,25,.18); }
.pages img:nth-child(2) { transform: translateY(-18px); }

/* topics grid */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .topics { grid-template-columns: repeat(2, 1fr); } }
.topic { position: relative; border-radius: 14px; overflow: hidden; background: var(--cream); }
.topic img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.topic span { position: absolute; left: 10px; bottom: 10px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--em); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* footer */
footer { padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; margin-right: 16px; }

/* product page */
.product-hero { padding: 48px 0; }
.product-hero .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .product-hero .grid { grid-template-columns: 1fr; } }
.buybox { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: sticky; top: 84px; }
.buybox form { margin: 18px 0 10px; }
.mobile-buy { display: none; }
@media (max-width: 860px) { .buybox { position: static; } .mobile-buy { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)); background: rgba(244,238,225,.96); border-top: 1px solid var(--line); } body.has-mobile-buy { padding-bottom: 84px; } }

/* forms */
.formcard { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 18px; }
label.f { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
label.f:first-of-type { margin-top: 4px; }
input[type=text], input[type=email], input[type=number], input[type=password], select, textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 84px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.opts input { accent-color: var(--em); }
.photo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .photo-slots { grid-template-columns: repeat(2, 1fr); } }
.slot { position: relative; aspect-ratio: 3/4; border: 1.5px dashed var(--em); border-radius: 12px; background: var(--paper) center/cover no-repeat; display: grid; place-items: center; text-align: center; font-size: 13px; font-weight: 700; color: var(--em); cursor: pointer; padding: 8px; }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot.has { border-style: solid; color: transparent; }
.slot small { display: block; font-weight: 500; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { margin-top: 4px; accent-color: var(--em); width: 18px; height: 18px; flex: none; }
.err { color: #9b2c2c; font-weight: 600; font-size: 14px; }

/* popup */
.popup { position: fixed; inset: 0; z-index: 50; background: rgba(29,28,25,.45); display: grid; place-items: center; padding: 16px; }
.popup .box { background: var(--paper); border-radius: 18px; max-width: 420px; width: 100%; padding: 30px 26px; text-align: center; position: relative; }
.popup .x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; color: var(--muted); cursor: pointer; }
.popup form { display: grid; gap: 10px; margin-top: 18px; }

/* plan page */
.plan { max-width: 680px; margin: 0 auto; padding: 32px max(18px, env(safe-area-inset-left)) 80px; }
.plan section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.plan h2 { font-size: 36px; margin-bottom: 10px; }
.plan .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.plan .pair figure { margin: 0; position: relative; }
.plan .pair img { border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.plan .chip { font-size: 11px; padding: 4px 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stat { background: var(--cream); border-radius: 10px; padding: 12px; }
.stat small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat b { font-family: var(--serif); font-size: 22px; }
.pri { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: var(--cream); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.pri .big { font-family: var(--serif); font-size: 40px; color: var(--em); line-height: 1; }
.pri h3 { font-size: 22px; margin-bottom: 4px; }
.pri .meta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--em); font-weight: 700; }
.feat { border-bottom: 1px solid var(--line); padding: 12px 0; }
.feat .t { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; align-self: center; }
.tag.Strength { background: var(--em); color: var(--paper); }
.tag.Improve { background: var(--ink); color: var(--paper); }
.tag.Fine { border: 1px solid var(--em); color: var(--em); }
.box { background: var(--cream); border-radius: 14px; padding: 16px 18px; margin: 12px 0; }
.box .eyebrow { margin-bottom: 4px; }
.week { background: var(--cream); border-radius: 14px; padding: 16px 18px; margin: 10px 0; }

/* admin */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.admin th, .admin td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--em); }
.admin .tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--cream); }
.pill.delivered { background: var(--em); color: var(--paper); }
.pill.failed, .pill.needs_photos { background: #9b2c2c; color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi b { font-family: var(--serif); font-size: 30px; display: block; }

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

/* single product page (shop) */
.announce { background: var(--em); color: var(--paper); text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 8px 16px; }
.shop { padding: 28px 0 56px; }
.shop-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: 1fr; gap: 22px; } }
.gallery { position: sticky; top: 84px; }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery-main { background: var(--cream); border-radius: 18px; overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumb { padding: 0; border: 1.5px solid transparent; border-radius: 10px; overflow: hidden; background: var(--cream); cursor: pointer; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on, .thumb:hover { border-color: var(--em); }
.buy h1 { font-size: clamp(38px, 5.4vw, 58px); }
.buy .lead { margin: 14px 0 22px; font-size: 20px; }
.opts-list { display: grid; gap: 10px; margin-bottom: 18px; }
.opt { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; transition: border-color .15s; }
.opt input { accent-color: var(--em); width: 18px; height: 18px; margin: 0; }
.opt.on { border-color: var(--em); box-shadow: 0 0 0 1px var(--em); }
.opt-main b { display: block; font-size: 15.5px; }
.opt-main small { color: var(--muted); font-size: 13px; }
.opt-price { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.opt-badge { position: absolute; top: -10px; right: 14px; background: var(--em); color: var(--paper); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.incl { margin: 4px 0 20px; }
.btn.big { padding: 18px 28px; font-size: 16px; }
.paylogos { text-align: center; margin: 10px 0 18px; }
.mini-faq details { padding: 14px 0; }

[hidden] { display: none !important; }

/* store: header with centered logo */
.top .topgrid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; }
.top .logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; gap: 2px; }
.top .logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.top .logo span { font-family: var(--serif); font-weight: 600; letter-spacing: .38em; margin-right: -.38em; font-size: 11px; color: var(--em); }
.nav.right { justify-content: flex-end; }
@media (max-width: 640px) { .top .topgrid { height: 72px; } .top .logo img { width: 42px; height: 42px; } .nav { gap: 14px; } .nav a { font-size: 13px; } .nav a:not(.btn) { display: inline; } .nav.right { display: none; } .top .topgrid { grid-template-columns: 1fr auto 1fr; } }
@media (max-width: 380px) { .nav a[href="/#faq"] { display: none; } }

/* catalog */
.catalog { padding: 48px 0 24px; }
.catalog h1 { font-size: clamp(44px, 7vw, 70px); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.pgrid.single { grid-template-columns: minmax(0, 420px); justify-content: center; }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { text-decoration: none; color: var(--ink); display: grid; gap: 6px; }
.pimg { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--cream); aspect-ratio: 1; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pimg img { transform: scale(1.03); }
.plus { position: absolute; right: 14px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 30px; color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.ptitle { font-size: 19px; font-weight: 600; margin-top: 8px; }
.pprice { font-size: 19px; font-weight: 700; color: var(--em); }

/* product page */
.product { padding: 30px 0 56px; }
.product-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; gap: 24px; } }
.thumbs { grid-template-columns: repeat(5, 1fr); }
.pinfo { text-align: center; padding-top: 8px; }
.pinfo h1 { font-size: clamp(38px, 5vw, 56px); }
.bigprice { font-size: 32px; font-weight: 700; color: var(--em); margin: 14px 0 10px; }
ul.ticks { list-style: none; padding: 0; margin: 0 auto 24px; display: inline-grid; gap: 8px; text-align: left; font-size: 17px; }
ul.ticks li { padding-left: 30px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--em) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23F4EEE1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.pinfo .btn.big { border-radius: 10px; padding: 20px; font-size: 18px; }
.paypills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 26px; }
.paypills span { font-size: 11px; font-weight: 700; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
.acc { text-align: left; border-top: 1px solid var(--line); }
.acc details { padding: 18px 0; }
.acc summary span { font-size: 17px; }
.acc details > div { padding-top: 12px; color: var(--ink); }
.howlist { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
