/* ============================================================
   Morot — landing page styles
   Warm, organic, market-fresh. Cream canvas, deep green type,
   carrot-coral accents. Display + body: Nunito (matches app).
   ============================================================ */

:root {
  --cream: #faf8f2;
  --cream-bright: #fffdf8;
  --green: #22a45d;
  --green-dark: #18854a;
  --green-deep: #115c36;
  --green-soft: #e3f4ea;
  --coral: #ff7a59;
  --coral-deep: #f05e3a;
  --coral-soft: #ffede7;
  --amber: #ffb340;
  --amber-soft: #fff4e0;
  --berry-soft: #f1ecfc;
  --sky-soft: #e7f2fc;
  --ink: #20262e;
  --ink-2: #6b7280;
  --ink-3: #9ca3af;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 50px -20px rgba(17, 92, 54, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(32, 38, 46, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: "Nunito", "Helvetica Neue", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--cream-bright); }

img { display: block; max-width: 100%; }

a { color: var(--green-dark); }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 164, 93, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand img { width: 38px; height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green-dark); }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(34, 164, 93, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(34, 164, 93, 0.6);
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ hero ============ */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 110px) clamp(64px, 9vw, 110px);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -160px;
  right: -140px;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(34, 164, 93, 0.14), transparent 65%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; padding-bottom: 8px; }
  .hero .store-row { justify-content: center; }
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

h1 .accent {
  color: var(--green);
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: clip;
  vertical-align: bottom;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

h1 .swap {
  display: inline-block;
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

h1 .swap-out {
  opacity: 0;
  transform: translateY(-0.45em);
}

h1 .swap-pre {
  transition: none;
  opacity: 0;
  transform: translateY(0.45em);
}

.swap-ruler {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* hand-drawn underline */
h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 50 5, 120 4, 197 9' fill='none' stroke='%23ffb340' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 34px;
  font-weight: 600;
}

.store-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.appstore-badge img,
.playstore-badge img { height: 54px; width: auto; }

.appstore-badge,
.playstore-badge {
  transition: transform 0.2s;
  display: inline-block;
}

.appstore-badge:hover,
.playstore-badge:hover { transform: translateY(-2px) scale(1.02); }

.hero-note {
  margin-top: 18px;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: var(--ink-3);
  font-weight: 600;
}

/* --- staggered entrance --- */
.rise {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.31s; }
.rise-4 { animation-delay: 0.44s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
}

/* ============ hero phone — real app screenshot ============ */
.phone-stage {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(330px, 84vw);
  background: var(--ink);
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 40px 90px -30px rgba(17, 92, 54, 0.4);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 36px;
}

.hero-note { margin-bottom: 0; }

/* ============ sections ============ */
section { padding-block: clamp(56px, 8vw, 100px); }

.section-head {
  max-width: 620px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1.08rem;
}

.kicker {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral-deep);
  margin-bottom: 10px;
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--cream-bright);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(34, 164, 93, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.feature .icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature .icon img { width: 30px; height: 30px; }

.feature:nth-child(1) .icon { background: var(--green-soft); }
.feature:nth-child(2) .icon { background: var(--coral-soft); }
.feature:nth-child(3) .icon { background: var(--amber-soft); }
.feature:nth-child(4) .icon { background: var(--berry-soft); }

.feature h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature p { color: var(--ink-2); font-weight: 600; font-size: 0.98rem; }

/* ============ in-app showcase (green block) ============ */
.how { background: var(--green-deep); color: var(--cream-bright); border-radius: clamp(24px, 4vw, 44px); }

.how .wrap { padding-block: clamp(56px, 7vw, 90px); }

.how h2 { color: #fff; }
.how .section-head p { color: rgba(255, 253, 248, 0.75); }
.how .kicker { color: var(--amber); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.shot { margin: 0; }

.shot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.5);
}

.shot:nth-child(2) { transform: translateY(26px); }

.shot figcaption {
  margin-top: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  color: rgba(255, 253, 248, 0.9);
}

@media (max-width: 760px) {
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-inline: -24px;
    padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
  }
  .shot {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }
  .shot:nth-child(2) { transform: none; }
}

/* ============ final CTA ============ */
.cta-final { text-align: center; position: relative; }

.cta-final .carrot {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
}

.cta-final .store-row { justify-content: center; margin-top: 30px; }

/* ============ footer ============ */
footer {
  border-top: 1px solid rgba(34, 164, 93, 0.1);
  padding-block: 34px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-3);
  font-weight: 600;
}

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

