/* ============================================================
   Hönsliv — shared design foundation
   Palette + type grounded in the app's warm, earthy look.
   ============================================================ */

/* ---- Fonts ---- */
@font-face { font-family: "fallback-serif"; src: local("Georgia"); }

:root {
  /* surfaces */
  --paper:      #EDE7D8;
  --paper-2:    #F4EFE4;
  --paper-3:    #E5DECB;
  --card:       #FFFFFF;
  --card-soft:  #FBF8F0;

  /* ink */
  --ink:        #2B2920;
  --ink-soft:   #5C5547;
  --ink-mute:   #8B8271;

  /* brand greens */
  --green:      #46562E;
  --green-deep: #36421F;
  --green-mid:  #5C6E3A;
  --green-bright:#6E8142;

  /* accents */
  --sage:       #8C9A6E;
  --sage-soft:  #DCE2CB;
  --sage-tint:  #EAEEDF;
  --terra:      #B4543A;
  --terra-soft: #F1DCD3;
  --ochre:      #BD8A2E;
  --ochre-soft: #EFE3C6;

  --line:       rgba(57,52,36,.13);
  --line-soft:  rgba(57,52,36,.07);

  /* radii */
  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  /* shadow */
  --shadow-sm: 0 4px 14px -8px rgba(50,44,28,.45);
  --shadow-md: 0 18px 40px -26px rgba(50,44,28,.55);
  --shadow-lg: 0 40px 80px -42px rgba(40,36,20,.55);

  --font-display: "Lora", "fallback-serif", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-mid);
}
.muted { color: var(--ink-soft); }

/* ---- Header ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-head.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.head-inner { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display);
  font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; background: var(--card-soft);
  box-shadow: var(--shadow-sm); }
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.head-nav a.nav-link { padding: 9px 14px; border-radius: var(--r-sm); font-weight: 600;
  font-size: 15px; color: var(--ink-soft); transition: background .2s, color .2s; }
.head-nav a.nav-link:hover { background: rgba(70,86,46,.09); color: var(--green-deep); }
@media (max-width: 760px){ .head-nav .nav-link { display: none; } }

/* lang toggle */
.lang-toggle { display: inline-flex; background: rgba(70,86,46,.10); border-radius: 999px;
  padding: 3px; gap: 2px; }
.lang-toggle button { border: 0; background: transparent; font-family: var(--font-body);
  font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--ink-soft);
  padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: .18s; }
.lang-toggle button[aria-pressed="true"] { background: var(--card); color: var(--green-deep);
  box-shadow: var(--shadow-sm); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 800; font-size: 16px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 15px 26px; transition: transform .15s ease, box-shadow .2s, background .2s;
  text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #F6F3E9; box-shadow: 0 14px 28px -14px rgba(54,66,31,.85); }
.btn-primary:hover { background: var(--green-deep); box-shadow: 0 18px 34px -14px rgba(54,66,31,.9); }
.btn-ghost { background: transparent; color: var(--green-deep); box-shadow: inset 0 0 0 1.5px rgba(70,86,46,.35); }
.btn-ghost:hover { background: rgba(70,86,46,.07); }

/* ---- Store badges (injected by app.js) ---- */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 11px; background: #1c1b16;
  color: #fff; border-radius: 14px; padding: 10px 18px 10px 16px; transition: transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-sm); }
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge .sb-top { font-size: 10.5px; font-weight: 600; letter-spacing: .03em; opacity: .82; }
.store-badge .sb-main { font-size: 19px; font-weight: 800; letter-spacing: -.01em;
  font-family: var(--font-display); }
.store-badge.light { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.store-badge.light .sb-top { opacity: .6; }

/* ---- Phone frame ---- */
.phone { position: relative; width: 280px; aspect-ratio: 1080 / 2316; border-radius: 42px;
  background: #1f1d18; padding: 9px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06); }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.22); z-index: 3; }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--paper); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---- Icon chip ---- */
.ichip { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  flex: none; background: var(--sage-tint); box-shadow: inset 0 0 0 1px var(--line-soft); }
.ichip img { width: 70%; height: 70%; }

/* ---- Footer ---- */
.site-foot { background: var(--green-deep); color: #DCE0CF; padding: 60px 0 36px; }
.site-foot a { color: #DCE0CF; opacity: .8; }
.site-foot a:hover { opacity: 1; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display);
  font-size: 22px; color: #F4F1E6; }
.foot-brand img { width: 36px; height: 36px; border-radius: 50%; }
.foot-col h4 { color: #F4F1E6; font-size: 14px; font-family: var(--font-body); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col li { margin-bottom: 9px; font-size: 15px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; opacity: .7; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1),
  transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* shared section rhythm */
section { position: relative; }
.sec-pad { padding: 96px 0; }
@media (max-width: 760px){ .sec-pad { padding: 64px 0; } }
.center { text-align: center; }
