/* Luttugården – gravyr, krämvitt papper, bläck och en dämpad ladugårdsröd. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-600.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-500i.woff2) format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/karla-400.woff2) format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/karla-700.woff2) format('woff2'); }
/* Reservtypsnitt med anpassad storlek för mindre layoutskift */
@font-face { font-family: 'Karla Fallback'; src: local('Arial'); size-adjust: 96%; ascent-override: 96%; descent-override: 26%; }
@font-face { font-family: 'Cormorant Fallback'; src: local('Georgia'); size-adjust: 86%; ascent-override: 104%; descent-override: 30%; }

:root {
  --paper: #f6f0e4;
  --paper-2: #efe6d3;
  --card: #fffcf6;
  --ink: #1c1814;
  --ink-2: #554b3f;
  --line: #d6c8ad;
  --line-2: #e6dbc6;
  --accent: #7b2b22;
  --accent-2: #5f1f18;
  --on-accent: #fffaf2;
  --ok: #2f5b33;
  --warn: #8a5a12;
  --shadow: 0 1px 2px rgb(60 40 20 / .06), 0 8px 30px -12px rgb(60 40 20 / .22);
  --logo-filter: none;
  --serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Karla Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15120e; --paper-2: #1b1712; --card: #221d17; --ink: #efe7d6; --ink-2: #b9ad96;
    --line: #40372c; --line-2: #2e2720; --accent: #d58a76; --accent-2: #e4a08d; --on-accent: #1a120d;
    --ok: #8fc093; --warn: #e0b060; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -12px rgb(0 0 0 / .6);
    --logo-filter: invert(1) sepia(.25) brightness(.95); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15120e; --paper-2: #1b1712; --card: #221d17; --ink: #efe7d6; --ink-2: #b9ad96;
  --line: #40372c; --line-2: #2e2720; --accent: #d58a76; --accent-2: #e4a08d; --on-accent: #1a120d;
  --ok: #8fc093; --warn: #e0b060; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -12px rgb(0 0 0 / .6);
  --logo-filter: invert(1) sepia(.25) brightness(.95); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; font-variant-numeric: lining-nums;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
svg { width: 1.15em; height: 1.15em; flex: none; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.big { font-size: 1.2rem; line-height: 1.6; }
.eyebrow {
  font: 700 .75rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 1rem; display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* Demo-banner */
.demo-bar {
  background: var(--ink); color: var(--paper); text-align: center;
  font: 700 .75rem/1 var(--sans); letter-spacing: .08em; padding: 7px 12px; display: flex; justify-content: center; align-items: center; gap: .5rem;
}
.demo-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: #e3a24a; }

/* Knappar */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; border: 1px solid var(--b);
  font: 700 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 42px; padding: .55rem 1.05rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line); }
.icon-btn svg { width: 22px; height: 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-logo { width: 46px; height: auto; filter: var(--logo-filter); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 600 1.5rem/1 var(--serif); letter-spacing: .02em; }
.brand-sub { font: 700 .625rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { font-weight: 700; font-size: .9375rem; text-decoration: none; padding: .4rem 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line-2); font-size: 1.05rem; }
  .main-nav a::after { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.35rem; }
  .brand-logo { width: 40px; }
  .theme-btn { display: none; }
  .header-actions .btn-sm { padding: .5rem .8rem; font-size: .85rem; min-height: 40px; }
  .header-inner { gap: .5rem; }
}
@media (max-width: 389px) { .brand-name { font-size: 1.2rem; } .brand { gap: .5rem; } }
@media (max-width: 339px) { .brand-name { display: none; } }

/* Hero */
.hero { position: relative; }
.hero-photo img { width: 100%; height: clamp(320px, 62vh, 700px); object-fit: cover; object-position: 50% 62%; }
.hero-card-wrap { position: relative; margin-top: clamp(-260px, -22vh, -120px); }
.hero-card {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--paper); padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 44px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line-2); pointer-events: none; }
/* Märket är alltid en krämvit "plåt" med bläcklogga – även i mörkt läge. */
.hero-badge { width: clamp(120px, 22vw, 168px); margin: calc(-1 * clamp(84px, 13vw, 118px)) auto 1.1rem; background: #f6f0e4; border-radius: 50%; padding: 9px; box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--paper), 0 0 0 7px var(--line); }
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { margin-bottom: .3em; }
.lead { font: 500 italic clamp(1.25rem, 2.6vw, 1.6rem)/1.35 var(--serif); color: var(--ink-2); margin-bottom: 1.6rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero-status { margin: 1.2rem 0 0; font-size: .9375rem; color: var(--ink-2); min-height: 1.6em; }
.hero-status strong { color: var(--ink); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: .45rem; vertical-align: .08em; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Sektioner */
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--paper-2); }
.section-alt::before, .section-alt::after { content: ''; position: absolute; left: 0; right: 0; height: 5px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt::before { top: 0; } .section-alt::after { bottom: 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .muted { font-size: 1.125rem; }

/* Om gården */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.facts { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
.facts li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 700; font-size: .975rem; }
.facts svg { color: var(--accent); margin-top: .2em; }
.placeholder { border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); padding: 1rem 1.2rem; border-radius: var(--radius); display: grid; gap: .25rem; font-size: .95rem; }
.placeholder strong { color: var(--accent); letter-spacing: .04em; }
.about-photos { display: grid; grid-template-columns: 1fr .82fr; gap: 18px; align-items: end; }
.photo { margin: 0; }
.photo picture { overflow: hidden; border-radius: 2px; box-shadow: var(--shadow); }
.photo img { width: 100%; }
.photo-tall img { aspect-ratio: 3/4; object-fit: cover; }
.photo-wide { margin-bottom: 18%; }
.photo-wide img { aspect-ratio: 4/3; object-fit: cover; }
figcaption { font: 500 italic 1.05rem/1.3 var(--serif); color: var(--ink-2); margin-top: .6rem; }

/* Steg */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); padding: 2rem 1.6rem 1.6rem; border-radius: var(--radius); }
.step-num { position: absolute; top: -18px; left: 1.6rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 600 1.25rem/1 var(--serif); }
.step-icon { width: 54px; height: 54px; color: var(--ink); margin: .4rem 0 1rem; }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--ink-2); }