.foot-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 700;
}

.foot-links a:hover { color: var(--green-dark); }

/* ============ scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ legal pages ============ */
.legal {
  max-width: 720px;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 80px);
}

.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 6px; }

.legal .updated { color: var(--ink-3); font-weight: 700; font-size: 0.92rem; margin-bottom: 40px; }

.legal h2 {
  font-size: 1.35rem;
  margin: 38px 0 12px;
}

.legal h3 { font-size: 1.05rem; font-weight: 900; margin: 24px 0 8px; }

.legal p, .legal li { color: var(--ink-2); font-weight: 600; }

.legal ul, .legal ol { padding-left: 24px; margin-block: 10px; }

.legal li { margin-bottom: 6px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 16px;
  font-size: 0.92rem;
}

.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(34, 164, 93, 0.12);
  color: var(--ink-2);
  font-weight: 600;
}

.legal th { color: var(--ink); font-weight: 900; background: var(--green-soft); }

/* Phones: the table is wider than the screen — scroll it sideways
   instead of letting the body clip cut the last column off. */
@media (max-width: 640px) {
  .legal table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 28px;
}

/* ============================================================
   v2 landing — USP feature rows + floating hero chips
   (built on the existing tokens above)
   ============================================================ */

/* rotating hero tagline — a sliding "ticker" of the app's "din morot" words:
   the front word pops, the rest trail off to the right, the row slides left. */
.tagline {
  margin-bottom: 18px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  /* keep the wide ticker from stretching the hero (flex item must shrink) */
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.rotator {
  display: block;
  position: relative;
  width: 100%;
  height: 1.7em;
  overflow: hidden;
  /* fade the trailing words out toward the right edge */
  -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%);
  mask-image: linear-gradient(to right, #000 62%, transparent 100%);
}

/* the track is taken out of flow so its width can never stretch the hero */
.rotator-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  width: max-content;
  gap: 1.15em;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rotator-track.no-anim { transition: none; }

.rword {
  white-space: nowrap;
  color: var(--ink-3);
  opacity: 0.45;
  transform-origin: left center;
  transition: color 0.45s ease, opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* the front word "pops" */
.rword.is-active {
  color: var(--green);
  opacity: 1;
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .rotator-track { transition: none; }
  .rword { transition: opacity 0.2s linear; }
  .rword.is-active { transform: none; }
}

/* floating hero chips over the phone */
.phone-stage { position: relative; }

.chip {
  position: absolute;
  background: var(--cream-bright);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  z-index: 2;
}

.chip .emoji { font-size: 1.35rem; line-height: 1; }
.chip small { display: block; color: var(--ink-3); font-weight: 700; font-size: 0.72rem; }
.chip .tick {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 0.85rem;
}

.chip-streak { top: 44px; left: max(-30px, -3vw); }
.chip-auto { bottom: 96px; right: max(-26px, -2vw); }

@media (max-width: 880px) {
  .chip-streak { left: 2vw; }
  .chip-auto { right: 2vw; }
}
@media (max-width: 560px) { .chip { display: none; } }

/* feature rows */
.frows { margin-top: clamp(20px, 4vw, 40px); }

.frow {
  display: grid;
  grid-template-columns: 1fr min(300px, 42vw);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
}

.frow + .frow { border-top: 1px solid rgba(34, 164, 93, 0.1); }

.frow.reverse .frow-text { order: 2; }
.frow.reverse .frow-media { order: 1; }

.frow-icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 30px;
  margin-bottom: 18px;
}

.frows .frow:nth-child(1) .frow-icon { background: var(--green-soft); }
.frows .frow:nth-child(2) .frow-icon { background: var(--coral-soft); }
.frows .frow:nth-child(3) .frow-icon { background: var(--sky-soft); }
.frows .frow:nth-child(4) .frow-icon { background: var(--amber-soft); }
.frows .frow:nth-child(5) .frow-icon { background: var(--berry-soft); }

.frow h3 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 12px;
}

