/* Copied from the store landing (d4u-store/site/css/unplugfirst.css) by tools/build.py. Do not edit. */
/* UnplugFirst's landing in the D4U Store: the case study as a story, scene by scene (tools/build_landing.py).
   Only what is inside <main class="uf">. Light moves with the story: from near-black (the night) to the amber
   of the warning and the close. Rule: amber #F2B544 only on graphite; on ivory the accent is #9A6410. */

@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin.woff") format("woff"); font-weight: 200 1000; font-display: swap; }
body { margin: 0; background: var(--sh-bg); color: var(--sh-ink); font-family: var(--sh-font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

.uf { display: block; font: 500 var(--sh-fs-body)/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.uf *, .uf *::before, .uf *::after { box-sizing: border-box; }

/* Light (default): ivory, graphite text, deep amber accent. Never amber #F2B544 on ivory.
   Dark: graphite and amber. Dark goes under both selectors (guideline 4.3). */
.uf { --ink: #20252B; --muted: #4A525C; --line: #D8D1C3; --surface: #FFFDF8; --accent: #9A6410; --on-accent: #FFFFFF;
  --tint: #F1E4CB; --chip: #7A4E0B; --art: #20252B; --glow: 154, 100, 16; --glow-a: .10;
  --l0: #F6F3EC; --l1: #F2EEE5; --l2: #EEE9DE; --l3: #F2EEE5; --l4: #F6F3EC; --l5: #EEE9DE;
  background: var(--l0); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .uf { --ink: #F6F3EC; --muted: #C9CDD2; --line: #3A414A; --surface: #2A3038; --accent: #F2B544; --on-accent: #20252B;
    --tint: #352C1C; --chip: #F2B544; --art: #F6F3EC; --glow: 242, 181, 68; --glow-a: .26;
    --l0: #0B0D10; --l1: #101317; --l2: #15191D; --l3: #1A1E23; --l4: #20252B; --l5: #20252B; }
}
:root[data-theme="dark"] .uf { --ink: #F6F3EC; --muted: #C9CDD2; --line: #3A414A; --surface: #2A3038; --accent: #F2B544; --on-accent: #20252B;
  --tint: #352C1C; --chip: #F2B544; --art: #F6F3EC; --glow: 242, 181, 68; --glow-a: .26;
  --l0: #0B0D10; --l1: #101317; --l2: #15191D; --l3: #1A1E23; --l4: #20252B; --l5: #20252B; }

/* Logo: two versions, same two selectors */
.uf .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .uf .logo-light { display: none; }
  :root:not([data-theme="light"]) .uf .logo-dark { display: block; }
}
:root[data-theme="dark"] .uf .logo-light { display: none; }
:root[data-theme="dark"] .uf .logo-dark { display: block; }

/* The light rises with the story */
.uf-l0 { background: var(--l0); }
.uf-l1 { background: var(--l1); }
.uf-l2 { background: radial-gradient(40% 60% at 78% 30%, rgba(var(--glow), calc(var(--glow-a) * .4)), transparent 70%), var(--l2); }
.uf-l3 { background: var(--l3); }
.uf-l4 { background: var(--l4); }
.uf-l5 { background: radial-gradient(60% 70% at 82% 40%, rgba(var(--glow), var(--glow-a)), transparent 75%), var(--l5); }
.uf-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.uf a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.uf h1, .uf h2, .uf h3 { margin: 0; line-height: 1.02; letter-spacing: -.03em; font-weight: 900; }
.uf h2 { font-size: var(--sh-fs-h2); max-width: 16em; }
.uf h3 { font-size: var(--sh-fs-h3); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.uf em { font-style: normal; color: var(--accent); }
.uf p { margin: 0; }
.uf figure { margin: 0; }
.uf-wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.uf-section { padding: clamp(80px, 11vw, 150px) 0; }
.uf-sc { margin-bottom: 18px; color: var(--accent); font-size: var(--sh-fs-label); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.uf-launch { display: grid; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.uf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: var(--sh-fs-label); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.uf-status { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; background: var(--tint); color: var(--chip); letter-spacing: .06em; }
.uf-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.uf-soon { color: var(--ink); font-size: var(--sh-fs-h3); font-weight: 900; letter-spacing: -.01em; line-height: 1.2; }
.uf .uf-lead { margin-top: 18px; max-width: 32em; font-size: var(--sh-fs-lead); line-height: 1.55; color: var(--muted); }
.uf-lead strong { color: var(--ink); font-weight: 800; }
.uf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: var(--sh-fs-button); font-weight: 900; text-decoration: none; }
.uf-btn:hover { filter: brightness(1.08); }
.uf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px !important; }
.uf-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.uf-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); filter: none; }
.uf-icon { width: 26px; height: 26px; flex: none; color: var(--accent); }

/* Scene art: the brand's own drawing (phone lying on the nightstand, connector, cable) */
.uf-scene-art { display: block; width: 100%; height: auto; overflow: visible; }
.uf-scene-art .phone { fill: var(--art); }
.uf-scene-art .plug { fill: var(--accent); }
.uf-scene-art .cord { stroke: var(--accent); }
.uf-scene-art .desk { fill: var(--line); }
.uf-scene-art stop { stop-color: var(--accent); }
.uf-art figcaption { margin-top: 18px; color: var(--muted); font-size: var(--sh-fs-small); }
.uf-art figcaption .uf-sc { display: block; margin-bottom: 6px; }

/* 1 · Hero: the problem */
.uf-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 9vw, 130px); }
.uf-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.uf-logo { display: block; height: 40px; width: auto; margin-bottom: clamp(28px, 4vw, 48px); }
.uf-hero h1 { font-size: var(--sh-fs-display); line-height: .98; }
@media (prefers-reduced-motion: no-preference) {
  .uf-hero .uf-scene-art ellipse { animation: uf-breathe 6s ease-in-out infinite; }
}
@keyframes uf-breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* Text-only scenes: the words carry the night; real screens come later */
.uf-statement { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: clamp(24px, 6vw, 96px); }
.uf .uf-statement .uf-lead { margin-top: 0; }
.uf-statement + .uf-scene { margin-top: clamp(80px, 11vw, 150px); }
.uf-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.uf-duo > div { padding-top: 28px; border-top: 2px solid var(--line); }
.uf-duo > div + div { border-top-color: var(--accent); }
.uf-hero-shot .sh-phone { --sh-phone-w: 280px; }

/* 2 · Challenge: two scenes */
.uf-scene { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(32px, 7vw, 110px); }
.uf-scene + .uf-scene { margin-top: clamp(80px, 11vw, 150px); }
.uf-flip { grid-template-columns: 1.1fr .9fr; }
/* The problem: one still drawing (pull_art in tools/build_landing.py). Landing tokens, plus the scene's own
   tones for furniture, hand, sleeve and outlet holes, light then dark under both selectors. */
.uf-pull-fig { overflow: hidden; --furn: #E3DCCD; --top: #CFC6B4; --hand: #9AA0A8; --sleeve: #CCC4B5; --cuff: #BDB4A4; --hole: #A89F8E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .uf-pull-fig { --furn: #1B1F25; --top: #3A414A; --hand: #AEB4BB; --sleeve: #2B323B; --cuff: #3A414A; --hole: #0B0D10; }
}
:root[data-theme="dark"] .uf-pull-fig { --furn: #1B1F25; --top: #3A414A; --hand: #AEB4BB; --sleeve: #2B323B; --cuff: #3A414A; --hole: #0B0D10; }
.uf-pull-fig .ph { fill: var(--art); }
.uf-pull-fig .am { fill: var(--accent); }
.uf-pull-fig .ams { fill: none; stroke: var(--accent); }
.uf-pull-fig .furn { fill: var(--furn); }
.uf-pull-fig .top { fill: var(--top); }
.uf-pull-fig .tops { stroke: var(--top); }
.uf-pull-fig .hole { fill: var(--hole); }
.uf-pull-fig .hand { fill: var(--hand); }
.uf-pull-fig .hands { fill: none; stroke: var(--hand); }
.uf-pull-fig .sleeve { fill: none; stroke: var(--sleeve); }
.uf-pull-fig .cuff { fill: none; stroke: var(--cuff); }
.uf-pull-fig .moon { fill: var(--muted); }
.uf-chart { display: grid; grid-template-columns: 1.4fr auto 1fr; align-items: end; }
.uf-phase { display: grid; gap: 14px; }
/* The span over each phase: a line with a tick at its start and its end */
.uf-span { position: relative; padding-top: 12px; border-top: 2px solid var(--line); color: var(--muted); font-size: var(--sh-fs-small); line-height: 1.3; }
.uf-span::before, .uf-span::after { content: ""; position: absolute; top: -8px; width: 2px; height: 14px; background: var(--line); }
.uf-span::before { left: 0; }
.uf-span::after { right: 0; }
.uf-span b { display: block; color: var(--ink); font-size: var(--sh-fs-label); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.uf-phase.on .uf-span { border-top-color: var(--accent); }
.uf-phase.on .uf-span::before, .uf-phase.on .uf-span::after { background: var(--accent); }
.uf-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 0 0 2px; border-bottom: 2px solid var(--line); }
.uf-bars i { flex: 1; height: calc(var(--h) * 10px); border-radius: 4px 4px 0 0; background: var(--accent); }
.uf-bars i.flat { height: 3px; background: var(--line); }
/* The moment it locks: a dashed line from top to the baseline, the lock on top */
.uf-cut { align-self: stretch; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 8px; padding: 0 14px; }
.uf-cut::after { content: ""; width: 0; border-left: 2px dashed var(--muted); }
.uf-lock { width: 30px; height: 30px; color: var(--ink); }

/* 3 · The turn */
.uf-points { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.uf-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.uf-points strong { color: var(--ink); font-weight: 800; }
.uf-built { margin-top: 28px !important; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.uf-built strong { color: var(--ink); }
.uf-lit { display: grid; justify-items: end; }   /* phones sit on the column's outer edge, in line with the text's width */
.uf-big { --sh-phone-w: 300px; }
/* Glow behind a phone: its own element, the shell's frame stays as it is (guideline 5.4) */
.uf-halo { position: relative; display: inline-block; isolation: isolate; }
.uf-halo::before { content: ""; position: absolute; z-index: -1; inset: -18% -40%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--glow), calc(var(--glow-a) * 1.1)), transparent); pointer-events: none; }
.uf-halo-soft::before { background: radial-gradient(closest-side, rgba(var(--glow), calc(var(--glow-a) * .6)), transparent); }
.uf-subh { margin-top: clamp(72px, 9vw, 120px) !important; font-size: var(--sh-fs-h2) !important; font-weight: 900 !important; letter-spacing: -.03em !important; line-height: 1.02 !important; max-width: 16em; }

/* 4 · The process */
.uf-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.uf-process li { padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.uf-process p { margin-top: 8px; color: var(--muted); font-size: var(--sh-fs-small); line-height: 1.55; }
.uf-pv { display: grid; place-items: center; height: 150px; margin-bottom: 18px; border-radius: 16px; background: #15191D; overflow: hidden; } /* a dark screen in both modes */
.uf-gap { width: 82%; max-width: 240px; max-height: 110px; height: auto; overflow: visible; }
.uf-gap .phone { fill: #F6F3EC; }
.uf-gap .plug { fill: #F2B544; }
.uf-gap .tick { stroke: #F2B544; stroke-width: .6; stroke-dasharray: 1.2 1.2; }
.uf-gap .moving { transform: translateX(0); }
@media (prefers-reduced-motion: no-preference) {
  .uf-gap .moving { animation: uf-pullout 4s cubic-bezier(.6, 0, .3, 1) infinite; transform: translateX(-7px); }
}
@keyframes uf-pullout { 0%, 25% { transform: translateX(-7px); } 50%, 90% { transform: translateX(0); } 100% { transform: translateX(-7px); } }
.uf-fanmini { display: flex; align-items: center; justify-content: center; }
.uf-fanmini .sh-phone { --sh-phone-w: 52px; margin: 0 -6px; flex: none; }
.uf-fanmini .sh-phone:nth-child(1) { transform: rotate(-8deg) translateY(6px); }
.uf-fanmini .sh-phone:nth-child(2) { z-index: 1; --sh-phone-w: 58px; }
.uf-fanmini .sh-phone:nth-child(3) { transform: rotate(8deg) translateY(6px); }
.uf-twins { padding: 12px; }
.uf-twin { width: 100%; height: 100%; max-width: 220px; }
.uf-twin .tw-body { fill: #0E1014; stroke: #3A414A; stroke-width: 1.5; }
.uf-twin .tw-screen { fill: #20252B; }
.uf-twin .tw-cam { fill: #0E1014; }
.uf-twin .tw-amber { fill: #F2B544; }
.uf-twin .tw-line { fill: #F6F3EC; opacity: .55; }
.uf-twin .tw-eq { fill: #F2B544; font: 900 26px/1 Nunito, system-ui, sans-serif; text-anchor: middle; dominant-baseline: middle; }
.uf-twin .tw-tag { fill: #F6F3EC; font: 800 10px/1 Nunito, system-ui, sans-serif; letter-spacing: .04em; text-anchor: middle; }
.uf-langs { grid-template-columns: repeat(3, 56px); grid-auto-rows: 40px; gap: 8px; place-content: center; place-items: stretch; }
.uf-langs b { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1px solid #3A414A; color: #F6F3EC; font-weight: 900; font-size: var(--sh-fs-label); letter-spacing: .08em; }
.uf-langs b.on { background: #F2B544; color: #20252B; border-color: #F2B544; }
.uf-did { display: flex; flex-wrap: wrap; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; list-style: none; font-size: var(--sh-fs-h3); font-weight: 900; letter-spacing: -.01em; }
.uf-did li::after { content: "·"; margin: 0 .4em; color: var(--accent); }
.uf-did li:last-child::after { content: none; }
.uf-mock { position: relative; }
.uf-mock::before { content: attr(data-label); position: absolute; z-index: 2; left: 50%; bottom: 8%; transform: translateX(-50%); padding: 1px 5px; border-radius: 4px; background: #E5484D; color: #FFFFFF; font: 900 8px/1.4 "Nunito", sans-serif; letter-spacing: .06em; text-transform: uppercase; }

/* 5 · Decisions */
.uf-high { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 5vw, 64px) clamp(32px, 6vw, 88px); margin: clamp(44px, 6vw, 72px) 0 0; padding: 0; list-style: none; }
.uf-high li { padding-top: 24px; border-top: 2px solid var(--line); }
.uf-high span { display: block; margin-bottom: 14px; color: var(--accent); font-size: var(--sh-fs-h2); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.uf-high p { margin-top: 10px; color: var(--muted); }
.uf-high p strong { color: var(--ink); }

/* 6 · Result */
.uf-moment { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: clamp(12px, 2.5vw, 32px); margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; }
.uf-moment li:not(.uf-warnshot) .uf-halo::before { content: none; }
.uf-moment li { display: grid; justify-items: center; text-align: center; gap: 20px; }
.uf-moment .sh-phone { --sh-phone-w: 240px; }
.uf-moment p { max-width: 16em; color: var(--muted); }
.uf-moment b { color: var(--ink); }
.uf-arrow { align-self: center; color: var(--accent); font-size: var(--sh-fs-h2); font-weight: 900; }
.uf-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: clamp(56px, 7vw, 96px) 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); list-style: none; text-align: center; }
.uf-numbers strong { display: block; color: var(--accent); font-size: var(--sh-fs-display); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.uf-numbers span { display: block; margin-top: 8px; color: var(--muted); font-weight: 800; }
.uf-l5 .uf-numbers { margin-top: 8px; }
.uf-honest { margin-top: 32px !important; text-align: center; color: var(--muted); font-size: var(--sh-fs-small); }

/* 7 · Close: the amber of the warning */
.uf-close { padding: clamp(80px, 11vw, 140px) 0; background: radial-gradient(70% 120% at 50% 0%, #F7C766 0%, #F2B544 45%, #E0A030 100%); color: #20252B; text-align: center; }
.uf-close h2 { margin: 0 auto; font-size: var(--sh-fs-display); max-width: none; }
.uf-close p { margin: 18px auto 0; max-width: 30em; font-size: var(--sh-fs-lead); font-weight: 700; }
.uf-close .uf-actions { justify-content: center; }
.uf-close .uf-btn { background: #20252B; color: #F6F3EC; }
.uf-close .uf-outline { background: transparent; color: #20252B; box-shadow: inset 0 0 0 1.5px #20252B; }
.uf-close .uf-outline:hover { background: rgba(32, 37, 43, .08); filter: none; }

@media (max-width: 900px) {
  .uf-lit { justify-items: center; }
  .uf-hero-grid, .uf-scene, .uf-flip, .uf-statement, .uf-duo { grid-template-columns: 1fr; }
  .uf-flip .uf-art { order: 2; }
  .uf-process { grid-template-columns: repeat(2, 1fr); }
  .uf-big { --sh-phone-w: 240px; }
  .uf-moment { grid-template-columns: 1fr; gap: 28px; }
  .uf-arrow { transform: rotate(90deg); }
  .uf-moment .sh-phone { --sh-phone-w: 230px; }
  .uf-numbers { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 600px) {
  .uf-process, .uf-high { grid-template-columns: 1fr; }
  .uf-bars { height: 110px; gap: 4px; }
  .uf-cut { padding: 0 8px; }
  .uf-did { font-size: var(--sh-fs-body); }
}
