/* Verno developer website. Built on the Verno design tokens in verno.css (copied by scripts/build_developer_site.py).
   No external fonts or images: Inter if installed, else the system font. */
:root { --gold: #c9a227; --gold-50: #fbf6e3; --deep: #14352a; --ink: var(--vn-stone-900); --code-bg: #1c1a16; --code-fg: #ece7dd; }
html { scroll-behavior: smooth; }
body { font-family: var(--vn-font); font-size: 16px; line-height: 1.6; color: var(--vn-stone-700); background: var(--vn-sand-50); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--vn-green-600); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--vn-gutter); }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(250,248,245,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--vn-sand-200); }
.site-head .wrap { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 40px; height: 40px; }
.brand b { font-size: 18px; letter-spacing: 2px; }
.brand span { font-size: 12px; font-weight: 600; color: var(--vn-green-800); background: var(--vn-green-100); border-radius: 999px; padding: 2px 9px; letter-spacing: 0; }
.site-head nav { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-head nav a { text-decoration: none; color: var(--vn-stone-700); font-weight: 500; font-size: 15px; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.site-head nav a:hover { background: var(--vn-sand-100); color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--vn-green-800); font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.site-head nav a.cta { background: var(--vn-green-600); color: #fff; font-weight: 600; margin-left: 6px; box-shadow: none; border-radius: 10px; }
.site-head nav a.cta:hover { background: var(--vn-green-700); }
@media (max-width: 640px) { .site-head nav { margin-left: 0; width: 100%; } .site-head nav a { padding: 0 9px; } .brand span { display: none; } }

/* ---- type ---- */
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.02em; }
.display { font-size: clamp(34px, 7vw, 62px); font-weight: 800; margin: 12px 0 16px; }
.display em { font-style: normal; color: var(--vn-green-700); background: linear-gradient(transparent 62%, var(--gold-50) 62%, #f2e3a6 100%); }
h2.big { font-size: clamp(26px, 4.4vw, 38px); font-weight: 750; margin: 0 0 12px; }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--vn-stone-700); max-width: 56ch; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vn-green-700); }
section.band { padding: clamp(40px, 7vw, 88px) 0; }
section.band.alt { background: var(--vn-white); border-block: 1px solid var(--vn-sand-200); }
section.band.dark { background: var(--deep); color: #d7e6df; }
section.band.dark h2, section.band.dark h3 { color: #fff; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #d8b53a; border-color: #d8b53a; color: var(--ink); }

/* ---- hero ---- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero::before { content: ""; position: absolute; inset: auto -10% -40% 30%; height: 80%; background: radial-gradient(closest-side, var(--gold-50), transparent); z-index: 0; }
.hero .wrap > * { position: relative; z-index: 1; }
.stamp { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; background: var(--vn-white); border: 1px solid var(--vn-sand-300); border-radius: 999px; padding: 4px 12px 4px 6px; }
.stamp i { background: var(--gold); border-radius: 999px; width: 10px; height: 10px; display: inline-block; margin-left: 4px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* phone mock (decorative, drawn with CSS) */
.phone { width: min(300px, 100%); margin-inline: auto; background: var(--ink); border-radius: 38px; padding: 12px; box-shadow: var(--vn-shadow-3); transform: rotate(2.5deg); }
.phone .screen { background: var(--vn-sand-50); border-radius: 28px; padding: 14px; min-height: 380px; display: grid; gap: 10px; align-content: start; }
.phone .bar { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 14px; }
.phone .bar img { width: 26px; height: 26px; }
.tile { background: var(--vn-white); border: 1px solid var(--vn-sand-200); border-radius: 16px; padding: 12px; display: grid; gap: 6px; }
.tile .th { display: flex; gap: 10px; align-items: center; }
.tile .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--vn-green-100); color: var(--vn-green-800); display: grid; place-items: center; font-weight: 800; }
.tile small { color: var(--vn-stone-500); font-size: 12px; }
.tile .fake-btn { background: var(--vn-green-600); color: #fff; font-weight: 600; font-size: 13px; border-radius: 10px; padding: 8px; text-align: center; }
.bubble { max-width: 85%; font-size: 13px; padding: 8px 11px; border-radius: 14px; line-height: 1.4; }
.bubble.in { background: var(--vn-white); border: 1px solid var(--vn-sand-200); }
.bubble.out { background: var(--vn-green-600); color: #fff; margin-left: auto; }
.phone-note { margin: 0 0 18px; font-size: 12px; font-weight: 600; text-align: center; color: var(--vn-stone-700); }

/* ---- bento ---- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.cell { background: var(--vn-white); border: 1px solid var(--vn-sand-200); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cell h3 { font-size: 20px; margin: 0; }
.cell p { margin: 0; color: var(--vn-stone-700); }
.cell .num { font-size: 12px; font-weight: 700; color: var(--vn-stone-500); letter-spacing: .1em; }
.cell.span3 { grid-column: span 3; } .cell.span2 { grid-column: span 2; } .cell.span4 { grid-column: span 4; } .cell.span6 { grid-column: span 6; }
.cell.green { background: var(--vn-green-700); border-color: var(--vn-green-700); color: #dff5ea; } .cell.green .num { color: #dff5ea; } .cell.green h3 { color: #fff; } .cell.green p { color: #dff5ea; }
.cell.sand { background: var(--vn-sand-100); }
.cell.gold { background: var(--gold-50); border-color: #ecdc9a; }
.cell code { font-size: 13px; }
@media (max-width: 900px) { .cell.span2, .cell.span3, .cell.span4 { grid-column: span 3; } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .cell.span2, .cell.span3, .cell.span4, .cell.span6 { grid-column: auto; } }

/* ---- path: add -> review -> live ---- */
.path { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; position: relative; }
.path li { background: var(--vn-white); border: 1px solid var(--vn-sand-200); border-radius: 20px; padding: 56px 22px 22px; position: relative; counter-increment: s; }
.path li::before { content: counter(s); position: absolute; top: 16px; left: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.path li:nth-child(3)::before { background: var(--vn-green-600); }
.path li:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: 66px; right: -18px; border-top: 2px dashed var(--gold); }
.path h3 { margin: 0 0 6px; font-size: 20px; } .path p { margin: 0; }
@media (max-width: 760px) { .path { grid-template-columns: minmax(0, 1fr); } .path li:not(:last-child)::after { display: none; } }

.rules { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.rules li { padding-left: 34px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--vn-green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.rules b { color: var(--ink); }
.dark .rules b { color: #fff; } .dark .rules li::before { background-color: #1f5a47; }
@media (max-width: 700px) { .rules { grid-template-columns: minmax(0, 1fr); } }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-size: .92em; background: var(--vn-sand-100); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); color: var(--code-fg); border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; max-width: 100%; }
pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
.dark code { background: #1f5a47; color: #fff; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--vn-sand-200); background: var(--vn-white); padding: 32px 0 40px; font-size: 14px; color: var(--vn-stone-500); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot a { color: var(--vn-stone-700); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot li a { display: inline-flex; min-height: 32px; align-items: center; }

/* ---- forms (sign in / sign up) ---- */
.auth { min-height: calc(100vh - 64px); display: grid; align-items: start; padding: clamp(24px, 6vw, 64px) 0; }
.auth .wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 6vw, 72px); align-items: start; }
.auth .panel-card { background: var(--vn-white); border: 1px solid var(--vn-sand-200); border-radius: 20px; padding: 26px; box-shadow: var(--vn-shadow-2); }
.auth h1 { font-size: 28px; margin: 0 0 6px; }
.auth label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 4px; color: var(--ink); }
.auth .hint { font-size: 13px; color: var(--vn-stone-500); margin: 4px 0 0; }
.auth .msg { margin-top: 14px; min-height: 22px; font-size: 14px; }
.auth .msg.err { color: var(--vn-red-700); } .auth .msg.ok { color: var(--vn-green-800); }
.auth .swap { margin-top: 18px; font-size: 14px; }
.pwrow { position: relative; } .pwrow input { padding-right: 76px; }
.pwrow button { position: absolute; right: 4px; top: 4px; min-height: 36px; border: 0; background: none; color: var(--vn-green-700); font-weight: 600; cursor: pointer; padding: 0 10px; border-radius: 8px; }
.auth aside h2 { font-size: 22px; margin: 0 0 10px; } .auth aside ul { padding-left: 20px; margin: 0; } .auth aside li { margin-bottom: 8px; }
.callout { background: var(--gold-50); border: 1px solid #ecdc9a; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-top: 16px; }
@media (max-width: 800px) { .auth .wrap { grid-template-columns: minmax(0, 1fr); } .auth { min-height: 0; } }

fieldset.kind { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
fieldset.kind legend { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; padding: 0; }
.opt { display: flex !important; gap: 10px; align-items: flex-start; margin: 0 !important; font-weight: 400 !important; border: 1px solid var(--vn-sand-300); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--vn-white); }
.opt:has(input:checked) { border-color: var(--vn-green-600); background: var(--vn-green-50); }
.opt input { margin-top: 4px; } .opt small { color: var(--vn-stone-500); }

/* ---- docs ---- */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding: 32px 0 64px; }
.docs .toc { position: sticky; top: 84px; align-self: start; font-size: 14px; max-height: calc(100vh - 100px); overflow: auto; }
.docs .toc ul { list-style: none; padding: 0; margin: 0 0 18px; }
.docs .toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--vn-sand-200); color: var(--vn-stone-700); text-decoration: none; }
.docs .toc a:hover { border-left-color: var(--gold); color: var(--ink); }
.docs .toc .group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--vn-stone-500); margin: 0 0 6px 10px; }
.prose { min-width: 0; max-width: 78ch; }
.prose h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 12px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--vn-sand-200); }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14px; margin: 14px 0; max-width: 100%; }
.prose th, .prose td { border: 1px solid var(--vn-sand-200); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--vn-sand-100); color: var(--ink); }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs .toc { position: static; max-height: none; } .docs .toc ul { display: flex; flex-wrap: wrap; gap: 4px 8px; } .docs .toc a { border: 1px solid var(--vn-sand-200); border-radius: 999px; } }
.doccards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.doccards a { text-decoration: none; }
.doccards .cell:hover { border-color: var(--vn-green-600); box-shadow: var(--vn-shadow-2); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
