/* Castmira website styles. Palette and type from the Castmira Brand Guidelines (2026-11-04). */
:root {
  --violet: #7C3AED;
  --night: #3D1270;
  --royal: #6D28D9;
  --iris: #8B5CF6;
  --orchid: #A78BFA;
  --lavender: #C4B5FD;
  --mist: #F3EDFE;
  --white: #FFFFFF;
  --ink: #1E1430;
  --muted: #5B4F70;
  --line: #E4DAFB;
  --radius: 14px;
  --font: "Nunito Sans", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Tajawal", "Nunito Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); }
a:hover { color: var(--royal); }
.ar { font-family: var(--font-ar); }

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

/* Preview banner: remove before going live */
.preview-banner {
  background: var(--ink); color: var(--white); text-align: center;
  font-size: 13px; padding: 6px 12px; letter-spacing: .02em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night); }
.brand img { width: 40px; height: 40px; }
.brand .name { font-weight: 800; font-size: 22px; letter-spacing: .01em; }
.brand .name-ar { font-family: var(--font-ar); font-weight: 700; font-size: 16px; color: var(--iris); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--violet); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--night); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: var(--font); transition: background .15s, color .15s;
}
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--royal); color: var(--white); }
.btn-light { background: var(--white); color: var(--night); }
.btn-light:hover { background: var(--mist); color: var(--night); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, var(--royal) 0%, transparent 60%), var(--night);
  color: var(--white); padding: 88px 0 96px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--lavender); margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; font-weight: 800; margin: 0 0 18px; }