.frow p {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1.06rem;
  max-width: 46ch;
}

.frow-media { display: flex; justify-content: center; }
.frow-media .phone { width: 100%; max-width: 280px; }

@media (max-width: 760px) {
  .frow { grid-template-columns: 1fr; text-align: center; }
  .frow.reverse .frow-text { order: 0; }
  .frow.reverse .frow-media { order: 0; }
  .frow-icon { margin-inline: auto; }
  .frow p { margin-inline: auto; }
  .frow-media .phone { max-width: 232px; }
}

/* green CTA band */
.cta-band {
  margin-block: clamp(48px, 6vw, 88px);
  background: linear-gradient(165deg, #22a95f, #138a48);
  border-radius: clamp(24px, 4vw, 32px);
  padding: clamp(52px, 7vw, 80px) clamp(28px, 5vw, 56px);
  text-align: center;
  color: var(--cream-bright);
}

.cta-band h2 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 0; }
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 1.15rem;
  max-width: 42ch;
  margin: 16px auto 0;
}
.cta-band .store-row { justify-content: center; margin-top: 32px; }

/* ============================================================
   Liv — kostcoach spotlight
   ============================================================ */
#liv { padding-bottom: clamp(20px, 4vw, 48px); }

.liv-spot {
  display: grid;
  grid-template-columns: 1fr min(380px, 46vw);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  background: var(--green-soft);
  border: 1px solid rgba(34, 164, 93, 0.14);
  border-radius: clamp(24px, 4vw, 36px);
  padding: clamp(32px, 5vw, 60px);
}

.liv-avatar-wrap {
  position: relative;
  width: 120px;
  margin-bottom: 22px;
}

.liv-avatar-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.liv-online {
  position: absolute;
  bottom: 2px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-bright);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.liv-online .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}

.liv-intro h2 { margin-bottom: 14px; }

.liv-intro p {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1.06rem;
  max-width: 42ch;
}

.liv-line {
  margin-top: 16px;
  color: var(--green-dark);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.liv-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  background: var(--cream-bright);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green-deep);
}

.liv-tag-dot { font-size: 1rem; line-height: 1; }

/* chat mockup */
.liv-chat {
  background: var(--cream-bright);
  border-radius: 26px;
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.liv-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(34, 164, 93, 0.12);
}

.liv-chat-head img { width: 40px; height: 40px; border-radius: 50%; }
.liv-chat-head strong { display: block; font-weight: 900; font-size: 0.98rem; }
.liv-chat-head small { color: var(--ink-3); font-weight: 700; font-size: 0.78rem; }

.bub {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.bub.liv {
  align-self: flex-start;
  background: var(--green-soft);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.bub.me {
  align-self: flex-end;
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bub.done {
  background: var(--amber-soft);
  color: var(--green-deep);
  font-weight: 800;
}

@media (max-width: 760px) {
  .liv-spot { grid-template-columns: 1fr; text-align: center; }
  .liv-intro { display: flex; flex-direction: column; align-items: center; }
  .liv-intro p { max-width: 48ch; }
  .liv-chat { text-align: left; width: 100%; max-width: 420px; margin-inline: auto; }
}

/* ============================================================
   Trädgården — garden spotlight
   Sky-to-meadow palette lifted from the in-app garden scene.
   ============================================================ */
#tradgarden { padding-top: clamp(20px, 4vw, 48px); }

.garden-spot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(340px, 46vw);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  background: linear-gradient(180deg, #bfe3f7 0%, #e4f3ec 52%, #cdeabb 100%);
  border: 1px solid rgba(110, 158, 94, 0.22);
  border-radius: clamp(24px, 4vw, 36px);
  padding: clamp(32px, 5vw, 60px);
  overflow: clip;
}

/* soft sun glow, top right — echoes the day scene in the app */
.garden-spot::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 227, 138, 0.8), transparent 62%);
  pointer-events: none;
}

