/* FoodTechGuru free templates: page styles for /templates/ and each template page.
   Loaded after /calculators/css/calculators.css (shared skin: tokens, nav, buttons, prose, FAQ, footer). */

.intro { padding-top: 28px; padding-bottom: 18px; }
.lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: #2c2c45; max-width: 70ch; margin-top: 12px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.dl-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* hero: the template itself */
.hero-sheet { margin-top: 8px; }
.sheet { border: 2px solid #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.sheet figcaption { font-size: 0.82rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
.sheet-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sheet-scroll img { min-width: 680px; }
.swipe { display: none; font-size: 0.78rem; font-weight: 700; color: var(--orange); padding: 8px 14px 0; }

/* column glossary */
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 6px; list-style: none; padding: 0 !important; }
.cols li { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 !important; font-size: 0.95rem; }
.cols b { display: block; color: var(--navy); font-size: 0.92rem; }
.swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid #000; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* menu engineering matrix */
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; }
.quad { border: 2px solid #000; border-radius: 14px; padding: 14px 16px; }
.quad h3 { font-size: 1.3rem; margin-bottom: 4px; color: #000; }
.quad p { font-size: 0.9rem !important; color: #1d1d30 !important; }
.quad small { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.q-star { background: #c8f5d9; } .q-plow { background: #cfe2ff; } .q-puzzle { background: #fff3b0; } .q-dog { background: #ecdcc9; }

/* mini grader */
.grader { background: var(--card); border: 2px solid #000; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 18px 0 10px; }
.g-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.g-table td.c-name { width: 36%; }
.g-table td.c-name input { min-width: 180px; }
.g-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 6px 6px; font-weight: 800; }
.g-table td { padding: 4px 6px; border-top: 1px solid var(--line); }
.g-table input { width: 100%; font: inherit; padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; }
.g-table input:focus { border-color: var(--orange); outline: none; }
.g-table .num { width: 86px; }
.g-table .out { font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-table .rm { font-size: 1.1rem; padding: 4px 8px; color: var(--muted); }
.grade { display: inline-block; min-width: 82px; text-align: center; padding: 3px 8px; border-radius: 30px; border: 1.5px solid #000; font-weight: 800; font-size: 0.78rem; }
.grade.star { background: #c8f5d9; } .grade.plowhorse { background: #cfe2ff; } .grade.puzzle { background: #fff3b0; } .grade.dog { background: #ecdcc9; } .grade.none { background: #f1f1f1; border-color: var(--line); color: var(--muted); }
.g-sum { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.g-sum b { color: var(--navy); font-variant-numeric: tabular-nums; }
.g-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 720px) {
  .g-table thead { display: none; }
  .g-table, .g-table tbody, .g-table tr, .g-table td { display: block; width: 100%; }
  .g-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; position: relative; }
  .g-table td { border: 0; padding: 0; }
  .g-table td.c-name { grid-column: 1 / -1; padding-right: 34px; width: 100%; }
  .g-table td.c-name input { min-width: 0; }
  .g-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 2px; }
  .g-table .num { width: 100%; }
  .g-table td.c-rm { position: absolute; top: 6px; right: 4px; width: auto; }
  .g-table td.c-grade { align-self: end; }
  .grade { min-width: 0; width: 100%; }
}

/* app band (same look as the calculator pages) */
.app-band { background: #fff; border-top: 2px solid #000; border-bottom: 2px solid #000; margin-top: 48px; padding: 48px 0; }
.app-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; }
.app-band h2 { margin-bottom: 12px; }
.app-band p { color: #2c2c45; }
.ticks { list-style: none; margin: 14px 0 20px; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; font-weight: 600; font-size: 0.95rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.app-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.qr-svg { width: 112px; height: 112px; border: 2px solid #000; border-radius: 10px; }

/* optional email */
.optin { margin-top: 28px; background: var(--navy); color: #fff; border: 2px solid #000; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.optin h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.optin p { color: rgba(255,255,255,0.78) !important; font-size: 0.92rem !important; }
.optin form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.optin input[type=email] { flex: 1 1 240px; font: inherit; padding: 12px 16px; border: 2px solid #000; border-radius: 14px; background: #fff; color: var(--ink); min-width: 0; }
.optin .btn { cursor: pointer; font-family: inherit; }
.optin .ok { color: var(--green) !important; font-weight: 700; margin-top: 10px; }
.optin .err { color: #ffb4a8 !important; font-weight: 700; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* video facade */
.video { margin: 32px 0 8px; aspect-ratio: 16 / 9; border: 2px solid #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade { position: relative; width: 100%; height: 100%; display: block; }
.vf-poster { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; display: flex; align-items: flex-end; padding: 24px; }
.vf-title { font-family: var(--font-head); color: #fff; font-size: clamp(1.3rem, 3vw, 2.3rem); text-transform: uppercase; line-height: 1; text-align: left; }
.vf-play { position: absolute; left: 50%; top: 50%; width: 84px; transform: translate(-50%, -50%); transition: transform .2s; }
.video-facade:hover .vf-play { transform: translate(-50%, -50%) scale(1.1); }

/* email popup (gated mode only; same component as /restaurant-business-plan-template/) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lead-dlg { margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 32px); border: 3px solid #000; border-radius: 24px; box-shadow: 10px 10px 0 #000; padding: 32px 28px 26px; background: var(--paper); color: var(--ink); overflow: auto; }
.lead-dlg::backdrop { background: rgba(1,3,79,0.72); backdrop-filter: blur(4px); }
.lead-dlg h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); text-transform: uppercase; }
.lead-dlg p { color: var(--muted); margin-top: 10px; }
.lead-dlg form { display: grid; gap: 10px; margin-top: 16px; }
.lead-dlg input[type=email] { font: inherit; padding: 13px 16px; border: 2px solid #000; border-radius: 14px; background: #fff; }
.lead-dlg .btn { cursor: pointer; font-family: inherit; }
.lead-x { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #000; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lead-dlg .err { color: var(--error); font-weight: 700; font-size: 0.88rem; }

/* hub */
.hub-sec { margin-top: 30px; }
.hub-sec h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

@media (max-width: 880px) { .app-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .intro { padding-top: 18px; padding-bottom: 14px; }
  .matrix { grid-template-columns: 1fr; }
  .qr { display: none; }
  .grader { padding: 12px; }
  .swipe { display: block; }
  .cols { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cols li { padding: 10px 11px; font-size: 0.86rem; }
}
@media (hover: none) and (pointer: coarse) { .qr { display: none; } }
