/*
Theme Name: TapLog Homepage Template
Theme URI: https://taplog.local
Author: TapLog
Description: Brand-accurate, responsive WordPress homepage theme for TapLog smart compliance logging and FridgeLog temperature monitoring.
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: taplog
*/

:root {
  --taplog-blue: #1458FF;
  --deep-signal-blue: #004DFF;
  --dark-graphite: #33363A;
  --near-black: #111827;
  --ice-blue: #EAF2FF;
  --soft-digital-blue: #DCE9FF;
  --compliance-green: #18A957;
  --alert-amber: #F5A623;
  --critical-red: #E53935;
  --white: #FFFFFF;
  --cool-off-white: #F7FAFC;
  --light-border-grey: #E5E7EB;
  --mid-grey: #6B7280;
  --navy: #061D38;
  --max: 1180px;
  --shadow: 0 26px 70px rgba(17, 24, 39, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--near-black);
  background: var(--white);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.tap-container { width: min(var(--max), calc(100% - 42px)); margin-inline: auto; }

.tap-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(229,231,235,.86); }
.tap-nav { min-height: 92px; display: grid; grid-template-columns: 250px 1fr auto; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.tap-brand img { width: 250px; height: auto; }
.tap-menu { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 3.3vw, 48px); font-size: 13px; font-weight: 600; color: var(--near-black); }
.tap-menu a:not(:last-child)::after { content: "⌄"; margin-left: 8px; color: var(--mid-grey); font-size: 12px; }
.tap-actions, .cta-actions { display: flex; align-items: center; gap: 18px; }
.tap-btn { min-height: 48px; padding: 0 28px; border: 1.5px solid var(--taplog-blue); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 14px; color: var(--taplog-blue); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; white-space: nowrap; }
.tap-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(20,88,255,.18); }
.tap-btn-primary { background: var(--deep-signal-blue); color: var(--white); border-color: var(--deep-signal-blue); }
.tap-btn-ghost { background: transparent; }
.tap-btn-white { background: var(--white); border-color: var(--white); color: var(--deep-signal-blue); }
.tap-btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.tap-menu-toggle, .tap-menu-button { display: none; }

