/* Guestleaf: marketing site, resource pages and editor. */
:root {
  --bg: #f5f4f1;
  --bg-2: #ecebe6;
  --card: #fff;
  --ink: #191816;
  --ink-2: #3d3a35;
  --muted: #6f6b64;
  --line: #e3e0da;
  --brand: #2d5f52;
  --brand-ink: #234a40;
  --brand-tint: #e3ebe7;
  --warn-bg: #f8f1e4;
  --warn-line: #eadcc0;
  --danger: #a33a2c;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(45, 38, 25, .06);
  --shadow: 0 1px 2px rgba(45, 38, 25, .05), 0 12px 32px -12px rgba(45, 38, 25, .14);
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --z-header: 20;
  --z-overlay: 30;
  --z-toast: 40;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.1; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.i.sm { width: 16px; height: 16px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { 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; opacity: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: var(--z-toast); background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 0 0 20px; padding: 5px 12px 5px 10px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--brand); margin: 0 0 12px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--sans); padding: 13px 20px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 1px 2px rgba(25,24,22,.3); transition: background-color .2s, transform .12s, box-shadow .2s; }
.button:hover { background: #2c2a27; }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .55; cursor: default; transform: none; }
.button.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.button.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.button.ghost:hover { background: var(--bg); }
.button.brand { background: var(--brand); }
.button.brand:hover { background: var(--brand-ink); }
.button.block { display: flex; width: 100%; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a:not(.button) { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: background-color .2s, color .2s; }
.site-header nav a:not(.button):hover { background: var(--bg-2); color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.site-header nav .button { margin-left: 8px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; align-items: start; }
.foot-brand p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .fine { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* hero */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 45%; height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.045em; line-height: 1; margin: 0 0 22px; }
.create { display: flex; gap: 6px; margin: 32px 0 18px; background: var(--card); border-radius: 16px; padding: 6px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); max-width: 540px; transition: box-shadow .2s; }
.create:focus-within { box-shadow: var(--shadow), inset 0 0 0 1px var(--brand), 0 0 0 4px var(--brand-tint); }
.create input { flex: 1; min-width: 0; border: 0; font: 16px var(--sans); padding: 10px 12px; background: transparent; color: var(--ink); outline: none; }
.create input::placeholder { color: #9d9890; }
.assurances { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.assurances li { display: inline-flex; align-items: center; gap: 6px; }
.assurances li .i { color: var(--brand); }
.assurances a { display: inline-flex; align-items: center; gap: 4px; }
.hero-visual { display: flex; justify-content: center; }
.phone { width: 320px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 46px; background: #1b1a18; padding: 10px; box-shadow: 0 40px 80px -30px rgba(35, 30, 20, .45), 0 0 0 1px rgba(0,0,0,.2), inset 0 0 0 1.5px #3a3834; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 37px; background: var(--bg); display: block; }

/* sections */
section h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.035em; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; max-width: 32em; justify-self: end; }
.problem { padding: 96px 0; background: var(--card); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-copy p { color: var(--ink-2); font-size: 18px; max-width: 32em; margin: 20px 0 0; }
.thread { background: var(--bg); border-radius: var(--r-lg); padding: 20px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; max-width: 420px; justify-self: end; width: 100%; }
.thread-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.thread-head strong { display: block; font-weight: 600; }
.thread-head span:not(.avatar) { color: var(--muted); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 11px; background: #d9d3c7; color: #5b5448; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.msg { margin: 0; max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4; position: relative; }
.msg time { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.msg.in { background: var(--card); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.msg.out { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; margin-top: 10px; }
.msg.out time { color: rgba(255,255,255,.7); }
.msg .u { text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }

/* bento */
.features { padding: 104px 0 88px; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--card); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.tile h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; max-width: 30em; }
.t-wifi, .t-checkout { grid-column: span 3; }
.t-local, .t-poster, .t-edit { grid-column: span 2; }
.t-wifi { background: linear-gradient(160deg, var(--card) 40%, var(--brand-tint)); }
.mock { margin: auto 0 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 16px; font-size: 14px; }
.mock-wifi { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
.mock-row { display: flex; align-items: center; gap: 12px; grid-column: 1; }
.mock-row .k { display: block; color: var(--muted); font-size: 12px; }
.mock-row .v { display: block; font-weight: 500; }
.mock-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.chip-sm { margin-left: auto; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.mock-qr { grid-column: 2; grid-row: 1 / span 2; width: 104px; height: 104px; }
.mock-qr svg, .pq svg { width: 100%; height: 100%; display: block; border-radius: 6px; }
.mock-checks { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mock-checks li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); }
.mock-checks li:first-child { border-top: 0; }
.mock-checks .box { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #cfcac1; display: grid; place-items: center; flex: none; }
.mock-checks .done { color: var(--muted); text-decoration: line-through; text-decoration-color: #b9b3a9; }
.mock-checks .done .box { background: var(--brand); box-shadow: none; color: #fff; }
.mock-checks .box .i { width: 14px; height: 14px; stroke-width: 2.4; }
.mock-places { list-style: none; }
.mock-places li { display: flex; align-items: center; justify-content: space-between; padding: 9px 2px; border-top: 1px solid var(--line); }
.mock-places li:first-child { border-top: 0; }
.mock-places strong { display: block; font-weight: 500; }
.mock-places span { color: var(--muted); font-size: 13px; }
.mock-places .i { color: var(--muted); }
.mock-poster { text-align: center; padding: 18px 16px 20px; background: #fff; }
.mock-poster span { display: block; font-size: 12px; color: var(--brand); font-weight: 500; }
.mock-poster strong { display: block; font-size: 17px; letter-spacing: -.02em; margin: 2px 0 12px; }
.pq { width: 96px; height: 96px; margin: 0 auto; }
.mock-edit .diff { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mock-edit .k { color: var(--muted); margin-right: auto; }
.mock-edit .old { color: var(--muted); text-decoration: line-through; }
.mock-edit .new { font-weight: 600; background: var(--brand-tint); color: var(--brand-ink); padding: 2px 8px; border-radius: 6px; }
.mock-edit .i { color: var(--muted); }
.mock-edit .saved { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--brand); font-size: 13px; font-weight: 500; }

/* steps */
.steps-sec { padding: 24px 0 104px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.steps h3 { font-size: 20px; margin: 12px 0 8px; }
.steps p { margin: 0; color: var(--muted); }

/* pricing */
.pricing { padding: 104px 0; background: var(--card); border-block: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.price-card { background: var(--bg); border-radius: var(--r-lg); padding: 32px; box-shadow: inset 0 0 0 1px var(--line); }
.price-card h2 { font-size: 30px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 24px; }
.price .amt { font-size: 64px; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: center; }
.price-card li .i { color: var(--brand); }
.fineprint { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.compare h3 { font-size: 20px; margin: 8px 0 20px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; font-weight: 500; color: var(--muted); }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
.compare td:nth-child(2) { font-weight: 600; color: var(--brand-ink); background: color-mix(in srgb, var(--brand-tint) 55%, transparent); }
.compare td:nth-child(3) { color: var(--muted); }

/* faq */
.faq { padding: 104px 0; }
.faq h2 { margin-bottom: 40px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; margin: 0; }
.faq-grid dt { font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin-bottom: 8px; }
.faq-grid dd { margin: 0; color: var(--muted); max-width: 34em; }

/* closing CTA */
.closing { padding: 0 0 104px; }
.closing-panel { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: center; background: var(--ink); color: #f3f1ec; border-radius: 28px; padding: 48px; position: relative; overflow: hidden; }
.closing-panel::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 400px; background: radial-gradient(closest-side, rgba(120, 170, 150, .28), transparent); pointer-events: none; }
.closing-panel h2 { font-size: clamp(28px, 3.2vw, 38px); color: #fff; max-width: 16em; }
.closing-panel p { color: #bdb8ae; margin: 12px 0 0; }
.closing-panel .create { margin: 0; width: 460px; max-width: 100%; position: relative; }
.closing-panel .button { background: var(--brand); }
.closing-panel .button:hover { background: #377263; }

/* prose / articles */
.prose { padding-top: 56px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 20px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--muted); }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-family: var(--mono); font-size: 14px; }
.copyblock { position: relative; margin: 16px 0 8px; }
.copyblock pre { background: var(--card); border-radius: var(--r); padding: 22px; white-space: pre-wrap; font: 14px/1.7 var(--mono); margin: 0; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.copyblock .button { position: absolute; top: 12px; right: 12px; }
.callout { background: var(--brand-tint); border-radius: var(--r); padding: 22px 26px; margin: 36px 0; }
.callout h3 { margin-top: 0; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.guide-list a { font-weight: 500; }

/* wifi tool */
.tool { padding-top: 56px; }
.tool-intro { max-width: 720px; }
.tool h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.045em; line-height: 1.02; margin: 0 0 16px; }
.tool-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; margin: 40px 0 24px; align-items: start; }
.panel { background: var(--card); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.panel label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.panel label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.panel input:not([type=checkbox]), .panel select { width: 100%; min-width: 0; font: 15px var(--sans); padding: 11px 12px; border: 0; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.panel input:focus, .panel select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-tint); }
.sign-wrap { display: flex; justify-content: center; background: var(--bg-2); border-radius: var(--r-lg); padding: 40px 16px; }
.sign { background: #fff; color: #191816; width: 100%; max-width: 400px; border-radius: 20px; padding: 40px 32px 32px; text-align: center; box-shadow: var(--shadow); }
.sign-title { font-size: 40px; font-weight: 600; letter-spacing: -.04em; margin-bottom: 22px; }
.sign-qr { width: 216px; height: 216px; margin: 0 auto 22px; }
.sign-qr svg, .sign-qr img { width: 100%; height: 100%; display: block; }
.sign dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; max-width: 300px; margin: 0 auto; font-size: 16px; }
.sign dt { color: #77726a; }
.sign dd { margin: 0; font-weight: 500; font-family: var(--mono); word-break: break-all; }
.sign p { color: #77726a; font-size: 14px; margin: 18px 0 0; }

/* ---------------------------------------------------------------- editor */
.editor-body { background: var(--bg); }
.loading { max-width: 640px; margin: 88px auto; padding: 0 20px; display: grid; gap: 14px; }
.skeleton { height: 64px; border-radius: var(--r); background: linear-gradient(90deg, var(--bg-2), #f1efeb, var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton.tall { height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }
.editor-top { position: sticky; top: 0; z-index: var(--z-header); display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.small-logo { font-size: 16px; }
.save-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-right: auto; }
.save-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c9c3b8; }
.save-status.ok::before { background: #4a9a7f; }
.save-status.err { color: var(--danger); }
.save-status.err::before { background: var(--danger); }
.top-actions { display: flex; gap: 8px; }
.preview-toggle { display: none; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; max-width: 1140px; margin: 0 auto; padding: 28px 24px 96px; align-items: start; }
.editor-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.preview-pane { position: sticky; top: 88px; }
.preview-pane .phone { width: 340px; margin: 0 auto 12px; }
.hint { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.notice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; background: var(--card); border-radius: var(--r); padding: 18px 48px 18px 18px; box-shadow: var(--shadow), inset 0 0 0 1px var(--brand); }
.notice .mock-ic { grid-row: span 3; }
.notice strong { font-weight: 600; }
.notice p { margin: 0; font-size: 14px; color: var(--muted); }
.notice .copy-row { margin-top: 8px; }
.notice-close { position: absolute; right: 10px; top: 10px; }
.plan-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--warn-bg); border-radius: var(--r); padding: 16px 18px; flex-wrap: wrap; box-shadow: inset 0 0 0 1px var(--warn-line); }
.plan-card strong { font-weight: 600; }
.plan-card p { margin: 3px 0 0; font-size: 14px; color: #6d5e40; max-width: 36em; }
.plan-card.expired { background: #f8e9e6; box-shadow: inset 0 0 0 1px #ebcbc4; }
.plan-card.paid { background: var(--brand-tint); box-shadow: none; display: flex; justify-content: flex-start; gap: 10px; font-size: 15px; color: var(--brand-ink); }
.share-card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.share-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.share-card .lbl { display: block; font-size: 13px; color: var(--muted); }
.guest-link { font-weight: 500; word-break: break-all; font-family: var(--mono); font-size: 14px; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-card .hint { margin: 12px 0 0; }
.panel-sec { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.panel-sec > summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 18px; display: flex; flex-direction: column; position: relative; border-radius: var(--r); }
.panel-sec > summary::-webkit-details-marker { display: none; }
.panel-sec > summary .chev { position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--muted); transition: rotate .2s; }
.panel-sec[open] > summary .chev { rotate: 180deg; }
.sec-title { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.sec-desc { font-size: 14px; color: var(--muted); }
.sec-body { padding: 0 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .lbl { font-weight: 500; font-size: 14px; }
.editor-form input[type=text], .editor-form input[type=url], .editor-form input[type=email], .editor-form input:not([type]), .editor-form textarea, .editor-form select {
  font: 15px/1.5 var(--sans); padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); width: 100%; min-width: 0; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s;
}
.editor-form textarea { resize: vertical; }
.editor-form input:focus, .editor-form textarea:focus, .editor-form select:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-tint); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row-item { display: flex; gap: 8px; align-items: center; }
.row-item.two input { flex: 1; }
.card-item { border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.card-item input, .card-item textarea, .card-item select { background: var(--card) !important; }
.card-head { display: flex; gap: 8px; align-items: center; }
.card-head input { flex: 1; }
.card-head select { width: auto !important; flex: none; }
.icon-pick { width: 40px; height: 40px; flex: none; border: 0; border-radius: var(--r-sm); background: var(--card); color: var(--brand); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; cursor: pointer; transition: box-shadow .2s; }
.icon-pick:hover, .icon-pick[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--brand); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, 40px); gap: 4px; background: var(--card); border-radius: 12px; padding: 6px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.icon-grid button { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.icon-grid button:hover { background: var(--bg); }
.icon-grid button[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand); }
.item-ctl { display: flex; gap: 2px; flex: none; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.icon-btn .i { width: 16px; height: 16px; }
.icon-btn:hover:not(:disabled) { color: var(--ink); background: var(--bg-2); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.danger:hover:not(:disabled) { color: var(--danger); }
.add-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--brand); font: 500 14px var(--sans); padding: 8px 10px 8px 6px; border-radius: 8px; cursor: pointer; }
.add-btn .i { width: 16px; height: 16px; }
.add-btn:hover { background: var(--brand-tint); }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 13px var(--sans); background: var(--card); border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.chip .i { width: 15px; height: 15px; color: var(--muted); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 10px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .15s; }
.swatch:hover { transform: scale(1.06); }
.swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.cover-row { display: flex; align-items: center; gap: 12px; }
.cover-thumb { width: 144px; height: 80px; object-fit: cover; border-radius: var(--r-sm); }
.danger-zone { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; font-size: 14px; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; border-radius: 6px; }
.linkish:hover { color: var(--ink); }
.linkish.danger:hover, .linkish.armed { color: var(--danger); }
.dot { color: var(--muted); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font: 13px var(--mono); padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; transition: opacity .25s, transform .25s; z-index: var(--z-toast); max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }
.fail { max-width: 560px; margin: 0 auto; padding: 96px 20px; text-align: center; }
.fail h1 { font-size: 32px; margin-bottom: 12px; }
.fail p { color: var(--muted); }
.fail .actions { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid, .split, .pricing-grid, .section-head { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .section-head p { justify-self: start; }
  .thread { justify-self: start; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-wifi, .t-checkout { grid-column: span 2; }
  .t-local, .t-poster { grid-column: span 1; }
  .t-edit { grid-column: span 2; }
  .closing-panel { grid-template-columns: minmax(0, 1fr); padding: 36px; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-pane { display: none; }
  .preview-toggle { display: inline-flex; }
  body.show-preview .preview-pane { display: block; position: fixed; inset: 60px 0 0 0; z-index: var(--z-overlay); background: var(--bg); padding: 16px; overflow: auto; }
  body.show-preview .preview-pane .phone { height: calc(100dvh - 130px); width: auto; max-width: 380px; aspect-ratio: auto; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hide-sm { display: none; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 17px; }
  .create { flex-direction: column; }
  .create .button { width: 100%; padding: 14px; }
  .problem, .features, .pricing, .faq { padding: 64px 0; }
  .steps-sec { padding: 0 0 64px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .t-wifi, .t-checkout, .t-local, .t-poster, .t-edit { grid-column: auto; }
  .tile { padding: 22px; }
  .mock-wifi { grid-template-columns: 1fr; }
  .mock-qr { grid-column: 1; grid-row: auto; margin: 4px auto 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .closing { padding-bottom: 64px; }
  .closing-panel { padding: 28px 22px; border-radius: 22px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .editor-top { padding: 0 12px; gap: 8px; }
  .editor-top .logo span:last-child { display: none; }
  .editor-grid { padding: 16px 12px 64px; }
  .two-col { grid-template-columns: 1fr; }
  .card-head { flex-wrap: wrap; }
  .card-head input { flex-basis: calc(100% - 48px); }
  .copyblock .button { position: static; margin-bottom: 8px; }
}

/* print: the Wi-Fi tool prints only the sign */
@media print {
  .page-tool .site-header, .page-tool .site-footer, .page-tool .tool-intro, .page-tool .panel, .page-tool .prose, .page-tool .closing, .skip { display: none !important; }
  .page-tool .tool-grid { display: block; margin: 0; }
  .page-tool .sign-wrap { background: none; padding: 0; }
  .page-tool .sign { box-shadow: none; border: 2px solid #ddd; }
}

.upload { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.upload:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--brand); }
.upload:focus-within { box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-tint); }
.upload strong { display: block; font-weight: 500; font-size: 15px; }
.flash { background: var(--brand-tint); color: var(--brand-ink); padding: 12px 16px; border-radius: var(--r-sm); }
.flash.err { background: #f8e9e6; color: var(--danger); }
.recover-form label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.recover-form .create { margin: 0 0 12px; }
.login-box { padding-top: 96px; padding-bottom: 120px; }
.login-box form { margin-top: 24px; }

/* scroll reveal: only when JS is running, never for reduced-motion users */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }
.tile { transition: box-shadow .25s, transform .25s; }
.tile:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.subhead { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.subhead + .list, .subhead + .two-col { margin-top: -6px; }
.subhead .lbl { font-weight: 600; font-size: 14px; }

/* editor: merged sharing + plan card, section badges */
.status-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); overflow: hidden; }
.status-card .share-top { padding: 16px 18px; }
.share-link { min-width: 0; }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 12px 18px; background: var(--warn-bg); border-top: 1px solid var(--warn-line); font-size: 14px; }
.plan-row strong { font-weight: 600; }
.plan-row .plan-sub { color: #6d5e40; }
.plan-row.expired { background: #f8e9e6; border-top-color: #ebcbc4; }
.plan-row.expired .plan-sub { color: #7a4034; }
.plan-row.paid { justify-content: flex-start; gap: 8px; background: var(--brand-tint); border-top-color: transparent; color: var(--brand-ink); }
.sec-head { display: flex; align-items: center; gap: 10px; }
.badge { font-size: 12px; font-weight: 500; line-height: 1; padding: 4px 8px; border-radius: 6px; background: var(--bg-2); color: var(--muted); }
.badge.done { background: var(--brand-tint); color: var(--brand-ink); }
.share-link .lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.plan-row > span { flex: 1 1 260px; }
@media (max-width: 960px) {
  body.show-preview .preview-pane .phone { background: none; padding: 0; border-radius: 20px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); width: 100%; max-width: none; height: calc(100dvh - 120px); overflow: hidden; }
  body.show-preview .preview-pane .phone iframe { border-radius: 20px; }
  body.show-preview .preview-pane .hint { display: none; }
  body.show-preview .editor-grid > .editor-form { display: none; }
}
@media (max-width: 960px) {
  .tool-grid .sign-wrap { order: -1; padding: 24px 16px; }
  .tool-grid .sign { padding: 28px 22px 22px; }
  .tool-grid .sign-title { font-size: 32px; margin-bottom: 16px; }
  .tool-grid .sign-qr { width: 180px; height: 180px; }
}
.copyblock pre { font: 15px/1.7 var(--sans); color: var(--ink-2); padding: 22px 24px; }
.guide-list li { padding: 0; }
.guide-list a.guide-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; text-decoration: none; color: var(--ink); border-radius: 10px; transition: background-color .2s; }
.guide-list a.guide-row:hover { background: var(--bg-2); }
.guide-row strong { display: block; font-weight: 500; }
.guide-row small { display: block; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.guide-row .i { color: var(--muted); }
.proof { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.proof .i { color: var(--brand); }
.proof strong { font-weight: 600; color: var(--ink); }
.early-note p { color: var(--ink-2); margin: 0 0 14px; max-width: 36em; }
.early-note h3 { margin-bottom: 14px; }
.plan-row.early { background: var(--brand-tint); border-top-color: transparent; }
.plan-row.early .plan-sub { color: var(--ink-2); }
.plan-row.joined { justify-content: flex-start; gap: 8px; color: var(--brand-ink); }
.notify-form { display: flex; gap: 6px; flex: 1 1 280px; max-width: 360px; }
.notify-form input { flex: 1; min-width: 0; font: 14px var(--sans); padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.notify-form input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--card); }
.plan-err { flex-basis: 100%; color: var(--danger); font-size: 13px; }
.plan-err:empty { display: none; }

/* ---------------------------------------------------------------- owner dashboard */
.admin-body .editor-top .logo span { display: inline; }
.admin { max-width: 1180px; margin: 0 auto; padding: 24px 24px 64px; }
.admin-unlock { max-width: 420px; margin: 96px auto; }
.admin-unlock h1 { font-size: 28px; margin-bottom: 6px; }
.admin-unlock .copy-row input { font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-num { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13px; color: var(--muted); }
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox-list, .inbox-detail { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { border: 0; background: none; font: 500 14px var(--sans); color: var(--muted); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.tab.on { background: var(--bg-2); color: var(--ink); }
.tab .count { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 400; }
.msg-list { list-style: none; margin: 0; padding: 6px; max-height: 70vh; overflow: auto; }
.msg-row { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; font: 14px/1.4 var(--sans); color: var(--ink-2); }
.msg-row:hover { background: var(--bg); }
.msg-row.on { background: var(--brand-tint); }
.msg-row.unread strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 7px; vertical-align: middle; }
.msg-top { display: flex; justify-content: space-between; gap: 8px; }
.msg-top strong { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-top time { color: var(--muted); font-size: 12px; flex: none; }
.msg-subj { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-snip { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 28px 16px; text-align: center; }
.inbox-detail { padding: 22px 24px; min-height: 320px; }
.detail-head h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 4px; }
.detail-head p { margin: 0 0 16px; font-size: 14px; }
.detail-body { white-space: pre-wrap; font-size: 15px; line-height: 1.6; color: var(--ink-2); padding: 16px 0; border-block: 1px solid var(--line); max-height: 40vh; overflow: auto; }
.reply { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.reply .lbl { font-weight: 500; font-size: 14px; }
.reply textarea { font: 15px/1.5 var(--sans); padding: 12px; border: 0; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); resize: vertical; }
.reply textarea:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-tint); }
.reply-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reply-actions .spacer { flex: 1; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .admin { padding: 16px 12px 48px; }
}
