/* ==========================================================================
   Bookinea Access — store listing pages
   Shared stylesheet for index.html, support.html and privacy.html.
   All three pages live in one flat folder, so this is referenced as
   href="styles.css" from each of them.
   ========================================================================== */

:root{
  --brand:#dc80c2;          /* app primary, from apps/access preferences store */
  --brand-ink:#a84a8c;
  --brand-soft:#fdf2f9;
  --ink:#191320;
  --body:#4c4453;
  --muted:#7a7183;
  --line:#e9e3ec;
  --bg:#ffffff;
  --surface:#faf7fb;
  --ok:#1f9d63;
  --ok-soft:#e8f7ef;
  --radius:14px;
  --shadow:0 1px 2px rgba(25,19,32,.06), 0 8px 24px -12px rgba(25,19,32,.18);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--body);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:17px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{color:var(--ink);line-height:1.22;margin:0;letter-spacing:-.02em}
h1{font-size:clamp(2rem,5vw,3.1rem);font-weight:800}
h2{font-size:clamp(1.5rem,3.2vw,2.1rem);font-weight:750}
h3{font-size:1.06rem;font-weight:700;letter-spacing:-.01em}
p{margin:0}
a{color:var(--brand-ink)}

/* Layout columns: .wrap for full-width chrome, .prose for reading text. */
.wrap{max-width:1080px;margin:0 auto;padding:0 24px}
.prose{max-width:820px;margin:0 auto;padding:0 24px;line-height:1.68}
.prose.narrow{max-width:760px;line-height:1.7}
.prose h1{font-size:clamp(1.85rem,4.3vw,2.6rem)}
.prose p{margin:0 0 14px}
.prose ul,.prose ol{margin:0 0 14px;padding-left:22px}
.prose li{margin-bottom:8px}
.prose strong{color:var(--ink)}

/* ---------- header ---------- */
header{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:20}
.bar{display:flex;align-items:center;gap:16px;height:66px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:700;letter-spacing:-.02em;margin-right:auto}
.brand svg,.brand .brandmark{display:block;border-radius:7px}
.brand .brandmark{width:30px;height:30px}
.navlinks{display:flex;gap:20px;font-size:.95rem}
.navlinks a{color:var(--body);text-decoration:none;font-weight:550}
.navlinks a:hover{color:var(--brand-ink)}
@media(max-width:640px){.navlinks{display:none}}

