/* CapyJoe site styles
   Layout concept: a sunny beach shack. Teal-painted plank walls (from the CapyJoe sign),
   light wood and cream inside, food floating on soft turquoise circles, a few hand-written notes. */
:root {
  /* color (taken from the CapyJoe logo, menu board and shop render) */
  --sand: #F6EFE3;        /* page background: light wood and plaster from the shop */
  --cream: #FFFBF3;       /* raised surfaces, logo lettering */
  --forest: #1F8F87;      /* turquoise, shaded (cards and panels) */
  --teal: #1A7F78;        /* turquoise ink: bars, buttons, text on light */
  --turq: #22A89E;        /* bright turquoise accent */
  --deep: #183532;        /* deep teal: headings, dark buttons (dark enough to read on the orange) */
  --ink: #213936;         /* body text */
  --muted: #5A6B68;       /* secondary text */
  --orange: #FD7D0F;      /* "be chill," accent, buttons */
  --orange-ink: #A84B06;  /* orange for small text on light grounds */
  --sage: #1A7F78;        /* turquoise for hand-written notes */
  --sage-soft: #DCF1EE;   /* light turquoise behind food */
  --rattan: #D9BE92;
  --line: rgba(31, 63, 60, 0.14);
  --line-on-dark: rgba(253, 247, 233, 0.18);

  /* type */
  --display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 0 rgba(10, 42, 29, 0.06), 0 12px 32px -18px rgba(10, 42, 29, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  color: var(--deep);
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--deep); color: var(--cream); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.eyebrow {
  font-family: var(--body); font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.02em; color: var(--orange-ink);
}
.hand { font-family: var(--hand); font-weight: 600; line-height: 1; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; line-height: 1.45; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--body); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  padding: 0.85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: var(--deep); }
.btn-primary:hover { background: #ff8f2e; }
.btn-dark { background: var(--deep); color: var(--cream); }
.btn-dark:hover { background: var(--teal); }
.btn-ghost-light { border-color: var(--line-on-dark); color: var(--cream); }
.btn-ghost-light:hover { border-color: var(--cream); }
.btn-ghost { border-color: var(--line); color: var(--deep); }
.btn-ghost:hover { border-color: var(--deep); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--deep); }
.brand img { width: 62px; height: 62px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.85rem; letter-spacing: -0.01em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--ink);
  padding: 0.5em 0.8em; border-radius: 999px;
}
.nav a:hover { background: rgba(10, 42, 29, 0.06); }
.nav a[aria-current="page"] { background: var(--deep); color: var(--cream); }
.nav .btn { margin-left: 0.25rem; padding: 0.7em 1.15em; }
.nav .btn:hover, .nav .btn[aria-current="page"] { background: #ff8f2e; color: var(--deep); }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 2px solid var(--line); border-radius: 999px;
  padding: 0.7rem 0.8rem; font: 700 0.95rem var(--body); color: var(--deep); cursor: pointer; gap: 0.5rem; align-items: center;
}
.menu-toggle span.bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.menu-toggle span.bars::before, .menu-toggle span.bars::after,
.menu-toggle span.bars i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
.menu-toggle span.bars::before { top: 0; } .menu-toggle span.bars i { top: 5px; } .menu-toggle span.bars::after { bottom: 0; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; margin: 0; flex-direction: column; align-items: stretch;
    background: var(--sand); border-bottom: 1px solid var(--line); padding: 0.75rem var(--gutter) 1.25rem;
    box-shadow: 0 20px 40px -20px rgba(10, 42, 29, 0.4);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: 0.85em 1em; font-size: 1.05rem; }
  .nav .btn { margin: 0.5rem 0 0; }
  .nav .nav-login { margin: 0.5rem 0 0; padding: 0.85em 1em; }
}


/* ---------- coming-soon strip ---------- */
.strip {
  background: var(--orange); color: var(--deep); font-size: var(--step--1); font-weight: 600; text-align: center;
  padding-block: 0.55rem;
}
.strip a { color: var(--deep); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; text-decoration: none; }
.strip a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  background: #1F9A90 url("../img/planks.webp") center / cover;
  color: var(--cream); position: relative; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 70, 66, 0.55), rgba(14, 70, 66, 0.15) 55%, rgba(14, 70, 66, 0) 80%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1, .hero .lede, .page-head h1, .page-head p { text-shadow: 0 2px 14px rgba(20, 40, 38, 0.35); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 5rem) 0;
}
.hero h1 { color: var(--cream); font-size: var(--step-4); font-weight: 600; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--orange); display: block; }
.hero .lede { color: rgba(255, 251, 243, 0.94); margin-top: 1.25rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: var(--step--1);
  color: var(--cream); background: rgba(31, 63, 60, 0.35);
  border: 1px solid var(--line-on-dark); border-radius: 999px; padding: 0.4rem 0.85rem; margin-bottom: 1.25rem;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(253, 125, 15, 0.25); }
.hero-copy { padding-bottom: clamp(2.5rem, 6vw, 5rem); min-width: 0; }
.hero-art { position: relative; align-self: end; display: grid; place-items: end center; min-width: 0; }
.hero-art .sun {
  position: absolute; width: min(92%, 470px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 251, 243, 0.22) 0%, rgba(255, 251, 243, 0.12) 55%, transparent 56%);
  bottom: 6%; left: 50%; transform: translateX(-50%);
}
.hero-art img.joe { position: relative; width: min(100%, 470px); filter: drop-shadow(0 26px 24px rgba(20, 40, 38, 0.4)); }
.hero-art .note {
  position: absolute; top: 4%; right: 0; color: var(--cream); font-size: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  transform: rotate(-6deg); text-align: right;
}
.hero-art .note svg { display: block; margin: 0.25rem 0 0 auto; width: 70px; height: 50px; color: var(--orange); }
.waves { display: block; width: 100%; height: 34px; color: var(--sand); }

