/* BeeHive Spell site — one stylesheet, no external fonts or resources. */

:root {
  --honey: #FFC21A;
  --honey-soft: #FFE899;
  --cream: #FFF3C4;
  --sky: #4CC3FF;
  --leaf: #1E9E58;
  --pink: #FF6FA8;
  --ink: #2B2350;
  --ink-soft: #4A4270;
  --paper: #FFFDF4;
  --radius: 22px;
  --line: 3px;
  --pop: 5px 5px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --wrap: 1120px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang TC", "Heiti TC",
    "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  /* subtle honeycomb pattern (inline SVG, no network request) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 66 0 50V18L28 2l28 16v32L28 66zm0 31V66m0-64V-30' fill='none' stroke='%23FFC21A' stroke-opacity='.28' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 243, 196, .94);
  border-bottom: var(--line) solid var(--ink);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(255, 243, 196, .82); backdrop-filter: blur(6px); }
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 900; font-size: 1.15rem;
  margin-right: auto;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--ink); }
.brand small { font-weight: 700; color: var(--ink-soft); font-size: .85rem; }
.nav { display: flex; gap: .25rem 1rem; flex-wrap: wrap; align-items: center; font-weight: 700; font-size: .95rem; }
.nav a { text-decoration: none; padding: .25rem .1rem; }
.nav a:hover { text-decoration: underline; }
.lang {
  border: 2px solid var(--ink); border-radius: 999px; padding: .2rem .8rem !important;
  background: #fff; box-shadow: 2px 2px 0 var(--ink);
}
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .brand small { display: none; }
}

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: inherit; font-weight: 900; font-size: 1.05rem; text-decoration: none;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: var(--line) solid var(--ink); box-shadow: var(--pop-sm);
  background: var(--honey); color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-store { background: var(--ink); color: #fff; }
.btn-store svg { width: 22px; height: 22px; fill: currentColor; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store small { font-weight: 700; font-size: .75rem; opacity: .85; }
.btn-ghost { background: #fff; }

.chip {
  display: inline-block; font-weight: 800; font-size: .85rem;
  padding: .2rem .75rem; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--honey-soft);
}

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 600; color: var(--ink-soft); max-width: 34em; }
@media (max-width: 820px) { .hero .lede { margin-inline: auto; } }
.hero h1 .en { display: block; font-size: .45em; font-weight: 800; color: var(--ink-soft); margin-top: .35em; letter-spacing: .02em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
@media (max-width: 820px) { .hero-cta { justify-content: center; } }
.hero-note { font-size: .9rem; color: var(--ink-soft); margin-top: .9rem; }
.hero-art { position: relative; justify-self: center; width: min(360px, 78vw); aspect-ratio: 1; }
.hero-art::before, .hero-art::after {
  content: ""; position: absolute;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.hero-art::before { inset: 5%; background: var(--ink); transform: translate(6px, 6px); }
.hero-art::after { inset: 6%; background: var(--honey); box-shadow: none; }
.hero-art img { position: relative; z-index: 1; width: 100%; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.bubble {
  position: absolute; z-index: 2; top: 2%; right: -4%;
  background: #fff; border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--pop-sm);
  padding: .4rem .8rem; font-weight: 800; font-size: .95rem; max-width: 12em; text-align: left; line-height: 1.4;
}
@media (max-width: 480px) { .bubble { right: 0; font-size: .85rem; } }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 2.2rem; }
.section-head p { color: var(--ink-soft); font-weight: 600; }
.band { background: var(--honey-soft); border-block: var(--line) solid var(--ink); }

.card {
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--pop); padding: 1.4rem 1.4rem 1.2rem;
}
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature h3 { display: flex; align-items: center; gap: .6rem; }
.feature ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.feature li { margin-bottom: .25rem; }
.icon-hex {
  flex: none; width: 56px; height: 56px; display: grid; place-items: center; padding: 4px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  background: var(--honey);
}
.icon-hex img { width: 100%; }
.c-sky .icon-hex { background: var(--sky); }
.c-leaf .icon-hex { background: #8FE0B2; }
.c-pink .icon-hex { background: var(--pink); }
.c-honey .icon-hex { background: var(--honey); }
.c-ink .icon-hex { background: var(--honey-soft); }
.c-sky { border-top: 12px solid var(--sky); }
.c-leaf { border-top: 12px solid var(--leaf); }
.c-pink { border-top: 12px solid var(--pink); }
.c-honey { border-top: 12px solid var(--honey); }
.c-ink { border-top: 12px solid var(--ink); }
.stars { list-style: none; padding: 0 !important; }
.stars li::before { content: "★ "; color: var(--honey); -webkit-text-stroke: 1px var(--ink); }
.note { font-size: .88rem; color: var(--ink-soft); margin-top: .6rem; }

/* ---------- screenshots ---------- */
.shots {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem 1.25rem 1.6rem; margin: 0; list-style: none;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1160px) { .shots { padding-inline: calc((100vw - var(--wrap)) / 2); } }
.shots li { flex: none; width: clamp(180px, 22vw, 240px); scroll-snap-align: center; }
.shots img {
  width: 100%; border: var(--line) solid var(--ink); border-radius: 26px; box-shadow: var(--pop);
  background: var(--honey-soft);
}
.shots-hint { text-align: center; font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---------- trust ---------- */
.trust { display: grid; gap: 2rem; grid-template-columns: .8fr 1.2fr; align-items: center; }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; } .trust-art { max-width: 220px; margin: 0 auto; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checks li {
  display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: start;
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; padding: .8rem 1rem;
  box-shadow: var(--pop-sm);
}
.checks li::before {
  content: "✓"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--leaf); color: #fff; font-weight: 900; border: 2px solid var(--ink);
}
.checks strong { display: block; }
.checks span { color: var(--ink-soft); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; }
.faq details {
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--pop-sm);
  padding: 0 1.2rem;
}
.faq summary {
  cursor: pointer; font-weight: 800; padding: 1rem 2rem 1rem 0; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: .75rem; font-size: 1.5rem; line-height: 1; font-weight: 900;
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  background: var(--honey); border: 2px solid var(--ink); border-radius: 50%;
}
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { margin-top: 0; }
.faq details > :last-child { padding-bottom: 1rem; }

/* ---------- document pages (privacy / support) ---------- */
.doc { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.doc .card { padding: clamp(1.4rem, 4vw, 2.6rem); }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 2px dashed var(--honey); }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: .35rem; }
.meta { color: var(--ink-soft); font-size: .95rem; }
.meta p { margin: 0 0 .2rem; }
.doc-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.doc-head img { width: 84px; flex: none; }
.callout {
  background: var(--honey-soft); border: 2px solid var(--ink); border-radius: 16px; padding: .9rem 1.1rem; margin: 1.2rem 0;
}
.contact-box {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
  background: #fff; border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--pop-sm);
  padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; font-weight: 700;
}

/* Placeholder the owner must fill before publishing. Deliberately loud. */
.ph {
  background: repeating-linear-gradient(135deg, #FFE0EC 0 8px, #FFC9DE 8px 16px);
  outline: 2px dashed #C2185B; outline-offset: 1px;
  color: #8A0F45; font-weight: 800; padding: 0 .3em; border-radius: 4px; white-space: nowrap;
}
.ph::before { content: "⚠ "; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 2.5rem 0 2rem; margin-top: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: #fff; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 700; }
.site-footer p { margin: 0; color: #E4E0F5; font-size: .9rem; }
.site-footer .foot-brand { display: flex; gap: .7rem; align-items: center; font-weight: 900; }
.site-footer .foot-brand img { width: 44px; }
.site-footer .ph { color: #8A0F45; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.lost img { width: 200px; margin: 0 auto 1rem; }
.lost .hero-cta { justify-content: center; }

/* ---------- numbered sections (same writing pattern as the owner's other app site) ---------- */
.no {
  display: inline-grid; place-items: center; flex: none;
  min-width: 2.6rem; height: 2.3rem; padding: 0 .4rem; margin-right: .6rem;
  font-size: .95rem; font-weight: 900; letter-spacing: .02em; color: var(--ink);
  background: var(--honey); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink);
  font-variant-numeric: tabular-nums;
}
.doc h2 { display: flex; align-items: center; }
.eyebrow { font-weight: 800; font-size: .9rem; color: var(--ink-soft); letter-spacing: .04em; margin: 0 0 .4rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); font-weight: 600; }
.feature .no { margin-right: 0; margin-bottom: .4rem; }
.contact-box a { font-size: 1.15rem; }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--pop-sm); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 2px solid var(--honey-soft); }
.compare thead th { background: var(--honey); border-bottom: var(--line) solid var(--ink); font-weight: 900; }
.compare thead th.pro { background: var(--sky); }
.compare tbody th { font-weight: 800; width: 28%; background: var(--paper); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.yes::before { content: "✓ "; color: var(--leaf); font-weight: 900; }
.compare caption { caption-side: bottom; padding: .6rem 1rem; font-size: .85rem; color: var(--ink-soft); text-align: left; }
