/* Designer package v1 base: element defaults and shared .cc- classes, built on tokens.css (link it first).
   Fonts are bundled in fonts.css; no remote runtime import. */
:root { color-scheme: light; }

* { box-sizing: border-box; }

/* #850: the one page background on every surface (Josh chose option J, coffee beans). It sits on the root and
   body stays transparent, so no themed or later body rule can paint over it. */
html { background: #F8F0DF url(coffee-beans.svg?v=c-9bfbb57657bb) 0 0 / 24px 24px repeat !important; }

html body { background: transparent !important; }

body {
  margin: 0;
  color: var(--cc-ink);
  font-family: var(--cc-font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* #956: the footer is the last thing on the page. A short page still fills the screen, with the footer at the bottom
   and nothing after it. 100dvh matches the visible screen; 100vh on a phone is the large viewport and scrolls on. */
body.site,
body:has(> footer) {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
/* #909 #812: this column does not shrink (flex-shrink: 0). min-width: 0 lets the
   contents inside it wrap once the column itself is no wider than the screen. */
body.site > main,
body:has(> footer) > main {
  flex: 1 0 auto;
  min-width: 0;
}

.cc-wordmark {
  margin: 0;
  color: var(--cc-ink);
  font-family: var(--cc-font-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.cc-wordmark { font-size: clamp(2rem, 7vw, 3.4rem); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* The yellow trial card is shared by the owner setup and the public homepage. */
:where(.cc-trial-card,.ob-trial-intro,.ob-ribbon) {
  padding: 14px 16px;
  border-radius: var(--cc-radius-control);
  background: var(--sun-soft, #fbe3a6);
}

/* #852 the one panel: Josh's cream tile with the dark outline and offset shadow of the Starbucks/Costa proof tiles.
   Text never sits on the bare beans: every homepage section except the open hero, the free-trial box, the app's content
   column, the footers and the legal pages all wear it. The hero copy is a cream wash in home-hero.css, and the caption
   under the phone still wears this tile. Cards inside keep their own look. The app column and the
   footers draw it as a backdrop (::before / ::after, behind the content) so no layout moves. */
:root { --cc-panel-line: #2E1F16; --cc-panel-bg: #FFF9EF; }
.cc-panel,
.hp-caption,
main.sales > section:not(.sales-hero, .start, .pricing, .promises, .proof, .setup),
main.legal,
main#app::before,
body > footer::after,
.site-foot::after {
  border: 2px solid var(--cc-panel-line);
  border-radius: var(--cc-radius-card, 24px);
  background: var(--cc-panel-bg);
  box-shadow: 0 4px 0 var(--cc-panel-line);
}
main#app, body > footer, .site-foot { position: relative; }
main#app::before, body > footer::after, .site-foot::after { content: ''; position: absolute; z-index: -1; inset: -8px var(--cc-page-gutter) 0; pointer-events: none; }
main#app::before { inset: -8px 6px -4px; }
/* #927 (Josh 3 Dec 11:29 CET, option D "the soft wash"): the app column has no outline or drop line, just a 70% cream wash so the beans show. */
main#app::before { border-color: transparent; box-shadow: none; background: rgb(255 249 239 / .7); }
main.sales > section.cc-trial-card { background: var(--sun-soft, #fbe3a6); }
main.legal { max-width: min(var(--cc-panel-max, 100%), calc(100vw - 24px)); margin-block: 12px 28px; }
main.sales > section:not(.sales-hero, .start, .pricing, .promises, .proof, .setup) { margin-top: 28px; padding: clamp(20px, 4vw, 36px); }
.hp-caption { max-width: 30rem; margin-inline: auto; padding: 8px 14px; border-radius: 18px; }
.site-foot { margin-bottom: 20px; }
.site-head-link { background: var(--cc-panel-bg); }
.cafe-name, html[data-cafe-theme] .cafe-brand .cafe-name { background: var(--cc-panel-bg); border-radius: 10px; padding: 2px 8px; }

/* #1004: root-relative type follows browser font scale and iOS Dynamic Text. */
html { font-size: 100%; -webkit-text-size-adjust: auto; }
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
button, .btn, .show-card { white-space: normal; overflow-wrap: anywhere; height: auto; }
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
 .smart-confetti { display: none !important; }
}