@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 6s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
}

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-art img.joe { width: min(78%, 360px); }
  .hero-art .note { position: static; order: -1; transform: rotate(-4deg); text-align: right; margin: 0 0 -0.5rem; justify-self: end; font-size: 1.6rem; z-index: 1; }
  .hero-art { display: flex; flex-direction: column; align-items: center; }
  .hero-art .note svg { display: none; }
  .hero-art { place-items: end center; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); max-width: 42ch; }
.section-head .left { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }

/* the board: three categories on a green menu board */
.board {
  background: var(--forest); color: var(--cream);
  background-image: linear-gradient(rgba(26, 127, 120, 0.9), rgba(26, 127, 120, 0.9)), url("../img/planks.webp");
  background-size: cover; border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden;
}
.board a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0.5rem; padding: 2rem 1.75rem 2.25rem; min-width: 0; position: relative; }
.board a + a { border-left: 1px solid var(--line-on-dark); }
.board .art { height: 210px; display: flex; align-items: end; justify-content: center; gap: 0; margin-bottom: 1rem; }
.board .art img { max-height: 210px; width: auto; transition: transform 0.25s ease; }
.board .art img + img { margin-left: -42px; }
.board a:hover .art img { transform: translateY(-6px); }
.board h3 { color: var(--cream); font-size: var(--step-2); }
.board p { color: rgba(255, 251, 243, 0.92); }
.board .go { margin-top: auto; padding-top: 1rem; font-weight: 700; color: #FFD3A6; display: inline-flex; align-items: center; gap: 0.4rem; }
.board .tag { font-family: var(--body); font-size: 0.85rem; color: #F3DDB6; font-weight: 700; }
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .board a + a { border-left: 0; border-top: 1px solid var(--line-on-dark); }
  .board .art { height: 170px; } .board .art img { max-height: 170px; }
}

/* ---------- pick your way (flavor builder) ---------- */
.picker {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.flavor-list { display: flex; flex-direction: column; gap: 0.5rem; }
.flavor-list button {
  text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 16px;
  padding: 0.9rem 1.1rem; cursor: pointer; font: inherit; color: var(--ink);
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.flavor-list button strong { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--deep); }
.flavor-list button small { grid-column: 1; color: var(--muted); font-size: 0.9rem; }
.flavor-list button .arrow { grid-row: 1 / span 2; grid-column: 2; opacity: 0; transition: opacity 0.15s; color: var(--orange-ink); }
.flavor-list button:hover { border-color: var(--orange); }
.flavor-list button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); box-shadow: var(--shadow); }
.flavor-list button[aria-pressed="true"] small { color: var(--deep); }
.flavor-list button[aria-pressed="true"] .arrow { color: var(--deep); }
.flavor-list button[aria-pressed="true"] .arrow { opacity: 1; }

.stage {
  background: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.25rem; min-width: 0;
}
.formats { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; align-self: flex-start; }
.formats button {
  border: 0; background: transparent; font: 700 0.95rem var(--body); color: var(--muted);
  padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 0.4rem; align-items: center;
}
.formats button svg { width: 18px; height: 18px; }
.formats button[aria-pressed="true"] { background: var(--deep); color: var(--cream); }
.stage-img { height: clamp(220px, 30vw, 320px); display: flex; align-items: center; justify-content: center; position: relative; }
.stage-img::before {
  content: ""; position: absolute; height: 94%; aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: var(--sage-soft);
}
.stage-img img { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: opacity 0.2s ease, transform 0.25s ease; }
.stage-img img.swap { opacity: 0; transform: scale(0.96); }
.stage h3 { font-size: var(--step-2); }
.stage .mood { color: var(--orange-ink); font-family: var(--hand); font-size: 1.6rem; line-height: 1; }
.stage .salad-note { font-size: 0.9rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--sand); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.9rem; }
@media (max-width: 860px) { .picker { grid-template-columns: 1fr; } .stage { order: -1; } }

/* ---------- shop ---------- */
.shop { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.shop figure { margin: 0; position: relative; }
.shop figure img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.shop figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }
.shop .copy { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.shop .copy h2 { font-size: var(--step-3); }
.shop .copy .hand { font-size: 2.2rem; color: var(--sage); }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } }

/* ---------- three reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--deep); }
.reasons div { padding: 1.5rem 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.reasons div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.reasons h3 { font-size: var(--step-3); }
.reasons p { color: var(--muted); max-width: 32ch; }
.reasons-4 { grid-template-columns: repeat(4, 1fr); }
.reasons-4 h3 { font-size: var(--step-2); }
@media (max-width: 1000px) and (min-width: 761px) {
  .reasons-4 { grid-template-columns: repeat(2, 1fr); }
  .reasons-4 div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .reasons-4 div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.25rem; }
}
.section-head .lead { color: var(--muted); max-width: 62ch; margin-top: .5rem; }
@media (max-width: 760px) {
  .reasons { grid-template-columns: 1fr; }
  .reasons div, .reasons div + div { padding: 1.25rem 0; border-left: 0; }
  .reasons div + div { border-top: 1px solid var(--line); }
}

/* ---------- club / signup ---------- */
.club {
  background: var(--orange); color: var(--deep); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; overflow: hidden; position: relative;
}
.club .copy { padding: clamp(1.75rem, 5vw, 3.5rem); display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.club h2 { font-size: var(--step-3); color: var(--deep); }
.club p { max-width: 42ch; }
.club img { width: clamp(180px, 26vw, 320px); margin-right: clamp(0px, 3vw, 2.5rem); }
@media (max-width: 760px) { .club { grid-template-columns: 1fr; } .club img { justify-self: end; width: 200px; margin-top: -1rem; } }

form.signup { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 520px; }
form.signup input { flex: 1 1 220px; min-width: 0; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--cream); border: 2px solid transparent;
  border-radius: 14px; padding: 0.8rem 1rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--deep); }
