:root {
  color-scheme: light;
  --paper: #f7f7ef;
  --card: #fffef8;
  --ink: #172619;
  --muted: #52604f;
  --line: #17261924;
  --green: #213e29;
  --lime: #dbf66b;
  --error: #9c3028;
  --ease: cubic-bezier(.22,.75,.24,1);
  --font: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
a { color: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #517750;
  outline-offset: 3px;
}
button:disabled { opacity: .55; cursor: wait; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3,strong { letter-spacing: -.045em; }
h1,h2 { line-height: .99; }
h3 { line-height: 1.1; }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-180%); z-index: 5; padding: .7rem 1rem; background: white; }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - clamp(2rem, 8vw, 9rem), 78rem); margin-inline: auto; }
.landing-nav { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: 1.5rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-size: 1.85rem; font-weight: 700; line-height: 1; letter-spacing: -.065em; white-space: nowrap; }
.brand-dot { color: #58833b; }
.brand-mark { position: relative; display: grid; grid-template: repeat(2, 1fr) / repeat(2, 1fr); place-items: center; gap: .14rem; flex: 0 0 2.05rem; width: 2.05rem; height: 2.05rem; padding: .28rem; border-radius: .48rem; color: var(--lime); background: var(--ink); }
.brand-mark i { width: .6rem; height: .6rem; border: 1.5px solid currentColor; border-radius: .13rem; position: relative; }
.brand-mark i::after { content: ""; position: absolute; width: .18rem; height: .18rem; background: currentColor; inset: 50% auto auto 50%; transform: translate(-50%,-50%); }
.brand-mark::after { content: ""; width: .42rem; height: .42rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: -.15rem; }
.landing-links, .nav-actions { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.25rem); }
.landing-links a, .nav-login, .text-link, .landing-footer > a:last-child { text-decoration: none; font-weight: 680; }
.landing-links a:hover, .nav-login:hover, .text-link:hover, .landing-footer > a:last-child:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .8rem; width: fit-content; min-height: 3.25rem; padding: .32rem 1.05rem; border: 1px solid transparent; border-radius: 5rem; text-decoration: none; font-size: .95rem; font-weight: 740; white-space: nowrap; transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); }
.button:has(.arrow) { padding-right: .35rem; }
.button:active { transform: scale(.973); }
.button:hover .arrow { transform: translate(.08rem,-.08rem); }
.button.small { min-height: 2.65rem; font-size: .86rem; }
.button.dark { color: white; background: var(--ink); }
.button.dark:hover { background: #35553a; }
.button.accent { color: var(--ink); background: var(--lime); }
.button.accent:hover { background: #edf9b4; }
.button.light { color: var(--ink); background: var(--card); border-color: var(--line); }
.button.light:hover { background: #eaf0dc; }
.arrow { display: grid; place-items: center; border-radius: 50%; width: 2.35rem; height: 2.35rem; font-size: 1.18rem; line-height: 1; background: #17261912; transition: transform .3s var(--ease); }
.dark .arrow { background: #ffffff21; }
.small .arrow { width: 1.85rem; height: 1.85rem; }
.hero { display: grid; grid-template-columns: 1.23fr 1fr; align-items: center; gap: clamp(2rem,5vw,6rem); padding-block: clamp(3rem,7.5vw,7rem) clamp(4rem,9vw,8rem); }
.hero-copy { position: relative; z-index: 1; }
.overline { display: inline-flex; align-items: center; gap: .52rem; padding: .42rem .7rem; line-height: 1; color: #374732; background: #e7eddb; border-radius: 8rem; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 780; }
.overline > span { width: .43rem; height: .43rem; border-radius: 50%; background: #5e7b47; }
.hero h1 { margin: 1.4rem 0; font-size: clamp(3.55rem, 7.3vw, 7.35rem); font-weight: 700; letter-spacing: -.078em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-copy p { max-width: 31rem; font-size: clamp(1.03rem,1.7vw,1.4rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.text-link span { display: inline-block; margin-left: .2rem; }
.section { padding-block: clamp(4rem,8vw,7.75rem); scroll-margin: 1rem; }
.section-heading { margin: 0 0 clamp(1.6rem,4vw,3.3rem); }
.section-heading h2 { margin-top: 1rem; font-size: clamp(2.6rem, 6vw, 5.8rem); letter-spacing: -.09em; }
.feature-grid { display: grid; grid-template-columns: 1.16fr 1fr .94fr; gap: .85rem; }
.framed { min-width: 0; background: #ebede1; border: 1px solid var(--line); border-radius: 1.7rem; padding: .35rem; }
.framed > div { height: 100%; border: 1px solid #ffffffb0; border-radius: 1.35rem; padding: clamp(1.3rem,3vw,2.4rem); background: var(--card); }
.feature h3,.price-plan h3 { margin: 1.35rem 0 .6rem; font-size: clamp(1.4rem,2.4vw,2rem); }
.feature p,.price-plan p { color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: .7rem; background: #e8efd5; color: #354f34; font-size: 1.45rem; }
.pricing { background: #e8eddd; }
.pricing-inner { display: grid; grid-template-columns: .9fr 1.15fr; gap: clamp(1.5rem,4vw,5rem); align-items: start; }
.price-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.price-plan > div { display: flex; flex-direction: column; align-items: flex-start; }
.price-plan h3 { margin: 0; }
.price-plan .price { margin: .75rem 0; }
.price strong { font-size: clamp(2rem,4vw,3.1rem); line-height: 1; color: var(--ink); }
.price-plan ul { margin: 1.25rem 0; padding-left: 1rem; font-size: .9rem; }
.price-plan li + li { margin-top: .4rem; }
.price-plan .button { margin-top: auto; font-size: .82rem; }
.price-plan.premium { background: #bed197; }
.price-plan.premium > div { background: #253e2b; color: #fff; border-color: #ffffff38; }
.premium p,.premium .price strong { color: #f3f9dc; }
.landing-footer { display: flex; justify-content: space-between; align-items: center; padding-block: 2.5rem; }

.reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity .8s var(--ease),transform .8s var(--ease); }
.reveal.entered { opacity: 1; transform: translateY(0); }
.app-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.25rem; }
.app-nav > a:last-child:not(.brand) { font-weight: 700; text-underline-offset: .2rem; }
.wrap-narrow { max-width: 54rem; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 1.4rem; padding-block: 2rem; font-size: .87rem; color: var(--muted); }
.legal-footer a, .footer-legal a { text-underline-offset: .2rem; }
.footer-legal { display: flex; gap: 1.35rem; font-size: .88rem; }
.auth { min-height: min(38rem,70dvh); padding-block: clamp(2.5rem,7vw,5rem); }
.auth > .framed { max-width: 32rem; }
.auth h2, .editor h2 { font-size: clamp(1.6rem,3.5vw,2.1rem); }
.auth-heading { margin-bottom: 2rem; }
.auth-heading h1,.dash-heading h1,.legal h1 { font-size: clamp(2.7rem,7vw,6.4rem); letter-spacing: -.09em; }
.auth-heading p { margin-top: .75rem; max-width: 32rem; color: var(--muted); }
.auth-heading .button { margin-top: 1.25rem; }
.auth-grid { display: grid; gap: .8rem; max-width: 32rem; }
.auth-grid.desktop { grid-template-columns: 1.08fr 1fr; max-width: none; }
.auth-grid h2 + p { margin-top: .65rem; color: var(--muted); }
.auth-switch { margin-top: 1.1rem; color: var(--muted); font-size: .9rem; }
.auth-switch a { font-weight: 680; text-underline-offset: .16rem; }
.stack { display: grid; align-items: start; gap: .9rem; }
h2 + .stack, h3 + .stack, p + .stack { margin-top: 1.1rem; }
.field { display: grid; min-width: 0; gap: .35rem; font-size: .87rem; font-weight: 700; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; padding: .66rem .83rem; min-height: 2.9rem; border: 1px solid #324c333b; border-radius: .75rem; background: #fbfcf5; color: var(--ink); font-weight: 520; }
.field textarea { resize: vertical; }
.field input::placeholder,.field textarea::placeholder { color: #697967; }
.form-grid { display: grid; grid-template-columns: 1fr 2fr; gap: .65rem; }
.form-error { color: var(--error); padding: .5rem .7rem; border-radius: .45rem; background: #ffebe6; font-size: .9rem; }
.hint { font-size: .88rem; color: var(--muted); }
.field + .hint { margin-top: .4rem; }
.plain-button { width: fit-content; min-height: 2.2rem; padding: .15rem 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2rem; cursor: pointer; font-weight: 680; font-size: .88rem; }
.plain-button:disabled { color: var(--muted); text-decoration: none; }
.danger { color: var(--error); }
.qr-card > div { background: #eef3df; }
.rotating-qr { min-height: 12rem; display: grid; place-items: center; margin-top: .85rem; }
.rotating-qr img { display: block; max-width: 100%; height: auto; border: .42rem solid white; border-radius: .8rem; box-shadow: 0 .45rem 1.1rem #223d2620; }
.rotating-qr p { text-align: center; color: var(--muted); }
.confirmation { display: grid; gap: .75rem; }
.confirmation > span { display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border-radius: 50%; background: var(--lime); font-size: 1.35rem; font-weight: 750; }
.load-state { min-height: 20rem; padding-block: 4rem; color: var(--muted); }
.dashboard { min-height: 69dvh; padding-block: 1.5rem 4rem; }
.dash-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; padding-block: 1.25rem 1.7rem; }
.dash-heading h1 { margin-top: .8rem; overflow-wrap: anywhere; }
.current-user { color: var(--muted); font-weight: 720; }
.impersonating { padding: .55rem .8rem; border-radius: .55rem; color: #1b411a; background: #e1ecce; }
.membership { display: inline-flex; align-items: center; width: fit-content; border-radius: 4rem; padding: .3rem .65rem; color: #394f33; background: #e6edda; white-space: nowrap; font-size: .75rem; font-weight: 750; }
.tabs { display: flex; align-items: center; gap: .45rem; margin-bottom: 1.5rem; padding: .4rem; border: 1px solid var(--line); border-radius: 2rem; width: fit-content; max-width: 100%; background: #edf0e4; overflow-x: auto; }
.tabs button { min-height: 2.4rem; display: block; border: 0; border-radius: 3rem; padding: .3rem .8rem; white-space: nowrap; background: transparent; font-size: .89rem; font-weight: 700; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.tabs button:hover { background: #e0e8d4; }
.tabs button[aria-pressed="true"] { color: white; background: var(--green); }
.tabs button:focus-visible { outline-offset: -2px; }
.tool-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.tool-row h2,.team-grid h3,.form-card h2,.admin-grid h2 { font-size: clamp(1.32rem,3vw,1.75rem); }
.tool-row p { margin-top: .33rem; color: var(--muted); }
.inline-info,.empty { padding: .9rem 1rem; border-radius: .8rem; background: #eef1e3; color: #41503e; }
.inline-info { margin-bottom: 1rem; }
.inline-info a { font-weight: 700; text-underline-offset: .2rem; }
.empty { padding: 2rem; display: grid; gap: .48rem; }
.empty h3 { margin-top: .6rem; font-size: 1.5rem; }
.project-search { max-width: 21rem; margin-bottom: 1rem; }
.link-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.link-card > div { display: flex; flex-direction: column; align-items: flex-start; }
.link-card h3 { margin-top: 1.15rem; font-size: 1.45rem; overflow-wrap: anywhere; }
.link-meta,.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.link-meta { align-items: start; justify-content: space-between; width: 100%; }
.link-meta .membership { margin-top: .15rem; }
.project-url { color: #345a35; text-decoration-color: #345a3570; text-underline-offset: .2rem; font-size: .93rem; font-weight: 690; overflow-wrap: anywhere; margin-top: .35rem; }
.scan-count { color: var(--muted); font-size: .87rem; margin: .75rem 0 1rem; }
.link-card .actions { margin-top: auto; }
.account-plans,.team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: .75rem; }
.account-plans { margin-bottom: 1rem; align-items: stretch; }
.account-plans h3,.account-plans .price { margin-bottom: .5rem; }
.account-plans .button,.account-plans .membership { margin-top: .75rem; }
.form-card { max-width: 45rem; }
.team-grid .hint { margin-top: .65rem; }
.members { list-style: none; padding: 0; margin: 0; }
.members li { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: .7rem 0; }
.members li + li { border-top: 1px solid var(--line); }
.members strong,.members small { display: block; overflow-wrap: anywhere; }
.members small { color: var(--muted); letter-spacing: -.015em; }
.members .membership { margin-left: auto; }
.member-avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .75rem; background: #e4ebd5; font-weight: 780; }
.editor { width: min(calc(100% - 1.3rem), 42rem); max-height: calc(100dvh - 2rem); overflow-y: auto; color: var(--ink); padding: clamp(1rem,4vw,2rem); background: var(--card); border: .38rem solid #e5ead9; border-radius: 1.5rem; box-shadow: 0 1.8rem 4rem #17261922; }
.editor::backdrop { background: #142215ac; }
.editor-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.15rem; }
.close-button { display: grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: #edf0e3; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.close-button:hover { background: #e0e8cf; }
.profile-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) auto; align-items: end; gap: .55rem; margin-block: .5rem; }
.profile-row .remove-row { margin-bottom: .2rem; }
.qr-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.35rem; }
.qr-editor form .button { white-space: normal; text-align: left; }
.qr-editor form .arrow { flex: 0 0 2.35rem; }
.export-panel { display: grid; align-content: start; justify-items: center; gap: .8rem; min-width: 0; text-align: center; }
.qr-image-frame { width: min(100%, 216px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .65rem; background: #f7f7ef; overflow: hidden; }
.qr-image-frame img { width: 100%; height: auto; display: block; }
.qr-image-frame > p { padding: .65rem; }
.qr-address-block { width: 100%; min-width: 0; padding: .6rem; border-radius: .6rem; background: #eef1e3; font-size: .82rem; }
.qr-address { display: block; margin-top: .2rem; overflow-wrap: anywhere; user-select: all; }
.export-actions { justify-content: center; }
.path-option .hint { margin-top: .35rem; }
@media (max-width: 560px) {
  .qr-editor { grid-template-columns: 1fr; }
}

.admin-grid { display: grid; align-items: start; grid-template-columns: 1.5fr 1fr; gap: .85rem; }
.admin-grid > section > h2 { margin: .45rem 0 1rem; }
.admin-accounts { display: grid; gap: .7rem; }
.admin-account h3 { font-size: 1.35rem; }
.admin-account > div { padding-block: 1rem; }
.admin-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem .85rem; }
.check { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; cursor: pointer; }
.check input { accent-color: #2a5031; width: 1.1rem; height: 1.1rem; margin: 0; }
.legal { max-width: 42rem; padding-block: clamp(2.5rem,7vw,5rem); }
.legal h2 { margin-top: 1.65rem; font-size: 1.4rem; }
.legal p { margin-top: .55rem; }
#feedback { position: fixed; z-index: 5; inset: auto 1rem 1rem auto; max-width: min(34rem,calc(100% - 2rem)); padding: .7rem 1rem; border-radius: .7rem; color: white; background: #273e29; box-shadow: 0 .7rem 2rem #17261930; }
#feedback.is-error { background: #85382f; }
@media (max-width: 950px) {
  .pricing-inner { grid-template-columns: 1fr; gap: .8rem; }
  .pricing-inner .section-heading { margin-bottom: 1.2rem; }
  .link-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 740px) {
  .landing-nav { gap: .7rem; padding-block: 1.05rem; }
  .landing-links { display: none; }
  .landing-nav .brand { font-size: 1.6rem; }
  .landing-nav .brand-mark { width: 1.8rem; height: 1.8rem; flex-basis: 1.8rem; }
  .nav-login { font-size: .88rem; }
  .landing-nav .nav-actions { gap: .65rem; }
  .hero { grid-template-columns: 1fr; gap: 2.25rem; padding-block: 3rem 4.35rem; }
  .hero h1 { font-size: clamp(3.7rem,12vw,6rem); margin-block: 1rem; }
  .feature-grid, .auth-grid.desktop, .admin-grid { grid-template-columns: 1fr; }
  .current-user { display: none; }
  .app-nav .nav-actions { flex-wrap: wrap; justify-content: end; gap: .4rem; }
  .editor { border-radius: 1.15rem; }
}
@media (max-width: 500px) {
  .price-grid, .team-grid, .account-plans, .link-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; font-size: clamp(2.56rem,11vw,4.7rem); }
  .landing-footer { gap: .55rem; }
  .footer-legal { gap: .65rem; }
  .tabs { width: 100%; border-radius: 1.05rem; }
  .tabs button { flex: 1 0 auto; font-size: .75rem; padding-inline: .5rem; }
  .profile-row { grid-template-columns: minmax(0,1fr) auto; padding: .45rem 0; }
  .profile-row .field { grid-column: 1; }
  .profile-row .remove-row { grid-column: 2; grid-row: 2; }
}
@media (max-width: 355px) {
  .landing-nav .button { padding-inline: .42rem; }
  .landing-nav .arrow { display: none; }
  .landing-footer .brand-mark { display: none; }
  .landing-footer .brand { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; animation: none !important; }
}
