/* Magneten – magneten.app
   Tokens follow src/constants/theme.ts in the app. Kalam only for things "on the door". */
:root {
  --door: #dce6e8;
  --door-deep: #cfdbde;
  --ink: #1b2326;
  --ink-2: #55666b;
  --ink-3: #8a9a9f;
  --magne: #e8402a;
  --magne-dark: #b92c1a;
  --paper: #ffffff;
  --paper-yellow: #ffe873;
  --paper-pink: #ffc6d3;
  --paper-mint: #c9f0dd;
  --stamp: #1e7a4f;
  --metal: #cbd4d8;
  --m-blue: #2f5bd8;
  --m-purple: #7a4fd6;
  --m-teal: #1a9aa6;
  --m-yellow: #e8b400;
  --radius: 18px;
  --shadow-note: 0 2px 0 rgba(0, 0, 0, 0.06), 0 22px 34px -18px rgba(30, 45, 50, 0.55);
  --max: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--door);
  line-height: 1.5;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
.hand { font-family: "Kalam", cursive; font-weight: 700; }
.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- door surface ---- */
.door {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 85% 80%, rgba(27, 35, 38, 0.07) 0, rgba(27, 35, 38, 0) 45%),
    var(--door);
}

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(220, 230, 232, 0.85); border-bottom: 1px solid rgba(27, 35, 38, 0.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: -0.03em; font-size: 1.35rem; }
.brand svg { width: 26px; height: 30px; }
.nav nav { display: flex; gap: 1.25rem; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav .hide-sm { display: none; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
  border-radius: 999px; padding: 0.9rem 1.4rem; line-height: 1; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--magne); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 10px 20px -10px rgba(232, 64, 42, 0.7); }
.btn-primary:hover { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 14px 26px -10px rgba(232, 64, 42, 0.8); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid rgba(27, 35, 38, 0.18); }

/* ---- hero ---- */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }
.hero h1 { font-family: "Kalam", cursive; font-weight: 700; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.12; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--magne); }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); margin-top: 1rem; max-width: 34rem; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--magne-dark); background: rgba(232, 64, 42, 0.1); padding: 6px 12px; border-radius: 999px; margin-bottom: 1rem; }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--magne); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }

/* waitlist form */
.signup { margin-top: 1.75rem; max-width: 34rem; }
.signup form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 18px 30px -22px rgba(30, 45, 50, 0.6), 0 0 0 1px rgba(27, 35, 38, 0.06); }
.signup input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 0.7rem 1rem; background: transparent; border-radius: 999px; color: var(--ink); }
.signup input:focus-visible { box-shadow: inset 0 0 0 2px var(--magne); }
.signup .hint { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-3); }
.signup .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.signup .ok { display: none; align-items: center; gap: 14px; background: var(--paper-mint); padding: 1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow-note); }
.signup.done form, .signup.done .hint { display: none; }
.signup.done .ok { display: flex; }
.signup .ok svg { width: 56px; flex: none; }
.signup .ok strong { font-family: "Kalam", cursive; font-size: 1.35rem; display: block; }
.signup .err { display: none; margin-top: 0.6rem; color: var(--magne-dark); font-weight: 600; font-size: 0.95rem; }
.signup.error .err { display: block; }
@media (max-width: 480px) {
  .signup form { flex-direction: column; border-radius: 24px; }
  .signup .btn { width: 100%; }
}