textarea { min-height: 140px; resize: vertical; }
.form-msg { font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-msg[data-state="error"] { color: #8f1d1d; }

/* ---------- split teasers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split > a {
  text-decoration: none; color: inherit; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; flex-direction: column; gap: 0.75rem; min-height: 260px; min-width: 0; transition: transform 0.2s ease;
}
.split > a:hover { transform: translateY(-3px); }
.split h3 { font-size: var(--step-2); }
.split .go { margin-top: auto; font-weight: 700; display: inline-flex; gap: 0.4rem; align-items: center; }
.split .find { background: var(--teal); color: var(--cream); }
.split .find h3 { color: var(--cream); }
.split .franchise { background: var(--cream); border: 1px solid var(--line); }
.split .franchise .go { color: var(--orange-ink); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > a { min-height: 0; } }

/* ---------- page heads ---------- */
.page-head { background: #1F9A90 url("../img/planks.webp") center / cover; color: var(--cream); position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 70, 66, 0.55), rgba(14, 70, 66, 0.15) 55%, rgba(14, 70, 66, 0) 80%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; }
.page-head h1 { color: var(--cream); font-size: var(--step-4); }
.page-head p { color: rgba(255, 251, 243, 0.94); font-size: var(--step-1); max-width: 40ch; margin-top: 0.9rem; }
.page-head .eyebrow { color: #FFD3A6; margin-bottom: 0.9rem; display: block; }
.page-head img { width: clamp(110px, 16vw, 190px); margin-bottom: calc(-1 * clamp(2rem, 5vw, 3.5rem)); }
@media (max-width: 640px) { .page-head .wrap { grid-template-columns: 1fr; } .page-head img { display: none; } }

/* ---------- menu page ---------- */
.menu-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); z-index: 30; background: var(--sand); border-bottom: 1px solid var(--line); }
.menu-nav .wrap { display: flex; gap: 0.4rem; overflow-x: auto; padding-block: 0.7rem; scrollbar-width: none; }
.menu-nav .wrap::-webkit-scrollbar { display: none; }
.menu-nav a { flex: none; text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.menu-nav a:hover { border-color: var(--deep); }
.menu-nav a.active { background: var(--deep); color: var(--cream); border-color: var(--deep); }
.notice {
  display: flex; gap: 0.75rem; align-items: flex-start; background: var(--cream); border: 1px dashed var(--rattan);
  border-radius: 16px; padding: 0.9rem 1.1rem; font-size: 0.95rem; color: var(--muted);
}
.notice b { color: var(--deep); }
.menu-cat { scroll-margin-top: 150px; padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.menu-cat > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; border-bottom: 2px solid var(--deep); padding-bottom: 0.9rem; margin-bottom: 1.5rem; }
.menu-cat h2 { font-size: var(--step-3); }
.menu-cat header .hand { font-size: 1.7rem; color: var(--sage); }
.menu-cat .meta { width: 100%; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--muted); font-size: 0.92rem; }
.menu-cat .meta b { color: var(--deep); }
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.items.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.item {
  background: var(--cream); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0;
  border: 1px solid transparent; transition: border-color 0.15s ease;
}
.item:hover { border-color: var(--line); }
.item .pic { height: 190px; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 0.4rem; }
.item .pic::before { content: ""; position: absolute; height: 84%; aspect-ratio: 1; border-radius: 50%; background: var(--sage-soft); }
.item .pic > img { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.item .pic .pair { position: relative; display: flex; align-items: end; }
.item .pic .pair img { max-height: 170px; }
.item .pic .pair img + img { max-height: 96px; margin-left: -70px; margin-bottom: -6px; }
.item h3 { font-size: 1.4rem; }
.item .row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.item .price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--deep); white-space: nowrap; }
.item .price.tba { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.item .mood { font-family: var(--hand); font-size: 1.35rem; color: var(--orange-ink); line-height: 1.05; }
.item .ing { color: var(--muted); font-size: 0.95rem; }
.badge { display: inline-flex; align-self: flex-start; font-size: 0.8rem; font-weight: 700; color: #176f69; background: var(--sage-soft); border-radius: 999px; padding: 0.2rem 0.6rem; }
.drinks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: 2.5rem; }
.drinks li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.drinks li span:last-child { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

/* ---------- finder ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
.finder .panel { background: var(--cream); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.finder label { font-weight: 700; color: var(--deep); }
.search { position: relative; }
.search input { padding-left: 2.8rem; border-color: var(--line); }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.loc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.loc { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; background: var(--sand); }
.loc h3 { font-size: 1.3rem; }
.loc .status { font-size: 0.85rem; font-weight: 700; color: var(--orange-ink); }
.loc p { color: var(--muted); font-size: 0.95rem; }
.empty { color: var(--muted); font-size: 0.95rem; }
.mapcard {
  border-radius: var(--radius-lg); background: #1A7F78 url("../img/planks-dark.webp") center / cover; color: var(--cream); min-height: 420px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; gap: 0.5rem;
}
.mapcard svg.coast { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapcard h3 { color: var(--cream); font-size: var(--step-2); position: relative; }
.mapcard p { position: relative; color: rgba(253, 247, 233, 0.85); max-width: 38ch; }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr; } .mapcard { min-height: 300px; } }

/* ---------- generic prose / two-col ---------- */
.two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.two .side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 1rem; }
.two .side h2 { font-size: var(--step-3); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } .two .side { position: static; } }
.prose { display: flex; flex-direction: column; gap: 1.1rem; max-width: 65ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1rem; }
.prose p { color: var(--ink); }
.quote {
  font-family: var(--display); font-weight: 500; font-size: var(--step-2); line-height: 1.25; color: var(--deep);
  border-left: 4px solid var(--orange); padding-left: 1.25rem; margin: 0;
}
.quote cite { display: block; font-family: var(--body); font-style: normal; font-size: 0.95rem; color: var(--muted); margin-top: 0.75rem; }

/* cards for roles / posts */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.card { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.card h3 { font-size: 1.45rem; }
.card p { color: var(--muted); }
.card .meta { font-size: 0.85rem; font-weight: 700; color: var(--orange-ink); }

/* forms */
.form { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 700; font-size: 0.92rem; color: var(--deep); min-width: 0; }
.form input, .form select, .form textarea { background: var(--sand); border-color: transparent; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--deep); }
.form .btn { justify-self: start; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* faq */
.faq { display: flex; flex-direction: column; border-top: 2px solid var(--deep); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-size: 1.6rem; font-weight: 400; color: var(--orange-ink); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.25rem; color: var(--muted); max-width: 62ch; }

/* contact list */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-list span:first-child { font-weight: 700; color: var(--deep); }
.contact-list span:last-child { color: var(--muted); user-select: all; }

/* ---------- footer ---------- */
.site-footer { background: #17615C; color: rgba(255, 251, 243, 0.85); margin-top: clamp(3rem, 8vw, 6rem); }
.site-footer .top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding-block: 3.5rem 2.5rem; }
.site-footer .brandline { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.site-footer .brandline img { width: 84px; height: 84px; }
.site-footer .brandline .hand { font-size: 2rem; color: var(--cream); }
.site-footer .top :is(h2, h4) { color: var(--cream); font-family: var(--body); font-size: 1rem; font-weight: 700; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #FFD3A6; }
.site-footer .soon { color: #c5d9d5; }
.site-footer .bottom { border-top: 1px solid var(--line-on-dark); padding-block: 1.25rem calc(1.25rem + 64px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.85rem; }
@media (min-width: 761px) { .site-footer .bottom { padding-bottom: 1.25rem; } }
@media (max-width: 760px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .brandline { grid-column: 1 / -1; } }

/* ---------- mobile action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--teal); box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.35);
}
.actionbar .btn { flex: 1; padding: 0.8em 1em; }
@media (max-width: 760px) { .actionbar { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* inline icons inside links */
.go svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.2s ease; }
a:hover .go svg { transform: translateX(3px); }

/* sign photo */
.sign { margin: 0; }
.sign img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }

/* ---------- hero film (full-bleed looping slideshow, like a background video) ---------- */
.film { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.film img:first-child { opacity: 1; }
.hero::before { z-index: 1; background: linear-gradient(90deg, rgba(10, 64, 60, 0.86) 0%, rgba(10, 64, 60, 0.72) 38%, rgba(10, 64, 60, 0.25) 62%, rgba(10, 64, 60, 0.2) 100%); }
.hero .wrap { z-index: 2; }
.film-chip { position: absolute; right: 12px; bottom: 44px; z-index: 2; background: rgba(255, 251, 243, 0.88); color: var(--deep); font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.waves { position: relative; z-index: 2; margin-bottom: -2px; height: 36px; shape-rendering: geometricPrecision; }
.waves path { shape-rendering: crispEdges; }
.hero-art .sun { display: none; }
.hero-joe { position: relative; width: min(100%, 390px); }
.hero-joe img { width: 100%; filter: drop-shadow(0 24px 22px rgba(10, 50, 47, 0.5)); transform-origin: 50% 90%; }
@media (prefers-reduced-motion: no-preference) {
  .film img { animation: film 18s infinite; will-change: opacity; }
  .film img:nth-child(2) { animation-delay: 6s; }
  .film img:nth-child(3) { animation-delay: 12s; }
  @keyframes film {
    0% { opacity: 0; transform: scale(1.1); }
    7% { opacity: 1; }
    34% { opacity: 1; }
    40% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1); }
  }
  .film img:first-child { animation-name: film-first; }
  @keyframes film-first {
    0% { opacity: 1; transform: scale(1.1); }
    34% { opacity: 1; }
    40% { opacity: 0; transform: scale(1); }
    93% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1.1); }
  }
  .hero-joe img { animation: joe-in 1.2s cubic-bezier(.2, 1.45, .4, 1) both, joe-bob 4s ease-in-out 1.2s infinite; }
  @keyframes joe-in {
    0% { transform: translateY(60%) rotate(-16deg) scale(0.6); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: none; opacity: 1; }
  }
  @keyframes joe-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-20px) rotate(-4deg); }
    40% { transform: translateY(-4px) rotate(2.5deg); }
    60% { transform: translateY(-24px) rotate(-3deg); }
    80% { transform: translateY(-2px) rotate(2deg); }
  }
  .hero-art .note { animation: note-in 0.6s ease-out 1s both; }
  @keyframes note-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 820px) {
  .hero::before { background: linear-gradient(180deg, rgba(10, 64, 60, 0.85) 0%, rgba(10, 64, 60, 0.72) 60%, rgba(10, 64, 60, 0.45) 100%); }
  .film img { object-position: 70% 50%; }
  .hero-joe { width: min(62%, 270px); }
  .film-chip { bottom: 40px; }
}

