/* brofri.dk - the app's own look: near-black ground, cream ink, violet as the
   one interactive colour, coral only as decoration, blue/amber/red only for verdicts. */
:root {
  color-scheme: dark light;
  --ground: #0d0b0c; --raised: #1a1719; --raised-2: #241f22; --line: rgba(255,255,255,.09);
  --ink: #f7f4f3; --ink-2: #a9a1a0; --ink-3: #6e6668;
  --accent: #a48bff; --accent-quiet: rgba(164,139,255,.16);
  --clear: #4da6ff; --caution: #ffb340; --conflict: #ff6b60;
  --coral-1: #ffb894; --coral-2: #f2724e; --coral-3: #c4405c;
  --cream: #f1efe8;
  --radius: 22px; --gutter: clamp(16px, 4vw, 40px); --max: 1120px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #ebe8e7; --raised: #ffffff; --raised-2: #f6f3f2; --line: rgba(40,28,24,.1);
    --ink: #1a1a1d; --ink-2: #6b6560; --ink-3: #9c948e;
    --accent: #7c5cf0; --accent-quiet: rgba(124,92,240,.12);
    --clear: #0a6fe0; --caution: #c46a00; --conflict: #e02d22;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--raised); padding: 8px 12px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--ground) 78%, transparent); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: clamp(12px, 2.6vw, 26px); font-size: .93rem; color: var(--ink-2); }
.top nav a { text-decoration: none; }
.top nav a[aria-current] { color: var(--ink); font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; background: var(--cream); color: #121014; border: 0; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 14px 34px -14px rgba(0,0,0,.6); }
.btn:hover { color: #121014; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: var(--accent); }
@media (prefers-color-scheme: light) { .btn { background: #1a1a1d; color: #fff; } .btn:hover { color: #fff; } }

/* hero */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: min(760px, 90vw); aspect-ratio: 1; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242,114,78,.22), rgba(196,64,92,.10) 55%, transparent 72%); filter: blur(10px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-quiet); }
h1 { margin: 0; font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--coral-1), var(--coral-2) 45%, var(--coral-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 22px 0 0; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.price { color: var(--ink-2); font-size: .95rem; }
.price b { color: var(--ink); }

/* phone */
.phone { position: relative; width: min(340px, 78vw); margin: 0 auto; padding: 10px; border-radius: 52px; background: linear-gradient(145deg, #4a4a50, #0d0d0f 38%, #2c2c31); box-shadow: 0 50px 110px -40px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.1); }
.phone img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; border-radius: 43px; background: #000; }
.hero__visual { position: relative; }
.chip { position: absolute; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--raised) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 24px 50px -22px rgba(0,0,0,.7); font-size: .78rem; color: var(--ink-2); }
.chip b { font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chip--height { left: -4%; top: 16%; }
.chip--detour { right: -4%; bottom: 20%; }
.chip--detour b { color: var(--clear); }

/* sections */
section { padding: clamp(48px, 7vw, 96px) 0; }
.h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.sub { margin: 0; max-width: 40em; color: var(--ink-2); font-size: 1.06rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { padding: 24px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line); }
.card h3 { margin: 14px 0 6px; font-size: 1.12rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-quiet); color: var(--accent); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* how it works */
.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); display: block; margin-bottom: 12px; font-weight: 800; font-size: .85rem; letter-spacing: .12em; color: var(--accent); }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--ink-2); font-size: .95rem; }

/* screenshots strip */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; border-radius: 24px; background: #0d0b0c; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
@media (max-width: 900px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter); }
  .shots figure { flex: 0 0 auto; width: min(240px, 62vw); scroll-snap-align: start; }
}

