/* CozyBar website — a live CozyBar preview up top, then the rest of the page. */
:root {
  --cream: #f4ecdd;
  --paper: #f3eee4;
  --paper-2: #faf6ee;
  --ink: #211e1a;
  --ink-2: #5e574d;
  --rule: #d8cfbf;
  --clay: #a1461f;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border-radius: 10px; text-decoration: none; font-family: var(--serif); font-size: 18px; line-height: 1.25; text-align: center;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-cream { background: var(--cream); color: #1f1a17; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn-cream:hover { background: #fff8ea; }
.btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244,236,221,.45); }
.btn-ghost:hover { background: rgba(244,236,221,.1); }
.btn:focus-visible, a:focus-visible, .tc-stop:focus-visible { outline: 2px solid #e8a46a; outline-offset: 3px; }

/* ---------- Live preview ---------- */
/* About 80% of the viewport; the canvas inside scales to fit (desktop.js measure()) */
.desktop { position: relative; height: 80vh; height: 80svh; min-height: 500px; overflow: hidden; background: #1b2233; isolation: isolate; }
.desktop .screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-family: var(--sans); }
.desk { pointer-events: none; }
.desk .win { pointer-events: auto; }

.wall-cozy {
  background:
    radial-gradient(70% 55% at 80% 92%, rgba(233, 142, 78, .55), transparent 62%),
    radial-gradient(55% 50% at 12% 8%, rgba(104, 84, 160, .5), transparent 60%),
    radial-gradient(40% 40% at 45% 60%, rgba(196, 96, 90, .18), transparent 70%),
    linear-gradient(180deg, #19202f 0%, #262338 50%, #3d2a33 100%);
}
.wall-cozy::after {
  content: ""; position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The copy sits on the wallpaper, under the windows, like something left on the desktop */
.copy-slot { position: absolute; inset: 24px 0 48px 0; z-index: 0; display: flex; align-items: center; padding: 0 0 0 clamp(40px, 6%, 96px); pointer-events: none; }
.desk-copy, .tour-card { max-width: 500px; color: var(--cream); font-family: var(--serif); pointer-events: auto; user-select: text; -webkit-user-select: text; }
.dc-eyebrow, .dc-hint, .tc-step { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: rgba(244,236,221,.75); }
.desk-copy h1 { margin-top: 16px; font-weight: 400; font-size: 58px; line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.dc-lede { margin-top: 18px; font-size: 19px; line-height: 1.5; color: rgba(244,236,221,.9); }
.dc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.dc-actions .btn-cream { max-width: 300px; }
.dc-hint { margin-top: 24px; display: flex; align-items: center; gap: 8px; }
.dc-hint::before { content: "↓"; display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* Narrow canvas: copy on top, windows below */
.screen.narrow .copy-slot { align-items: flex-start; padding: 48px 28px 0; }
.screen.narrow .desk-copy, .screen.narrow .tour-card { max-width: 600px; }
.screen.narrow .desk-copy h1 { font-size: 46px; }

/* ---------- Guided tour ---------- */
/* While the tour runs, its card takes the copy's place on the wallpaper */
.tour-card { display: none; }
.screen.touring .desk-copy { display: none; }
/* Float the card above the windows and flyouts so the narration stays readable */
.screen.touring .copy-slot { z-index: 95; align-items: flex-start; justify-content: flex-start; padding: 40px 0 0 40px; }
.screen.touring .tour-card {
  display: block; max-width: 390px; padding: 24px 26px 20px; border-radius: 16px;
  background: rgba(22, 20, 32, .74); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(244,236,221,.12), 0 24px 60px rgba(0,0,0,.45);
  animation: cardin .4s var(--ease);
}
.screen.narrow.touring .copy-slot { justify-content: flex-start; padding: 34px 16px 0; }
.screen.narrow.touring .tc-text { font-size: 16px; margin-top: 10px; }
.screen.narrow.touring .tour-card { max-width: none; width: 100%; }
@keyframes cardin { from { opacity: 0; transform: translateY(8px); } }
.tour-card h2 { margin-top: 12px; font-weight: 400; font-size: 40px; line-height: 1.05; letter-spacing: -.015em; }
.tc-text { margin-top: 16px; font-size: 19px; line-height: 1.5; color: rgba(244,236,221,.9); }
.tc-dots { display: flex; gap: 6px; margin-top: 24px; }
/* Each bar fills left to right while its step plays; finished steps stay full */
.tc-dots b { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--cream); }
.tc-dots i.done b { transform: none; background: rgba(244,236,221,.6); }
.tc-dots i.on b { animation: tc-fill linear forwards; }
@keyframes tc-fill { to { transform: none; } }
.tour-card.paused .tc-dots i.on b { animation-play-state: paused; }
.tc-dots i { position: relative; overflow: hidden; width: 28px; height: 4px; border-radius: 2px; background: rgba(244,236,221,.22); }
.tc-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.tc-stop { min-height: 44px; font-family: var(--mono); font-size: 13px; color: rgba(244,236,221,.8); text-decoration: underline; text-underline-offset: 3px; }
.tc-stop:hover { color: #fff; }
.tc-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244,236,221,.35); transition: background .15s, box-shadow .15s; }
.tc-icon:hover { background: rgba(244,236,221,.1); box-shadow: inset 0 0 0 1px rgba(244,236,221,.6); }
.tc-icon:focus-visible { outline: 2px solid #e8a46a; outline-offset: 3px; }
.tc-icon svg { width: 15px; height: 15px; fill: currentColor; }
.tc-actions .tc-icon + .tc-icon { margin-left: -8px; } /* the two controls sit together */
.screen.narrow .tour-card h2 { font-size: 34px; }
.tour-card h2:first-child { margin-top: 0; }

/* ---------- Placeholder content ---------- */
.paper { padding: 96px 20px 56px; }
.col { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.paper-title { font-weight: 400; font-size: 27px; line-height: 1.38; margin-bottom: -16px; }
.label { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.paper p { font-size: 19px; line-height: 1.6; }
.paper p + p { margin-top: 14px; }
.paper .big { font-size: 27px; line-height: 1.38; }
.checks { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 19px; line-height: 1.5; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-family: var(--mono); color: var(--clay); }
.feats { margin-top: 26px; display: flex; flex-direction: column; gap: 22px; }
.feats dt { font-size: 22px; font-weight: 500; line-height: 1.3; }
.feats dd { margin-top: 4px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; font-size: 19px; line-height: 1.55; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-family: var(--mono); font-size: 13px; color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.steps b { font-weight: 500; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-size: 20px; line-height: 1.4; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--mono); color: var(--clay); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }
/* "Useful information" accordion: js/accordion.js animates .acc-body's height */
.paper-title + .faq.info { margin-top: -8px; }
.faq.info .acc-body { overflow: hidden; }
.faq.info .acc-body > :first-child { padding-top: 8px; }
.faq.info .acc-body > :last-child { padding-bottom: 22px; }
.faq.info .acc-body p { padding-bottom: 0; color: var(--ink); }
.faq.info .acc-body .big { font-size: 23px; }
.faq.info .acc-body .feats { margin-top: 18px; }
.faq.info details.closing summary::after { content: "+"; }
.more-link { margin-top: 22px; }
.paper a { text-underline-offset: 3px; }
.paper a:hover { color: var(--clay); }

/* ---------- Privacy policy page ---------- */
.policy .back { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-decoration: none; }
.policy h1 { margin-top: 44px; font-size: 44px; font-weight: 500; line-height: 1.15; }
.policy .updated { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.foot { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

@media (max-width: 600px) {
  .paper { padding-top: 72px; }
  .paper .big, .paper-title { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