/* ---------- Joe around the site ---------- */
.joe-music { position: relative; align-self: end; margin-right: clamp(0px, 3vw, 2.5rem); }
.joe-music img { width: clamp(170px, 22vw, 280px); transform-origin: 50% 95%; }
.joe-music .n { position: absolute; font-size: 2rem; color: var(--deep); opacity: 0; font-weight: 700; }
.joe-music .n1 { left: 6%; top: 8%; } .joe-music .n2 { left: 30%; top: -4%; color: var(--cream); } .joe-music .n3 { left: 0; top: 30%; }
.menu-cat > header { position: relative; }
.joe-peek { position: absolute; right: 0; bottom: 2px; width: clamp(90px, 11vw, 140px); transform-origin: 50% 100%; }
.menu-cat > header:has(.joe-peek) { padding-right: clamp(100px, 12vw, 150px); }
.skate-lane { position: relative; width: 100%; height: clamp(110px, 14vw, 170px); overflow-x: clip; overflow-y: visible; margin-top: -1rem; padding-top: 6px; }
.skate-lane img { position: absolute; bottom: 0; left: 0; height: 100%; width: auto; transform: translateX(-120%); }
@media (prefers-reduced-motion: no-preference) {
  .joe-music img { animation: bob 0.9s ease-in-out infinite alternate; }
  @keyframes bob { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-4px); } }
  .joe-music .n { animation: note 3s ease-out infinite; }
  .joe-music .n2 { animation-delay: 1s; } .joe-music .n3 { animation-delay: 2s; }
  @keyframes note { 0% { opacity: 0; transform: translate(0, 10px) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-30px, -60px) rotate(-20deg); } }
  .joe-peek { animation: chomp 2.4s ease-in-out infinite; }
  @keyframes chomp { 0%, 60%, 100% { transform: rotate(0) scale(1); } 70% { transform: rotate(-4deg) scale(1.04, 0.97); } 80% { transform: rotate(2deg) scale(0.98, 1.03); } 90% { transform: rotate(-2deg) scale(1.03, 0.98); } }
  .skate-lane.go img { animation: skate 9s linear infinite; }
  @keyframes skate {
    0% { transform: translateX(-120%) rotate(0); }
    45% { transform: translateX(calc(50vw - 50%)) rotate(-3deg) translateY(0); }
    50% { transform: translateX(calc(55vw - 50%)) rotate(-8deg) translateY(-18px); }
    55% { transform: translateX(calc(60vw - 50%)) rotate(2deg) translateY(0); }
    100% { transform: translateX(110vw) rotate(0); }
  }
}
@media (prefers-reduced-motion: reduce) { .skate-lane img { transform: none; left: 50%; } }
@media (max-width: 760px) { .joe-music { justify-self: end; margin-top: -1rem; } .joe-music img { width: 190px; } }

