/* ===================================================================
   QR landing pages — Tomato hero + tomato LCD mini preview.
   =================================================================== */

:root {
  --bg:           #faf6f1;
  --bg-2:         #f3eee5;
  --surface:      #ffffff;
  --surface-2:    #faf6ed;
  --border:       #e8dfcc;
  --border-soft:  #f0e9da;
  --text:         #1f1a14;
  --text-2:       #5c5547;
  --text-3:       #8a8275;
  --text-faint:   #b5ac9b;

  --accent:       #e85f4d;
  --accent-2:     #d44a39;
  --accent-soft:  rgba(232, 95, 77, 0.10);

  --tomato-from:  #ff6b4a;
  --tomato-to:    #e85f4d;
  --sage:         #5eb985;
  --sage-soft:    rgba(94, 185, 133, 0.14);

  --lcd-bezel-2:  #c0382a;
  --lcd-frame:    #1f1a14;
  --lcd-screen:   #faf6f1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
               "PingFang TC", "PingFang SC", "Hiragino Sans", "Noto Sans CJK",
               sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 235, 220, 0.55) 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
ul, ol { list-style: none; }

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 28px) clamp(16px, 4vw, 28px) 80px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 12px;
}
.brand { font-weight: 600; font-size: 15px; color: var(--text-2); }
.brand:hover { color: var(--accent); }
.topbar-nav { display: flex; gap: 16px; align-items: center; }
.nav-link { font-size: 13px; color: var(--text-3); }
.nav-link:hover { color: var(--accent); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(40px, 7vw, 64px) clamp(24px, 5vw, 48px) clamp(28px, 5vw, 40px);
  margin-bottom: 36px;
  background: linear-gradient(155deg, var(--tomato-from) 0%, var(--tomato-to) 100%);
  border-radius: 28px;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(232, 95, 77, 0.22),
    0 32px 64px rgba(232, 95, 77, 0.14);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 28px 28px 0 0;
}
.hero-eyebrow {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.hero-title {
  position: relative;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(28px, 6vw, 44px);
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.hero-sub {
  position: relative;
  font-size: clamp(14px, 3vw, 16px);
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Mini LCD preview inside hero */
.hero-preview {
  position: relative;
  display: inline-block;
  padding: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border-radius: 18px;
  margin: 8px auto 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    0 6px 14px rgba(0,0,0,0.12);
}
.hero-preview-frame {
  background: var(--lcd-frame);
  border-radius: 10px;
  padding: 10px;
}
.hero-preview-screen {
  width: 160px;
  height: 160px;
  background: var(--lcd-screen);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.10),
    inset 0 2px 8px rgba(0,0,0,0.08);
}
.hero-preview-screen canvas {
  width: 100%; height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* CTA */
.hero-cta {
  position: relative;
  display: inline-block;
  padding: 14px 30px;
  background: #fff;
  color: var(--tomato-to);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.12s, box-shadow 0.12s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  color: var(--tomato-to);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.hero-cta:active { transform: translateY(0); }

/* Mini form below hero (optional, for url/text/wifi pages) */
.mini-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mini-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.mini-form input[type="text"],
.mini-form input[type="url"],
.mini-form input[type="password"],
.mini-form textarea,
.mini-form select {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  margin-bottom: 10px;
}
.mini-form input:focus,
.mini-form textarea:focus,
.mini-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.mini-form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mini-form-row > * { flex: 1; min-width: 0; }
.mini-form-row label {
  font-size: 13px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0;
  white-space: nowrap;
}
.mini-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(180deg, var(--tomato-from) 0%, var(--tomato-to) 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -2px 0 rgba(0,0,0,0.16),
    0 2px 6px rgba(232,95,77,0.30);
}
.mini-form-btn:active { transform: translateY(1px); }

/* Privacy banner */
.privacy-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--sage-soft);
  border: 1px solid rgba(94, 185, 133, 0.32);
  border-radius: 999px;
  color: #2f7a55;
  font-size: 12px;
  font-weight: 500;
  margin: 12px auto 24px;
  line-height: 1.4;
}
.privacy-banner svg { color: #3a9d6f; flex-shrink: 0; }

/* Info section */
.info { margin-bottom: 36px; }
.info section { margin-bottom: 28px; }
.info h2 {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 10px;
}
.info p, .info li {
  font-size: 15px;
  color: var(--text-2);
}
.info p { margin-bottom: 10px; }
.info ul.bullet {
  margin: 12px 0 14px;
  padding-left: 18px;
}
.info ul.bullet li {
  list-style: disc;
  padding-left: 4px;
  margin-bottom: 6px;
}
.info ol {
  margin: 12px 0 14px;
  padding-left: 0;
  counter-reset: step;
}
.info ol li {
  position: relative;
  padding: 6px 0 6px 32px;
  margin-bottom: 4px;
}
.info ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
}
.info strong { color: var(--text); font-weight: 600; }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.faq summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::before { content: "−"; }
.faq details p { margin-top: 8px; font-size: 14px; color: var(--text-2); }

/* Related */
.related h2 {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 600;
  margin-bottom: 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 0;
  margin-bottom: 24px;
}
.related-grid li { margin: 0; }
.related-grid a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.related-grid a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(232, 95, 77, 0.10);
}
.related-grid a small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 2px;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer .sub {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