.garden-intro { position: relative; }

.garden-intro h2 { margin-bottom: 14px; }

.garden-intro p {
  color: #3a4a3a;
  font-weight: 600;
  font-size: 1.06rem;
  max-width: 46ch;
}

.garden-wilt { margin-top: 12px; }

.garden-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
}

.garden-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 253, 248, 0.88);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green-deep);
  box-shadow: var(--shadow-card);
}

.garden-points li span { font-size: 1rem; line-height: 1; }

.garden-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.garden-media .phone { width: 100%; max-width: 300px; }

.chip-grow { bottom: 84px; left: -34px; }

@media (max-width: 880px) {
  .chip-grow { left: 2vw; }
}

@media (max-width: 760px) {
  .garden-spot { grid-template-columns: 1fr; text-align: center; }
  .garden-intro { display: flex; flex-direction: column; align-items: center; }
  .garden-points { justify-content: center; }
  .garden-media .phone { max-width: 260px; }
}

/* ============================================================
   Friskvård — pay Pro with the wellness allowance
   Amber canvas (the brand's reward colour) + a receipt mockup:
   the personnummer line IS the story of why store receipts fail.
   ============================================================ */
#friskvard { padding-top: clamp(20px, 4vw, 48px); }

.friskvard-spot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(360px, 46vw);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  background: var(--amber-soft);
  border: 1px solid rgba(255, 179, 64, 0.35);
  border-radius: clamp(24px, 4vw, 36px);
  padding: clamp(32px, 5vw, 60px);
  overflow: clip;
}

/* Grid items default to min-width auto, so one unbreakable child can
   silently widen a 1fr track past the viewport. Floor them at 0 so
   overlong content wraps or clips inside its column instead. */
.liv-spot > *,
.garden-spot > *,
.friskvard-spot > * { min-width: 0; }

.friskvard-intro h2 { margin-bottom: 14px; }

.friskvard-intro > p {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1.06rem;
  max-width: 52ch;
}

.friskvard-steps {
  list-style: none;
  margin-top: 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friskvard-steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  max-width: 52ch;
}

.friskvard-steps li span {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  font-size: 0.82rem;
  transform: translateY(4px);
}

.friskvard-warn {
  margin-top: 22px;
  background: var(--coral-soft);
  border: 1px solid rgba(240, 94, 58, 0.3);
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #8a3a22;
}

.friskvard-warn strong { color: var(--coral-deep); }

.friskvard-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.friskvard-cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, background 0.15s ease;
}

.friskvard-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

.friskvard-benify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-bright);
  border-radius: 999px;
  padding: 9px 17px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green-deep);
  box-shadow: var(--shadow-card);
}

/* receipt mockup */
.kvitto-stage { display: flex; justify-content: center; }

.kvitto {
  position: relative;
  width: min(330px, 100%);
  background: var(--cream-bright);
  border-radius: 18px 18px 0 0;
  padding: 24px 24px 30px;
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
}

/* perforated bottom edge */
.kvitto::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  background:
    linear-gradient(-45deg, var(--cream-bright) 8px, transparent 0),
    linear-gradient(45deg, var(--cream-bright) 8px, transparent 0);
  background-size: 18px 12px;
  background-position: 0 0;
  background-repeat: repeat-x;
}