/* ---------- shop slideshow: two renders cross-fade, pause on hover ---------- */
.shop-slides .slides { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); }
.shop-slides .slides img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; opacity: 0; }
.shop-slides .slides img:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .shop-slides .slides img { animation: shopfade 12s infinite; }
  .shop-slides .slides img:nth-child(2) { animation-delay: 6s; }
  .shop-slides .slides img:first-child { animation-name: shopfade-first; }
  .shop-slides:hover .slides img { animation-play-state: paused; }
  @keyframes shopfade { 0% { opacity: 0; } 8% { opacity: 1; } 50% { opacity: 1; } 58% { opacity: 0; } 100% { opacity: 0; } }
  @keyframes shopfade-first { 0% { opacity: 1; } 50% { opacity: 1; } 58% { opacity: 0; } 92% { opacity: 0; } 100% { opacity: 1; } }
}

/* ---------- rewards ---------- */
.stampcard { background: var(--cream); border: 2px solid var(--deep); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.stampcard .hand { font-size: 2rem; color: var(--sage); margin: 0 0 0.75rem; }
.stampcard .small { font-size: 0.8rem; color: var(--muted); margin: 1rem 0 0; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.stamps li { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--turq); display: grid; place-items: center; font-weight: 700; color: var(--turq); font-size: 0.95rem; }
.stamps li.on { background: var(--turq); border-style: solid; color: var(--cream); }
.stamps li.free { background: var(--orange); border: 2px solid var(--orange); color: var(--cream); font-size: 0.85rem; }
.how { padding-left: 1.2rem; display: grid; gap: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .stampcard { transform: none; } }

.values { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .75rem; }
.values li { padding: .9rem 1.1rem; border-left: 4px solid var(--turq); background: var(--sage-soft); border-radius: 0 12px 12px 0; }
.values strong { display: block; }

/* hidden box only bots fill in */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.signup, .form { position: relative; }
.form-msg[data-state="ok"] { color: var(--deep); }

/* ---------- calm look ----------
   Turned on by "look": "calm" in src/data/site.json (the default).
   Set it to "playful" to go back to the original rounded Fredoka look. */
[data-look="calm"] { --display: "Fraunces", Georgia, "Times New Roman", serif; }
[data-look="calm"] :is(h1, h2, h3, h4, .quote, .faq summary, .flavor-list button strong, .brand span) {
  font-variation-settings: "SOFT" 50, "WONK" 0; letter-spacing: -0.02em;
}
[data-look="calm"] .hero h1, [data-look="calm"] .page-head h1 { line-height: 1.02; }
[data-look="calm"] .brand span { font-size: 1.75rem; }
[data-look="calm"] .nav a { font-weight: 500; border-radius: 0; padding-inline: 0.7em; }
[data-look="calm"] .nav a:hover { background: none; box-shadow: inset 0 -2px 0 var(--line); }
[data-look="calm"] .nav a[aria-current="page"] { background: none; color: var(--deep); box-shadow: inset 0 -2px 0 var(--orange); }
[data-look="calm"] .nav .btn, [data-look="calm"] .nav .btn:hover { border-radius: 999px; box-shadow: none; padding: 0.7em 1.15em; font-weight: 700; }
@media (max-width: 900px) {
  [data-look="calm"] .nav a, [data-look="calm"] .nav a:hover, [data-look="calm"] .nav a[aria-current="page"] { box-shadow: none; }
  [data-look="calm"] .nav a[aria-current="page"] { color: var(--orange-ink); }
}

/* rewards: merch shelf card */
.merchcard { background: var(--cream); border: 2px solid var(--deep); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.merchcard .hand { font-size: 2rem; color: var(--sage); margin: 0 0 0.75rem; }
.merchcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.merchcard li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); }
.merchcard li:last-child { border-bottom: 0; }
.merchcard li strong { color: var(--deep); }
.merchcard li span { color: var(--muted); font-size: 0.92rem; }
.merchcard .small { font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 0; }

/* picker: panini photo placeholder */
.stage-img.soon img { opacity: 0; }
.stage-img.soon::after {
  content: "Panini photo coming soon"; position: absolute; font-family: var(--hand); font-size: 1.7rem; color: var(--sage);
  text-align: center; max-width: 12ch; line-height: 1.05;
}

/* header: the horizontal logo sits straight on the cream bar */
.brand img { width: auto; height: 72px; }
@media (max-width: 900px) { .brand img { height: 56px; } }

