:root {
  --protein: #326384;
  --carbs: #7a3181;
  --fat: #855433;
}

.hero-brand-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(27, 90, 34, .18);
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(23, 33, 29, .12);
}

.footer-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.phone-screen { padding: 23px 16px 16px; }

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111;
  font-size: 9px;
  font-weight: 800;
}

.phone-status span {
  font-size: 7px;
  letter-spacing: .04em;
}

.app-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 15px;
}

.app-greeting small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .17em;
}

.phone-screen .app-greeting h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 27px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -1px;
}

.app-greeting > b {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--mint);
  border-radius: 50%;
  font-size: 18px;
}

.energy-card {
  padding: 15px 16px 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(23, 33, 29, .035);
}

.energy-title {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.energy-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
}

.energy-value b {
  color: var(--primary);
  font-size: 46px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -2px;
}

.energy-value span {
  color: var(--muted);
  font-size: 13px;
}

.energy-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0 9px;
  border-bottom: 1px solid var(--border);
  font-size: 8px;
}

.energy-meta strong { color: var(--primary); }
.energy-meta span { color: var(--muted); white-space: nowrap; }
.macro-line { padding-top: 9px; }

.macro-line > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.macro-line > div span { color: var(--muted); }

.macro-line i {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 5px;
  border-radius: 8px;
  background: var(--soft);
}

.macro-line.protein strong { color: var(--protein); }
.macro-line.carbs strong { color: var(--carbs); }
.macro-line.fat strong { color: var(--fat); }

.mini-scan {
  min-height: 47px;
  display: grid;
  place-items: center;
  margin-top: 14px;
  color: #fff;
  border-radius: 15px;
  background: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.today-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.today-row strong { font-size: 16px; }

.today-row span {
  padding: 6px 10px;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 8px;
  font-weight: 800;
}

.feature-card:nth-child(2) { border-top: 3px solid var(--carbs); }
.feature-card:nth-child(3) { border-top: 3px solid var(--protein); }

.detail-grid article > .camera-icon { position: relative; }
.detail-grid article > .camera-icon::before { content:""; position:absolute; top:50%; left:50%; width:24px; height:17px; border:2px solid currentColor; border-radius:4px; transform:translate(-50%,-44%); }
.detail-grid article > .camera-icon::after { content:""; position:absolute; top:50%; left:50%; width:7px; height:7px; border:2px solid currentColor; border-radius:50%; transform:translate(-50%,-35%); }
.detail-grid article > .chart-icon svg { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

/* Forsidens tretrins-preview */
.phone-hero {
  min-height: 0;
  padding: 82px 0 105px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 48%, rgba(220, 235, 228, .9), transparent 29%),
    radial-gradient(circle at 84% 55%, rgba(220, 235, 228, .7), transparent 31%);
}

.wide-shell { width: min(1440px, calc(100% - 64px)); }
.phone-hero-copy { max-width: 1000px; margin: 0 auto 62px; text-align: center; }
.phone-hero h1 { margin: 0 0 24px; font-size: clamp(58px, 7vw, 90px); }
.phone-hero-copy > p { max-width: 760px; margin: auto; color: var(--muted); font-size: 19px; }
.phone-hero .buttons.centered,.phone-hero .hero-trust.centered { justify-content: center; }
.phone-hero-actions { margin-top: 58px; text-align: center; }
.phone-hero-actions .buttons { margin-top: 0; }
.phone-hero-actions .hero-trust { margin-top: 24px; color: var(--text); font-size: 15px; }
.phone-hero-actions .hero-trust span { font-weight: 800; }

.phone-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 82px);
  align-items: end;
  width: 100%;
}

.story-step { position: relative; min-width: 0; display: grid; justify-items: center; }
.story-step:not(:last-child)::after { content:"→"; position:absolute; z-index:4; top:50%; right:clamp(-59px,-3.5vw,-32px); width:60px; height:60px; display:grid; place-items: inherit; color:var(--primary); border:1px solid var(--border); border-radius:50%; background:rgba(255,255,255,.95); box-shadow:0 8px 22px rgba(23,33,29,.12); font-size:33px; font-weight:900; transform:translateY(-50%); }
.story-label { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.story-label span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--primary); border-radius: 50%; background: var(--mint); font-size: 11px; font-weight: 900; }
.story-label strong { font-size: 16px; }
.story-device { width: min(100%, 310px); height: 630px; transform: none; box-shadow: 0 35px 75px rgba(23,33,29,.2); }
.story-step:nth-child(1) .story-device { transform: rotate(-2deg); }
.story-step:nth-child(3) .story-device { transform: rotate(2deg); }
.story-device .phone-screen { overflow: hidden; }

.screen-head { margin: 23px 0 15px; }
.screen-head small { color: var(--primary); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.story-device .screen-head h2 { margin: 4px 0 5px; color: var(--text); font-size: 25px; line-height: 1.05; }
.screen-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }

.camera-preview { position: relative; height: 300px; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: linear-gradient(145deg,#d9c7a6,#8ca46f 55%,#526647); }
.plate { width: 200px; height: 200px; display: grid; place-items: center; border: 10px solid rgba(255,255,255,.94); border-radius: 50%; background: #edf0e7; box-shadow: 0 13px 30px rgba(23,33,29,.28); }
.plate span { font-size: 95px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.12)); }
.camera-preview > i { position: absolute; width: 35px; height: 35px; border-color: #fff; border-style: solid; }
.camera-preview .f1 { top: 20px; left: 20px; border-width: 2px 0 0 2px; }
.camera-preview .f2 { top: 20px; right: 20px; border-width: 2px 2px 0 0; }
.camera-preview .f3 { bottom: 20px; left: 20px; border-width: 0 0 2px 2px; }
.camera-preview .f4 { right: 20px; bottom: 20px; border-width: 0 2px 2px 0; }
.capture-button { width: 48px; height: 48px; display: grid; place-items: center; margin: 13px auto 2px; border: 2px solid var(--primary); border-radius: 50%; }
.capture-button i { width: 36px; height: 36px; display: block; border-radius: 50%; background: var(--primary); }

.detected-list { display: grid; gap: 8px; padding: 12px; border: 2px solid var(--border); border-radius: 17px; }
.detected-list > div { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.detected-list b,.detected-list span { display: block; }
.detected-list b { color: var(--text); font-size: 11px; }
.detected-list span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.result-total { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding: 13px; color: var(--primary); border-radius: 12px; background: var(--mint); font-size: 10px; }
.result-total strong { font-size: 14px; }
.result-screen .mini-scan { margin-top: 10px; }
.macro-line i.progress-69,.macro-line i.progress-63,.macro-line i.progress-65 { position: relative; overflow: hidden; }
.macro-line i.progress-69:after,.macro-line i.progress-63:after,.macro-line i.progress-65:after { content:""; display:block; height:100%; border-radius:inherit; background:currentColor; }
.macro-line.protein i:after { width:69%; color:var(--protein); }
.macro-line.carbs i:after { width:63%; color:var(--carbs); }
.macro-line.fat i:after { width:65%; color:var(--fat); }

@media (max-width: 860px) {
  .wide-shell { width: min(100% - 32px, 620px); }
  .phone-hero { padding: 62px 0 82px; }
  .phone-hero-copy { margin-bottom: 50px; }
  .phone-hero h1 { font-size: clamp(50px, 10vw, 80px); }
  .phone-story { grid-template-columns: 1fr; gap: 58px; }
  .story-step:not(:last-child)::after { display:none; }
  .story-device,.story-step:nth-child(1) .story-device,.story-step:nth-child(3) .story-device { width: 300px; max-width: 88vw; transform: none; }
}