.kvitto-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 2px dashed rgba(32, 38, 46, 0.14);
}

.kvitto-head img { width: 44px; height: 44px; }
.kvitto-head strong { display: block; font-weight: 900; font-size: 1.02rem; }
.kvitto-head small { color: var(--ink-3); font-weight: 700; font-size: 0.78rem; }

.kvitto-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 2px dashed rgba(32, 38, 46, 0.1);
  font-weight: 700;
  font-size: 0.92rem;
}

.kvitto-row span:last-child { color: var(--green-dark); font-weight: 800; }

.kvitto-stamp {
  position: absolute;
  right: 10px;
  bottom: -18px;
  transform: rotate(-9deg);
  border: 3px solid var(--green);
  color: var(--green);
  border-radius: 12px;
  padding: 7px 15px;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 253, 248, 0.85);
}

@media (max-width: 760px) {
  .friskvard-spot { grid-template-columns: 1fr; text-align: center; }
  .kvitto-row { font-size: 0.86rem; }
  .kvitto-row span:last-child { white-space: nowrap; }
  .friskvard-intro { display: flex; flex-direction: column; align-items: center; }
  .friskvard-steps li { text-align: left; }
  .friskvard-cta-row { justify-content: center; }
  .kvitto-stage { padding-bottom: 26px; }
}

/* ============ cookie consent ============ */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0 12px 12px;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.consent.is-in { transform: none; }

.consent-inner {
  width: min(880px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--cream-bright);
  border: 1px solid rgba(34, 164, 93, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 24px;
}

.consent-text {
  flex: 1 1 320px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.5;
}

.consent-text a { color: var(--green-dark); font-weight: 700; }

.consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-btn {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.consent-btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: rgba(32, 38, 46, 0.16);
}

.consent-btn-ghost:hover { background: rgba(32, 38, 46, 0.05); color: var(--ink); }

.consent-btn-solid {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(34, 164, 93, 0.55);
}

.consent-btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(34, 164, 93, 0.6);
}

.consent-btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .consent-inner { padding: 16px 18px; gap: 14px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; transform: none; }
}

/* ============ friskvård redemption page ============ */
.redeem .lede {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

/* .redeem qualifier: outspecifies `.legal ol`'s padding-left. */
.redeem .steps {
  list-style: none;
  padding: 0;
  margin-block: 30px;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--cream-bright);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 22px 26px 22px 76px;
  margin: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream-bright);
  font-size: 1.05rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.steps h3 { margin: 4px 0 4px; font-size: 1.08rem; }

.steps .store-row { margin-top: 16px; }
.steps .appstore-badge img,
.steps .playstore-badge img { height: 46px; }

.redeem code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Direct purchase (web checkout) on /friskvard, and the /friskvard-tack
   confirmation page. */
.buy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--cream-bright);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  margin-block: 18px;
}

.buy-box .buy-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
}

.buy-box .buy-vat {
  color: var(--ink-3);
  font-weight: 700;
  font-size: 0.9rem;
}