/* Our story: who we are */
.family { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.family-sub { font-family: var(--hand); font-size: 1.9rem; color: var(--sage); margin: -0.25rem 0 1.25rem; }
.family p + p { margin-top: 1rem; }
.family-photo { margin: 0 0 1.5rem; max-width: 340px; }
.family-photo img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.family-photo figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
@media (min-width: 900px) { .family-photo { float: right; margin: 0.25rem 0 1rem 2rem; } }
.family-end { font-family: var(--hand); font-size: 2rem; color: var(--deep); margin-top: 1.5rem; }

/* Operational: private team section */
.ops-section { background: var(--sand); min-height: 60vh; }
#ops [hidden] { display: none !important; }
.ops-card { max-width: 520px; margin-inline: auto; display: grid; gap: 1rem; }
.ops-card h1, .ops-top h1 { font-size: var(--step-3); color: var(--deep); }
.ops-card .form { grid-template-columns: 1fr; }
.ops-small { font-size: var(--step--1); color: var(--muted); }
.ops-small code { font-size: 0.85em; word-break: break-all; }
#ops-setup { display: grid; gap: 0.5rem; justify-items: start; }
#ops-qr { background: #fff; border-radius: 12px; padding: 8px; }
.ops-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ops-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ops-tabs { display: grid; gap: 4px; background: var(--cream); border-radius: var(--radius); padding: 8px; position: sticky; top: 1rem; }
.ops-tabs button { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; text-align: left; font: inherit; font-weight: 600; color: var(--deep); background: transparent; border: 0; border-radius: 12px; padding: 0.65rem 0.8rem; cursor: pointer; }
.ops-tabs button:hover { background: var(--sage-soft); }
.ops-tabs button[aria-current="true"] { background: var(--deep); color: var(--cream); }
.ops-count { font-size: 0.8rem; opacity: 0.6; font-variant-numeric: tabular-nums; }
.ops-badge { font-size: 0.75rem; font-weight: 700; background: var(--orange); color: var(--deep); border-radius: 999px; padding: 0.15rem 0.55rem; white-space: nowrap; }
.ops-ok { font-size: 0.8rem; font-weight: 700; color: #176f69; }
.ops-panel { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; display: grid; gap: 1rem; align-content: start; outline: none; }
.ops-panel h2 { font-size: var(--step-2); color: var(--deep); }
.ops-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ops-panel-head p { color: var(--muted); max-width: 60ch; }
.ops-empty { color: var(--muted); padding-block: 1.5rem; }
.ops-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.ops-list button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; text-align: left; font: inherit; color: var(--ink); background: var(--sand); border: 1px solid transparent; border-radius: 14px; padding: 0.85rem 1rem; cursor: pointer; }
.ops-list button:hover { border-color: var(--line); }
.ops-list strong { color: var(--deep); }
.ops-list .ops-meta { grid-column: 1; }
.ops-list .ops-badge, .ops-list .ops-ok { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.ops-meta { font-size: var(--step--1); color: var(--muted); }
.ops-body { display: grid; gap: 0.75rem; max-width: 70ch; line-height: 1.6; }
.ops-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.ops-back { justify-self: start; font: inherit; font-weight: 600; color: #176f69; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ops-form { padding: 0; background: transparent; }
.ops-check { flex-direction: row !important; align-items: center; gap: 0.6rem !important; font-weight: 600 !important; }
.ops-check input { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .ops-layout { grid-template-columns: 1fr; }
  .ops-tabs { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .ops-tabs button { padding: 0.45rem 0.75rem; font-size: 0.9rem; background: var(--sand); }
  .ops-tabs .ops-count { display: none; }
}
body:has(#ops) .actionbar { display: none; }
.nav .nav-login { border: 1.5px solid var(--line); margin-left: 0.75rem; padding: 0.7em 1.15em; }
.nav .nav-login:hover { border-color: var(--deep); }

.ops-lang { display: flex; justify-content: flex-end; margin-bottom: 0.5rem; }
.ops-lang button { font: inherit; font-size: 0.9rem; font-weight: 700; color: #176f69; background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; cursor: pointer; }
.ops-lang button:hover { border-color: var(--deep); }
.ops-side { display: grid; gap: 0.6rem; align-content: start; position: sticky; top: 1rem; min-width: 0; }
.ops-side .ops-tabs { position: static; }
.ops-search { width: 100%; font: inherit; background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.65rem 0.8rem; color: var(--ink); }
.ops-search:focus { outline: none; border-color: var(--deep); }
.ops-tabs .ops-new { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; margin-bottom: 4px; }
@media (max-width: 760px) { .ops-side { position: static; } }

/* Franchise portal */
.pt-solo { margin-top: 0.5rem; }
.pt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.pt-head h2 { margin-top: 0.2rem; }
.pt-pill { display: inline-block; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.65rem; background: var(--sage-soft); color: var(--deep); white-space: nowrap; }
.pt-approved, .pt-executed { background: var(--deep); color: var(--cream); }
.pt-info_requested, .pt-signed { background: var(--orange); color: var(--deep); }
.pt-declined, .pt-terminated { background: #ece4d6; color: var(--muted); }
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; counter-reset: none; }
.pt-steps li { display: grid; gap: 0.25rem; justify-items: center; text-align: center; font-size: 0.72rem; color: var(--muted); min-width: 0; }
.pt-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sand); border: 1.5px solid var(--line); font-size: 0.8rem; color: var(--deep); }
.pt-steps li.done b { background: var(--deep); color: var(--cream); border-color: var(--deep); }
.pt-steps li.now b { background: var(--orange); border-color: var(--orange); }
.pt-steps li.now span { color: var(--deep); font-weight: 700; }
.pt-steps span { overflow-wrap: normal; hyphens: auto; }
.pt-card { background: var(--sand); border-radius: 16px; padding: 1rem 1.1rem; display: grid; gap: 0.7rem; min-width: 0; }
.pt-card h3 { font-size: var(--step-1); color: var(--deep); }
.pt-card h4 { font-size: 1rem; color: var(--deep); }
.pt-card summary { font-weight: 700; color: var(--deep); cursor: pointer; }
.pt-next { border: 2px solid var(--orange); background: var(--cream); }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.5rem 1.25rem; }
.pt-row { display: grid; gap: 0.1rem; min-width: 0; }
.pt-row span { font-size: 0.8rem; color: var(--muted); }
.pt-row strong { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.pt-big { font-size: var(--step-1); font-weight: 700; color: var(--deep); }
.pt-alert { background: #fff4e6; border-left: 4px solid var(--orange); padding: 0.6rem 0.8rem; border-radius: 8px; }
.pt-bar { height: 10px; background: #e9e1d2; border-radius: 999px; overflow: hidden; }
.pt-bar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.pt-band { font-weight: 700; }
.pt-band-excellent, .pt-band-good { color: #176f69; }
.pt-band-conditional { color: var(--orange-ink); }
.pt-band-low { color: #8f1d1d; }
.pt-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; }
.pt-inline input, .pt-inline select, .pt-card textarea, .pt-sign input[type=text], .pt-sign input:not([type]) { font: inherit; background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px; padding: 0.55rem 0.7rem; min-width: 0; }
.pt-inline label { display: grid; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--deep); }
.pt-card textarea { width: 100%; }
.pt-file { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--deep); }
.pt-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-tabs button { font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--deep); background: var(--sand); border: 0; border-radius: 999px; padding: 0.45rem 0.85rem; cursor: pointer; }
.pt-tabs button[aria-selected="true"] { background: var(--deep); color: var(--cream); }
.pt-tabs button[aria-selected="true"] .ops-count { color: var(--cream); }
.pt-body { display: grid; gap: 0.8rem; }
.pt-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.pt-people li { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; background: var(--cream); border-radius: 12px; padding: 0.6rem 0.8rem; }
.pt-people li > div { display: grid; min-width: 0; }
.pt-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.pt-checks li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pt-checks li.done span:first-child { color: #176f69; font-weight: 600; }
.pt-checks label { display: flex; gap: 0.5rem; align-items: center; }
.pt-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); }
.pt-sign { display: grid; gap: 0.6rem; background: var(--sand); border-radius: 12px; padding: 0.9rem; }
.pt-sign input { font: inherit; background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px; padding: 0.6rem 0.75rem; }
.pt-assess { display: grid; gap: 1rem; }
.pt-cat { border: 0; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.pt-cat legend { font-family: var(--display); font-size: var(--step-1); color: var(--deep); margin-bottom: 0.4rem; }
.pt-q { display: grid; gap: 0.45rem; }
.pt-q > p { font-weight: 600; color: var(--ink); }
.pt-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.pt-opts.pt-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pt-opts label { display: flex; gap: 0.4rem; align-items: center; background: var(--sand); border-radius: 10px; padding: 0.5rem 0.6rem; font-size: 0.86rem; cursor: pointer; min-width: 0; }
.pt-opts label:has(input:checked) { background: var(--deep); color: var(--cream); }
.pt-modules { padding-left: 1.2rem; margin: 0; display: grid; gap: 0.8rem; }
.pt-modules li { display: grid; gap: 0.3rem; justify-items: start; }
.pt-mats { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.pt-cert { text-align: center; border: 6px double var(--deep); border-radius: 18px; padding: 2.5rem 1.5rem; display: grid; gap: 0.6rem; background: var(--cream); }
.pt-cert h2 { font-size: var(--step-3); }
.pt-cert-name { font-family: var(--display); font-size: var(--step-2); color: var(--deep); }
@media (max-width: 760px) {
  .pt-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 0.6rem; }
  .pt-opts.pt-scale { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .strip, .site-footer, .actionbar, .ops-lang, .ops-top, .ops-side, .no-print { display: none !important; }
  .ops-layout { display: block; }
  .ops-panel { background: none; padding: 0; }
}

/* Franchise form: broker option */
.fr-who { border: 0; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.fr-who legend { font-weight: 700; font-size: 0.92rem; color: var(--deep); margin-bottom: 0.3rem; }
.fr-who label { flex-direction: row !important; align-items: center; gap: 0.5rem !important; font-weight: 600 !important; }
.fr-broker { display: grid; gap: 0.6rem; }
.fr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fr-note { font-weight: 700; color: var(--orange-ink); font-size: 0.9rem; }
@media (max-width: 640px) { .fr-grid { grid-template-columns: 1fr; } }
.pt-card .form input, .pt-card .form select, .pt-card .form textarea { background: var(--cream); border: 1.5px solid var(--line); }
.pt-card .form input:focus, .pt-card .form select:focus, .pt-card .form textarea:focus { border-color: var(--deep); }
@media (max-width: 760px) {
  .pt-opts.pt-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .pt-opts.pt-scale label { flex-direction: column; justify-content: center; text-align: center; font-size: 0.68rem; padding: 0.4rem 0.2rem; gap: 0.25rem; line-height: 1.15; }
  .pt-opts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) { .pt-steps li { font-size: 0.62rem; } }
.fr-broker[hidden] { display: none; }

/* ---------- Oct 29 glitch fixes ---------- */
/* radio buttons and checkboxes were stretched by the general input style */
input[type="radio"], input[type="checkbox"] { width: auto; flex: none; padding: 0; margin: 0; border-radius: 0; background: none; accent-color: var(--deep); inline-size: 1.15rem; block-size: 1.15rem; }
/* HQ lists: the status pill stays a small pill (it grew into a big blob on phones) */
.ops-list .pt-pill { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; }
@media (max-width: 560px) { .ops-list button { grid-template-columns: minmax(0, 1fr); } .ops-list .pt-pill { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.25rem; } }
/* small links get a finger-sized tap area on phones */
.strip a, .site-footer .bottom a { display: inline-block; padding-block: 0.35rem; }
.ops-back { min-height: 32px; }
/* phone menu: the button turns into an X while open */
.menu-toggle span.bars::before, .menu-toggle span.bars::after, .menu-toggle span.bars i { transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease; }
.menu-toggle[aria-expanded="true"] span.bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span.bars::after { bottom: 5px; transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] span.bars i { opacity: 0; }
@media (max-width: 760px) {
  /* a field you tab or tap into is never hidden behind the bottom bar */
  html { scroll-padding-bottom: 90px; }
  /* while typing (phone keyboard up) the bottom bar steps aside */
  body:has(main input:focus, main select:focus, main textarea:focus) .actionbar { display: none; }
}
/* assessment 1 to 5 scale on the smallest phones: words fit inside their boxes */
@media (max-width: 380px) {
  .pt-opts.pt-scale { gap: 3px; }
  .pt-opts.pt-scale label { font-size: 0.6rem; padding: 0.4rem 0.05rem; letter-spacing: -0.01em; }
}

/* CapyJoe email line (franchise, careers) */
.mail-line { margin-top: 1rem; color: var(--muted); }
.mail-line a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

/* phones: lighter wood planks (26 KB instead of 111 KB). Same look under the color wash. */
@media (max-width: 760px) {
  .hero, .page-head { background-image: url("../img/planks-sm.webp"); }
  .board { background-image: linear-gradient(rgba(26, 127, 120, 0.9), rgba(26, 127, 120, 0.9)), url("../img/planks-sm.webp"); }
  .mapcard { background-image: url("../img/planks-dark-sm.webp"); }
}

/* Operational > Team and access (HQ admins) */
.pt-team { gap: 0.6rem; }
.pt-team summary { list-style: none; }
.pt-team summary::-webkit-details-marker { display: none; }
.pt-team-head { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; align-items: center; justify-content: space-between; }
.pt-team-head > div { display: grid; min-width: 0; }
.pt-team-head .ops-meta { overflow-wrap: anywhere; }
.pt-team-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pt-pill.pt-off { background: var(--line); color: var(--deep); }
.pt-dim > summary strong, .pt-dim .pt-team-head strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.pt-team-list { display: grid; gap: 0.6rem; }
.pt-team-people { gap: 0.6rem; }
.pt-team-people li { display: grid; }
.pt-team-line { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; }
.pt-team-line .pt-team-head { flex: 1 1 14rem; }
.pt-check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.92rem; color: var(--deep); }
.pt-team .pt-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; }
.pt-team .form-msg:empty, .pt-team-people .form-msg:empty { display: none; }
.pt-team-people li { gap: 0.4rem; }
.pt-codes { font: 600 1.05rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; background: var(--cream); border: 1.5px dashed var(--line); border-radius: 12px; padding: 0.8rem 1rem; margin: 0; user-select: all; overflow-x: auto; }
@media print { body * { visibility: hidden; } .pt-codes, .pt-codes * { visibility: visible; } .pt-codes { position: absolute; left: 0; top: 0; } }

/* passkeys list */
.pt-pk { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.pt-pk > div { min-width: 0; } .pt-pk .pt-pill { margin-left: 0.5rem; } .pt-pk p { margin: 0.15rem 0 0; }
.pt-pk-add { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.4rem; } .pt-pk-add input { flex: 1 1 14rem; min-width: 0; }

/* login: one friendly card, steps, masked code */
body:has(#ops [data-view=login]:not([hidden])) .ops-section, body:has(#ops [data-view=code]:not([hidden])) .ops-section {
  background: radial-gradient(70% 55% at 50% 0%, var(--sage-soft) 0%, rgba(220, 241, 238, 0) 70%), var(--sand);
}
.lg-card { max-width: 440px; width: 100%; background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 4.1rem clamp(1.25rem, 5vw, 2.25rem) 1.75rem; margin-top: 3.4rem; position: relative; text-align: center; gap: 0.9rem; justify-items: stretch; }
.lg-joe { position: absolute; left: 50%; top: -3.3rem; transform: translateX(-50%); width: 104px; height: auto; pointer-events: none; }
.lg-card h1 { font-size: var(--step-2); }
.lg-lede, .lg-sent { color: var(--muted); font-size: var(--step-0); max-width: 34ch; margin-inline: auto; }
.lg-sent { max-width: 38ch; }
.lg-card .form { background: none; padding: 0; text-align: left; }
.lg-card .form input { background: var(--sand); border: 1.5px solid transparent; }
.lg-card .form input:focus { border-color: var(--deep); background: #fff; }
.lg-card .form .btn { justify-self: stretch; text-align: center; }
.lg-card > .btn { justify-self: stretch; }
.lg-steps { display: flex; justify-content: center; align-items: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.lg-steps li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.lg-steps li i { font-style: normal; }
.lg-steps li span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--deep); font-size: 0.8rem; }
.lg-steps li.on { color: var(--deep); }
.lg-steps li.on span { background: var(--deep); color: var(--cream); }
.lg-steps li + li::before { content: ""; width: 1.8rem; height: 2px; border-radius: 2px; background: var(--line); margin-right: 0.3rem; }
.lg-codewrap { position: relative; display: block; }
.lg-code { width: 100%; text-align: center; font: 700 1.7rem/1 var(--body); letter-spacing: 0.45em; padding: 0.7rem 4.6rem 0.7rem 4.6rem; font-variant-numeric: tabular-nums; }
.lg-code::placeholder { letter-spacing: 0.3em; color: #8a9b98; font-weight: 600; }
.lg-eye { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); font: inherit; font-size: 0.85rem; font-weight: 700; color: #176f69; background: none; border: 0; cursor: pointer; padding: 0.4rem 0.5rem; border-radius: 8px; }
.lg-eye:hover { background: var(--sage-soft); }
.lg-links { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.lg-links .ops-back { text-decoration: none; font-size: 0.92rem; }
.lg-links .ops-back:hover { text-decoration: underline; }
.lg-links .ops-back:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.lg-foot { margin-top: 0.25rem; }
.lg-card .form-msg { text-align: center; }
.lg-card .eyebrow { justify-self: center; }
.lg-card #ops-setup { justify-items: center; }
@media (max-width: 480px) { .lg-code { letter-spacing: 0.3em; padding-inline: 3.6rem; font-size: 1.5rem; } }

/* masked private details */
.pt-secret { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pt-secret-t { font-variant-numeric: tabular-nums; word-break: break-all; }
.pt-reveal { font: inherit; font-size: 0.78rem; font-weight: 700; color: #176f69; background: var(--sage-soft); border: 0; border-radius: 999px; padding: 0.12rem 0.65rem; cursor: pointer; min-height: 24px; }
.pt-reveal:hover { background: #cde9e5; }
.pt-reveal[aria-pressed="true"] { background: var(--deep); color: var(--cream); }
.lg-sent { text-align: center; }