.hero p.lead { font-size: 19px; color: #E9E1FD; margin: 0 0 30px; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark { justify-self: center; width: min(340px, 80%); filter: drop-shadow(0 20px 50px rgba(0,0,0,.35)); }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; font-weight: 800; color: var(--night); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--night); }
.card p { margin: 0; color: var(--muted); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--violet); color: var(--white);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: var(--white); border: 1px solid var(--lavender); color: var(--night); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { border-radius: var(--radius); padding: 40px; }
.panel h3 { font-size: 26px; font-weight: 800; margin: 0 0 12px; }
.panel ul { padding-left: 20px; margin: 0 0 26px; }
.panel li { margin-bottom: 8px; }
.panel-dark { background: var(--night); color: var(--white); }
.panel-dark li { color: #E9E1FD; }
.panel-light { background: var(--mist); color: var(--ink); border: 1px solid var(--line); }
.panel-light h3 { color: var(--night); }

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--night); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta-band { background: var(--violet); color: var(--white); text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; font-weight: 800; }
.cta-band p { margin: 0 0 26px; color: #F1EAFE; }
.cta-band .actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: #CFC6E2; padding: 48px 0 32px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #CFC6E2; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer h4 { color: var(--white); margin: 0 0 12px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #3A2E52; padding-top: 20px; font-size: 13px; color: #9C90B5; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand span { color: var(--white); font-weight: 800; font-size: 20px; }

/* Page header for inner pages */
.page-head { background: var(--night); color: var(--white); padding: 56px 0 48px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; font-weight: 800; }
.page-head p { margin: 0; color: #E9E1FD; max-width: 640px; font-size: 18px; }

/* Forms */
.form-wrap { max-width: 820px; margin: 0 auto; }
form fieldset {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 10px;
  margin: 0 0 24px; background: var(--white);
}
form legend { font-weight: 800; color: var(--night); font-size: 19px; padding: 0 8px; }
.fhint { color: var(--muted); font-size: 14px; margin: -4px 0 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label, .group-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req { color: var(--violet); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number],
.field input[type=date], .field input[type=url], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: 15px; }
.check input { margin-top: 4px; accent-color: var(--violet); width: 17px; height: 17px; flex: none; }
.consent .check { margin-bottom: 12px; }
.small { font-size: 13px; color: var(--muted); }
.photo-slot { border: 1.5px dashed var(--lavender); border-radius: 12px; padding: 14px; background: var(--mist); }
.photo-slot input { font-size: 14px; width: 100%; }
.photo-preview { margin-top: 10px; display: none; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.form-msg { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; display: none; }
.form-msg.ok { display: block; background: #ECFDF3; border: 1px solid #A6E9C1; color: #14532D; }
.form-msg.err { display: block; background: #FEF2F2; border: 1px solid #FCA5A5; color: #7F1D1D; }
.field-error { color: #B91C1C; font-size: 13px; margin-top: 4px; }

/* Legal pages */
.legal-doc { max-width: 780px; margin: 0 auto; }
.legal-doc h2 { color: var(--night); font-size: 22px; margin: 36px 0 10px; }
.legal-doc .draft-note { background: #FFF7E6; border: 1px solid #F5D08A; padding: 14px 18px; border-radius: 10px; font-size: 15px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split, .grid-3, .grid-2, .site-footer .wrap { grid-template-columns: 1fr; }
  .hero-mark { width: 200px; order: -1; }
  .hero { padding: 56px 0 64px; }
  section { padding: 56px 0; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 16px 20px 22px; border-bottom: 1px solid var(--line); gap: 14px; }
  .nav.open { display: flex; }
  .row, .row-3 { grid-template-columns: 1fr; }
  form fieldset { padding: 20px 16px 6px; }
  .panel { padding: 28px 22px; }
  .wrap { padding: 0 16px; }
}

/* ===================== v2: young and fun layer ===================== */
:root { --grad: linear-gradient(120deg, #7C3AED 0%, #A78BFA 50%, #6D28D9 100%); --shadow: 0 18px 40px -18px rgba(61,18,112,.45); }
h1, h2, h3 { letter-spacing: -.01em; }
.grad-text { background: linear-gradient(90deg, #C4B5FD, #fff 45%, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text-dark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero { position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero::before { width: 380px; height: 380px; background: #8B5CF6; left: -120px; bottom: -160px; }
.hero::after { width: 260px; height: 260px; background: #C4B5FD; right: 8%; top: -120px; opacity: .25; }
.hero .wrap { position: relative; z-index: 1; }
.hero-stack { position: relative; height: 420px; justify-self: center; width: 100%; max-width: 400px; }
.polaroid { position: absolute; width: 190px; background: #fff; border-radius: 18px; padding: 10px 10px 14px; box-shadow: var(--shadow); color: var(--ink); transition: transform .3s; }
.polaroid .ph { aspect-ratio: 3/4; border-radius: 12px; display: grid; place-items: center; font-size: 64px; }
.polaroid .cap { font-weight: 800; font-size: 14px; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.polaroid .cap span { font-weight: 700; font-size: 11px; background: var(--mist); color: var(--royal); padding: 3px 8px; border-radius: 999px; }
.polaroid.p1 { left: 0; top: 40px; transform: rotate(-8deg); }
.polaroid.p2 { right: 0; top: 0; transform: rotate(7deg); }
.polaroid.p3 { left: 22%; top: 170px; transform: rotate(-2deg); z-index: 2; }
.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 3; }
.ph.g1 { background: linear-gradient(160deg, #C4B5FD, #7C3AED); }
.ph.g2 { background: linear-gradient(160deg, #F3EDFE, #A78BFA); }
.ph.g3 { background: linear-gradient(160deg, #8B5CF6, #3D1270); }
.sticker { position: absolute; z-index: 4; background: #fff; color: var(--night); font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
.sticker.s1 { right: -6px; bottom: 40px; transform: rotate(-6deg); }
.sticker.s2 { left: -10px; top: 0; transform: rotate(5deg); background: var(--violet); color: #fff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badges span { font-size: 14px; font-weight: 700; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 7px 14px; border-radius: 999px; }

.marquee { background: var(--violet); color: #fff; overflow: hidden; white-space: nowrap; padding: 14px 0; font-weight: 800; font-size: 18px; }
.marquee .track { display: inline-block; animation: scroll 38s linear infinite; }
.marquee .track span { margin: 0 22px; }
.marquee .track span.dot { opacity: .6; margin: 0; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

.card { transition: transform .2s, box-shadow .2s; border-radius: 20px; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { font-size: 34px; margin-bottom: 12px; display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--mist); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow); border-color: var(--lavender); }
.cat .emo { font-size: 30px; }
.cat h3 { margin: 8px 0 4px; font-size: 18px; color: var(--night); }
.cat p { margin: 0; font-size: 14px; color: var(--muted); }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
.compare th { background: var(--night); color: #fff; font-weight: 800; }
.compare th.us, .compare td.us { background: #F7F2FF; color: var(--night); font-weight: 700; }
.compare thead th.us { background: var(--violet); color: #fff; }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.scam-note { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 2px dashed var(--lavender); border-radius: 18px; padding: 18px 22px; margin-top: 28px; }
.scam-note .emo { font-size: 26px; }

/* ===================== Sign-up wizard ===================== */
.wizard-top { position: sticky; top: 68px; z-index: 5; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; }
.steps li { flex: 1; height: 8px; border-radius: 999px; background: var(--line); transition: background .3s; }
.steps li.done { background: var(--violet); }
.steps li.now { background: var(--orchid); }
.wizard-meta { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--muted); }
.wizard-meta b { color: var(--night); }
.strength { display: inline-flex; align-items: center; gap: 8px; }
.strength .bar { width: 90px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.strength .bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }

.step-panel { display: none; animation: pop .25s ease-out; }
.step-panel.active { display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-title { font-size: 28px; font-weight: 800; color: var(--night); margin: 28px 0 4px; }
.step-sub { color: var(--muted); margin: 0 0 22px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 40px; }
.btn-ghost { background: var(--mist); color: var(--night); }
.btn-ghost:hover { background: var(--lavender); color: var(--night); }

.dob { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr; gap: 10px; }
.phone-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }

/* chips = big tappable multi-select */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; transition: all .15s; user-select: none; }
.chip input:checked + span { background: var(--violet); color: #fff; border-color: var(--violet); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(124,58,237,.3); }

/* Media uploader */
.dropzone { border: 2.5px dashed var(--orchid); border-radius: 22px; background: var(--mist); padding: 30px 20px; text-align: center; transition: background .2s, border-color .2s; }
.dropzone.drag { background: #E9DEFF; border-color: var(--violet); }
.dropzone .big { font-size: 42px; }
.dropzone h4 { margin: 6px 0 4px; font-size: 19px; color: var(--night); }
.dropzone p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.dz-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dz-buttons label { cursor: pointer; }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 18px; }
.thumb { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--line); box-shadow: 0 4px 12px -6px rgba(61,18,112,.4); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(30,20,48,.75); color: #fff; font-size: 16px; cursor: pointer; line-height: 1; }
.thumb .badge { position: absolute; left: 6px; bottom: 6px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.thumb .star { position: absolute; left: 6px; top: 6px; background: rgba(255,255,255,.9); border: 0; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 4px 8px; cursor: pointer; color: var(--night); }
.media-count { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 18px; }
.tip { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 13px; text-align: center; }
.tip b { display: block; font-size: 22px; }
.link-list .link-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.upload-progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0; display: none; }
.upload-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.success-card { text-align: center; padding: 50px 24px; border-radius: 26px; background: var(--grad); color: #fff; margin: 30px 0 60px; }
.success-card h2 { font-size: 34px; margin: 10px 0; }

@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .hero-stack { height: 330px; max-width: 330px; } .polaroid { width: 150px; } .tips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .wizard-top { top: 68px; } .step-title { font-size: 24px; } .dob { grid-template-columns: 1fr 1.3fr 1.1fr; } .chip span { padding: 9px 14px; font-size: 14px; } }
[hidden] { display: none !important; }
@media (max-width: 760px) { .wizard-meta { font-size: 13px; } .strength .label { display: none; } .strength .bar { width: 70px; } }

/* v3: lighter hero and page headers (2026-11-04) */
.hero { background: radial-gradient(900px 480px at 85% -10%, #C4B5FD 0%, transparent 60%), linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); }
.hero::before { background: #C4B5FD; opacity: .45; }
.hero::after { background: #FFFFFF; opacity: .2; }
.hero p.lead { color: #FFFFFF; }
.eyebrow { color: #F3EDFE; }
.grad-text { background: linear-gradient(90deg, #FFFFFF, #F3EDFE 50%, #FFFFFF); -webkit-background-clip: text; background-clip: text; color: transparent; text-decoration: underline; text-decoration-color: #C4B5FD; text-underline-offset: 6px; }
.hero-badges span { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }
.page-head { background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); }
.page-head p { color: #FFFFFF; }
.marquee { background: #6D28D9; }
