/* AlarmBee - shared styles. Yellow/black bee palette, dark + light. */

:root {
  --honey:      #f5c518;
  --honey-dim:  #d9ad10;
  --red:        #e11420;
  --red-2:      #ff3b47;
  --green:      #1fbf6b;
  --amber:      #ffb020;
  --radius:     16px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
}

html[data-theme="dark"] {
  --bg:      #0b0d12;
  --bg-2:    #10141c;
  --panel:   #151922;
  --line:    #262e3d;
  --text:    #eef1f6;
  --muted:   #8a93a6;
  --on-honey:#1a1400;
  --shadow:  0 18px 50px rgba(0,0,0,.45);
}
html[data-theme="light"] {
  --bg:      #ffffff;
  --bg-2:    #f7f8fa;
  --panel:   #ffffff;
  --line:    #e3e6ec;
  --text:    #14181f;
  --muted:   #67707f;
  --on-honey:#1a1400;
  --shadow:  0 12px 40px rgba(16,20,28,.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.6; min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
img { max-width: 100%; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }

.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px;
         text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav .links { display: flex; gap: 20px; margin-left: 24px; }
.nav .links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav .links a:hover { color: var(--text); }
.nav .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .nav .links { display: none; } }
@media (max-width: 480px) {
  .nav .nav-cta { display: none; }
  .nav .tools { gap: 6px; }
}

.icon-btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 999px; height: 36px; min-width: 36px; padding: 0 12px;
  font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px;
}
.icon-btn:hover { border-color: var(--honey); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 14px; padding: 15px 26px; cursor: pointer;
  font-size: 16px; font-weight: 700; font-family: var(--font); text-decoration: none;
  transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--honey); color: var(--on-honey); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--honey); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------------------------------------------------------------- sections */
section { padding: 76px 0; }
section.alt { background: var(--bg-2); }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; font-weight: 850; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 18px; font-weight: 750; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.eyebrow { color: var(--honey); font-weight: 800; font-size: 12.5px; letter-spacing: .12em;
           text-transform: uppercase; margin-bottom: 10px; }
.center { text-align: center; }

.hero { padding: 90px 0 70px; text-align: center; }
.hero .lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.hero-mark { width: 92px; height: 92px; border-radius: 24px; margin-bottom: 22px; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card .num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--honey); color: var(--on-honey);
  display: flex; align-items: center; justify-content: center; font-weight: 850; font-size: 15px;
  margin-bottom: 14px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------------------------------------------------------------- pricing */
.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } }
.price {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 26px; text-align: center; position: relative;
}
.price.featured { border-color: var(--honey); box-shadow: var(--shadow); }
.price .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--honey); color: var(--on-honey); font-size: 11.5px; font-weight: 850;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.price .amount { font-size: 44px; font-weight: 850; margin: 12px 0 2px; letter-spacing: -.02em; }
.price .amount small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.price ul { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; }
.price li { padding: 7px 0; font-size: 14.5px; color: var(--muted); display: flex; gap: 9px; }
.price li::before { content: "✓"; color: var(--green); font-weight: 800; }
.price .vat { color: var(--muted); font-size: 12.5px; margin-top: 12px; }

/* ---------------------------------------------------------------- faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 15.5px;
  list-style: none; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--honey); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq .body { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }
.faq .body strong { color: var(--text); }
.faq .body ol, .faq .body ul { padding-left: 20px; margin: 10px 0; }
.faq .body li { margin: 7px 0; }
.faq .body code {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; font-size: 13px; color: var(--text);
}
.faq .path { color: var(--text); font-weight: 650; }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.input {
  width: 100%; padding: 15px 16px; border-radius: 13px; font-size: 16px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font-family: var(--font); outline: none;
}
.input:focus { border-color: var(--honey); }
.hint { color: var(--muted); font-size: 13px; margin-top: 7px; }
.msg { border-radius: 12px; padding: 13px 15px; font-size: 14px; font-weight: 600; margin-bottom: 16px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(225,20,32,.12); border: 1px solid rgba(225,20,32,.4); color: var(--red-2); }
.msg.ok  { background: rgba(31,191,107,.12); border: 1px solid rgba(31,191,107,.4); color: var(--green); }
.msg.warn{ background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.4); color: var(--amber); }

.code-input {
  letter-spacing: .5em; text-align: center; font-size: 26px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- misc */
.foot { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 13.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .right { margin-left: auto; display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 640px) {
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .foot .right { margin-left: 0; }
}

.badge {
  font-size: 12.5px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); padding: 7px 12px; border-radius: 999px; display: inline-block;
}
.badge.on  { color: var(--green); border-color: rgba(31,191,107,.4); }
.badge.off { color: var(--amber); border-color: rgba(255,176,32,.35); }

