:root {
    --ink: #15121f;
    --bg: #fff8ef;
    --card: #ffffff;
    --muted: #5d5873;
    --violet: #7c3aed;
    --pink: #ec4899;
    --lime: #a3e635;
    --sun: #fde047;
    --sky: #38bdf8;
    --r-lg: 28px;
    --r-md: 18px;
    --shadow: 4px 4px 0 var(--ink);
    --shadow-lg: 8px 8px 0 var(--ink);
    --section-pad: clamp(72px, 10vw, 124px);
    --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip stops sideways scrolling on phones without breaking the sticky nav.
   The "hidden" line is the fallback for browsers without clip.
   scroll-padding-top keeps anchor targets below the sticky nav (74px, plus the iPhone notch inset). */
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
body {
    margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6;
    color: var(--ink); background: var(--bg);
    overflow-x: hidden; overflow-x: clip;
    -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 700 1rem/1 var(--body); padding: 15px 24px; border-radius: 999px;
    border: 2px solid var(--ink); background: var(--card); color: var(--ink);
    box-shadow: var(--shadow); cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn .i { width: 18px; height: 18px; }

/* Nav */
.nav {
    position: sticky; top: 0; z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav.scrolled, .nav:has(.mobile-menu:not([hidden])) { border-bottom-color: var(--ink); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.5rem/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.logo-mark {
    width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center;
    background: var(--violet); color: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
    rotate: -6deg;
}
.logo-mark .i { width: 20px; height: 20px; stroke-width: 2.6; }
.nav-links { display: flex; gap: 30px; font-weight: 600; }
.nav-links a { position: relative; }
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px;
    background: var(--pink); scale: 0 1; transition: scale .2s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { scale: 1 1; }
.menu-toggle {
    display: none; width: 46px; height: 46px; flex: none; padding: 0; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: var(--sun); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
}
.menu-toggle span { width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: rotate .2s ease, translate .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { translate: 0 7.5px; rotate: 45deg; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { translate: 0 -7.5px; rotate: -45deg; }
.mobile-menu { padding: 8px 0 22px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 10px; }
.mobile-menu a:not(.btn) {
    padding: 14px 18px; background: var(--card); border: 2px solid var(--ink); border-radius: 16px;
    box-shadow: 3px 3px 0 var(--ink); font: 700 1.1rem/1.2 var(--display);
}
.mobile-menu a[aria-current="page"] { background: var(--lime); }
.mobile-menu .btn { margin-top: 6px; }

/* Home hero */
.hero { position: relative; isolation: isolate; overflow: hidden; overflow-anchor: none; padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 104px); }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.blob-a { width: 460px; height: 460px; background: var(--pink); top: -160px; right: -120px; }
.blob-b { width: 380px; height: 380px; background: var(--sun); bottom: -160px; left: -140px; animation-delay: -6s; }
.blob-c { width: 300px; height: 300px; background: var(--violet); top: 35%; left: 42%; opacity: .22; animation-delay: -11s; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-title { font: 800 clamp(2.6rem, 6.4vw, 5.2rem)/.96 var(--display); letter-spacing: -.04em; margin: 0 0 20px; }
.hero-title mark { position: relative; z-index: 0; background: none; color: inherit; white-space: nowrap; }
.hero-title mark::before {
    content: ""; position: absolute; z-index: -1; inset: .5em -.08em .04em;
    background: var(--lime); border-radius: 8px; rotate: -1.5deg;
}
.lede { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--muted); max-width: 33em; }
.works-with { margin-top: 22px; font-size: .9rem; color: var(--muted); }
.works-with b { color: var(--ink); font-weight: 600; }

/* Claim form */
.claim {
    margin-top: 30px; max-width: 580px; padding: 10px; display: grid; gap: 8px;
    background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.field {
    display: flex; align-items: center; min-width: 0; min-height: 56px; padding: 0 20px;
    background: var(--bg); border: 2px solid var(--ink); border-radius: 999px;
    transition: box-shadow .15s ease;
}
.field:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 32%, transparent); }
/* width: 100% lets inputs shrink below their default ~20-character width on narrow phones. */
.field input {
    flex: 1; width: 100%; min-width: 0; border: 0; outline: none; background: transparent; padding: 14px 0;
    font: 600 1.05rem var(--body); color: var(--ink);
}
.field input::placeholder { color: #a19bb3; }
.field-url .prefix { font-weight: 700; color: var(--muted); white-space: nowrap; }
.field-url input { color: var(--violet); font-weight: 700; }
.claim-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.btn-claim { min-height: 56px; box-shadow: none; }
.btn-claim:hover { box-shadow: 4px 4px 0 var(--ink); }
.claim-error {
    margin: 2px 4px 4px; padding: 10px 14px; border-radius: 14px;
    background: #ffe4f1; border: 2px solid var(--pink); font-weight: 600; font-size: .95rem;
}
.claim-note { margin: 14px 4px 0; font-size: .9rem; color: var(--muted); }
.claim-success { grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; align-content: center; padding: 20px 22px; background: var(--lime); }
/* Focused (without scrolling) after an in-place claim so screen readers land on it; it isn't interactive. */
.claim-success:focus { outline: none; }
.claim-success strong { font: 800 1.25rem/1.2 var(--display); overflow-wrap: anywhere; }
.claim-success p { margin-top: 4px; }
.success-badge {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ink); color: var(--lime);
}
.success-badge .i { stroke-width: 3; }

/* Phone mockup */
.stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.phone {
    position: relative; width: min(318px, 86%); aspect-ratio: 9 / 18.6; padding: 11px;
    background: var(--ink); border-radius: 48px; rotate: 3deg;
    box-shadow: 14px 14px 0 var(--violet), 14px 14px 0 2px var(--ink);
    animation: float 6s ease-in-out infinite;
}
.screen {
    position: relative; height: 100%; overflow: hidden; border-radius: 38px;
    padding: 46px 18px 18px; display: flex; flex-direction: column; align-items: center; text-align: center;
    color: #fff; background: radial-gradient(120% 70% at 50% 0%, #a855f7 0%, transparent 60%), linear-gradient(165deg, #2b1166 0%, #6d28d9 55%, #db2777 100%);
}
.notch { position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 92px; height: 24px; border-radius: 999px; background: var(--ink); }
.avatar {
    width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center;
    border: 3px solid #fff; font: 800 1.8rem var(--display); color: var(--ink);
    background: conic-gradient(from 200deg, var(--sun), var(--lime), var(--sky), var(--pink), var(--sun));
}
.p-name { margin-top: 12px; font: 800 1.3rem/1.2 var(--display); display: flex; align-items: center; gap: 6px; }
.p-name .verified { width: 18px; height: 18px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; }
.p-name .verified .i { width: 12px; height: 12px; stroke-width: 3.5; color: #fff; }
.p-bio { margin: 4px 0 16px; font-size: .8rem; line-height: 1.45; opacity: .88; }
.p-link {
    width: 100%; margin-bottom: 9px; padding: 11px 14px; display: flex; align-items: center; gap: 10px;
    background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
    font-weight: 700; font-size: .84rem; text-align: left;
}
.p-link .i { width: 18px; height: 18px; }
.p-link.feat { background: var(--sun); }
.p-socials { display: flex; gap: 10px; margin-top: auto; }
.p-socials span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.p-socials .i { width: 17px; height: 17px; }
.p-url { margin-top: 10px; font-size: .74rem; font-weight: 600; opacity: .85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticker {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow);
    font-weight: 700; font-size: .88rem; line-height: 1.25; animation: float 5s ease-in-out infinite;
}
.sticker small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.sticker .chip { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; border: 2px solid var(--ink); }
.sticker .chip .i { width: 18px; height: 18px; }
.sticker-1 { top: 14%; left: -2%; rotate: -6deg; animation-delay: -1.2s; }
.sticker-2 { bottom: 15%; right: -3%; rotate: 5deg; animation-delay: -2.6s; background: var(--sun); }
.sticker-2 small { color: var(--ink); opacity: .7; }

/* Marquee: the tilted strip is wider than the screen, so its wrapper clips it. */
.marquee-wrap { overflow: hidden; padding-block: 20px; }
.marquee {
    width: calc(100% + 60px); margin-left: -30px; overflow: hidden; rotate: -1.4deg;
    background: var(--ink); color: var(--bg); padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; font: 800 clamp(1.3rem, 2.8vw, 1.9rem)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.marquee-group span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee-group span::after { content: "✦"; color: var(--lime); }
.marquee-group span:nth-child(3n+2)::after { color: var(--pink); }
.marquee-group span:nth-child(3n)::after { color: var(--sun); }

/* Sections */
section { padding: var(--section-pad) 0; }
/* A tab page's own section sits right under the nav, with a soft gradient wash. */
.page-top { padding-top: clamp(48px, 8vw, 96px); }
.page-top:not(.how) { background: radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--pink) 18%, transparent), transparent), radial-gradient(50% 40% at 0% 10%, color-mix(in srgb, var(--sun) 35%, transparent), transparent); }
.section-head { max-width: 740px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.kicker { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.section-title { margin: 10px 0 14px; font: 800 clamp(2.1rem, 4.6vw, 3.5rem)/1.02 var(--display); letter-spacing: -.035em; }
h1.section-title { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
    padding: 28px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.card-icon { width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; border: 2px solid var(--ink); display: grid; place-items: center; rotate: -4deg; }
.card:nth-child(even) .card-icon { rotate: 4deg; }
.card h3 { margin: 0 0 8px; font: 800 1.32rem/1.2 var(--display); letter-spacing: -.015em; }
.card p { color: var(--muted); }
.bg-violet { background: var(--violet); color: #fff; }
.bg-pink { background: var(--pink); color: #fff; }
.bg-lime { background: var(--lime); }
.bg-sun { background: var(--sun); }
.bg-sky { background: var(--sky); }

.how { background: var(--violet); color: #fff; border-block: 2px solid var(--ink); }
.how .kicker { color: var(--sun); }
.how .section-head p { color: rgba(255,255,255,.82); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { padding: 30px 28px; background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.step-num { width: 58px; height: 58px; margin-bottom: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); font: 800 1.6rem/1 var(--display); }
.step:nth-child(2) .step-num { background: var(--lime); }
.step:nth-child(3) .step-num { background: var(--pink); color: #fff; }
.step h3 { margin: 0 0 8px; font: 800 1.4rem/1.2 var(--display); letter-spacing: -.015em; }
.step p { color: var(--muted); }

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: end; }
.example-label { display: block; margin-bottom: 14px; text-align: center; font-weight: 700; color: var(--muted); }
.example-label b { color: var(--ink); }
.mini {
    padding: 30px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
    border: 2px solid var(--ink); border-radius: 34px; box-shadow: var(--shadow-lg);
}
.example:nth-child(2) .mini { margin-bottom: 28px; }
.mini .avatar { width: 72px; height: 72px; font-size: 1.5rem; }
.mini-name { font: 800 1.2rem/1.2 var(--display); margin-top: 4px; }
.mini-bio { font-size: .82rem; opacity: .8; margin-bottom: 6px; }
.mini-link { width: 100%; padding: 12px; border-radius: 12px; font-weight: 700; font-size: .88rem; }
.theme-night { background: linear-gradient(170deg, #0f0c29, #302b63 60%, #24243e); color: #fff; }
.theme-night .avatar { background: linear-gradient(135deg, var(--sky), var(--violet)); color: #fff; border-color: var(--sky); }
.theme-night .mini-link { border: 2px solid rgba(255,255,255,.75); }
.theme-night .mini-link:first-of-type { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.theme-sun { background: var(--sun); }
.theme-sun .avatar { background: var(--pink); color: #fff; border-color: var(--ink); }
.theme-sun .mini-link { background: var(--ink); color: var(--sun); border-radius: 999px; }
.theme-fern { background: #e8f3d6; font-family: Georgia, "Times New Roman", serif; }
.theme-fern .mini-name { font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.theme-fern .avatar { background: #4d7c0f; color: #e8f3d6; border-color: var(--ink); font-family: Georgia, serif; }
.theme-fern .mini-link { background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 #4d7c0f; font-family: var(--body); }

.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow); }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font: 700 1.12rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sun); border: 2px solid var(--ink); font: 700 1.3rem/1 var(--body); transition: rotate .2s ease;
}
.faq details[open] summary::after { rotate: 45deg; background: var(--lime); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

.final { padding-top: 0; }
.how + .final { padding-top: var(--section-pad); }
.cta-band {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: center;
    padding: clamp(28px, 6vw, 72px); background: var(--pink); border: 2px solid var(--ink); border-radius: clamp(28px, 4vw, 40px); box-shadow: var(--shadow-lg);
}
.cta-band .section-title { margin: 0 0 12px; }
.cta-band .claim { margin-top: 0; }
.final { overflow-anchor: none; }

.footer { border-top: 2px solid var(--ink); padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; color: var(--muted); font-size: .95rem; }
.footer .logo { font-size: 1.25rem; color: var(--ink); }
.footer .logo-mark { width: 32px; height: 32px; border-radius: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--ink); }
.footer-links a:hover { color: var(--violet); }

/* Scroll reveal (only when JS is running, so no-JS visitors see everything) */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s ease; transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .hero-grid, .cta-band { grid-template-columns: minmax(0, 1fr); }
    .stage { min-height: 0; padding: 20px 0 10px; }
    .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
    .examples { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; }
    .example:nth-child(2) .mini { margin-bottom: 0; }
}
/* The full nav (5 tabs, Log in, CTA) needs ~920px, so narrower screens get the menu button. */
@media (max-width: 1000px) {
    .nav-links, .nav-cta { display: none; }
    .menu-toggle { display: flex; }
}
@media (min-width: 1001px) {
    .mobile-menu { display: none !important; }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .nav-inner { height: 66px; }
    .logo { font-size: 1.35rem; }
    .features { grid-template-columns: minmax(0, 1fr); }
    .claim-row { grid-template-columns: minmax(0, 1fr); }
    .field { padding: 0 16px; }
    .card, .step { padding: 24px 22px; }
    .sticker { font-size: .8rem; padding: 8px 11px; gap: 8px; }
    .sticker .chip { width: 28px; height: 28px; }
    .sticker-1 { left: 0; }
    .sticker-2 { right: 0; }
    .faq summary { padding: 18px 18px; font-size: 1.04rem; }
    .faq details p { padding: 0 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; translate: none; }
}

/* Account pages (signup, login, logout, dashboard) */
.nav-login { color: var(--violet); }
.auth { padding-bottom: var(--section-pad); }
.auth-card {
    width: 100%; max-width: 520px; margin-inline: auto; padding: clamp(24px, 5vw, 40px);
    background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.auth-card-wide { max-width: 760px; }
.auth-card + .auth-card { margin-top: 28px; }
.auth-title { margin: 0 0 8px; font: 800 clamp(2rem, 6vw, 2.7rem)/1.05 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.auth-title .hl { color: var(--violet); }
.auth-intro { color: var(--muted); margin-bottom: 24px; }
.auth-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 7px; min-width: 0; }
.form-label { font-weight: 700; font-size: .95rem; }
.field.is-invalid { border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 25%, transparent); }
.field-hint { font-size: .88rem; color: var(--muted); margin-inline: 4px; }
.field-hint:empty { display: none; }
.field-hint.is-ok { color: #3f6212; font-weight: 700; }
.field-hint.is-ok::before { content: "✓ "; }
.field-hint.is-bad { color: #be185d; font-weight: 600; }
.field-error { margin-inline: 4px; padding-left: 22px; font-size: .9rem; font-weight: 600; color: #be185d; position: relative; }
.field-error::before {
    content: "!"; position: absolute; left: 0; top: .15em; width: 16px; height: 16px; border-radius: 50%;
    background: var(--pink); color: #fff; font: 800 11px/16px var(--body); text-align: center;
}
.pw-toggle {
    flex: none; margin-right: -8px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px;
    background: var(--sun); font: 700 .8rem/1 var(--body); color: var(--ink); cursor: pointer;
}
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; cursor: pointer; }
.check input {
    appearance: none; flex: none; width: 24px; height: 24px; margin: 0; display: grid; place-items: center;
    border: 2px solid var(--ink); border-radius: 8px; background: var(--card); box-shadow: 2px 2px 0 var(--ink); cursor: pointer;
}
.check input::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; rotate: -45deg; translate: 0 -2px; scale: 0; }
.check input:checked { background: var(--violet); }
.check input:checked::after { scale: 1; }
.check.is-invalid input { border-color: var(--pink); }
.check a, .auth-switch a { font-weight: 700; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.btn-block { width: 100%; min-height: 56px; }
.btn-danger { background: var(--pink); color: #fff; }
.form-alert { margin-bottom: 20px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 16px; font-weight: 600; font-size: .95rem; }
.form-alert-error { background: #ffe4f1; border-color: var(--pink); }
.form-alert-info { background: var(--lime); }
.dash > .form-alert { max-width: 760px; margin-inline: auto; margin-bottom: 20px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); }
.dash-hello { display: grid; gap: 18px; }
.dash-hello .auth-intro { margin-bottom: 0; }
.dash-link {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 12px 12px 20px; background: var(--bg); border: 2px solid var(--ink); border-radius: 18px;
}
.dash-url { font: 800 1.25rem/1.2 var(--display); color: var(--violet); overflow-wrap: anywhere; min-width: 0; }
.dash-title { margin: 0 0 6px; font: 800 1.6rem/1.15 var(--display); letter-spacing: -.02em; }
.devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.device {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border: 2px solid var(--ink); border-radius: 18px; background: var(--card);
}
.device.is-current { background: color-mix(in srgb, var(--lime) 35%, var(--card)); }
.device-info { display: grid; gap: 2px; min-width: 0; }
.device-meta { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.badge { justify-self: start; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun); font-size: .75rem; font-weight: 700; }
.devices-all { margin-top: 20px; }
@media (min-width: 621px) {
    .dash-hello { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
    .dash-hello .dash-link { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 620px) {
    .auth-card { box-shadow: var(--shadow); }
    .device form, .device .btn { width: 100%; }
}

/* Legal pages (/terms, /privacy) */
.legal { line-height: 1.7; }
.legal-updated { margin-bottom: 26px; color: var(--muted); font-size: .92rem; }
.legal h2 { margin: 34px 0 10px; font: 800 1.4rem/1.2 var(--display); letter-spacing: -.02em; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal li::marker { color: var(--violet); }
.legal a { font-weight: 700; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--bg); border: 1px solid #e4dccd; overflow-wrap: anywhere; }

/* Contact form: dropdown and message box in the same pill style as the inputs */
.field-select { position: relative; padding-right: 44px; }
.field-select::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; translate: 0 -70%; rotate: 45deg; pointer-events: none; }
.field-select select { flex: 1; width: 100%; min-width: 0; appearance: none; border: 0; outline: none; background: transparent; padding: 14px 0; font: 600 1.05rem var(--body); color: var(--ink); cursor: pointer; }
.field-textarea { align-items: stretch; padding: 12px 20px; border-radius: 22px; }
.field-textarea textarea { flex: 1; width: 100%; min-width: 0; min-height: 150px; border: 0; outline: none; background: transparent; resize: vertical; font: 500 1rem/1.55 var(--body); color: var(--ink); }

/* Pricing */
.billing {
    display: flex; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 5px; gap: 4px;
    background: var(--card); border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
}
.billing[hidden] { display: none; }
.billing button {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px;
    background: transparent; font: 700 .95rem/1 var(--body); color: var(--ink); cursor: pointer;
}
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing-save { padding: 4px 8px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .75rem; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 880px; margin-inline: auto; align-items: start; }
.plan {
    position: relative; padding: clamp(24px, 4vw, 36px); background: var(--card);
    border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.plan-pro { background: color-mix(in srgb, var(--violet) 7%, var(--card)); border-width: 3px; }
.plan-tag {
    position: absolute; top: -16px; right: 24px; padding: 6px 14px; rotate: 4deg;
    background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
    font: 800 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
}
.plan-name { margin: 0; font: 800 1.7rem/1.1 var(--display); letter-spacing: -.02em; }
.plan-pitch { margin-top: 4px; color: var(--muted); }
.plan-price { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; }
.plan-amount { font: 800 3.4rem/1 var(--display); letter-spacing: -.04em; }
.plan-pro .plan-amount { color: var(--violet); }
.plan-per { font-weight: 700; color: var(--muted); }
.plan-note { margin: 6px 0 22px; min-height: 1.6em; font-size: .92rem; color: var(--muted); }
.plan-soon { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.plan-plus { margin-top: 22px; font-weight: 700; }
.plan-items { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.plan-plus + .plan-items { margin-top: 10px; }
.plan-items li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.plan-items .i { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--lime); stroke-width: 3; }
.plans-fine { margin-top: 22px; text-align: center; font-size: .88rem; color: var(--muted); }
.pricing { padding-bottom: var(--section-pad); }
.pricing-faq { margin-top: clamp(48px, 7vw, 80px); }
@media (max-width: 760px) {
    .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}

/* Public page 404s (free name, not live yet, unavailable) */
.not-found { text-align: center; }
.nf-kicker { margin-bottom: 6px; font-weight: 800; color: var(--pink); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.not-found .auth-intro a { color: var(--violet); font-weight: 700; text-decoration: underline; }