/* verdict scale */
.scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.verdict { padding: 22px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.verdict b { display: block; color: var(--c); margin-bottom: 6px; }
.verdict p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* honest limits */
.limits { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 46em; }
.limits li { padding: 16px 18px 16px 48px; position: relative; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); color: var(--ink-2); }
.limits li::before { content: "!"; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #1a1205; background: var(--caution); }
.limits b { color: var(--ink); }

/* buy band */
.band { border-radius: 30px; padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, var(--raised), var(--raised-2)); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band .h2 { margin: 0; }
.band p { margin: 8px 0 0; color: var(--ink-2); }

/* prose pages (privacy, support, data) */
.prose { max-width: 44rem; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(48px, 8vw, 96px); }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { margin: 2.4rem 0 .5rem; font-size: 1.25rem; letter-spacing: -.01em; }
.prose p, .prose li { margin: .45rem 0; color: var(--ink-2); }
.prose strong, .prose b { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose .meta { color: var(--ink-3); margin: .6rem 0 2rem; }
.prose .lang { font-size: .95rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3.5rem 0; }
.prose code { font-size: .9em; }
.prose details { border-top: 1px solid var(--line); padding: 14px 0; }
.prose details:last-of-type { border-bottom: 1px solid var(--line); }
.prose summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.prose summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.prose details[open] summary::after { content: "–"; }
.prose summary::-webkit-details-marker { display: none; }
.contact { margin: 24px 0; padding: 22px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line); }
.contact a.mail { font-size: 1.3rem; font-weight: 800; text-decoration: none; color: var(--accent); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--ink-3); font-size: .9rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; color: var(--ink-2); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .phone { width: min(280px, 70vw); }
  .grid, .scale { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .chip--height { left: 0; } .chip--detour { right: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .top nav a.hide-s { display: none; }
}

/* ---- brofri.dk additions ---- */

/* official App Store badge: Apple artwork, unmodified, min. 40px tall */
.badge-appstore { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .2s ease; }
.badge-appstore:hover { transform: translateY(-1px); }
.badge-appstore img { height: 54px; width: auto; }
.badge-appstore:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cta__android { font-size: .95rem; color: var(--ink-2); }
.cta__android a { color: var(--ink); font-weight: 600; }
.cta__android a:hover { color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* numbers strip */
.stats { padding: 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--raised); padding: 22px 24px; }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: .92rem; }

/* android waitlist */
.waitlist { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; border-radius: 30px; padding: clamp(28px, 5vw, 56px); background: radial-gradient(120% 140% at 100% 0%, var(--accent-quiet), transparent 60%), var(--raised); border: 1px solid var(--line); }
.waitlist .h2 { margin-bottom: 10px; }
.waitlist p { margin: 0; color: var(--ink-2); }
.android-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); }
.android-tag svg { width: 16px; height: 16px; fill: #3ddc84; }
.wl-form { display: grid; gap: 12px; }
.wl-form label.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.wl-form input[type=email] { width: 100%; font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.wl-form input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-quiet); }
.wl-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.wl-form .consent input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.wl-form .btn { justify-content: center; cursor: pointer; font-family: inherit; }
.wl-form .btn[disabled] { opacity: .6; cursor: progress; }
.wl-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-msg { min-height: 1.4em; margin: 0; font-size: .95rem; font-weight: 600; }
.wl-msg[data-state=ok] { color: var(--clear); }
.wl-msg[data-state=err] { color: var(--conflict); }
.wl-done { display: none; padding: 22px; border-radius: 18px; background: var(--ground); border: 1px solid var(--line); }
.wl-done b { display: block; font-size: 1.15rem; margin-bottom: 4px; color: var(--ink); }
.waitlist.is-done .wl-form { display: none; }
.waitlist.is-done .wl-done { display: block; }

/* faq on the front page */
.faq { margin-top: 28px; max-width: 46em; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

.band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.prose .download { display: inline-block; margin: 8px 0 4px; padding: 12px 18px; border-radius: 999px; background: var(--accent-quiet); color: var(--accent); font-weight: 700; text-decoration: none; }
.notfound { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.notfound .lede { margin-left: auto; margin-right: auto; }
.notfound .cta { justify-content: center; }

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .waitlist { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
.hero { overflow-x: clip; }
