@font-face { font-family: "Archivo Black"; src: url(assets/fonts/archivo-black.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(assets/fonts/schibsted-grotesk.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root { --ink: #1c1718; --yellow: #ffe14d; --blue: #2f7df0; --teal: #0fa292; --purple: #8c3df5; --coral: #ff4f6d; }
* { box-sizing: border-box; margin: 0; }
html { background: var(--blue); scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: "Schibsted Grotesk", system-ui, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
h1, h2, h3 { font-family: "Archivo Black", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.9; }
h1 { font-size: clamp(44px, 7vw, 96px); }
h2 { font-size: clamp(40px, 6.4vw, 88px); }
.lead { font-size: clamp(19px, 2.2vw, 26px); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; max-width: 24em; }
.fine { font-size: 16px; font-weight: 500; opacity: 0.92; max-width: 34em; line-height: 1.4; }

/* floating nav */
.nav { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 20px; width: min(1168px, calc(100% - 24px)); margin: 12px auto 0; padding: 8px 8px 8px 16px; background: rgba(28,23,24,0.92); backdrop-filter: blur(10px); border-radius: 999px; font-weight: 700; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 16px; }
.links a { text-decoration: none; opacity: 0.85; }
.links a:hover { opacity: 1; text-decoration: underline; }
.pill { background: #fff; color: var(--ink); text-decoration: none; padding: 10px 20px; border-radius: 999px; font-size: 16px; }
@media (max-width: 700px) { .links { display: none; } .pill { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 700 19px "Schibsted Grotesk", system-ui, sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 8px 0 rgba(0,0,0,0.16); transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(3px); box-shadow: 0 5px 0 rgba(0,0,0,0.16); }
.btn:active { transform: translateY(8px); box-shadow: 0 0 0 rgba(0,0,0,0.16); }
.btn:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.btn.ghost { background: rgba(255,255,255,0.18); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.btn.ink { background: var(--ink); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.bub { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; pointer-events: none; z-index: 2;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,0.95) 0 5%, rgba(255,255,255,0.3) 12%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 52%, rgba(150,200,255,0.4) 78%, rgba(255,160,230,0.55) 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35), inset -12px -16px 34px rgba(255,150,230,0.35), inset 12px 12px 30px rgba(120,210,255,0.4), 0 14px 30px rgba(0,0,0,0.18); }
.kip { filter: drop-shadow(0 18px 24px rgba(0,0,0,0.3)); }

/* hero: text on the left, Kip on a round shape on the right */
.hero { background: var(--blue); padding: clamp(36px, 6vw, 80px) clamp(16px, 3vw, 32px) clamp(56px, 8vw, 110px); }
.grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1200px; margin: 0 auto; }
.hero .lead { margin-top: 26px; }
.art { position: relative; }
.ph { display: inline-block; margin-top: 28px; line-height: 0; }
.ph img { display: block; border-radius: 8px; }
.blob { position: relative; aspect-ratio: 1; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: #1f6ae0; display: grid; place-items: center; padding: 8%; }
.blob .kip.big { width: 62%; transform: rotate(6deg) translateY(-6%); }
.hud-img { position: absolute; left: 8%; right: 8%; bottom: 9%; width: 84%; height: auto; border-radius: 26px; box-shadow: 0 24px 40px rgba(0,0,0,0.3); transform: rotate(-3deg); }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } .art { max-width: 480px; margin: 0 auto; width: 100%; } }

/* how it works: three colour cards on dark */
.how { background: var(--ink); padding: clamp(56px, 8vw, 110px) 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.card { position: relative; border-radius: 40px; padding: clamp(24px, 2.6vw, 34px); min-height: 500px; overflow: hidden; display: flex; flex-direction: column; }
.card h3 { font-size: clamp(30px, 3.2vw, 42px); }
.card p { margin-top: 14px; font-size: 19px; font-weight: 500; line-height: 1.35; }
.c1 { background: var(--teal); }
.c1 p, .c3 p, .foot, .tryit .lead, .tryit .fine, .install .fine { color: var(--ink); } .c2 { background: var(--purple); } .c3 { background: var(--coral); }
.card img:not(.kip) { margin-top: auto; width: 112%; height: auto; align-self: flex-start; max-width: none; border-radius: 22px; box-shadow: 0 18px 30px rgba(0,0,0,0.25); }
.c2 img { transform: rotate(-4deg) translateX(-4%); }
.c3 img:not(.kip) { transform: rotate(3deg) translateX(-8%); }
.c3 .kip { position: absolute; width: 150px; right: 14px; bottom: 90px; transform: rotate(8deg); }
.keys { margin-top: auto; display: flex; gap: 10px; }
.keys b { flex: 1; aspect-ratio: 1; display: grid; place-items: center; background: #fff; color: var(--ink); font: 400 clamp(34px, 4vw, 54px)/1 "Archivo Black", -apple-system, sans-serif; border-radius: 22%; box-shadow: 0 8px 0 rgba(255,255,255,0.25); }
.keys b:nth-child(1) { transform: rotate(-5deg); } .keys b:nth-child(2) { transform: rotate(3deg) translateY(6px); } .keys b:nth-child(3) { transform: rotate(-3deg); }
.keys b.y { background: var(--yellow); transform: rotate(6deg) translateY(4px); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; gap: 28px; } }

/* try it */
.tryit { background: var(--teal); padding: clamp(56px, 8vw, 110px) 0; }
.tryit .lead { margin-top: 22px; } .tryit .btn { margin-top: 30px; } .tryit .fine { margin-top: 20px; }
.tryit .grid { grid-template-columns: 0.9fr 1.1fr; padding: 0 clamp(16px, 3vw, 32px); }
@media (max-width: 860px) { .tryit .grid { grid-template-columns: 1fr; } }

/* the live try-it */
.try { position: relative; width: 100%; max-width: 640px; margin-left: auto; transform: rotate(-1.5deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,0.25)); }
.try .win { background: #fff; color: #14110f; border-radius: 16px; overflow: hidden; }
.try .win-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #eceae7; font-size: 13px; font-weight: 600; color: #4b4741; }
.try .win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d8d4cf; }
.try .win-bar span { margin-left: 8px; }
.try textarea { display: block; width: 100%; min-height: 220px; resize: none; border: 0; outline: none; padding: 20px 20px 24px; font: 400 19px/1.5 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: -0.01em; color: #14110f; background: #fff; }
.try textarea:focus-visible { box-shadow: inset 0 0 0 3px var(--yellow); }
.hud { position: absolute; z-index: 3; top: 0; left: 50%; width: min(100%, 440px); margin-left: calc(min(100%, 440px) / -2); height: 92px; overflow: hidden; border-radius: 0 0 26px 26px; color: #fff; transform: translateY(-110%); opacity: 0; transition: transform 0.65s cubic-bezier(.2,.8,.2,1), opacity 0.3s; }
.hud[data-on] { transform: none; opacity: 1; }
.hud .sky { position: absolute; inset: 0; }
.hud .sky i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s linear; }
.hud .s0 { background: #0a0c26; opacity: 1 !important; }
.hud .s1 { background: #34327a; }
.hud .s2 { background: #e5808f; }
.hud[data-sky="1"] .s1, .hud[data-sky="2"] .s1 { opacity: 1; }
.hud[data-sky="2"] .s2 { opacity: 1; }
.hud[data-sky="2"] { color: #3a1030; }
.hud .row { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 22px; }
.hud .row img { width: 42px; height: 42px; border-radius: 9px; flex: none; }
.hud .txt { flex: 1; min-width: 0; }
.hud b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.hud .t { font-size: 14px; opacity: 0.85; font-variant-numeric: tabular-nums; }
.hud button { flex: none; height: 32px; padding: 0 13px; border: 0; border-radius: 8px; font: 600 14px "Schibsted Grotesk", system-ui; background: rgba(255,255,255,0.18); color: inherit; cursor: pointer; }
.hud[data-sky="2"] button { background: rgba(58,16,48,0.14); }
.ignored { position: absolute; z-index: 2; left: 18px; bottom: 14px; background: #14110f; color: #fff; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 6px; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.ignored[data-on] { opacity: 1; transform: none; }


/* small on purpose */
.facts { background: var(--purple); padding: clamp(56px, 8vw, 110px) 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.tile { border-radius: 32px; padding: 26px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tile b { font: 400 clamp(26px, 2.6vw, 34px)/0.95 "Archivo Black", sans-serif; text-transform: uppercase; letter-spacing: -0.04em; }
.tile span { font-size: 18px; font-weight: 500; line-height: 1.35; }
.t1 { background: #fff; color: var(--ink); } .t2 { background: var(--yellow); color: var(--ink); } .t3 { background: var(--ink); } .t4 { background: #1f65d6; }
.tile:nth-child(odd) { transform: rotate(-1.2deg); } .tile:nth-child(even) { transform: rotate(1.2deg); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* install */
.install { position: relative; background: var(--coral); padding: clamp(56px, 8vw, 110px) 0 28px; overflow: hidden; }
.brew { margin-top: clamp(24px, 3vw, 40px); background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(24px, 3.5vw, 44px) clamp(18px, 3vw, 40px); font: 500 clamp(15px, 3vw, 34px)/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -0.02em; white-space: nowrap; overflow-x: auto; box-shadow: 0 24px 40px rgba(0,0,0,0.2); transform: rotate(-1deg); }
.brew i { font-style: normal; color: var(--coral); margin-right: 0.5em; }
.brew { display: flex; align-items: center; gap: 0; }
.brew code { font: inherit; flex: 1; min-width: 0; overflow-x: auto; }
.copy-btn { flex: none; margin-left: 20px; font: 700 clamp(14px, 1.6vw, 20px)/1 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: 0; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 0.8em 1.4em; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.copy-btn:hover { transform: scale(1.05); }
.copy-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.copy-btn.done { background: var(--teal); color: var(--ink); }
@media (max-width: 560px) { .copy-btn { margin-left: 12px; padding: 0.7em 1em; } }
.install .fine { margin-top: 22px; }
.install .kip.pal { position: absolute; width: clamp(120px, 16vw, 220px); right: clamp(8px, 4vw, 60px); bottom: 84px; top: auto; transform: rotate(8deg); }
@media (max-width: 700px) { .install .kip.pal { display: none; } }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; margin-top: clamp(48px, 7vw, 80px); padding-top: 22px; border-top: 2px solid rgba(28,23,24,0.35); font-weight: 600; font-size: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .hud { transition: none; } }

@media (max-width: 560px) { .brew { font-size: 13px; padding-left: 20px; padding-right: 20px; } }

/* entrances: parts rise once as they come into view; content stays visible without script */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
.js .tile.rise.in:nth-child(odd) { transform: rotate(-1.2deg); } .js .tile.rise.in:nth-child(even) { transform: rotate(1.2deg); }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } }

/* the live demo sits in the hero */
.hero .try { margin: 0; max-width: none; }
.hero .try textarea { min-height: 190px; }
.hero-kip { position: absolute; width: clamp(110px, 14vw, 190px); right: -1%; top: -30%; transform: rotate(8deg); z-index: 3; pointer-events: none; }
.try-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 34px; font-size: 18px; font-weight: 500; }
@media (max-width: 860px) { .hero-kip { right: 4%; top: -24%; } .hero .art .bub { display: none; } .hero .art { margin-top: 40px; } }

.hero .grid { grid-template-columns: 0.82fr 1.18fr; max-width: 1320px; }
.hero .try { transform: rotate(-1.5deg) scale(1.0); }
.hero .try textarea { min-height: 300px; font-size: 24px; padding: 28px 28px 32px; }
.hero .try .win-bar { height: 48px; font-size: 15px; }
.hero .try .win-bar i { width: 13px; height: 13px; }
.hero .hud { width: min(100%, 560px); margin-left: calc(min(100%, 560px) / -2); height: 112px; border-radius: 0 0 30px 30px; }
.hero .hud .row img { width: 54px; height: 54px; border-radius: 12px; }
.hero .hud b { font-size: 19px; } .hero .hud .t { font-size: 17px; } .hero .hud button { height: 38px; font-size: 16px; padding: 0 16px; }
.hero .ignored { font-size: 17px; padding: 8px 14px; }
.hero-kip { width: clamp(130px, 17vw, 240px); top: -34%; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } .hero .try textarea { min-height: 220px; font-size: 20px; } }

/* hero: headline across the full width, then the explanation and the live demo */
.hero-h { max-width: 1320px; margin: 0 auto clamp(28px, 4vw, 52px); font-size: clamp(48px, 8.8vw, 126px); }
.hero-h span { display: block; white-space: nowrap; }
.hero .grid { align-items: start; }
.hero .copy { padding-top: 12px; }
.hero .lead { margin-top: 0; font-size: clamp(22px, 2.4vw, 32px); }
.hero-kip { top: -26%; bottom: auto; right: -1%; width: clamp(130px, 17vw, 240px); transform: rotate(8deg); }
.hero .try textarea { min-height: 230px; }
@media (max-width: 860px) { .hero-kip { top: -18%; right: 4%; width: 130px; } }