/* the door with notes (hero visual) */
.door-visual { position: relative; aspect-ratio: 4 / 4.6; max-width: 520px; margin-inline: auto; width: 100%; }
.note {
  position: absolute; width: 46%; min-height: 27%; padding: 1.5rem 0.9rem 0.8rem; background: var(--paper);
  box-shadow: var(--shadow-note); display: flex; flex-direction: column; gap: 4px; transform: rotate(var(--r));
}
.note .pm { position: absolute; top: -16px; left: 50%; margin-left: -16px; }
.note .meta { font-weight: 700; font-size: 0.72rem; color: #4a5a5f; }
.note .title { font-family: "Kalam", cursive; font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.35rem); line-height: 1.15; }
.note .foot { margin-top: auto; font-size: 0.72rem; color: #4a5a5f; }
.note .stamp { position: absolute; right: 8px; bottom: 8px; font-family: "Kalam", cursive; font-weight: 700; color: var(--stamp); border: 2.5px solid var(--stamp); border-radius: 6px; padding: 0 7px; font-size: 1rem; transform: rotate(-12deg); }
.note.done { opacity: 0.6; }
.pm { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.28); font-weight: 800; font-size: 0.75rem; color: #fff; border: 4px solid var(--c); background: var(--c); }
.pm span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.magne-hero { position: absolute; right: 2%; bottom: 0; width: 34%; }
.bubble { position: absolute; right: 30%; bottom: 36%; background: #fff; border-radius: 20px 20px 6px 20px; padding: 10px 14px; font-family: "Kalam", cursive; font-weight: 700; font-size: clamp(0.95rem, 2.4vw, 1.2rem); box-shadow: var(--shadow-note); white-space: nowrap; }

/* smack entrance (same curve as the app) */
@keyframes smack { 0% { transform: translateY(-80px) scale(1.5) rotate(10deg); opacity: 0; } 55% { transform: translateY(0) scale(0.93) rotate(var(--r)); opacity: 1; } 72% { transform: scale(1.04) rotate(var(--r)); } 100% { transform: rotate(var(--r)); opacity: 1; } }
@keyframes up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { 0% { transform: translateY(-120%); } 70% { transform: translateY(0) scaleY(0.82) scaleX(1.12); } 85% { transform: scaleY(1.06) scaleX(0.96); } 100% { transform: none; } }
.note { animation: smack 560ms cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: calc(var(--i) * 140ms + 200ms); }
.magne-hero { animation: drop 700ms cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: 950ms; transform-origin: 50% 100%; }
.bubble { animation: up 400ms ease both; animation-delay: 1500ms; }
@media (prefers-reduced-motion: reduce) { .note, .magne-hero, .bubble, .eyebrow i { animation: none !important; } }

/* ---- sections ---- */
section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-title { font-family: "Kalam", cursive; font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.2; }
.section-sub { color: var(--ink-2); font-size: 1.1rem; margin-top: 0.6rem; max-width: 40rem; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* video */
.video { background: var(--ink); color: #fff; }
.video .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .video .wrap { grid-template-columns: 0.9fr 1.1fr; } }
.phone { width: min(320px, 80vw); margin-inline: auto; background: #0e1416; border-radius: 44px; padding: 10px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone video { width: 100%; border-radius: 36px; aspect-ratio: 9 / 16; object-fit: cover; background: var(--door); }
.video .section-title { color: #fff; }
.video .section-sub { color: #a7b4b8; }
.video ul { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.9rem; }
.video li { display: flex; gap: 12px; align-items: flex-start; color: #e6edef; }
.video li b { font-family: "Kalam", cursive; font-weight: 700; color: var(--paper-yellow); font-size: 1.15rem; }
.video li i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--magne); margin-top: 8px; }

/* steps */
.steps { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-note); position: relative; }
.step .n { font-family: "Kalam", cursive; font-weight: 700; font-size: 2.2rem; color: var(--magne); line-height: 1; }
.step h3 { font-size: 1.2rem; margin-top: 0.6rem; }
.step p { color: var(--ink-2); margin-top: 0.4rem; }
.step.yellow { background: var(--paper-yellow); }
.step.pink { background: var(--paper-pink); }
.step.mint { background: var(--paper-mint); }
.step .pm { position: absolute; top: -16px; left: 50%; margin-left: -16px; }

/* features */
.features { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(27, 35, 38, 0.06); border-radius: var(--radius); padding: 1.4rem; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: "Kalam", cursive; font-weight: 700; font-size: 1.1rem; }
.feature h3 { margin-top: 0.9rem; font-size: 1.15rem; }
.feature p { color: var(--ink-2); margin-top: 0.3rem; font-size: 0.98rem; }

/* pricing */
.plans { display: grid; gap: 1.25rem; margin-top: 2rem; align-items: start; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--paper); border-radius: 22px; padding: 1.75rem; box-shadow: var(--shadow-note); }
.plan.pluss { background: var(--ink); color: #fff; }
.plan .name { font-family: "Kalam", cursive; font-weight: 700; font-size: 1.6rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 0.4rem; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.plan.pluss .price small { color: #a7b4b8; }
.plan ul { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 3px; background: var(--stamp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan.pluss li::before { background-color: var(--magne); }
.plan .note-small { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-3); }
.plan.pluss .note-small { color: #a7b4b8; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--paper-yellow); color: var(--ink); margin-left: 8px; vertical-align: middle; }

/* faq */
.faq { max-width: 44rem; margin: 2rem auto 0; display: grid; gap: 0.75rem; }
.faq details { background: rgba(255, 255, 255, 0.7); border-radius: 14px; padding: 1rem 1.2rem; border: 1px solid rgba(27, 35, 38, 0.06); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Kalam", cursive; font-size: 1.4rem; color: var(--magne); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin-top: 0.6rem; }

/* cta band */
.cta { text-align: center; }
.cta .section-title { max-width: 26ch; margin-inline: auto; }
.cta .signup { margin-inline: auto; }

/* footer */
footer { padding: 2.5rem 0 3rem; border-top: 1px solid rgba(27, 35, 38, 0.08); color: var(--ink-2); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---- document pages (personvern, vilkår, support) ---- */
.doc { max-width: 44rem; margin-inline: auto; padding: 2.5rem 0 4rem; }
.doc h1 { font-family: "Kalam", cursive; font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; }
.doc .updated { color: var(--ink-3); font-size: 0.9rem; margin-top: 0.4rem; }
.doc .lead { color: var(--ink-2); font-size: 1.15rem; margin-top: 1rem; }
.doc h2 { font-size: 1.25rem; margin-top: 2rem; }
.doc h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.doc p, .doc li { color: #2f3b3f; margin-top: 0.6rem; }
.doc ul { padding-left: 1.2rem; }
.doc .card { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-note); margin-top: 1.5rem; }
.doc .email { font-weight: 700; color: var(--magne-dark); }

/* ---- bli-med ---- */
.join { min-height: 70vh; display: grid; place-items: center; padding: 2rem 0; text-align: center; }
.join .card { background: var(--paper); border-radius: 26px; padding: 2rem 1.5rem; box-shadow: var(--shadow-note); max-width: 26rem; width: 100%; }
.join .code { font-family: "Kalam", cursive; font-weight: 700; font-size: 2.6rem; letter-spacing: 0.12em; background: var(--paper-yellow); display: inline-block; padding: 0.2rem 1rem; border-radius: 10px; margin: 1rem 0; }
.join .stores { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.join p { color: var(--ink-2); }
