/* Devdwell — website styles (home page + guides) */

:root {
  --paper: #f6f4ef;
  --paper-2: #efece5;
  --surface: #ffffff;
  --ink: #141412;
  --ink-2: #3b3a36;
  --muted: #6e6b64;
  --faint: #a09d96;
  --line: #e4e0d7;
  --line-2: #d6d1c7;
  --accent: #ff5a1f;
  --accent-ink: #c2410c;
  --accent-soft: #ffeee6;
  --ok: #17784b;
  --ok-soft: #e2f2e8;
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: #ffd8c7; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.03em; line-height: 1.08; font-weight: 600; }
p { margin: 0; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
code, pre, kbd { font-family: var(--mono); }
.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); border-color: #c4beb2; box-shadow: 0 10px 24px -12px rgba(20, 20, 18, .35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--ink); color: #fbfaf7; border-color: var(--ink); }
.btn.primary:hover { background: #2a2925; }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 10px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(255, 90, 31, .45); outline-offset: 2px; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 20px; letter-spacing: -.04em; text-decoration: none; color: var(--ink); }
.brand svg { transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.05); }
.brand .sun { transform-origin: 16px 21px; animation: sun-up 1.2s var(--ease) .2s both; }
@keyframes sun-up { from { transform: translateY(8px) scale(.6); opacity: 0; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(246, 244, 239, .82); backdrop-filter: saturate(1.4) blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { padding: 8px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { background: rgba(20, 20, 18, .05); color: var(--ink); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; }

/* reveal animations */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); animation: word .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .1s); }
@keyframes word { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .split-words .w { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* hero */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 0; overflow: hidden; }
.hero-copy { text-align: center; max-width: 920px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(46px, 7.6vw, 96px); margin: 22px 0 24px; }
.hero h1 .serif { color: var(--accent-ink); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-stage { position: relative; margin-top: 72px; padding-bottom: 80px; }
.horizon { position: absolute; left: 50%; bottom: 0; width: min(1400px, 140vw); height: 520px; transform: translateX(-50%); pointer-events: none; }
.horizon .sunball { position: absolute; left: 50%; bottom: 46px; width: 560px; height: 560px; margin-left: -280px; border-radius: 50%; background: var(--accent); transform: translateY(calc(50% + var(--sun, 0px))); transition: transform .1s linear; }
.horizon .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: var(--paper); border-top: 3px solid var(--ink); }

/* demo (animated product) */
.demo { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(20, 20, 18, .45), 0 2px 6px rgba(20, 20, 18, .05); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfaf7; font-size: 12.5px; color: var(--muted); }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcd7cd; }
.panel-bar span { margin-left: 10px; }
.cms { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; font-size: 13.5px; }
.cms-side { background: #f4f2ec; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.cms-side b { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 8px 4px; }
.cms-side span { padding: 6px 8px; border-radius: 7px; color: var(--ink-2); display: flex; justify-content: space-between; }
.cms-side span.on { background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-weight: 600; position: relative; }
.cms-side span.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--accent); }
.cms-side em { font-style: normal; color: var(--faint); font-size: 12px; }
.cms-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.cms-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--paper-2); color: var(--ink-2); transition: background .3s, color .3s; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a8a39a; transition: background .3s; }
.pill.live { background: var(--ok-soft); color: var(--ok); }
.pill.live::before { background: var(--ok); }
.d-label { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.d-input { border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 12px; min-height: 40px; background: var(--surface); }
.d-input.focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, .2); }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.d-body { color: var(--muted); line-height: 1.6; min-height: 64px; }
.d-pub { height: 34px; padding: 0 14px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: transform .2s var(--ease), background .2s; }
.d-pub.press { transform: scale(.94); background: #2d2c28; }
.d-saved { font-size: 12px; color: var(--faint); }
.site { padding: 0; }
.site-hero { padding: 26px 26px 20px; }
.site-hero small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.site-hero h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; letter-spacing: -.01em; line-height: 1.05; transition: opacity .35s, transform .5s var(--ease); }
.site-hero h3.swap { opacity: 0; transform: translateY(10px); }
.site-hero p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.site-img { height: 150px; margin: 0 26px 26px; border-radius: 12px; background: #e8e2d6 url("guides/media/hero-bread.jpg") center / cover; position: relative; overflow: hidden; }
.flash { position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; pointer-events: none; }
.flash.on { animation: flash 1.2s var(--ease); }
@keyframes flash { 20% { opacity: 1; } 100% { opacity: 0; } }
.toastish { position: absolute; right: 18px; bottom: 18px; background: var(--ink); color: #fbfaf7; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.toastish.on { opacity: 1; transform: none; }

/* sections */
section.block { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.8vw, 58px); margin: 16px 0 18px; }
.section-head p { color: var(--muted); font-size: 19px; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step3 { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.step3:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(20, 20, 18, .4); }
.step3 .num { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--accent); }
.step3 h3 { font-size: 22px; margin: 18px 0 10px; }
.step3 p { color: var(--muted); font-size: 16px; }

.dark { background: var(--ink); color: #f1eee7; }
.dark .section-head p, .dark .muted { color: #a9a59c; }
.dark .eyebrow { color: #a9a59c; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2b2a26; border: 1px solid #2b2a26; border-radius: 22px; overflow: hidden; }
.feature { background: var(--ink); padding: 30px 28px 34px; transition: background .3s; }
.feature:hover { background: #1c1b18; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #34322d; display: grid; place-items: center; color: var(--accent); margin-bottom: 22px; transition: transform .5s var(--ease), background .3s; }
.feature:hover .ic { transform: rotate(-8deg) scale(1.06); background: #22211d; }
.feature h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.02em; }
.feature p { color: #a9a59c; font-size: 15.5px; }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-top: 56px; }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid #34322d; color: #e6e2d9; font-size: 14.5px; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.list-check { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.list-check li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.code { margin: 0; padding: 26px; border-radius: 20px; background: var(--ink); color: #eeebe4; font-size: 13.5px; line-height: 1.8; overflow: auto; box-shadow: 0 40px 80px -40px rgba(20, 20, 18, .6); }
.code .c { color: #7d7a72; } .code .t { color: #ff9a74; } .code .a { color: #b9d7c4; } .code .s { color: #f3d59b; }

.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.gcard:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -34px rgba(20, 20, 18, .45); border-color: var(--line-2); }
.gthumb { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s var(--ease); }
.gcard:hover .gthumb img { transform: scale(1.04); }
.gplay { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px 7px 9px; border-radius: 99px; transition: background .3s; }
.gplay svg { width: 18px; height: 18px; background: var(--accent); border-radius: 50%; padding: 4px; }
.gcard:hover .gplay { background: var(--accent); }
.gbody { padding: 18px 20px 22px; }
.gbody h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.gbody p { color: var(--muted); font-size: 15px; }
.gicon { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.gicon svg { width: 46px; height: 46px; transition: transform .6s var(--ease); }
.gcard:hover .gicon svg { transform: scale(1.1) rotate(-6deg); }

.final { text-align: center; padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(40px, 6vw, 78px); margin: 18px auto 20px; max-width: 900px; }
.final .sunset { position: absolute; left: 50%; bottom: -260px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; background: var(--accent); opacity: .12; }

footer.foot { border-top: 1px solid var(--line); padding: 40px 0 50px; font-size: 14.5px; color: var(--muted); }
.foot-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* video modal */
.vmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(20, 20, 18, .7); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.vmodal.open { opacity: 1; pointer-events: auto; }
.vmodal .vbox { width: min(1100px, 100%); transform: translateY(20px) scale(.97); transition: transform .5s var(--ease); }
.vmodal.open .vbox { transform: none; }
.vmodal video { width: 100%; border-radius: 16px; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); background: #000; }
.vclose { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; }

/* guides */
.guides-hero { padding: 72px 0 40px; }
.guides-hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 16px 0 16px; }
.guides-hero p { color: var(--muted); font-size: 19px; max-width: 620px; }
.gsection { padding: 30px 0 30px; }
.gsection > h2 { font-size: 22px; margin-bottom: 18px; letter-spacing: -.02em; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 40px 0 100px; align-items: start; }
.doc-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.doc-nav b { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 18px 10px 6px; }
.doc-nav b:first-child { margin-top: 0; }
.doc-nav a { padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); transition: background .2s, color .2s; position: relative; }
.doc-nav a:hover { background: rgba(20, 20, 18, .05); color: var(--ink); }
.doc-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.doc-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); }
.article { max-width: 760px; }
.article .crumb { font-size: 14px; color: var(--muted); }
.article .crumb a { text-decoration: none; }
.article h1 { font-size: clamp(36px, 4.6vw, 54px); margin: 14px 0 16px; }
.article .intro { font-size: 20px; color: var(--muted); margin-bottom: 30px; }
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.video-wrap { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); box-shadow: 0 30px 60px -36px rgba(20, 20, 18, .55); margin-bottom: 44px; }
.video-wrap video { width: 100%; aspect-ratio: 16 / 10; }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 28px; color: var(--ink); margin: 52px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; color: var(--ink); margin: 34px 0 10px; letter-spacing: -.02em; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font-size: .86em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.prose pre { background: var(--ink); color: #eeebe4; border-radius: 14px; padding: 18px 20px; overflow: auto; font-size: 13.5px; line-height: 1.7; margin: 0 0 22px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose kbd { font-size: .8em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 26px; font-size: 15px; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #fbfaf7; font-size: 13px; color: var(--muted); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.tip { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin: 22px 0; }
.tip::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tip p:last-child { margin: 0; }
.steps-list { counter-reset: st; list-style: none; padding: 0 !important; }
.steps-list > li { counter-increment: st; position: relative; padding-left: 46px; margin: 14px 0 !important; }
.steps-list > li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 60px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.pager a:hover { border-color: var(--ink); transform: translateY(-2px); }
.pager a span { font-size: 13px; color: var(--muted); }
.pager a b { font-size: 17px; letter-spacing: -.01em; }
.pager a.next { text-align: right; grid-column: 2; }
.toc { font-size: 14px; border-left: 2px solid var(--line); padding-left: 16px; margin: 0 0 40px; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); }

.notfound { min-height: 80vh; display: grid; place-content: center; text-align: center; gap: 22px; padding: 24px; }
.notfound h1 { font-size: clamp(44px, 7vw, 84px); }

/* responsive */
@media (max-width: 980px) {
  .demo, .split { grid-template-columns: 1fr; }
  .steps3, .features, .guide-cards { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .doc-nav b { display: none; }
  .doc-nav a[aria-current="page"]::before { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; transform: translateY(-120%); transition: transform .5s var(--ease); }
  .nav.open .nav-links { transform: none; }
  .menu-btn { display: grid; place-items: center; }
  .steps3, .features, .guide-cards, .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: auto; }
  .cms { grid-template-columns: 1fr; }
  .cms-side { display: none; }
  .horizon .sunball { width: 380px; height: 380px; margin-left: -190px; }
}
.prose pre .copy { position: absolute; top: 10px; right: 10px; border: 1px solid #3d3b36; background: #2a2925; color: #eeebe4; font: 600 12px var(--sans); padding: 5px 10px; border-radius: 8px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.prose pre:hover .copy, .prose pre .copy:focus { opacity: 1; }

/* ===================== Devdwell brand ===================== */
:root {
  --paper: #f3f0ea;
  --paper-2: #ebe7df;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #3a3833;
  --muted: #5e5a52;
  --faint: #8f8a80;
  --line: #e2ddd3;
  --line-2: #cfc9bd;
  --accent: #2fc7a6;
  --accent-ink: #0e8f79;
  --accent-soft: #dff5ee;
  --teal: #0e9e93;
  --coral: #ff6b57;
  --mint: linear-gradient(100deg, #2fc7a6 0%, #6fdcc2 45%, #b9efa0 100%);
  --sans: "Schibsted Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;
  --display: "Outfit", "Schibsted Grotesk", -apple-system, system-ui, sans-serif;
}
body { font-family: var(--sans); background: var(--paper); }
::selection { background: #bff0e2; }
h1, h2, h3, h4, .brand, .num { font-family: var(--display); font-weight: 500; }
.hero h1, .section-head h2, .final h2, .guides-hero h1, .article h1, .notfound h1 { letter-spacing: -.055em; line-height: .98; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; }

/* brand lockup */
.brand { gap: 10px; font-size: 21px; letter-spacing: -.03em; }
.brand:hover svg { transform: none; }
.cms-tag { font: 600 10.5px/1 var(--sans); letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; background: var(--accent); color: var(--ink); margin-left: 2px; transform: translateY(-1px); }

/* floating pill navigation */
.nav { position: sticky; top: 0; padding: 12px 0 0; background: transparent !important; border: 0 !important; backdrop-filter: none !important; }
.nav-inner { height: 64px; padding: 0 10px 0 20px; border-radius: 18px; background: rgba(16, 16, 18, .82); backdrop-filter: saturate(1.3) blur(16px); color: #f3f0ea; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5); }
.nav .brand { color: #f3f0ea; }
.nav-links a:not(.btn) { color: rgba(243, 240, 234, .82); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { background: rgba(243, 240, 234, .08); color: #fff; }
.menu-btn { background: transparent; border-color: rgba(243, 240, 234, .25); color: #f3f0ea; }

/* buttons: pills with a round arrow */
.btn { border-radius: 999px; height: 50px; padding: 0 22px; font-family: var(--sans); font-weight: 600; }
.btn.sm { height: 42px; padding: 0 16px; border-radius: 999px; }
.btn.primary { background: var(--accent); color: var(--ink); border: 0; box-shadow: none; padding-right: 6px; }
.btn.primary:hover { background: #3ad4b2; box-shadow: 0 14px 30px -14px rgba(47, 199, 166, .8); }
.btn.primary .arrow { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: 6px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; }
.btn.sm.primary { padding-right: 16px; }
.btn.primary:not(:has(.arrow)) { padding-right: 22px; }
.on-dark .btn:not(.primary), .hero .btn:not(.primary), .dark .btn:not(.primary), .final .btn:not(.primary) { background: transparent; color: #f3f0ea; border-color: rgba(243, 240, 234, .3); }
.on-dark .btn:not(.primary):hover, .hero .btn:not(.primary):hover, .dark .btn:not(.primary):hover, .final .btn:not(.primary):hover { border-color: #f3f0ea; background: rgba(243, 240, 234, .06); }

/* eyebrow pill */
.eyebrow { padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; font-size: 14px; color: var(--ink-2); }
.eyebrow::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(47, 199, 166, .18); }

/* hero: dark */
.hero { background: var(--ink); color: #f3f0ea; margin-top: -76px; padding-top: calc(76px + clamp(56px, 8vw, 100px)); }
.hero .eyebrow { color: rgba(243, 240, 234, .85); border-color: rgba(243, 240, 234, .22); }
.hero .lead { color: #bebab2; }
.hero h1 .serif, .final h2 .serif, .dark .section-head h2 .serif { background: var(--mint); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.split-words .serif .w { color: var(--teal); }
.hero .split-words .serif .w { background: var(--mint); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.aurora, .horizon { display: none; }
.hero-stage { margin-top: 64px; padding-bottom: 0; }
.hero-stage::after { content: ""; display: block; height: 110px; background: linear-gradient(var(--ink) 0 50%, var(--paper) 50% 100%); margin-top: -110px; position: relative; z-index: 0; }
.demo { position: relative; z-index: 1; }
.panel { border-color: rgba(255, 255, 255, .08); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.cms-side span.on::before { background: var(--accent); }
.d-pub { background: var(--accent); color: var(--ink); border-radius: 999px; }
.d-input.focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 199, 166, .2); }
.pill.live { background: var(--accent-soft); color: var(--accent-ink); }
.pill.live::before { background: var(--accent); }
.flash { box-shadow: inset 0 0 0 2px var(--accent); }
.toastish { background: var(--ink); }
.site-hero small { color: var(--teal); }

/* sections */
.section-head h2 { font-size: clamp(38px, 5.4vw, 72px); }
.section-head p { font-size: 19px; }
#how { background: var(--accent); }
#how .eyebrow { border-color: rgba(11, 11, 12, .25); color: var(--ink); }
#how .eyebrow::before { background: var(--ink); box-shadow: none; }
#how .section-head p { color: rgba(11, 11, 12, .72); }
#how .section-head h2 .serif { color: #0b3a48; }
.step3 { background: rgba(255, 255, 255, .92); border: 0; border-radius: 24px; }
.step3:hover { box-shadow: 0 30px 50px -30px rgba(11, 58, 72, .5); }
.step3 .num { font-family: var(--serif); font-style: italic; color: var(--teal); font-weight: 400; }
.dark { background: var(--ink); }
.dark .eyebrow { color: rgba(243, 240, 234, .85); border-color: rgba(243, 240, 234, .2); }
.features { background: rgba(243, 240, 234, .08); border-color: rgba(243, 240, 234, .08); border-radius: 24px; }
.feature { background: #121214; }
.feature:hover { background: #18181b; }
.feature .ic { border: 1px solid rgba(47, 199, 166, .35); color: var(--accent); background: rgba(47, 199, 166, .08); }
.chip { border-color: rgba(243, 240, 234, .14); }
.chip i { background: var(--accent); }
.code { background: #121214; border: 1px solid rgba(243, 240, 234, .08); }
.code .t { color: #6fdcc2; } .code .a { color: #ffb4a8; } .code .s { color: #e8e3d6; }
.list-check li::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.gcard { border-radius: 22px; }
.gcard:hover { border-color: var(--ink); }
.gplay { background: var(--ink); }
.gplay svg { background: var(--accent); color: var(--ink); }
.gcard:hover .gplay { background: var(--teal); }
.gicon { background: var(--paper-2); color: var(--teal); }

/* final CTA: dark block */
.final { background: var(--ink); color: #f3f0ea; }
.final .muted { color: #bebab2 !important; }
.final .eyebrow { color: rgba(243, 240, 234, .85); border-color: rgba(243, 240, 234, .2); }
.final .sunset { display: none; }
.final h2 { font-size: clamp(44px, 7vw, 96px); }
footer.foot { background: var(--ink); color: #aeaaa2; border-color: rgba(243, 240, 234, .08); }
footer.foot .brand { color: #f3f0ea; }
footer.foot a:hover { color: #fff; }

/* guides */
.guides-hero { padding-top: 90px; }
.guides-hero h1 .serif, .article h1 .serif { color: var(--teal); }
.doc { padding-top: 56px; }
.doc-nav a[aria-current="page"]::before { background: var(--accent); }
.steps-list > li::before { background: var(--ink); }
.prose li::marker { color: var(--teal); }
.prose a { text-decoration-color: var(--accent); }
.tip::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.video-wrap { border: 1px solid var(--line); background: var(--ink); }
.meta-row span:first-child { background: var(--ink); color: #f3f0ea; border-color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.notfound .serif { color: var(--teal); }

@media (max-width: 700px) {
  .nav { padding: 8px 8px 0; }
  .nav-links { top: 84px; left: 8px; right: 8px; border-radius: 18px; background: #121214; border: 0; }
}
@media (max-width: 700px) {
  .nav-links { visibility: hidden; transform: translateY(-16px); opacity: 0; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
  .nav.open .nav-links { visibility: visible; transform: none; opacity: 1; transition: transform .45s var(--ease), opacity .3s; }
}

/* ===================== Cinematic system (Apple-style) ===================== */
:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --black: #000000;
  --gray: #f5f5f7;
  --text-dim: #86868b;
}
body { font-family: var(--sans); letter-spacing: -.011em; }
h1, h2, h3, h4, .brand { font-family: var(--display); font-weight: 600; }
/* thin translucent top bar */
.nav { position: sticky; top: 0; padding: 0 !important; background: rgba(0, 0, 0, .72) !important; backdrop-filter: saturate(1.8) blur(20px) !important; border-bottom: 1px solid rgba(255, 255, 255, .08) !important; }
.nav-inner { height: 52px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.nav .brand { font-size: 17px; gap: 8px; }
.nav .brand svg { width: 22px; height: 22px; }
.nav .cms-tag { font-size: 9.5px; padding: 3px 5px; }
.nav-links { gap: 2px; }
.nav-links a:not(.btn) { font-size: 13px; padding: 6px 12px; color: rgba(245, 245, 247, .8); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { background: transparent; color: #fff; }
.nav .btn.sm { height: 30px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.btn.primary .arrow { display: none; }
.btn.primary { padding-right: 22px; }
footer.foot { background: var(--gray); color: var(--text-dim); border-top: 1px solid #d2d2d7; font-size: 12.5px; }
footer.foot .brand { color: #1d1d1f; }
footer.foot a:hover { color: #1d1d1f; }
@media (max-width: 700px) { .nav-links { top: 52px; left: 0; right: 0; border-radius: 0; background: rgba(0, 0, 0, .92); } .nav { padding: 0 !important; } }
.nav { background: rgba(0, 0, 0, .86) !important; }
/* guides & 404 in the cinematic style */
body:not(:has(.x3d)) { background: #f5f5f7; }
body:not(:has(.x3d)) main { background: #f5f5f7; }
.guides-hero h1, .article h1, .notfound h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; }
.guides-hero h1 .serif, .article h1 .serif, .notfound .serif { font-family: var(--display); font-style: normal; font-weight: 700; color: #86868b; letter-spacing: -.04em; }
.split-words .serif .w { color: #86868b; }
.gcard { border-radius: 24px; border: 0; box-shadow: none; }
.gcard:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); border: 0; }
.gbody h3 { font-weight: 700; letter-spacing: -.025em; }
.eyebrow { border: 0; padding: 0; font-size: 17px; font-weight: 600; color: #0e9e93 !important; }
.eyebrow::before { display: none; }
.btn { font-family: var(--sans); }
.btn.primary { background: #2fc7a6; color: #000; }
.btn:not(.primary) { background: #fff; border-color: #d2d2d7; }
.doc-nav a[aria-current="page"] { box-shadow: none; background: #fff; }
.prose { color: #3a3a3c; }
.prose h2, .prose h3 { font-weight: 700; letter-spacing: -.03em; color: #1d1d1f; }
.tip, .pager a, .meta-row span, .prose table { border-color: #e5e5ea; }
.video-wrap { border-radius: 20px; border: 0; }

/* ===================== Accessibility & responsive fixes ===================== */
:root { --faint: #6e6e73; --text-dim: #6e6e73; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; transition: top .15s; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid #0b7a6f; outline-offset: 2px; }
.eyebrow { color: #0a6f66 !important; }
footer.foot, footer.foot p, footer.foot a { color: #5f5f64; }
.doc-nav b { color: #5f5f64; }
.doc { grid-template-columns: 250px minmax(0, 1fr); }
.prose pre { max-width: 100%; overflow-x: auto; }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.prose code { overflow-wrap: anywhere; }
@media (max-width: 980px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-nav { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .doc-nav a { white-space: nowrap; } }
@media (max-width: 520px) { .wrap { width: calc(100% - 32px); } .foot-inner { flex-direction: column; } }