.buy-btn {
  display: inline-block;
  background: var(--coral-deep);
  color: #fff;
  font-weight: 900;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.buy-btn:hover { background: var(--coral); }

.redeem .fineprint {
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* Anchor jumps (#kop) otherwise land with the heading under the sticky nav. */
.legal h2[id] { scroll-margin-top: 88px; }

/* Small screens: the number-in-the-margin layout wastes a third of the
   card, so the badge moves inline with the heading and the text takes
   the full card width. */
@media (max-width: 560px) {
  .steps > li { padding: 18px 18px 22px; }

  .steps > li::before {
    left: 18px;
    top: 18px;
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .steps h3 {
    margin: 0 0 8px;
    padding-left: 42px;
    min-height: 30px;
    display: flex;
    align-items: center;
  }

  .steps .appstore-badge img,
  .steps .playstore-badge img { height: 42px; }

  .buy-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 22px 20px;
  }

  .buy-btn { text-align: center; }
}

/* ============================================================
   /foretag — the HR-facing page. Built on the same tokens as the
   consumer landing; the only new idea here is that the reader is
   buying for someone else, so the layout leads with effort and
   cost to *them* rather than with the app's features.
   ============================================================ */

.co-hero {
  position: relative;
  padding-block: clamp(44px, 7vw, 84px) clamp(40px, 6vw, 72px);
  overflow: clip;
}

.co-hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(34, 164, 93, 0.14), transparent 68%);
  pointer-events: none;
}

.co-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(340px, 42vw);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.co-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.co-hero .hero-sub { max-width: 46ch; }

@media (max-width: 880px) {
  .co-hero-grid { grid-template-columns: 1fr; }
  .co-hero .phone-stage { max-width: 280px; margin-inline: auto; }
}

/* availability pills — which portals Morot can be bought through today */
.co-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.co-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-bright);
  border: 1px solid rgba(34, 164, 93, 0.18);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--green-deep);
  box-shadow: var(--shadow-card);
}

.co-pill .tick {
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 900;
}

/* three value cards: the answers to "what does this cost me?" */
.co-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 860px) { .co-cards { grid-template-columns: 1fr; } }

.co-card {
  background: var(--cream-bright);
  border: 1px solid rgba(34, 164, 93, 0.12);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}

.co-card-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 27px;
  margin-bottom: 18px;
}

.co-cards .co-card:nth-child(1) .co-card-icon { background: var(--green-soft); }
.co-cards .co-card:nth-child(2) .co-card-icon { background: var(--amber-soft); }
.co-cards .co-card:nth-child(3) .co-card-icon { background: var(--sky-soft); }

.co-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.co-card p { color: var(--ink-2); font-weight: 600; font-size: 1rem; }

/* numbered steps, side by side */
.co-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: costep;
}

@media (max-width: 860px) { .co-steps { grid-template-columns: 1fr; } }

.co-steps > li {
  counter-increment: costep;
  position: relative;
  padding-top: 58px;
}

.co-steps > li::before {
  content: counter(costep);
  position: absolute;
  top: 0;
  left: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -8px rgba(34, 164, 93, 0.7);
}

.co-steps h3 { font-size: 1.12rem; font-weight: 900; margin-bottom: 8px; }
.co-steps p { color: var(--ink-2); font-weight: 600; font-size: 0.99rem; }

/* deep-green challenge band */
.co-challenge {
  background: var(--green-deep);
  color: var(--cream-bright);
  border-radius: clamp(24px, 4vw, 44px);
  padding: clamp(36px, 5vw, 68px);
  display: grid;
  grid-template-columns: 1fr min(340px, 44vw);
  gap: clamp(32px, 6vw, 68px);
  align-items: center;
}

@media (max-width: 860px) {
  .co-challenge { grid-template-columns: 1fr; }
}

.co-challenge h2 { color: #fff; }
.co-challenge .kicker { color: var(--amber); }
.co-challenge p {
  color: rgba(255, 253, 248, 0.78);
  font-weight: 600;
  font-size: 1.06rem;
  max-width: 46ch;
}

.co-challenge-points {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.co-challenge-points li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
  color: var(--cream-bright);
  font-size: 1rem;
}

.co-challenge-points li::before {
  content: "✓";
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--amber);
  display: grid; place-items: center;
  font-size: 0.78rem;
  transform: translateY(3px);
}

/* in-app campaign card, as it actually renders on Home */
.co-campaign {
  background: var(--cream-bright);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.5deg);
  color: var(--ink);
}

.co-campaign-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.co-campaign-head .emoji {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--amber-soft);
  display: grid; place-items: center;
  font-size: 22px;
  flex: none;
}

.co-campaign-head strong { display: block; font-size: 1.02rem; font-weight: 900; }
.co-campaign-head small { color: var(--ink-3); font-weight: 700; font-size: 0.8rem; }