/* Shop */
.round { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin-bottom: 28px; box-shadow: var(--shadow); min-height: 150px; }
.round-skeleton { height: 110px; border-radius: 4px; background: linear-gradient(90deg, var(--line-2), var(--paper-2), var(--line-2)); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.round-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.round h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .25em; }
.pill { display: inline-flex; align-items: center; gap: .45rem; font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; border: 1px solid currentColor; }
.pill-open { color: var(--ok); }
.pill-closed { color: var(--ink-2); }
.round-meta { display: grid; gap: .5rem; margin: 1rem 0 0; }
.round-meta div { display: flex; gap: .6rem; align-items: flex-start; }
.round-meta svg { margin-top: .2em; color: var(--accent); }
.model { border-left: 3px solid var(--accent); background: var(--paper-2); padding: 1rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.model strong { display: block; font: 600 1.35rem/1.2 var(--serif); margin-bottom: .25rem; }
.model p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.left-total { font: 600 2.6rem/1 var(--serif); margin: 0; }
.left-total small { font: 400 1rem var(--sans); color: var(--ink-2); margin-left: .35rem; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.product.skeleton { min-height: 520px; background: linear-gradient(90deg, var(--card), var(--paper-2), var(--card)); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
.product:not(.skeleton):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product-img img { transform: scale(1.03); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--ink); font: 700 .75rem/1 var(--sans); letter-spacing: .04em; padding: .45rem .65rem; border-radius: 999px; border: 1px solid var(--line); }
.product-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 1.75rem; margin-bottom: .3em; }
.product-desc { color: var(--ink-2); font-size: .975rem; flex: 1; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: .9rem; margin-top: .4rem; }
.price { font: 600 1.9rem/1 var(--serif); }
.price small { font: 400 .95rem var(--sans); color: var(--ink-2); }
.prelim { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); font-weight: 700; }
.approx { font-size: .95rem; color: var(--ink-2); margin: .35rem 0 .9rem; }
.stock { display: grid; gap: .4rem; margin-bottom: 1rem; font-size: .9rem; font-weight: 700; }
.stock-bar { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.stock-bar span { display: block; height: 100%; background: var(--ok); border-radius: 2px; transition: width .5s; }
.stock.low { color: var(--warn); } .stock.low .stock-bar span { background: var(--warn); }
.stock.out { color: var(--ink-2); }
.buy-row { display: flex; gap: .6rem; align-items: stretch; }
.buy-row .btn { flex: 1; }
.product.sold-out .product-img img { filter: grayscale(.85); opacity: .7; }
.sold-out-tag { position: absolute; inset: auto 0 0 0; background: rgb(28 24 20 / .82); color: #f6f0e4; text-align: center; font: 700 .875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .75rem; }
.price-note { margin-top: 1.4rem; font-size: .9rem; }
.notice { padding: 1rem; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); }

.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); height: 48px; }
.stepper button { width: 46px; border: 0; background: transparent; color: var(--ink); font: 400 1.4rem/1 var(--sans); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--paper-2); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input { width: 42px; border: 0; background: transparent; text-align: center; font: 700 1.05rem var(--sans); color: var(--ink); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Nyheter */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.news-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.news-item time { font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.news-item h3 { margin: .7rem 0 .5rem; font-size: 1.6rem; }
.news-item p { color: var(--ink-2); margin: 0; white-space: pre-line; }
.news-item img { margin: -1.6rem -1.6rem 1.2rem; width: calc(100% + 3.2rem); max-width: none; aspect-ratio: 16/9; object-fit: cover; }

/* Följ */
.follow-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.4rem; margin: 1.8rem 0 2rem; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font: 700 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.stats dd { margin: 0 0 .3rem; font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); }
.quote { margin: 0; position: relative; background: var(--card); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); box-shadow: var(--shadow); }
.quote::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line-2); pointer-events: none; border-radius: 3px; }
.quote-mark { width: 44px; height: 44px; color: var(--accent); margin-bottom: .8rem; }
.quote blockquote { margin: 0 0 1.4rem; font: 500 italic clamp(1.6rem, 3.2vw, 2.2rem)/1.25 var(--serif); }
.quote blockquote p { margin: 0; }
.quote figcaption { font: 400 .95rem/1.4 var(--sans); font-style: normal; display: grid; color: var(--ink-2); }
.quote figcaption strong { color: var(--ink); font-size: 1.05rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.contact-list svg { color: var(--accent); width: 24px; height: 24px; margin-top: .25em; }
.contact-list .label { display: block; font: 700 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.contact-list a { font-weight: 700; text-decoration: none; display: inline-block; padding: .2rem 0; }
address { font-style: normal; }

/* Sidfot */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--paper); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.footer-brand { display: flex; gap: 1.1rem; align-items: center; }
.footer-brand img { width: 72px; filter: var(--logo-filter); }
.footer-brand p { margin: 0; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.footer-links a { font-weight: 700; font-size: .95rem; padding: .6rem 0; display: inline-block; }
.footer-small { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line-2); font-size: .85rem; color: var(--ink-2); }

/* Kassa (dialog) */
.sheet { border: 0; padding: 0; margin: auto; width: min(560px, 100%); max-height: min(92vh, 900px); background: var(--paper); color: var(--ink); border-radius: 10px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5); overflow: hidden; }
.sheet::backdrop { background: rgb(20 15 10 / .55); backdrop-filter: blur(3px); }
.sheet[open] { display: flex; animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
.sheet-inner { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.3rem 1.4rem .8rem; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 2rem; margin: 0; }
.sheet-head .eyebrow { margin-bottom: .4rem; }
.sheet-body { padding: 1.1rem 1.4rem; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 1rem; }
.sheet-foot { padding: 1rem 1.4rem 1.2rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.pay-methods { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .7rem 0 0; }
.co-product { display: flex; gap: .9rem; align-items: center; }
.co-product img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; }
.co-name { font: 600 1.35rem/1.1 var(--serif); margin: 0 0 .2rem; }
.co-product p { margin: 0; }
.co-sum { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: .8rem 1rem; display: grid; gap: .35rem; }
.co-sum div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.co-sum dt { color: var(--ink-2); } .co-sum dd { margin: 0; font-weight: 700; text-align: right; }
.co-sum .now { border-top: 1px solid var(--line-2); padding-top: .45rem; margin-top: .2rem; font-size: 1.05rem; }
.co-sum .now dt { color: var(--ink); font-weight: 700; }
.co-model { margin: 0; font-size: .9rem; color: var(--ink-2); }
.field { display: grid; gap: .35rem; }
.field label, .field .label { font-weight: 700; font-size: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.qty-field { grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem; }
.qty-field .label { grid-column: 1 / -1; }
input, select, textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .75rem .85rem; min-height: 48px; width: 100%;
}
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
[aria-invalid="true"] { border-color: #b3261e; background: color-mix(in srgb, #b3261e 6%, var(--card)); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: .1rem 0 0; accent-color: var(--accent); flex: none; }
.co-error { margin: 0; color: #b3261e; font-weight: 700; font-size: .95rem; min-height: 0; }
.co-error:empty { display: none; }
:root[data-theme="dark"] .co-error { color: #ff9d8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-error { color: #ff9d8f; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Enkla sidor (villkor, tack) */
.page { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page h2 { font-size: 1.7rem; margin-top: 2rem; }
.page li { margin-bottom: .4rem; }
.draft { border: 1px dashed var(--warn); color: var(--warn); padding: .8rem 1rem; border-radius: var(--radius); font-weight: 700; margin-bottom: 2rem; }
.receipt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); position: relative; }
.receipt::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line-2); pointer-events: none; }
.ref { font: 600 clamp(2.2rem, 6vw, 3rem)/1 var(--serif); letter-spacing: .02em; }
.mail-preview { white-space: pre-wrap; font: 400 .9rem/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; margin-bottom: 1.5rem; }
.back-link svg { transform: rotate(180deg); }

/* Rörelse */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-io .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsivt */
.about > *, .follow-inner > *, .contact > *, .round-grid > *, .footer-inner > * { min-width: 0; }
@media (max-width: 960px) {
  .about, .follow-inner, .contact, .round-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .about-photos { max-width: 620px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .products { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .stats { gap: 1rem; grid-template-columns: repeat(3, minmax(0, auto)); }
  .stats dt { letter-spacing: .06em; font-size: .68rem; }
  .hero-photo img { height: 46vh; min-height: 300px; object-position: 38% 65%; }
  .hero-card-wrap { margin-top: -64px; padding: 0 12px; }
  .hero-card::before { inset: 6px; }
  .cta-row .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .sheet { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
}
@media print {
  .demo-bar, .site-header, .site-footer, .btn, .icon-btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Cormorant har gammaldags siffror som standard – siffror ska vara jämnhöga.
   (Måste ligga sist: font-kortformen nollställer font-variant-numeric.) */
h1, h2, h3, .step-num, .price, .left-total, .stats dd, .ref, .co-name, .model strong, .quote blockquote, .brand-name, figcaption, .lead { font-variant-numeric: lining-nums; }