.langs{display:flex;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:3px}
.langs button{
  border:0;background:transparent;cursor:pointer;font:inherit;font-size:.78rem;font-weight:700;
  letter-spacing:.04em;color:var(--muted);padding:4px 9px;border-radius:999px;text-transform:uppercase;
}
.langs button[aria-current="true"]{background:var(--brand);color:#fff}

/* ==========================================================================
   index.html — marketing page
   ========================================================================== */

.hero{padding:72px 0 8px}
.eyebrow{
  display:inline-block;font-size:.76rem;font-weight:750;letter-spacing:.09em;text-transform:uppercase;
  color:var(--brand-ink);background:var(--brand-soft);padding:6px 12px;border-radius:999px;margin-bottom:22px;
}
.hero p.lead{font-size:1.17rem;max-width:60ch;margin-top:20px}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
@media(max-width:900px){.hero{padding-top:48px}.hero-grid{grid-template-columns:1fr;gap:40px}}

.badges{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.badges a{display:block;line-height:0;border-radius:9px;transition:opacity .15s}
.badges a:hover{opacity:.82}

.callout{
  margin-top:28px;padding:16px 18px;border:1px solid var(--line);border-left:3px solid var(--brand);
  border-radius:0 var(--radius) var(--radius) 0;background:var(--surface);font-size:.95rem;max-width:56ch;
}
.callout strong{color:var(--ink)}

/* phone mockups */
.phones{display:flex;gap:22px;justify-content:center;align-items:flex-end;flex-wrap:wrap;padding:56px 0 8px}
.phone{
  width:222px;flex:0 0 auto;background:#221b28;border-radius:38px;padding:9px;
  box-shadow:0 24px 48px -24px rgba(25,19,32,.5),0 2px 6px rgba(25,19,32,.16);
}
/* Dark inner bezel so the screenshot doesn't touch the phone frame. */
.screen{position:relative;background:#221b28;border-radius:30px;overflow:hidden;height:404px}
/* The picture is pinned 5px inside the screen (the bezel); absolute inset gives
   it a definite box so the image fills reliably regardless of its aspect ratio. */
.screen picture{position:absolute;inset:5px;display:block}
.shot{width:100%;height:100%;object-fit:cover;display:block;border-radius:25px;background:#f6f1f7}
.notch{position:absolute;top:7px;left:50%;transform:translateX(-50%);width:64px;height:17px;background:#221b28;border-radius:999px;z-index:3}
.statusbar{height:30px;flex:0 0 auto}
.appbar{display:flex;align-items:center;gap:8px;padding:4px 14px 12px;font-size:.72rem;font-weight:700;color:var(--ink)}
.appbar .dots{margin-left:auto;color:var(--muted);letter-spacing:.1em}

.viewfinder{flex:1;position:relative;background:linear-gradient(160deg,#2c2432,#171220);display:flex;align-items:center;justify-content:center}
.frame{width:132px;height:132px;position:relative}
.frame i{position:absolute;width:30px;height:30px;border:3px solid var(--brand)}
.frame i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0;border-radius:8px 0 0 0}
.frame i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0;border-radius:0 8px 0 0}
.frame i:nth-child(3){bottom:0;left:0;border-right:0;border-top:0;border-radius:0 0 0 8px}
.frame i:nth-child(4){bottom:0;right:0;border-left:0;border-top:0;border-radius:0 0 8px 0}
.qr{position:absolute;inset:24px;display:block;width:auto;height:auto;border-radius:4px;background:#fff;padding:5px}
.vf-label{
  position:absolute;bottom:16px;left:50%;transform:translateX(-50%);white-space:nowrap;
  background:rgba(255,255,255,.14);color:#fff;font-size:.7rem;font-weight:650;padding:6px 14px;border-radius:999px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
.vf-torch{
  position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:999px;
  background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;color:#ffd76a;font-size:.8rem;
}

.result-top{flex:1;background:linear-gradient(160deg,#2c2432,#171220)}
.sheet{background:#fff;border-radius:20px 20px 0 0;padding:16px 16px 20px;box-shadow:0 -8px 24px rgba(0,0,0,.14);flex:0 0 auto}
.grabber{width:34px;height:4px;border-radius:999px;background:var(--line);margin:0 auto 14px}
.verdict{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.tick{width:28px;height:28px;border-radius:999px;background:var(--ok-soft);color:var(--ok);display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:800;flex:0 0 auto}
.verdict b{font-size:.86rem;color:var(--ok)}
.rows{display:flex;flex-direction:column;gap:7px}
.row{display:flex;justify-content:space-between;gap:10px;font-size:.68rem}
.row span:first-child{color:var(--muted)}
.row span:last-child{color:var(--ink);font-weight:650;text-align:right}
.sheet-btn{margin-top:14px;background:var(--brand);color:#fff;text-align:center;font-size:.72rem;font-weight:700;padding:9px;border-radius:10px}

.search{margin:0 14px 12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:7px 10px;font-size:.7rem;color:var(--muted)}
.list{flex:1;overflow:hidden;padding:0 14px;display:flex;flex-direction:column;gap:8px}
.item{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:11px;padding:9px 10px}
.avatar{width:26px;height:26px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:.62rem;font-weight:750;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.item .who{min-width:0;flex:1 1 auto}
.item .who b,.item .who span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item .who b{font-size:.7rem;color:var(--ink);font-weight:650}
.item .who span{font-size:.58rem;color:var(--muted)}
/* Status as a dot, not a word — a phone frame this size has no room for a label. */
.pill{margin-left:auto;width:9px;height:9px;border-radius:999px;flex:0 0 auto;font-size:0}
.pill.in{background:var(--ok)}
.pill.out{background:#d3ccd8}
.caption{text-align:center;font-size:.85rem;color:var(--muted);padding:6px 0 0}

/* content sections */
section{padding:76px 0}
section.alt{background:var(--surface);border-block:1px solid var(--line)}
.sec-head{max-width:60ch;margin-bottom:44px}
.sec-head p{margin-top:14px}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media(max-width:900px){.grid3{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.grid3{grid-template-columns:1fr}section{padding:56px 0}}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}
.card .ico{width:38px;height:38px;border-radius:11px;background:var(--brand-soft);color:var(--brand-ink);display:flex;align-items:center;justify-content:center;margin-bottom:15px}
.card h3{margin-bottom:8px}
.card p{font-size:.94rem}

.steps{counter-reset:s;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media(max-width:800px){.steps{grid-template-columns:1fr}}
.step{position:relative;padding-top:8px}
.step::before{
  counter-increment:s;content:counter(s);
  display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;
  background:var(--brand);color:#fff;font-weight:800;font-size:.95rem;margin-bottom:14px;
}
.step h3{margin-bottom:7px}
.step p{font-size:.94rem}

.specs{display:grid;grid-template-columns:repeat(2,1fr);gap:0 40px;max-width:760px}
@media(max-width:640px){.specs{grid-template-columns:1fr}}
.spec{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:.95rem}
.spec dt{color:var(--muted);margin:0}
.spec dd{margin:0;color:var(--ink);font-weight:600;text-align:right}

/* ==========================================================================
   support.html
   ========================================================================== */

.intro{padding:58px 0 40px}
.intro p{margin-top:18px;font-size:1.1rem;max-width:60ch}
.intro .updated{font-size:.87rem;color:var(--muted);margin-top:14px}

.contact{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 12px}
@media(max-width:640px){.contact{grid-template-columns:1fr}}
.ccard{
  display:block;text-decoration:none;color:inherit;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);transition:border-color .15s,transform .15s;
}
.ccard:hover{border-color:var(--brand);transform:translateY(-1px)}
.ccard .ico{width:38px;height:38px;border-radius:11px;background:var(--brand-soft);color:var(--brand-ink);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.ccard h2{font-size:1.02rem;font-weight:750;margin-bottom:5px}
.ccard .val{font-weight:700;color:var(--brand-ink);word-break:break-word}
.ccard .sub{font-size:.87rem;color:var(--muted);margin-top:5px}

.hint{
  background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--brand);
  border-radius:0 var(--radius) var(--radius) 0;padding:16px 18px;font-size:.94rem;margin-top:22px;
}
.hint strong{color:var(--ink)}
.hint ul{margin:8px 0 0;padding-left:20px}

.faq{padding:20px 0 44px}
.sec-title{
  font-size:.78rem;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);
  font-weight:750;margin:0 0 16px;padding-bottom:10px;border-bottom:1px solid var(--line);
}
details{border-bottom:1px solid var(--line)}
summary{
  cursor:pointer;list-style:none;padding:17px 34px 17px 0;position:relative;
  font-weight:650;color:var(--ink);font-size:1.01rem;line-height:1.45;
}
summary::-webkit-details-marker{display:none}
summary::after{
  content:"";position:absolute;right:6px;top:26px;width:9px;height:9px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(45deg);transform-origin:center;transition:transform .18s;
}
details[open] summary::after{transform:rotate(-135deg);top:29px}
summary:hover{color:var(--brand-ink)}
.answer{padding:0 4px 22px 0;font-size:.97rem}
.answer p+p{margin-top:12px}
.answer ol,.answer ul{margin:12px 0 0;padding-left:22px}
.answer li{margin-bottom:7px}
.answer code{
  background:var(--surface);border:1px solid var(--line);border-radius:5px;
  padding:1px 6px;font-size:.87em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink);
}
.answer strong{color:var(--ink)}

/* ==========================================================================
   privacy.html
   ========================================================================== */

/* Scoped to .narrow (privacy only) — support.html uses h2 for .sec-title and
   .ccard headings, which carry their own sizing and must not inherit these. */
.prose.narrow h2{font-size:1.24rem;font-weight:750;margin:44px 0 14px;scroll-margin-top:80px}
.prose.narrow h3{font-size:1rem;font-weight:700;margin:24px 0 8px}

.tldr{
  background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--brand);
  border-radius:0 var(--radius) var(--radius) 0;padding:20px 22px;margin:28px 0 8px;
}
/* Specificity must beat `.prose.narrow h2` above, which sets a 44px top margin. */
.prose.narrow .tldr h2{margin:0 0 10px;font-size:1.02rem}
.tldr ul{margin:0;padding-left:20px}
.tldr li{margin-bottom:6px;font-size:.95rem}

.prose table{border-collapse:collapse;width:100%;margin:0 0 16px;font-size:.93rem;display:block;overflow-x:auto}
.prose th,.prose td{text-align:left;vertical-align:top;padding:11px 14px;border-bottom:1px solid var(--line)}
.prose th{color:var(--ink);font-weight:700;white-space:nowrap}

.contactbox{border:1px solid var(--line);border-radius:var(--radius);padding:22px;background:var(--surface);margin-top:8px}
.contactbox address{font-style:normal;line-height:1.8;margin-bottom:10px}

/* ==========================================================================
   footer — shared
   ========================================================================== */

footer{border-top:1px solid var(--line);padding:44px 0 56px;font-size:.9rem;margin-top:30px}
.fgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}
@media(max-width:760px){.fgrid{grid-template-columns:1fr;gap:26px}}
footer h4{margin:0 0 12px;font-size:.76rem;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);font-weight:750}
footer address{font-style:normal;line-height:1.7}
footer ul{list-style:none;margin:0;padding:0;line-height:2}
footer a{color:var(--body);text-decoration:none}
footer a:hover{color:var(--brand-ink);text-decoration:underline}
.legal{
  margin-top:32px;padding-top:20px;border-top:1px solid var(--line);
  color:var(--muted);font-size:.82rem;display:flex;flex-wrap:wrap;gap:8px 18px;
}

/* ==========================================================================
   lakeside-demo/ — unlisted demo setup-code page
   Lives one level down, so it references this file as ../styles.css
   ========================================================================== */

.demo{padding:56px 0 24px;text-align:center}
.demo .eyebrow{margin-bottom:20px}
.demo h1{font-size:clamp(1.8rem,4.2vw,2.5rem)}
.demo .lead{margin:18px auto 0;max-width:52ch;font-size:1.08rem}

.codecard{
  margin:38px auto 0;max-width:340px;background:#fff;border:1px solid var(--line);
  border-radius:20px;padding:26px;box-shadow:var(--shadow);
}
/* Source PNG is 344px and a bit soft. Displaying it smaller than native raises
   the effective pixel density, so the modules read cleaner on screen.
   Smooth (default) interpolation on purpose — `pixelated` aliases the module
   edges when downscaling, which is exactly what breaks a QR for a camera. */
.codecard img{
  display:block;width:100%;max-width:216px;height:auto;margin:0 auto;
  border-radius:6px;
}
.codecard .cap{margin-top:18px;font-size:.88rem;color:var(--muted)}

.howto{max-width:560px;margin:44px auto 0;text-align:left}
.howto ol{margin:0;padding-left:24px}
.howto li{margin-bottom:12px}
.howto li strong{color:var(--ink)}

.notice{
  max-width:560px;margin:36px auto 0;text-align:left;background:var(--surface);
  border:1px solid var(--line);border-left:3px solid var(--brand);
  border-radius:0 var(--radius) var(--radius) 0;padding:16px 18px;font-size:.94rem;
}
.notice strong{color:var(--ink)}

.codecard .manual{
  margin-top:16px;padding-top:16px;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;
  font-size:.82rem;color:var(--muted);
}
/* Label on its own line so the 36-char UUID and the button share the next one. */
.codecard .manual > span{width:100%}
.codecard .manual code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.68rem;color:var(--ink);
  background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:5px 7px;
  white-space:nowrap;   /* never break a code someone is about to type in */
  max-width:100%;overflow-x:auto;   /* ...so on a narrow phone it scrolls, not the page */
}
@media(max-width:400px){.codecard .manual code{font-size:.62rem}}
.codecard .manual button{
  font:inherit;font-size:.78rem;font-weight:650;cursor:pointer;
  color:var(--brand-ink);background:var(--brand-soft);border:1px solid transparent;
  border-radius:999px;padding:4px 12px;transition:background .15s,color .15s;
}
.codecard .manual button:hover{background:var(--brand);color:#fff}
.codecard .manual button.ok{background:var(--ok-soft);color:var(--ok)}

/* ==========================================================================
   lakeside-demo — test ticket
   ========================================================================== */

.ticketblock{max-width:360px;margin:44px auto 0}
.ticketblock-title{font-size:1.15rem;font-weight:750;text-align:center;margin:0 0 20px}

/* Ticket card, tinted so the white perforation notches read as bites. */
.ticket{
  position:relative;background:var(--surface);border:1px solid var(--line);
  border-radius:18px;box-shadow:var(--shadow);text-align:left;
}
.ticket-top{padding:22px 22px 20px}
.ticket-badge{
  display:inline-block;font-size:.64rem;font-weight:750;letter-spacing:.1em;text-transform:uppercase;
  color:var(--brand-ink);background:var(--brand-soft);padding:4px 10px;border-radius:999px;margin-bottom:14px;
}
.ticket-event{font-size:1.2rem;font-weight:750;color:var(--ink);letter-spacing:-.01em}
.ticket-field{margin-top:14px}
.ticket-field .lbl{
  display:block;font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);font-weight:700;margin-bottom:3px;
}
.ticket-field strong{font-size:1.05rem;color:var(--ink);font-weight:700}
.ticket-field code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1rem;
  color:var(--ink);font-weight:600;letter-spacing:.04em;
}

/* Perforation: a dashed line with a round notch bitten out of each edge. */
.ticket-perf{position:relative;height:0;margin:0 20px;border-top:2px dashed var(--line)}
.ticket-perf i{
  position:absolute;top:-11px;width:22px;height:22px;border-radius:50%;
  background:var(--bg);border:1px solid var(--line);
}
.ticket-perf i:first-child{left:-31px}
.ticket-perf i:last-child{right:-31px}

.ticket-stub{padding:22px;text-align:center}
.ticket-qr{
  display:block;width:190px;max-width:70%;height:auto;margin:0 auto;
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;
}

/* Help lines under the ticket (scan in / switch to exit mode). */
.ticket-help{list-style:none;margin:22px 0 0;padding:0;text-align:left}
.ticket-help li{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px;font-size:.95rem}
.ticket-help li:last-child{margin-bottom:0}
.th-ico{
  flex:0 0 auto;width:34px;height:34px;border-radius:10px;
  background:var(--brand-soft);color:var(--brand-ink);
  display:flex;align-items:center;justify-content:center;margin-top:1px;
}