.limits { color: var(--muted); font-size: 13.5px; max-width: 700px; margin: 24px auto 0; text-align: center; }

/* ---------------------------------------------------- prose / content pages
   Used by /faq, /odigoi, /etaireia, /epikoinonia and the guide articles.
   Purely additive: nothing here affects the app or the original landing page. */
.wrap.narrow h2 {
  font-size: 25px; line-height: 1.25; margin: 46px 0 14px;
  letter-spacing: -.01em;
}
.wrap.narrow h2:first-child { margin-top: 0; }
.wrap.narrow h3 { font-size: 18.5px; margin: 30px 0 10px; }
.wrap.narrow p  { margin: 0 0 16px; }
.wrap.narrow ul,
.wrap.narrow ol { margin: 0 0 18px; padding-left: 22px; }
.wrap.narrow li { margin: 0 0 9px; }
.wrap.narrow ul ul,
.wrap.narrow ol ol { margin-top: 9px; }

.wrap.narrow p a,
.wrap.narrow li a,
.card h3 a {
  color: var(--honey); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--honey) 40%, transparent);
}
.wrap.narrow p a:hover,
.wrap.narrow li a:hover,
.card h3 a:hover { border-bottom-color: var(--honey); }
.card h3 a { border-bottom: none; }

code {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: .88em; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; white-space: nowrap;
}
.path {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: .88em; color: var(--honey); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}

table {
  width: 100%; border-collapse: collapse; margin: 8px 0 22px;
  font-size: 14.5px; display: block; overflow-x: auto;
}
thead th {
  text-align: left; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); padding: 10px 12px;
  white-space: nowrap;
}
tbody td { border-bottom: 1px solid var(--line); padding: 11px 12px; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--muted); font-weight: 600; }

@media (max-width: 720px) {
  .wrap.narrow h2 { font-size: 22px; margin-top: 36px; }
}

/* Store badges (App Store / Google Play) */
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000; color: #fff; border: 1px solid #383838; border-radius: 8px;
  padding: 6px 14px 6px 12px; text-decoration: none; min-width: 138px;
}
.store-badge:hover { border-color: #777; }
.store-badge-icon { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge-eyebrow { font-size: 9px; letter-spacing: .03em; opacity: .85; }
.store-badge-name { font-size: 16.5px; font-weight: 600; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; }

/* ---- beta / tester invite (replaces the store badges in the hero) ---- */
.beta-invite {
  margin: 20px auto 0; max-width: 560px; text-align: center;
  padding: 16px 18px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg-2);
}
.beta-invite-eyebrow {
  margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: var(--honey);
}
.beta-invite-text { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.beta-invite-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.beta-invite-cta .btn { font-size: 14px; padding: 9px 16px; }
@media (max-width: 480px) { .beta-invite-cta .btn { width: 100%; } }

/* ---- guide byline ---- */
.byline {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline;
  font-size: 13px; color: var(--muted); margin: -6px 0 22px;
}
.byline strong { color: var(--text); font-weight: 600; }

/* ---- callout: the short answer / summary box inside a guide ---- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--honey);
  background: var(--bg-2); border-radius: 12px; padding: 4px 20px 16px; margin: 26px 0;
}
.callout h2 { font-size: 20px; margin: 18px 0 10px; }
.callout p, .callout li { color: var(--muted); font-size: 15px; }
.callout ul { padding-left: 20px; margin: 8px 0 0; }

/* ---- research survey: tap-only questions, no dropdowns, no text inputs ----
   Reused every year the barometer runs again, so it lives in the shared
   stylesheet rather than inline on the page. */
.survey { max-width: 640px; margin: 0 auto; }
.survey-q { margin: 0 0 34px; }
.survey-q .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--honey);
  color: var(--on-honey); font-size: 12.5px; font-weight: 800; margin-right: 8px;
  flex-shrink: 0;
}
.survey-q h3 { display: inline; font-size: 17px; font-weight: 700; line-height: 1.4; }
.survey-q .q-hint { color: var(--muted); font-size: 13px; margin: 6px 0 0 34px; }
.survey-opts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0 34px; }
.survey-opt {
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-family: var(--font);
  font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left;
  transition: border-color .12s, background .12s, color .12s;
}
.survey-opt:hover { border-color: var(--honey); }
.survey-opt.selected { border-color: var(--honey); background: var(--honey); color: var(--on-honey); }
.survey-submit-row { margin-top: 40px; text-align: center; }
.survey-submit-row .hint { margin-top: 12px; }
@media (max-width: 560px) {
  .survey-q .q-hint, .survey-opts { margin-left: 0; }
  .survey-opts { flex-direction: column; }
  .survey-opt { width: 100%; }
}
