/* Questoria marketing site — shared styles.
   Blend of the pixel-RPG accent language (Press Start 2P badges, saturated
   accent chips) with a soft parchment landing-page layout (Baloo 2 / Nunito,
   big rounded cards, juicy drop-shadow buttons) for readability at scale. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Baloo+2:wght@500;600;700;800&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&display=swap');

:root{
  --bg:        #F4EAD4;
  --bg-2:      #EADCBC;
  --card:      #FFFDF6;
  --card-soft: #FBF3DF;
  --card-sink: #F0E4C8;

  --ink:    #2C2530;
  --ink-2:  #4A4150;
  --muted:  #7C6C56;
  --faint:  #B6A488;

  --line:   rgba(74,58,42,0.12);
  --line-2: rgba(74,58,42,0.20);

  --green:     #6FA052;  --green-d:  #4F7A38;  --green-t: #E9F1DB;
  --blue:      #4D9CC4;  --blue-d:   #387C9F;  --blue-t:  #E1EFF5;
  --gold:      #E0A93E;  --gold-d:   #B9842A;  --gold-t:  #FBEFD3;
  --red:       #D4706B;  --red-d:    #B0504B;  --red-t:   #FAE6E3;
  --purple:    #9B7EB8;  --purple-d: #75588F;  --purple-t:#EEE6F4;
  --pink:      #C97FA3;  --pink-d:   #A05A7E;  --pink-t:  #F7E6EE;
  --ink-dark:  #243447;

  --r-sm:10px; --r-md:16px; --r-lg:22px; --r-xl:30px; --r-pill:999px;

  --sh-sm: 0 1px 2px rgba(74,58,42,.06), 0 2px 6px rgba(74,58,42,.06);
  --sh-md: 0 2px 8px rgba(74,58,42,.08), 0 10px 26px rgba(74,58,42,.09);
  --sh-lg: 0 16px 42px rgba(60,45,25,.16);

  --font-body: 'Nunito', system-ui, sans-serif;
  --font-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }
body{
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px; line-height:1.55;
  background:
    radial-gradient(1400px 700px at 50% -10%, #FBF4E2 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height:100vh;
}
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:700; margin:0; line-height:1.14; color:var(--ink); }
p{ margin:0; }
a{ color:var(--blue-d); text-decoration:none; }
a:hover{ color:var(--blue); text-decoration:underline; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; }
:focus-visible{ outline:3px solid var(--blue); outline-offset:2px; border-radius:6px; }

.wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }

/* ---------- pixel accents ---------- */
.pixel-label{ font-family:var(--font-pixel); font-size:11px; letter-spacing:.5px; text-transform:uppercase; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-pixel); font-size:10px; letter-spacing:.5px; text-transform:uppercase;
  color:var(--green-d); background:var(--green-t); border:2px solid var(--green);
  border-radius:var(--r-pill); padding:7px 12px;
}

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(244,234,212,0.86); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 24px; max-width:1120px; margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:12px; min-width:0; }
.brand .crest{
  flex:none; width:42px; height:42px; border-radius:12px;
  background:linear-gradient(150deg,#7DB05E,#527D3A);
  color:#FFFCEF; display:grid; place-items:center;
  font-family:var(--font-pixel); font-size:16px;
  box-shadow:var(--sh-sm), inset 0 2px 0 rgba(255,255,255,.35);
}
.brand .name-block{ min-width:0; }
.brand .name{ font-family:var(--font-display); font-weight:800; font-size:19px; color:var(--ink); white-space:nowrap; }
.brand .tag{ font-size:11.5px; color:var(--muted); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.nav-links{ display:flex; align-items:center; gap:4px; }
.nav-links a{
  color:var(--ink-2); font-weight:700; font-size:14.5px;
  padding:9px 13px; border-radius:var(--r-pill);
  text-decoration:none;
}
.nav-links a:hover{ background:var(--card-sink); color:var(--ink); text-decoration:none; }
.nav-links a.active{ background:var(--ink-dark); color:#F4EAD4; }

.header-actions{ display:flex; align-items:center; gap:10px; }

.lang-toggle{
  display:flex; border:2px solid var(--line-2); border-radius:var(--r-pill);
  overflow:hidden; background:var(--card);
}
.lang-toggle button{
  border:none; background:none; padding:7px 11px; font-family:var(--font-pixel);
  font-size:10px; color:var(--muted); cursor:pointer;
}
.lang-toggle button.active{ background:var(--ink-dark); color:#F4EAD4; }

.menu-toggle{
  display:none; border:2px solid var(--line-2); background:var(--card);
  border-radius:var(--r-sm); width:40px; height:40px; cursor:pointer;
  align-items:center; justify-content:center; flex-direction:column; gap:4px;
}
.menu-toggle span{ width:18px; height:2px; background:var(--ink); border-radius:2px; }

/* ---------- buttons ---------- */
.btn{
  --c:var(--green); --cd:var(--green-d);
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:800; font-size:15.5px;
  color:#FFFCEF; background:var(--c);
  border:none; border-radius:var(--r-md);
  padding:0 20px; min-height:52px; cursor:pointer;
  box-shadow:0 4px 0 var(--cd), var(--sh-sm);
  transition:transform .08s ease, box-shadow .08s ease, filter .12s ease;
  white-space:nowrap;
}
.btn:hover{ filter:brightness(1.04); text-decoration:none; }
.btn:active{ transform:translateY(3px); box-shadow:0 1px 0 var(--cd); }
.btn.lg{ min-height:58px; font-size:17px; padding:0 26px; border-radius:var(--r-lg); }
.btn.sm{ min-height:42px; font-size:14px; padding:0 16px; box-shadow:0 3px 0 var(--cd); }
.btn.outline{
  --c: transparent; background:var(--card); color:var(--ink);
  border:2px solid var(--line-2); box-shadow:0 3px 0 var(--line-2);
}
.btn.outline:hover{ background:var(--card-sink); }
.btn.blue{ --c:var(--blue); --cd:var(--blue-d); }
.btn.gold{ --c:var(--gold); --cd:var(--gold-d); color:#3C2A06; }
.btn.red{ --c:var(--red); --cd:var(--red-d); }
.btn.dark{ --c:var(--ink-dark); --cd:#16212e; color:#F4EAD4; }
.btn-row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

/* ---------- cards ---------- */
.card{ background:var(--card); border-radius:var(--r-lg); box-shadow:var(--sh-md); padding:24px; border:1px solid var(--line); }
.card.soft{ background:var(--card-soft); }
.card.flat{ box-shadow:var(--sh-sm); }

/* ---------- hero ---------- */
.hero{ padding:64px 0 40px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center; }
.hero h1{ font-size:44px; margin:16px 0 18px; letter-spacing:-.5px; }
.hero .lede{ font-size:18px; color:var(--ink-2); max-width:52ch; margin-bottom:28px; }
.hero-phone-wrap{ display:flex; justify-content:center; }
.phone-frame{
  width:280px; border-radius:34px; background:var(--ink-dark);
  padding:10px; box-shadow:var(--sh-lg);
  transform:rotate(-2deg);
}
.phone-frame img{ border-radius:26px; width:100%; }

/* ---------- screenshot gallery ---------- */
.gallery{ padding:20px 0 64px; }
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.shot-card{ text-align:center; }
.shot-card .frame{
  border-radius:22px; overflow:hidden; background:var(--ink-dark); padding:8px;
  box-shadow:var(--sh-md); transition:transform .15s ease;
}
.shot-card .frame img{ border-radius:16px; }
.shot-card:hover .frame{ transform:translateY(-4px); }
.shot-card .cap{ margin-top:12px; font-weight:700; color:var(--ink-2); font-size:14px; }

/* ---------- feature grid ---------- */
.feature-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.feature-card{ display:flex; flex-direction:column; gap:10px; }
.feature-card .ico{
  width:44px; height:44px; border-radius:12px; display:grid; place-items:center;
  font-family:var(--font-pixel); font-size:16px; color:#FFFCEF;
  background:var(--green); box-shadow:inset 0 -4px 0 rgba(0,0,0,.18);
}
.feature-card h3{ font-size:18px; }
.feature-card p{ color:var(--muted); font-size:14.5px; }

/* ---------- feature detail rows (features.html) ---------- */
.feature-row{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:44px; align-items:center; padding:48px 0; border-bottom:1px solid var(--line); }
.feature-row:last-child{ border-bottom:none; }
.feature-row.rev{ direction:rtl; }
.feature-row.rev > *{ direction:ltr; }
.feature-row .shot{ border-radius:22px; overflow:hidden; background:var(--ink-dark); padding:8px; box-shadow:var(--sh-md); }
.feature-row .shot img{ border-radius:16px; }
.feature-row h2{ font-size:26px; margin-bottom:12px; }
.feature-row p{ color:var(--ink-2); font-size:16px; max-width:46ch; }

/* ---------- section shells ---------- */
.section{ padding:56px 0; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 40px; }
.section-head h2{ font-size:32px; margin:12px 0 10px; }
.section-head .sub{ color:var(--muted); font-size:16px; }

/* ---------- pricing ---------- */
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:stretch; }
.plan{ display:flex; flex-direction:column; gap:18px; position:relative; }
.plan.highlight{ border:2px solid var(--gold); box-shadow:var(--sh-lg); }
.plan .badge{
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background:var(--gold); color:#3C2A06; font-family:var(--font-pixel); font-size:9px;
  padding:6px 10px; border-radius:var(--r-pill); box-shadow:var(--sh-sm);
}
.plan h3{ font-size:20px; }
.plan .price{ font-family:var(--font-display); font-size:34px; font-weight:800; }
.plan .price small{ font-family:var(--font-body); font-size:14px; font-weight:700; color:var(--muted); }
.plan ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; flex:1; }
.plan li{ display:flex; gap:8px; font-size:14.5px; color:var(--ink-2); }
.plan li::before{ content:"✓"; color:var(--green-d); font-weight:800; }

/* ---------- faq ---------- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item:first-child{ border-top:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 4px; font-family:var(--font-display); font-weight:700; font-size:17px; color:var(--ink);
}
.faq-q .chev{ transition:transform .2s ease; color:var(--muted); flex:none; }
.faq-item.open .faq-q .chev{ transform:rotate(180deg); }
.faq-a{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .2s ease; }
.faq-item.open .faq-a{ grid-template-rows:1fr; }
.faq-a-inner{ overflow:hidden; }
.faq-a p{ padding:0 4px 20px; color:var(--ink-2); font-size:15.5px; max-width:66ch; }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:32px; }
.contact-info .row{ display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.contact-info .row .k{ font-weight:800; color:var(--ink); min-width:110px; }
.contact-info .row .v{ color:var(--ink-2); }
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.field label{ font-weight:800; font-size:13.5px; color:var(--ink-2); }
.field input, .field textarea{
  font-family:inherit; font-size:15px; padding:12px 14px; border-radius:var(--r-sm);
  border:2px solid var(--line-2); background:var(--card-soft); color:var(--ink);
}
.field textarea{ min-height:120px; resize:vertical; }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--blue); background:var(--card); }

/* ---------- privacy ---------- */
.doc h2{ font-size:20px; margin:34px 0 10px; }
.doc h2:first-child{ margin-top:0; }
.doc p{ color:var(--ink-2); font-size:15.5px; max-width:70ch; }
.doc .updated{ color:var(--faint); font-size:13.5px; font-weight:700; }

/* ---------- download ---------- */
.store-badges{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.store-badge{
  display:flex; align-items:center; gap:12px; background:var(--ink-dark); color:#F4EAD4;
  padding:14px 22px; border-radius:var(--r-md); box-shadow:var(--sh-md);
  min-width:200px;
}
.store-badge .glyph{ width:30px; height:30px; border-radius:8px; background:rgba(255,255,255,.12); display:grid; place-items:center; font-family:var(--font-pixel); font-size:13px; }
.store-badge .label{ line-height:1.3; }
.store-badge .label .small{ font-size:11px; opacity:.75; display:block; }
.store-badge .label .big{ font-family:var(--font-display); font-size:16px; font-weight:700; }
.store-badge:hover{ filter:brightness(1.08); text-decoration:none; }

/* ---------- footer ---------- */
.site-footer{ border-top:1px solid var(--line); padding:36px 0; margin-top:40px; }
.footer-grid{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer-note{ color:var(--muted); font-size:13.5px; max-width:44ch; }
.footer-links{ display:flex; gap:18px; flex-wrap:wrap; }
.footer-links a{ color:var(--ink-2); font-weight:700; font-size:13.5px; }
.footer-links a:hover{ color:var(--blue-d); }

/* ---------- responsive ---------- */
@media (max-width:900px){
  .hero-grid, .contact-grid{ grid-template-columns:1fr; }
  .hero-phone-wrap{ order:-1; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .pricing-grid{ grid-template-columns:1fr; max-width:380px; margin:0 auto; }
  .feature-row, .feature-row.rev{ grid-template-columns:1fr; direction:ltr; }
  .nav-links{ display:none; }
  .menu-toggle{ display:flex; }
  .brand .tag{ display:none; }
}
@media (max-width:560px){
  .hero h1{ font-size:32px; }
  .gallery-grid{ grid-template-columns:1fr; }
  .feature-grid{ grid-template-columns:1fr; }
}

/* mobile nav sheet */
.mobile-nav{
  display:none; position:fixed; inset:0; z-index:60; background:rgba(36,28,18,.5);
}
.mobile-nav.open{ display:block; }
.mobile-nav .sheet{
  position:absolute; top:0; right:0; bottom:0; width:78%; max-width:320px;
  background:var(--bg); padding:20px; display:flex; flex-direction:column; gap:6px;
  box-shadow:var(--sh-lg);
}
.mobile-nav .sheet a{
  padding:14px 12px; border-radius:var(--r-sm); font-weight:800; color:var(--ink);
  text-decoration:none; font-size:16px;
}
.mobile-nav .sheet a.active{ background:var(--ink-dark); color:#F4EAD4; }
.mobile-nav .close-row{ display:flex; justify-content:flex-end; margin-bottom:10px; }
.mobile-nav .close-btn{ border:none; background:var(--card); border-radius:var(--r-sm); width:36px; height:36px; cursor:pointer; font-size:16px; }

/* admin banner shown on all public pages when local admin edits are active */
.admin-note{
  background:var(--gold-t); border-bottom:2px solid var(--gold);
  color:#5c4310; font-size:13px; font-weight:700; text-align:center; padding:8px 16px;
}
.admin-note a{ color:#5c4310; text-decoration:underline; }