.co-campaign-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--green-soft);
  overflow: hidden;
}

.co-campaign-bar span {
  display: block;
  height: 100%;
  width: 70%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.co-campaign-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--ink-2);
}

/* privacy reassurance */
.co-privacy {
  background: var(--sky-soft);
  border: 1px solid rgba(34, 120, 190, 0.16);
  border-radius: clamp(20px, 3vw, 30px);
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  gap: clamp(20px, 3vw, 34px);
  align-items: flex-start;
}

.co-privacy-mark {
  flex: none;
  width: 58px; height: 58px;
  border-radius: 18px;
  background: var(--cream-bright);
  display: grid; place-items: center;
  font-size: 28px;
  box-shadow: var(--shadow-card);
}

.co-privacy h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.co-privacy p { color: var(--ink-2); font-weight: 600; font-size: 1.04rem; max-width: 62ch; }
.co-privacy p + p { margin-top: 12px; }

@media (max-width: 620px) {
  .co-privacy { flex-direction: column; }
}

/* FAQ — native disclosure, no JS */
.co-faq { display: grid; gap: 12px; max-width: 760px; }

.co-faq details {
  background: var(--cream-bright);
  border: 1px solid rgba(34, 164, 93, 0.12);
  border-radius: 18px;
  padding: 4px 24px;
  box-shadow: var(--shadow-card);
}

.co-faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: 20px;
  font-weight: 900;
  font-size: 1.04rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.co-faq summary::-webkit-details-marker { display: none; }

.co-faq summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid; place-items: center;
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.co-faq details[open] summary::after { content: "−"; transform: rotate(180deg); }

.co-faq details p {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1rem;
  padding-bottom: 22px;
  max-width: 64ch;
}

.co-faq details p + p { margin-top: 10px; padding-bottom: 0; }
.co-faq details p:last-child { padding-bottom: 22px; }

/* contact band */
.co-contact {
  background: linear-gradient(165deg, #22a95f, #138a48);
  border-radius: clamp(24px, 4vw, 32px);
  padding: clamp(48px, 6vw, 76px) clamp(28px, 5vw, 56px);
  text-align: center;
  color: var(--cream-bright);
}

.co-contact h2 { color: #fff; margin-bottom: 14px; }
.co-contact p {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  font-size: 1.12rem;
  max-width: 46ch;
  margin-inline: auto;
}

.co-contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.co-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.co-btn-solid { background: var(--cream-bright); color: var(--green-deep); }
.co-btn-solid:hover { transform: translateY(-1px); background: #fff; }

.co-btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.co-btn-ghost:hover { transform: translateY(-1px); border-color: #fff; }

/* two-column panel: copy beside a phone (employee-facing feature list) */
.co-split {
  display: grid;
  grid-template-columns: 1fr min(300px, 42vw);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  background: var(--green-soft);
  border: 1px solid rgba(34, 164, 93, 0.14);
  border-radius: clamp(24px, 4vw, 36px);
  padding: clamp(32px, 5vw, 60px);
}

@media (max-width: 860px) {
  .co-split { grid-template-columns: 1fr; }
  .co-split .phone { max-width: 250px; margin-inline: auto; }
}

.co-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.co-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 46ch;
}

.co-list li span {
  flex: none;
  font-size: 1.15rem;
  transform: translateY(2px);
}

/* HR hand-off from the consumer friskvård section on the landing page */
.friskvard-hr {
  margin-top: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* No nowrap here: the link is longer than a phone is wide, and an
   unbreakable line inflates the grid track past the viewport. */
.friskvard-hr a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.friskvard-hr a:hover { text-decoration: underline; }

/* Medium widths: the nav carries six items once "För företag" is in it, and
   at ~660px the brand and the first link meet. Tighten the run before the
   640px rule hides the text links entirely. */
@media (max-width: 900px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.88rem; }
  .nav-cta { padding: 8px 15px; }
}
