/* Guestwise — marketing site, organiser app, admin, door screen.
   Palette: midnight ink, cool paper, envelope lilac, wax-seal berry. Type: Instrument Serif + Manrope. */
:root {
  --ink: #1F2A44; --ink-2: #33415F; --paper: #F5F4F9; --card: #FFFFFF; --line: #E3E1EC;
  --lilac: #DCD6EE; --lilac-2: #EFECF8; --seal: #8C2F5A; --seal-d: #74244A;
  --moss: #2F7D5B; --amber: #A86A12; --red: #B42318; --blue: #2D5BA8; --muted: #636878;
  --wa: #1FA855; --radius: 14px; --radius-s: 9px;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 8px 24px -12px rgba(31, 42, 68, .18);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--seal); text-underline-offset: 3px; }
a:hover { color: var(--seal-d); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { background: var(--lilac-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; } .narrow-l { max-width: 820px; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.pad-xl { padding-block: 96px; } .pad-l { padding-block: 72px; } .pad-m { padding-block: 28px; } .pad-top { padding-top: 12px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .strong { font-weight: 700; } .nowrap { white-space: nowrap; }
.amber { color: var(--amber); } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.inline { display: inline; } .num { text-align: right; font-variant-numeric: tabular-nums; }

/* type */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--seal); margin-bottom: .8em; }
.eyebrow a { color: inherit; text-decoration: none; }
.display, .display-m, .display-s { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
.display em { font-style: italic; color: var(--seal); }
.display-m { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.08; }
.display-s { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; }
.lead { font-size: 1.14rem; max-width: 40em; }
.h2 { font-size: 1.5rem; } .h3 { font-size: 1.08rem; font-weight: 700; } .h4 { font-size: 1rem; font-weight: 700; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-top: 1.4em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--sans); padding: 12px 18px;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; } .btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-seal { background: var(--seal); color: #fff; } .btn-seal:hover { background: var(--seal-d); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: #C9C5D9; } .btn-line:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-wa { background: var(--wa); color: #fff; } .btn-wa:hover { background: #178a45; color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #F0C2BD; } .btn-danger:hover { background: var(--red); color: #fff; }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line); width: 100%; padding: 13px; } .btn-google:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 16px 24px; font-size: 1.02rem; } .btn-sm { padding: 9px 14px; font-size: .86rem; } .btn-xs { padding: 6px 10px; font-size: .78rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link, .link-quiet { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--seal); text-decoration: underline; text-underline-offset: 3px; }
.link-quiet { color: var(--ink); text-decoration: none; font-weight: 600; } .link-quiet:hover { color: var(--seal); }
.icon-btn { background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: .95rem; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }

/* flash & pills */
.flash { padding: 12px 16px; border-radius: var(--radius-s); margin: 14px 0; font-size: .95rem; border: 1px solid; }
.flash-ok { background: #EDF7F1; border-color: #BFE3CD; color: #1E5A3F; }
.flash-err { background: #FDF0EE; border-color: #F3C7C1; color: #8E1F14; }
.flash-note { background: var(--lilac-2); border-color: var(--lilac); color: var(--ink); }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--lilac-2); color: var(--ink); letter-spacing: .02em; vertical-align: middle; }
.pill-published { background: #E3F3EA; color: #1E5A3F; } .pill-draft { background: #FFF3DC; color: #7A4B06; } .pill-archived { background: #ECECEF; color: #555; }
.pill-plan { background: var(--ink); color: #fff; } .pill-full { background: #FDE3DF; color: var(--red); }
.resp { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.resp-yes { background: #E3F3EA; color: #1E5A3F; } .resp-no { background: #ECECEF; color: #555; } .resp-maybe { background: #FFF3DC; color: #7A4B06; }
.resp-viewed { background: #E8EEFA; color: var(--blue); } .resp-sent { background: var(--lilac-2); color: var(--ink-2); } .resp-none { background: #fff; color: var(--muted); border: 1px dashed #C9C5D9; }
.resp-changed { background: #FDEBF2; color: var(--seal); } .resp-in { background: var(--ink); color: #fff; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }
.logo-seal { width: 30px; height: 30px; } .logo-seal circle { fill: var(--seal); }

/* site header & footer */
.site-top { position: sticky; top: 0; z-index: 20; background: rgba(245, 244, 249, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-top-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; } .site-nav a:hover { color: var(--seal); }
.site-cta { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.site-foot { background: #fff; border-top: 1px solid var(--line); padding-top: 48px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 6px; }
.foot-grid nav a { color: var(--ink); text-decoration: none; font-size: .92rem; } .foot-grid nav a:hover { color: var(--seal); }
.foot-h { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0 28px; margin-top: 28px; border-top: 1px solid var(--line); }

/* hero & reply card (signature element) */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.reply-card { position: relative; background: #fff; border-radius: 6px 6px var(--radius) var(--radius); padding: 34px 30px 24px; box-shadow: 0 30px 60px -30px rgba(31, 42, 68, .45), 0 2px 6px rgba(31, 42, 68, .06);
  transform: rotate(1.2deg); border-top: 10px solid var(--lilac); }
.reply-perf { position: absolute; left: 0; right: 0; top: -10px; height: 10px;
  background: radial-gradient(circle at 7px 10px, var(--paper) 4px, transparent 4.5px) 0 0 / 14px 10px repeat-x; }
.reply-for { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.reply-name { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin: 4px 0 10px; }
.reply-seats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.reply-seats span { font-size: .78rem; font-weight: 700; background: var(--lilac-2); padding: 4px 10px; border-radius: 999px; }
.reply-list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.reply-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.tick { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #C9C5D9; flex: none; position: relative; }
.tick.on { background: var(--moss); border-color: var(--moss); }
.tick.on::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.reply-slot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--paper); border-radius: var(--radius-s); padding: 10px 12px; margin-bottom: 16px; }
.slot-left { color: var(--moss); font-weight: 700; margin-left: auto; }
.reply-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.reply-ok { color: var(--moss); font-weight: 800; }

/* bands & marketing sections */
.band { background: #fff; border-block: 1px solid var(--line); padding: 72px 0; }
.band-ink { background: var(--ink); color: #E9E8F2; border: 0; }
.band-ink h3 { color: #fff; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.versus-col { border-radius: var(--radius); padding: 26px; }
.versus-old { background: var(--paper); }
.versus-new { background: var(--lilac-2); border: 1.5px solid var(--lilac); }
.chat { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.chat li { background: #fff; border-radius: 4px 14px 14px 14px; padding: 9px 13px; width: fit-content; max-width: 100%; box-shadow: var(--shadow); font-size: .93rem; }
.chat i { color: var(--red); font-style: normal; font-weight: 600; }
.ledger { list-style: none; padding: 0; margin: 0 0 12px; background: #fff; border-radius: var(--radius-s); }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.ledger li:last-child { border-bottom: 0; } .ledger b { font-variant-numeric: tabular-nums; color: var(--moss); } .ledger b.amber { color: var(--amber); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; color: var(--seal); display: block; line-height: 1; margin-bottom: 8px; }
.steps b { display: block; font-size: 1.05rem; margin-bottom: 4px; } .steps span { color: var(--muted); font-size: .95rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 6px; }
.feature p { color: inherit; opacity: .85; margin: 0; }
.feature-light p { color: var(--muted); opacity: 1; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.type-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.type-links a { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; display: flex; justify-content: space-between; }
.type-links a::after { content: '→'; color: var(--seal); } .type-links a:hover { color: var(--seal); }
.price-teaser { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--seal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.checks { list-style: none; padding: 0; } .checks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--moss); font-weight: 800; }

/* pricing */
.cur-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 26px; }
.cur-switch a { font-size: .82rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.cur-switch a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 340px)); }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.plan-hl { border: 2px solid var(--seal); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -12px; left: 20px; background: var(--seal); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin: 0; }
.plan h2, .plan h3 { font-size: 1.1rem; margin: 0; }
.plan-price { font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; margin: 6px 0 2px; }
.plan-price span { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.plan-for { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 18px; flex: 1; }
.plan li { padding: 6px 0 6px 22px; position: relative; font-size: .93rem; border-bottom: 1px dashed var(--line); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--moss); font-weight: 800; }

/* auth */
.auth-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 48px 20px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; width: min(440px, 100%); box-shadow: var(--shadow); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* forms */
.stack { display: flex; flex-direction: column; gap: 14px; }
label, .label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
label.check { flex-direction: row; align-items: center; gap: 9px; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #D5D2E2; border-radius: var(--radius-s); padding: 10px 12px; width: 100%; min-width: 0; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--seal); flex: none; padding: 0; }
input[type=color] { width: 54px; height: 38px; padding: 3px; }
input[type=file] { border-style: dashed; background: var(--paper); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--lilac); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.row-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-gap label:not(.check) { flex: 1 1 200px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.copy-row { display: flex; gap: 8px; margin-top: 6px; } .copy-row input { font-size: .85rem; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.type-opt { flex-direction: row; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 11px 12px; font-weight: 500; cursor: pointer; background: #fff; }
.type-opt:has(input:checked) { border-color: var(--seal); background: #FBF2F6; }
.danger-zone { border-color: #F3C7C1 !important; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--paper) 30%); padding: 18px 0 14px; display: flex; gap: 10px; z-index: 5; }

/* app shell */
.app-top { background: #fff; border-bottom: 1px solid var(--line); }
.app-top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.app-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.app-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; } .app-nav a:hover, .app-nav a.on { color: var(--seal); }
.admin-top { background: var(--ink); } .admin-top .logo, .admin-top .app-nav a, .admin-top .link-quiet { color: #fff; } .admin-top .app-nav a.on { color: var(--lilac); }
.ev-head { background: #fff; border-bottom: 1px solid var(--line); padding-top: 22px; }
.ev-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ev-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 4px; }
.ev-head-actions { display: flex; gap: 8px; padding-bottom: 12px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 14px; scrollbar-width: thin; }
.tabs a { padding: 11px 14px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); } .tabs a.on { color: var(--ink); border-bottom-color: var(--seal); }
.app-main { padding-block: 26px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.empty { text-align: center; padding: 60px 20px; background: #fff; border: 1.5px dashed #CFCBE0; border-radius: var(--radius); }
.empty h2 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; }

/* dashboard */
.stat-strip { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.stat-strip-3 { grid-template-columns: 1.6fr 1fr 1fr; }
.stat { background: #fff; padding: 18px 20px; display: flex; flex-direction: column; }
.stat-main { background: var(--ink); color: #fff; } .stat-main .stat-l, .stat-main .stat-sub { color: #C9CCDA; }
.stat-n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-main .stat-n { font-size: 3.2rem; }
.stat-l { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 6px; }
.stat-sub { font-size: .8rem; margin-top: 4px; }
.progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.bar { display: block; height: 6px; background: var(--lilac-2); border-radius: 999px; overflow: hidden; flex: 1; }
.bar > span { display: block; height: 100%; width: 0; background: var(--moss); border-radius: inherit; transition: width .6s ease; }
.bar-lg { height: 10px; }
.attention { list-style: none; padding: 0; margin: 0 0 8px; }
.attention li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; }
.attention li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; border-radius: 50%; }
.dot-red::before { background: var(--red); } .dot-amber::before { background: var(--amber); } .dot-blue::before { background: var(--blue); }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.feed-time { margin-left: auto; }
.quick { display: grid; gap: 8px; }
.checklist { padding-left: 20px; } .checklist li { margin-bottom: 6px; } .checklist li.done { color: var(--moss); } .checklist li.done a { color: var(--moss); text-decoration: line-through; }
.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 18px; }
.ev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.ev-card:hover { border-color: var(--ink); box-shadow: var(--shadow); color: var(--ink); }
.ev-card h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 6px 0 0; }
.ev-card-top { display: flex; gap: 6px; }
.ev-card-nums { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); margin: 6px 0; } .ev-card-nums b { color: var(--ink); }

/* tables & lists */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: #FBFAFD; }
.table .actions { white-space: nowrap; text-align: right; } .table .actions form { margin-left: 3px; }
.row-warn td { background: #FFF8EC; }
.w-check { width: 36px; }
.plain-list { list-style: none; padding: 0; margin: 0; } .plain-list li { padding: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { font-size: .84rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-tag { border-style: dashed; }
.filters { margin-bottom: 14px; } .filters input[type=search] { max-width: 300px; } .filters select { width: auto; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; background: var(--lilac-2); border-radius: var(--radius-s); margin-bottom: 8px; }
.bulk-bar select, .bulk-bar input:not([type=checkbox]) { width: auto; padding: 7px 10px; }
.send-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.send-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.send-item:last-child { border-bottom: 0; }
.send-item.is-sent { background: #FAFAFC; }
.send-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.send-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.num-in { width: 76px; text-align: center; }
.pager { display: flex; gap: 6px; margin-top: 14px; } .pager a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink); } .pager a.on { background: var(--ink); color: #fff; }
.qr-box { width: 180px; max-width: 100%; margin: 10px 0; } .qr-box svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.thumb { max-width: 220px; border-radius: var(--radius-s); display: block; margin-bottom: 6px; }
.quote { border-left: 3px solid var(--lilac); margin: 10px 0; padding: 4px 14px; color: var(--ink-2); font-style: italic; }
.update-item { padding: 10px 0; border-bottom: 1px solid var(--line); } .update-item p { margin: 4px 0; }
.search-big { display: flex; gap: 8px; margin: 14px 0 18px; } .search-big input { font-size: 1.1rem; padding: 14px; }
.getting-started { border: 2px solid var(--seal); }

/* design editor */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.theme-opt { border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 10px; cursor: pointer; gap: 2px; font-weight: 500; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt:has(input:checked) { border-color: var(--seal); box-shadow: 0 0 0 3px #F5DCE7; }
.theme-opt:has(input:focus-visible) { outline: 3px solid var(--seal); }
.theme-sw { display: block; height: 52px; border-radius: 6px; margin-bottom: 6px; border: 1px solid rgba(0, 0, 0, .06); }
.th-songket .theme-sw { background: linear-gradient(135deg, #5A1426 60%, #B8892E 60%); }
.th-ivory .theme-sw { background: linear-gradient(135deg, #FBF7EE 60%, #9C7A3C 60%); }
.th-sage .theme-sw { background: linear-gradient(135deg, #EAF0E8 60%, #5E7D63 60%); }
.th-blush .theme-sw { background: linear-gradient(135deg, #FBEFEE 60%, #C06C7A 60%); }
.th-noir .theme-sw { background: linear-gradient(135deg, #17181C 60%, #C8A45C 60%); }
.th-festive .theme-sw { background: linear-gradient(135deg, #9E1B1B 60%, #D4A017 60%); }
.th-coastal .theme-sw { background: linear-gradient(135deg, #EAF1F6 60%, #1D3557 60%); }
.th-modern .theme-sw { background: linear-gradient(135deg, #FFFFFF 60%, #3D5AFE 60%); }
.th-confetti .theme-sw { background: linear-gradient(135deg, #FFF6E2 60%, #FF5D8F 60%); }
.sortable { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-s); }
.sortable li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.sortable li:last-child { border-bottom: 0; }
.sort-btns { display: flex; gap: 4px; }
.tr-box { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.q-list { display: grid; gap: 10px; margin-bottom: 10px; }
.q-item { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; display: grid; gap: 8px; background: #FCFBFE; }
.q-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.q-row > input, .q-row > select { flex: 1 1 180px; width: auto; }

/* door screen */
.door .app-main { max-width: 720px; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .cols, .versus { grid-template-columns: 1fr; }
  .reply-card { transform: none; max-width: 460px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-main { grid-column: 1 / -1; }
  .site-nav { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 36px 0 56px; } .pad-l { padding-block: 52px; } .band { padding: 52px 0; }
  .plans, .plans-2, .features, .steps, .grid-2, .grid-3, .foot-grid { grid-template-columns: 1fr; }
  .price-teaser { flex-direction: column; align-items: flex-start; }
  .panel { padding: 16px; } .auth-card { padding: 24px; }
  .app-nav { gap: 12px; font-size: .85rem; }
  .site-cta .link-quiet { display: none; }
  .send-actions { width: 100%; } .send-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ================================================================ mobile menu */
.mnav { display: none; position: relative; margin-left: 8px; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-icon, .mnav-icon::before, .mnav-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.mnav-icon::before, .mnav-icon::after { content: ''; position: absolute; left: 0; }
.mnav-icon::before { top: -6px; } .mnav-icon::after { top: 6px; }
.mnav[open] .mnav-icon { background: transparent; }
.mnav[open] .mnav-icon::before { transform: translateY(6px) rotate(45deg); }
.mnav[open] .mnav-icon::after { transform: translateY(-6px) rotate(-45deg); }
.mnav-panel { position: fixed; right: 14px; top: 66px; width: min(320px, calc(100vw - 28px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgba(31, 42, 68, .35); padding: 10px; display: flex; flex-direction: column; z-index: 40; }
.mnav-panel a:not(.btn) { padding: 13px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mnav-panel a:not(.btn):hover { background: var(--lilac-2); }
.mnav-panel .btn { margin-top: 8px; }

/* ================================================================ guides */
.guides-hero { padding: 56px 0 24px; }
.guide-search { margin: 22px 0 14px; max-width: 640px; }
.guide-search input { font-size: 1.05rem; padding: 15px 18px 15px 46px; border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23636878' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E") no-repeat 17px center; }
.guide-cats .chip { cursor: pointer; font: inherit; font-size: .84rem; font-weight: 600; }
.section-label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); }
.guide-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.guide-card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.guide-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin: 0; }
.guide-card p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.guide-card-lg:first-child { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.guide-card-lg:first-child h3 { font-size: 2rem; } .guide-card-lg:first-child p, .guide-card-lg:first-child .guide-meta { color: #C9CCDA; }
.guide-card-lg:first-child .guide-cat { color: var(--lilac); }
.guide-cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--seal); }
.guide-meta { font-size: .82rem; color: var(--muted); font-weight: 600; }
.guide-group { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.guide-group-head p { font-size: .95rem; }
.guide-list { display: flex; flex-direction: column; }
.guide-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guide-row:first-child { padding-top: 4px; }
.guide-row-title { font-weight: 700; font-size: 1.03rem; } .guide-row:hover .guide-row-title { color: var(--seal); }
.guide-row-meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* article */
.guide-head { padding: 40px 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--seal); }
.guide-title { max-width: 22ch; }
.guide-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 56px; padding: 24px 0 64px; }
.guide-toc { position: sticky; top: 86px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.toc-box summary { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; margin-bottom: 10px; list-style: none; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc-box li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.toc-box li a:hover, .toc-box li a.on { color: var(--seal); border-left-color: var(--seal); }
.toc-cta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.guide-body { font-size: 1.06rem; line-height: 1.75; }
.guide-body > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2rem); margin: 2em 0 .5em; scroll-margin-top: 90px; }
.guide-body > p, .guide-body > ul, .guide-body > ol { margin-bottom: 1.1em; }
.guide-body > ul, .guide-body > ol { padding-left: 1.3em; } .guide-body li { margin-bottom: .45em; }
.guide-body li::marker { color: var(--seal); }
.guide-intro { font-size: 1.22rem; line-height: 1.6; color: var(--ink-2); }
.takeaways { background: var(--lilac-2); border-radius: var(--radius); padding: 22px 26px; margin: 26px 0 8px; border-left: 4px solid var(--seal); }
.takeaways-h { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--seal); margin: 0 0 10px; font-family: var(--sans); }
.takeaways ul { margin: 0; padding-left: 1.2em; } .takeaways li { margin-bottom: .4em; }
.callout { border-radius: var(--radius-s); padding: 16px 20px; margin: 22px 0; font-size: .98rem; }
.callout b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout-tip { background: #EDF7F1; border: 1px solid #BFE3CD; } .callout-tip b { color: var(--moss); }
.callout-warn { background: #FFF6E6; border: 1px solid #F1D9A8; } .callout-warn b { color: var(--amber); }
.howto { list-style: none; counter-reset: h; padding: 0; margin: 20px 0 28px; }
.howto li { counter-increment: h; position: relative; padding: 0 0 22px 58px; margin: 0; }
.howto li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.howto li::after { content: ''; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.howto li:last-child::after { display: none; }
.howto h3 { font-size: 1.08rem; margin: 6px 0 4px; font-family: var(--sans); } .howto p { margin: 0; color: var(--ink-2); }
.guide-table { margin: 18px 0 26px; font-size: .95rem; background: #fff; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }
.guide-table th { background: var(--paper); text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--ink); }
.compare th[scope=row] { font-weight: 700; background: #fff; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); white-space: normal; }
.compare .compare-win { background: #F2FAF5; font-weight: 600; }
.compare thead .compare-win { color: var(--moss); }
.tpl { margin: 16px 0 22px; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: #fff; }
.tpl figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--paper); font-size: .85rem; font-weight: 700; }
.tpl pre { margin: 0; padding: 16px 18px; white-space: pre-wrap; word-break: break-word; font: .98rem/1.6 var(--sans); color: var(--ink); background: #fff;
  border-left: 4px solid #25D366; }
.guide-faq { margin-top: 40px; } .guide-faq h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; }
.guide-cta { margin-top: 44px; background: var(--ink); color: #E9E8F2; border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.guide-cta h2 { color: #fff; margin-bottom: 6px; } .guide-cta p { margin: 0; }
.guide-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-line.on-dark { color: #fff; border-color: rgba(255, 255, 255, .4); } .btn-line.on-dark:hover { background: #fff; color: var(--ink); }
.faq-group { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.faq-group h2 { margin-bottom: 4px; }

/* ================================================================ tables as cards on phones */
@media (max-width: 720px) {
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td, .table-cards th[scope=row] { display: block; width: 100%; }
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-cards tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 10px; position: relative; }
  .table-cards tr:hover td { background: transparent; }
  .table-cards td, .table-cards th[scope=row] { border: 0; padding: 5px 0; text-align: left; }
  .table-cards td[data-label] { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .table-cards td[data-label]::before { content: attr(data-label); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); flex: none; }
  .table-cards td[data-label=""]::before { content: none; }
  .table-cards .td-main { font-size: 1.02rem; padding-right: 36px; }
  .table-cards .td-check { position: absolute; right: 12px; top: 12px; width: auto; padding: 0; }
  .table-cards .actions { text-align: left; white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
  .table-cards .num { text-align: right; }
  .guide-table.table-cards { border: 0; background: transparent; }
  .guide-table.table-cards td:first-child { display: block; font-weight: 700; font-size: 1rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .guide-table.table-cards td:first-child::before { content: none; }
  .compare.table-cards th[scope=row] { font-size: .98rem; padding-bottom: 2px; }
  .compare.table-cards td.compare-win { background: #F2FAF5; border-radius: 6px; padding: 5px 8px; margin-top: 4px; }
}

/* ================================================================ responsive refinements */
@media (max-width: 980px) {
  .mnav { display: block; }
  .site-top-in { gap: 12px; }
  .guide-layout { grid-template-columns: 1fr; gap: 8px; }
  .guide-toc { position: static; }
  .toc-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 16px; }
  .toc-box summary { margin: 0; } .toc-box[open] summary { margin-bottom: 10px; }
  .toc-cta { display: none; }
  .guide-feature-grid { grid-template-columns: 1fr 1fr; }
  .guide-group { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; }
  .ev-head-row { align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  input, select, textarea { font-size: 16px; }            /* stops iOS zooming on focus */
  .copy-row input { font-size: 14px; }
  .btn { min-height: 44px; } .btn-xs { min-height: 34px; } .icon-btn { width: 40px; height: 40px; }
  label.check { min-height: 40px; }
  .site-top-in { height: 60px; }
  .site-cta .btn { padding: 9px 12px; }
  .display { font-size: clamp(2.3rem, 11vw, 3rem); }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .reply-card { padding: 28px 20px 20px; }
  .reply-name { font-size: 1.7rem; }
  .guides-hero { padding: 36px 0 12px; }
  .guide-feature-grid { grid-template-columns: 1fr; }
  .guide-card-lg:first-child { grid-column: auto; } .guide-card-lg:first-child h3 { font-size: 1.6rem; }
  .guide-body { font-size: 1.02rem; } .guide-intro { font-size: 1.1rem; }
  .takeaways { padding: 18px; } .guide-cta { padding: 22px; }
  .guide-cta-btns .btn { flex: 1 1 100%; }
  .howto li { padding-left: 50px; } .howto li::before { width: 34px; height: 34px; } .howto li::after { left: 16px; }
  .tpl figcaption { flex-wrap: wrap; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 9px 13px; }
  /* organiser app */
  .app-top-in { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 0; row-gap: 4px; }
  .app-nav { width: 100%; justify-content: space-between; gap: 6px; }
  .app-nav a, .app-nav .link-quiet { padding: 6px 4px; font-size: .86rem; }
  .ev-head { padding-top: 14px; }
  .ev-head-actions { width: 100%; padding-bottom: 4px; } .ev-head-actions .btn, .ev-head-actions form { flex: 1; } .ev-head-actions form .btn { width: 100%; }
  .tabs { margin: 10px -14px 0; padding: 0 14px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tabs a { padding: 12px 11px; }
  .page-head { align-items: stretch; } .page-head > .row-gap, .page-head > form, .page-head > .btn { width: 100%; }
  .page-head > .row-gap .btn { flex: 1; } .page-head > form .btn { width: 100%; }
  .filters input[type=search] { max-width: none; }
  .filters .row-gap > * { flex: 1 1 100%; }
  .bulk-bar { flex-wrap: wrap; }
  .bulk-bar select, .bulk-bar input:not([type=checkbox]) { flex: 1 1 140px; }
  .stat { padding: 14px 16px; } .stat-n { font-size: 2rem; } .stat-main .stat-n { font-size: 2.6rem; }
  .progress-row { flex-wrap: wrap; gap: 8px; } .progress-row .bar { flex: 1 1 100%; }
  .send-item { padding: 12px; } .send-actions .btn { min-width: 0; }
  .sticky-save { margin: 0 -14px; padding: 14px; background: rgba(245, 244, 249, .96); backdrop-filter: blur(6px); }
  .sticky-save .btn { flex: 1; }
  .type-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .search-big { flex-direction: column; } .search-big .btn { width: 100%; }
  .qr-box { width: 160px; }
  .ev-cards { grid-template-columns: 1fr; }
  .empty { padding: 40px 18px; }
}
@media (max-width: 400px) {
  .site-cta { display: none; }   /* the menu carries the CTA */
  .mnav { margin-left: auto; }
}
