/* Royalty Fresh — purple / white / gold, clean. Shared by the website (/)
   and the app (/app). */
:root {
  --purple: #5b2a86; --purple-dark: #3d1a5e; --purple-soft: #efe7f7;
  --gold: #c9a227; --gold-soft: #f7edc9; --ink: #241a2e; --muted: #6d6280;
  --line: #e4dcf0; --bg: #fbfaff; --card: #ffffff; --bad: #b3261e; --ok: #1d7a3f;
  --radius: 14px; --shadow: 0 6px 24px rgba(61, 26, 94, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: var(--purple); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .8rem; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 16px; }

/* header + dropdown menu (DROPDOWN RULE: panel anchored under the bar,
   page behind never grows; closes on selection / outside tap / Esc / Back) */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--purple-dark); color: #fff; box-shadow: var(--shadow); }
.topbar-in { display: flex; align-items: center; gap: 10px; max-width: 1020px; margin: 0 auto; padding: 10px 16px; position: relative; }
.wordmark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; }
.wordmark .crown { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--gold); color: var(--purple-dark); font-size: 1.25rem; }
.wordmark small { display: block; font-weight: 500; font-size: .68rem; color: var(--gold-soft); letter-spacing: .4px; }
.topbar .spacer { flex: 1; }
.callbtn { background: var(--gold); color: var(--purple-dark) !important; font-weight: 800; padding: 9px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.langbtn, .menubtn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.dropdown { position: absolute; right: 12px; top: calc(100% + 6px); width: min(320px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow-y: auto; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(30,10,50,.35); padding: 8px; }
.dropdown a, .dropdown button.row { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; font-size: 1rem; }
.dropdown a:hover, .dropdown button.row:hover { background: var(--purple-soft); }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dropdown .note { font-size: .8rem; color: var(--muted); padding: 4px 12px 8px; }

.hero { background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 78%); color: #fff; padding: 44px 0 38px; }
.hero h1 { font-size: 2.2rem; }
.hero p { color: #e9def7; max-width: 620px; font-size: 1.05rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; background: var(--purple); color: #fff; }
.btn.gold { background: var(--gold); color: var(--purple-dark); }
.btn.ghost { background: transparent; border: 2px solid var(--purple); color: var(--purple); }
.btn.white { background: #fff; color: var(--purple-dark); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .55; cursor: default; }

section.page { padding: 26px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card h3 { color: var(--purple-dark); }
.price { font-weight: 800; color: var(--purple); }
.muted { color: var(--muted); } .small { font-size: .86rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--purple-soft); color: var(--purple-dark); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .9rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.step b { color: var(--gold); font-size: 1.3rem; display: block; }
.ph { aspect-ratio: 4/3; border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 14px; color: var(--purple-dark); font-weight: 600; background: repeating-linear-gradient(45deg, var(--purple-soft), var(--purple-soft) 14px, var(--gold-soft) 14px, var(--gold-soft) 28px); }
.ba { display: inline-block; background: var(--purple); color: #fff; border-radius: 6px; padding: 1px 8px; font-size: .75rem; font-weight: 800; letter-spacing: .5px; margin-bottom: 8px; }
.ba.after { background: var(--gold); color: var(--purple-dark); }

form .field { margin-bottom: 12px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.pwwrap { position: relative; }
.pwwrap .toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--purple); font-weight: 700; cursor: pointer; padding: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: auto; }
.notice { border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.notice.ok { background: #e6f4ea; border: 1px solid #bfe3cc; }
.notice.err { background: #fdecea; border: 1px solid #f5c6c2; color: var(--bad); }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; background: var(--gold-soft); color: var(--purple-dark); }
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

footer { background: var(--purple-dark); color: #d9cdef; padding: 28px 0 90px; margin-top: 10px; }
footer a { color: var(--gold-soft); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stickycall { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; display: none; }
@media (max-width: 720px) { .stickycall { display: block; } .hero h1 { font-size: 1.8rem; } }

.reportbtn { position: fixed; right: 14px; bottom: 76px; z-index: 45; background: var(--purple); color: #fff; border: 0; border-radius: 999px; padding: 11px 16px; font-weight: 700; box-shadow: var(--shadow); cursor: grab; touch-action: none; }
.modal-veil { position: fixed; inset: 0; background: rgba(30, 10, 50, .5); z-index: 60; display: grid; place-items: end center; }
.modal { background: #fff; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px; }
@media (min-width: 720px) { .modal-veil { place-items: center; } .modal { border-radius: 18px; } }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; }
.tabs button.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.boot { padding: 60px 20px; text-align: center; color: var(--muted); }