.hero { position: relative; overflow: hidden; background: linear-gradient(90deg, #fff 0%, #fff 46%, #eef3f8 46%, #f7fafc 100%); }
.hero-grid { min-height: 640px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: stretch; gap: 34px; }
.hero-copy { padding: clamp(44px, 7vw, 84px) 0 62px; align-self: center; }
.hero h1 { margin: 0 0 26px; font-size: clamp(58px, 7.1vw, 96px); line-height: .94; letter-spacing: -.07em; font-weight: 900; color: #080B12; }
.hero h1 span { color: var(--deep-signal-blue); }
.hero p { max-width: 490px; margin: 0 0 32px; color: #10213D; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.4; font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 58px; }
.hero-points { max-width: 620px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hero-point { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.hero-point svg { color: var(--deep-signal-blue); width: 34px; height: 34px; }
.hero-point strong { display: block; font-size: 12px; color: var(--near-black); font-weight: 800; }
.hero-point small { display: block; margin-top: 3px; color: #28384F; font-size: 10px; line-height: 1.35; font-weight: 500; }
.hero-media { position: relative; min-height: 640px; isolation: isolate; overflow: visible; }
.fridge-surface { position: absolute; inset: 0 -90px 0 0; z-index: -3; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.72) 20%, rgba(255,255,255,.12) 40%, rgba(255,255,255,0) 62%), radial-gradient(circle at 36% 36%, #ffffff 0 3%, #cbd2dc 14%, transparent 30%), linear-gradient(100deg, #f4f5f7 0%, #b7bec8 46%, #5e646d 73%, #2b3037 100%); }
.hero-media::after { content: ""; position: absolute; right: -110px; bottom: -34px; width: 128%; height: clamp(70px, 9vw, 118px); background: #fff; transform: rotate(-5deg); transform-origin: left top; z-index: 8; }
.tap-disc { border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff, #f1f3f7 60%, #d7dce5); box-shadow: 0 24px 48px rgba(17,24,39,.22), inset 0 0 0 8px rgba(255,255,255,.66); display: grid; place-items: center; padding: 24px; }
.tap-disc img { width: 82%; height: auto; object-fit: contain; }
.tap-disc-hero { position: absolute; width: clamp(150px, 18vw, 238px); aspect-ratio: 1; right: clamp(16px, 5vw, 78px); top: 88px; z-index: 1; }
.phone-mock { position: relative; background: #fff; border: 12px solid #111; border-radius: 36px; box-shadow: var(--shadow); overflow: hidden; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 45%; height: 25px; border-radius: 0 0 15px 15px; background: #111; z-index: 3; }
.phone-hero { position: absolute; z-index: 5; width: clamp(205px, 20vw, 286px); right: clamp(130px, 19vw, 230px); top: clamp(120px, 14vw, 170px); transform: rotate(6deg); aspect-ratio: 9 / 18.4; }
.phone-inner { height: 100%; padding: 38px 22px 22px; text-align: center; }
.phone-logo { width: 78%; margin: 0 auto 22px; }
.check-ring { width: clamp(86px, 8.5vw, 122px); aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%; border: 7px solid var(--ice-blue); color: var(--deep-signal-blue); display: grid; place-items: center; font-size: clamp(42px, 4.4vw, 64px); line-height: 1; font-weight: 900; }
.phone-status { margin: 0 0 14px; font-size: 15px; color: var(--near-black); }
.temp-box { border-top: 1px solid var(--light-border-grey); padding-top: 14px; font-size: 12px; color: var(--mid-grey); }
.temp-box strong { display: block; margin: 2px 0; color: var(--deep-signal-blue); font-size: 30px; letter-spacing: -.04em; }
.phone-inner .tap-btn { width: 100%; min-height: 40px; padding: 0 10px; margin-top: 12px; font-size: 12px; }

.benefits { background: radial-gradient(circle at 18% 42%, rgba(20,88,255,.28), transparent 25%), radial-gradient(circle at 84% 18%, rgba(0,77,255,.2), transparent 24%), linear-gradient(135deg, #061D38, #071B35 50%, #092B54); color: white; padding: 54px 0 48px; }
.benefits h2 { margin: 0 0 34px; text-align: center; font-size: clamp(28px, 3vw, 39px); line-height: 1.12; letter-spacing: -.045em; font-weight: 800; }
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.benefit { text-align: center; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.18); }
.benefit:first-child { border-left: 0; }
.benefit svg { color: var(--taplog-blue); width: 62px; height: 62px; margin: 0 auto 18px; }
.benefit h3 { margin: 0 0 14px; font-size: 16px; color: white; font-weight: 800; }
.benefit p { margin: 0; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.58; }

.product { background: linear-gradient(110deg, var(--cool-off-white), #fff); padding: 72px 0; }
.product-grid { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(44px, 6vw, 86px); align-items: center; }
.product-media { min-height: 390px; position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 38px; }
.tap-disc-product { position: relative; width: clamp(190px, 22vw, 270px); aspect-ratio: 1; flex: 0 0 auto; }
.report-phone { width: clamp(180px, 17vw, 220px); aspect-ratio: 9/18.2; padding: 34px 14px 16px; align-self: center; }
.report-title { font-size: 12px; font-weight: 800; margin: 0 0 12px; color: var(--near-black); }
.report-title span { display: block; margin-top: 10px; font-size: 10px; font-weight: 700; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 12px; font-size: 9px; text-align: center; }
.tabs span, .tabs strong { border-radius: 5px; padding: 5px 0; background: #f1f5f9; }
.tabs strong { background: var(--soft-digital-blue); color: var(--deep-signal-blue); }
.report-chart { width: 100%; height: 96px; margin-bottom: 14px; }
.summary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary-row div { border: 1px solid var(--light-border-grey); border-radius: 8px; padding: 8px; font-size: 9px; color: var(--mid-grey); }
.summary-row strong { display: block; color: var(--near-black); font-size: 15px; margin-top: 2px; }
.report-phone > a { display: block; margin-top: 12px; color: var(--deep-signal-blue); text-align: center; font-size: 10px; font-weight: 700; }
.eyebrow { color: var(--deep-signal-blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-copy h2 { margin: 8px 0 18px; font-size: clamp(42px, 5vw, 60px); line-height: 1; letter-spacing: -.065em; font-weight: 900; }
.product-copy .dark { color: var(--dark-graphite); }
.product-copy .blue { color: var(--taplog-blue); }
.product-copy p { max-width: 440px; margin: 0 0 28px; color: #25354D; font-size: 20px; line-height: 1.45; font-weight: 500; }
.check-list { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #16243D; font-weight: 500; }
.check-list li::before { content: "✓"; color: var(--deep-signal-blue); font-size: 22px; font-weight: 900; line-height: 1; }

.industries { padding: 24px 0 36px; background: #fff; }
.industries h2 { text-align: center; margin: 0 0 28px; font-size: 29px; letter-spacing: -.04em; font-weight: 800; }
.industry-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.industry { text-align: center; color: #0C2544; font-weight: 700; font-size: 12px; }
.industry svg { width: 38px; height: 38px; margin: 0 auto 10px; color: #0C2544; }

.cta-band { background: linear-gradient(100deg, var(--taplog-blue), var(--deep-signal-blue) 62%, #073FC2); color: white; padding: 42px 0; }
.cta-grid { display: grid; grid-template-columns: 86px 1fr auto; gap: 34px; align-items: center; }
.cta-mark { width: 78px; height: auto; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 36px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); font-size: 16px; }
.cta-actions .tap-btn { min-width: 170px; }

@media (max-width: 1100px) {
  .tap-nav { grid-template-columns: 220px 1fr auto; }
  .tap-brand img { width: 220px; }
  .tap-menu { gap: 22px; }
  .tap-actions { gap: 10px; }
  .tap-btn { padding-inline: 20px; }
  .phone-hero { right: 160px; }
}
@media (max-width: 960px) {
  .tap-nav { min-height: 82px; grid-template-columns: 220px auto auto; }
  .tap-menu-button { display: grid; gap: 5px; width: 44px; height: 44px; align-content: center; justify-content: center; border: 1px solid var(--light-border-grey); border-radius: 6px; cursor: pointer; order: 3; }
  .tap-menu-button span { width: 21px; height: 2px; background: var(--near-black); }
  .tap-menu { position: absolute; left: 0; right: 0; top: 82px; display: none; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--light-border-grey); padding: 12px 21px 20px; box-shadow: 0 20px 50px rgba(17,24,39,.08); }
  .tap-menu a { width: 100%; padding: 14px 0; border-bottom: 1px solid #f1f3f5; }
  .tap-menu-toggle:checked ~ .tap-menu { display: flex; }
  .tap-actions { justify-self: end; }
  .hero { background: #fff; }
  .hero-grid, .product-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; gap: 0; }
  .hero-copy { padding-bottom: 36px; }
  .hero-media { min-height: 560px; margin-inline: -21px; overflow: hidden; }
  .fridge-surface { inset: 0; }
  .tap-disc-hero { right: 9%; top: 64px; }
  .phone-hero { right: 31%; top: 135px; width: clamp(214px, 30vw, 282px); }
  .hero-points { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .benefit:nth-child(odd) { border-left: 0; }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
  .product-media { min-height: 350px; }
  .cta-actions { justify-content: start; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .tap-container { width: min(100% - 28px, var(--max)); }
  .tap-nav { grid-template-columns: 1fr auto; gap: 12px; min-height: 76px; }
  .tap-brand img { width: 178px; }
  .tap-actions { display: none; }
  .tap-menu-button { order: unset; }
  .tap-menu { top: 76px; padding-inline: 14px; }
  .hero h1 { font-size: clamp(50px, 15vw, 66px); }
  .hero p { font-size: 18px; }
  .hero-ctas { gap: 14px; margin-bottom: 34px; }
  .hero-ctas .tap-btn, .cta-actions .tap-btn { width: 100%; }
  .hero-points { grid-template-columns: 1fr; gap: 16px; }
  .hero-media { min-height: 490px; }
  .tap-disc-hero { width: 155px; right: 7%; top: 46px; padding: 16px; }
  .phone-hero { width: 214px; right: auto; left: 48%; top: 132px; transform: translateX(-50%) rotate(5deg); }
  .phone-inner { padding-inline: 16px; }
  .benefits { padding: 44px 0; }
  .benefit-grid, .industry-grid { grid-template-columns: 1fr; gap: 26px; }
  .benefit { border-left: 0; padding-inline: 10px; }
  .product { padding: 52px 0; }
  .product-media { min-height: auto; flex-direction: column; align-items: center; gap: 26px; }
  .tap-disc-product { width: 224px; }
  .report-phone { width: 206px; }
  .cta-grid { gap: 20px; text-align: left; }
  .cta-mark { width: 72px; }
}
@media (max-width: 420px) {
  .tap-brand img { width: 160px; }
  .hero-media { min-height: 456px; }
  .tap-disc-hero { width: 134px; right: 5%; top: 38px; }
  .phone-hero { width: 200px; top: 126px; }
  .check-ring { width: 86px; }
  .temp-box strong { font-size: 25px; }
}
