/* pickleballop.app site pages: landing + dashboard. Same palette as the app, one colour accent. */
:root {
  --bg: #0a1626; --bg-2: #0d1b2e; --card: #0f1f33; --card-2: #142842; --line: #1e3350; --line-2: #2a4260;
  --text: #eef2f7; --muted: #9fb0c3; --accent: #3fc4b8; --accent-ink: #04202a; --accent-soft: #113a3f; --warn: #f0b35a;
  --font: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; --brand: Montserrat, Inter, sans-serif;
  --radius: 16px;
  color-scheme: dark;
}
/* light theme: warm off-white, navy ink, same teal */
:root[data-theme="light"] {
  --bg: #fbf8f3; --bg-2: #f4f0e9; --card: #ffffff; --card-2: #f4f0e9; --line: #e9e3da; --line-2: #d9d1c6;
  --text: #132942; --muted: #6a7686; --accent: #2c9a9a; --accent-ink: #ffffff; --accent-soft: #e4f5f5; --warn: #a8600f;
  color-scheme: light;
}
:root[data-theme="light"] .mock, :root[data-theme="light"] .desk-mock { box-shadow: 0 24px 60px rgba(19,41,66,.18); }
:root[data-theme="light"] .btn.primary { background: #132942; color: #fff; }
:root[data-theme="light"] .wordmark .ball { color: #3fc4b8; }
:root[data-theme="light"] .shot { border-color: var(--line-2); box-shadow: 0 16px 40px rgba(19,41,66,.14); }
:root[data-theme="light"] .cardfig .shot { filter: drop-shadow(0 14px 26px rgba(19,41,66,.18)); }
:root[data-theme="light"] .tag { background: var(--accent-soft); color: var(--accent); }
:root[data-theme="light"] .toast { background: #132942; color: #fff; }
:root[data-theme="light"] .mock .live { color: #2c9a9a; }
:root[data-theme="light"] .court h4 i { color: #2c9a9a; }
.theme-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun { display: none; } .theme-btn .moon { display: block; }
:root[data-theme="light"] .theme-btn .sun { display: block; } :root[data-theme="light"] .theme-btn .moon { display: none; }
html { transition: background .2s; } body { transition: background .2s, color .2s; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; line-height: 1.5; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.wordmark { font-family: var(--brand); font-weight: 700; letter-spacing: .02em; font-size: 18px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark .wm-text { display: inline-flex; align-items: baseline; }
.wordmark .ball { display: inline-block; width: .92em; height: .92em; color: var(--accent); margin: 0 -.02em; align-self: center; overflow: visible; }
.wordmark .ball svg { overflow: visible; }
.wordmark .ball svg { width: 100%; height: 100%; display: block; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--card); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.danger { color: #ff8a80; border-color: rgba(255,138,128,.35); background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
/* hero */
.hero { padding: 56px 0 28px; display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { font-family: var(--brand); font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 40ch; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cta small { color: var(--muted); font-size: 13px; width: 100%; }
.eyebrow { font-family: var(--brand); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
/* phone mock */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45); max-width: 360px; margin-left: auto; }
.mock .bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding: 4px 6px 10px; }
.mock .live { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 10px; }
.court { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.court h4 { margin: 0 0 6px; font-family: var(--brand); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.court h4 i { color: var(--accent); font-style: normal; }
.court .t { font-weight: 600; font-size: 14px; }
.court .vs { text-align: center; color: var(--muted); font-size: 9px; letter-spacing: .2em; margin: 4px 0; }
.next { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; font-size: 13px; }
.next b { font-family: var(--brand); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--warn); display: block; margin-bottom: 4px; }
/* sections */
section { padding: 40px 0; }
section.tight { padding: 30px 0; }
.sub.short { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.feature p { font-size: 13.5px; }
.step p { font-size: 13.5px; }
.bullets li { padding: 11px 14px; font-size: 14px; }
.bullets b { display: inline; margin-right: 4px; }
h2 { font-family: var(--brand); font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.01em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
/* screenshot sections */
.shot { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.35); display: block; background: var(--card); }
.split { display: grid; gap: 28px; grid-template-columns: minmax(0, 360px) 1fr; align-items: start; }
.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.bullets li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.bullets b { color: var(--text); display: block; margin-bottom: 2px; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); align-items: start; }
.gallery.three { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 12px; }
.gallery figure .shot { box-shadow: none; border-radius: 12px; }
.gallery figcaption { color: var(--muted); font-size: 14px; line-height: 1.5; }
.gallery figcaption b { color: var(--text); display: block; margin-bottom: 2px; }
.gallery .text-card { align-self: stretch; justify-content: center; }
/* the desk: blurred, locked mock */
.desk-split { grid-template-columns: minmax(0, 340px) 1fr; }
.desk-mock { position: relative; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); max-width: 340px; min-height: 420px; overflow: hidden; }
.desk-blur { filter: blur(6px); opacity: .55; display: grid; gap: 10px; pointer-events: none; user-select: none; }
.dm-row { display: flex; gap: 8px; }
.dm-pill { height: 34px; border-radius: 10px; background: var(--card-2); display: block; }
.dm-pill.teal { background: var(--accent); }
.dm-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; position: relative; min-height: 84px; }
.dm-card.small { min-height: 54px; }
.dm-line { height: 10px; border-radius: 5px; background: var(--line-2); display: block; }
.dm-line.amber { background: var(--warn); }
.dm-btn { position: absolute; right: 12px; top: 12px; width: 46px; height: 24px; border-radius: 7px; border: 1px solid var(--line-2); }
.w20 { width: 20%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; }
.desk-lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--text); font-family: var(--brand); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.desk-lock svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* share cards gallery */
.cards-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1.3fr 1fr; align-items: start; margin-top: 18px; }
.cards-col { display: grid; gap: 14px; }
.cardfig { margin: 0; display: grid; gap: 6px; }
.cardfig .shot { border: 0; background: transparent; box-shadow: none; border-radius: 0; filter: drop-shadow(0 18px 28px rgba(0,0,0,.42)); }
.cardfig figcaption { font-family: var(--brand); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stories { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); align-items: start; margin-top: 18px; }
.story { margin: 0; display: grid; gap: 8px; }
.story .shot { border: 0; border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.45); aspect-ratio: 9 / 16; object-fit: cover; }
:root[data-theme="light"] .story .shot { box-shadow: 0 20px 44px rgba(19,41,66,.2); }
.story figcaption { font-family: var(--brand); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; }
/* pricing */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; }
.plan.pro { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.plan h3 { margin: 0; font-size: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.plan .price { font-family: var(--brand); font-size: 26px; font-weight: 700; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.tag { display: inline-block; font-family: var(--brand); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.faq { display: grid; gap: 8px; max-width: 800px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
footer { padding: 30px 0 40px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 20px; }
/* dashboard */
.dash { display: grid; gap: 18px; padding: 10px 0 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card .muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.field { display: grid; gap: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--brand); font-weight: 600; }
.field input, .field select { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); letter-spacing: 0; text-transform: none; font-family: var(--font); font-weight: 500; min-width: 0; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form { display: grid; gap: 12px; grid-template-columns: 1.4fr 1fr auto auto; align-items: end; }
.form.invite { grid-template-columns: minmax(220px, 420px) max-content; justify-content: start; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.stats b { color: var(--text); font-size: 15px; }
.links a { font-size: 13px; word-break: break-all; }
.members { display: grid; gap: 6px; margin-top: 10px; }
.member { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.member img, .member .ph { width: 28px; height: 28px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.member .who { flex: 1; min-width: 0; }
.member .who small { display: block; color: var(--muted); font-size: 12px; }
.role { font-family: var(--brand); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--card-2); color: var(--muted); }
.role.owner { color: var(--accent); background: var(--accent-soft); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #eef2f7; color: #0a1626; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 10; }
.toast.err { background: #ff8a80; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .mock { margin: 0 auto; }
  .grid, .steps, .plans, .split, .desk-split, .gallery, .gallery.three, .cards-grid { grid-template-columns: 1fr; }
  .stories { grid-template-columns: 1fr 1fr; }
  .stories .story:nth-child(3) { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .desk-mock { margin: 0 auto; width: 100%; }
  .split .shot { max-width: 360px; margin: 0 auto; }
  .form { grid-template-columns: 1fr 1fr; }
  .form.invite { grid-template-columns: 1fr; }
  .form.invite .btn { grid-column: auto; }
  .form .btn { grid-column: span 2; }
  .nav a.hide { display: none; }
}

/* dashboard: card branding */
.brandbox { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; align-items: start; }
.brand-grid .field small { letter-spacing: 0; text-transform: none; font-family: var(--font); font-weight: 500; font-size: 12px; color: var(--muted); }
.colorpick { display: flex; gap: 8px; align-items: center; }
.colorpick input[type=color] { width: 44px; height: 44px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.colorpick input[type=color]:disabled { cursor: not-allowed; opacity: .5; }
.colorpick input[data-hex] { width: 110px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: lowercase; }
.logo-row { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.logo-prev { height: 44px; max-width: 140px; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 12px 12px; padding: 4px; }
.logo-prev.empty { display: grid; place-items: center; width: 64px; color: var(--muted); font-size: 12px; letter-spacing: 0; text-transform: none; font-family: var(--font); background: var(--card-2); }
.btn.disabled { opacity: .5; pointer-events: none; }
.brand-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pv { --ink: #f7f5f2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--pc); color: var(--ink); font-size: 14px; border: 1px solid var(--line); }
.pv.light { --ink: var(--pc); background: #fff; }
.pv b { font-weight: 600; font-size: 16px; }
.pv span { color: var(--pa); font-weight: 600; }
.pv.light span { color: color-mix(in srgb, var(--pa) 70%, #000); }
.pv i { font-style: normal; font-family: var(--brand); font-weight: 800; font-size: 11px; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: color-mix(in srgb, var(--pa) 18%, transparent); color: var(--pa); }
.pv.light i { color: color-mix(in srgb, var(--pa) 70%, #000); background: color-mix(in srgb, var(--pa) 12%, transparent); }
.pv i.l { background: rgba(240,138,128,.16); color: #f08a80; }
.pv.light i.l { background: rgba(180,38,26,.10); color: #b4261a; }
.pv em { font-style: normal; font-family: var(--brand); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; width: 100%; }
@media (max-width: 720px) { .brand-grid { grid-template-columns: 1fr; } .brand-preview { grid-template-columns: 1fr; } }
