/* ── SiteSnap App Pages — shared stylesheet ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #E05C2A;
  --bg:        #FAF8F5;
  --fg:        #2A2523;
  --muted:     #706B68;
  --border:    #EAE5DF;
  --secondary: #F2EDE8;
  --white:     #FFFFFF;
  --radius:    1rem;
  --font:      system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body { font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 4rem; display: flex; align-items: center; padding: 0 1.5rem;
}
.nav-inner { max-width: 72rem; margin: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.nav-logo .zap { width: 2rem; height: 2rem; border-radius: .6rem; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; transform: rotate(3deg); }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-link { padding: .45rem .75rem; border-radius: .5rem; font-size: .9rem; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
.nav-link:hover { background: var(--secondary); color: var(--fg); }
.nav-cta { background: var(--primary); color: #fff; padding: .5rem 1.25rem; border-radius: 9999px; font-weight: 600; font-size: .9rem; box-shadow: 0 2px 8px rgba(224,92,42,.3); }
.nav-cta:hover { opacity: .9; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); background: var(--white); padding: 3.5rem 1.5rem 2rem; margin-top: 0; }
.footer-inner { max-width: 72rem; margin: auto; display: flex; flex-direction: column; gap: 2.5rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
.footer-brand-col { max-width: 18rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.1rem; margin-bottom: .75rem; }
.footer-brand .zap { width: 2rem; height: 2rem; border-radius: .6rem; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.footer-tagline { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .6rem; }
.social-btn { width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: var(--secondary); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: background .15s, border-color .15s; text-decoration: none; color: var(--fg); }
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: .65rem; }
.footer-col-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--fg); margin-bottom: .3rem; }
.footer-col a { font-size: .9rem; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.75rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: .82rem; color: var(--muted); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .82rem; color: var(--muted); transition: color .15s; }
.footer-legal a:hover { color: var(--fg); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem 1.5rem; border-radius: 9999px; font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: opacity .15s, transform .15s; white-space: nowrap; }
.btn:hover { opacity: .88; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(224,92,42,.25); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--fg); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--secondary); }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }

/* ── CARDS ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* ── BADGE ── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; background: var(--secondary); color: var(--muted); border: 1px solid var(--border); }
.badge-primary { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── FORMS ── */
.form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--fg); }
.form-input { padding: .6rem .9rem; border: 1.5px solid var(--border); border-radius: .6rem; font-size: .95rem; font-family: var(--font); background: var(--white); color: var(--fg); width: 100%; transition: border-color .15s; }
.form-input:focus { outline: none; border-color: var(--primary); }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }

/* ── SECTION ── */
.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.container { max-width: 72rem; margin: auto; }
.section-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); margin-bottom: 1rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 1rem; }
.section-sub { font-size: 1.1rem; color: var(--muted); max-width: 36rem; }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; }
.grid-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media(max-width:700px){ .grid-halves { grid-template-columns: 1fr; } }

/* ── UTIL ── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: .9rem; }

/* ── STAT CARD ── */
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.stat-card .stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; margin-top: .25rem; }
.stat-card .stat-delta { font-size: .8rem; color: #22c55e; margin-top: .2rem; }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; padding: .75rem 1rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--border); }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
.status-pill { display: inline-block; padding: .2rem .7rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.status-new    { background: #fef3c7; color: #92400e; }
.status-read   { background: #e0f2fe; color: #075985; }
.status-closed { background: #f1f5f9; color: #475569; }

/* ── BROWSER MOCKUP ── */
.browser { border-radius: .8rem; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.browser-bar { background: #f4f4f4; padding: .5rem .9rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid #e5e5e5; }
.browser-dots { display: flex; gap: .3rem; }
.browser-dot { width: .7rem; height: .7rem; border-radius: 50%; }
.browser-url { background: #fff; border: 1px solid #e5e5e5; border-radius: .4rem; padding: .2rem .7rem; font-size: .75rem; color: #888; flex: 1; max-width: 280px; display: flex; align-items: center; gap: .3rem; }

/* ── STEPS ── */
.steps { display: flex; gap: 0; margin-bottom: 2rem; }
.step { flex: 1; text-align: center; position: relative; }
.step::after { content:''; position:absolute; top:1.1rem; left:50%; width:100%; height:2px; background: var(--border); z-index:0; }
.step:last-child::after { display:none; }
.step-num { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--secondary); color: var(--muted); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; margin: 0 auto .5rem; position: relative; z-index:1; border: 2px solid var(--border); }
.step.active .step-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.step.done .step-num { background: #22c55e; color: #fff; border-color: #22c55e; }
.step-label { font-size: .75rem; font-weight: 600; color: var(--muted); }
.step.active .step-label { color: var(--primary); }

/* ── EDITOR LAYOUT ── */
.editor-wrap { display: flex; height: calc(100vh - 4rem - 4rem); }
.editor-sidebar { width: 420px; min-width: 280px; border-right: 1px solid var(--border); background: var(--white); overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.editor-preview { flex: 1; overflow: hidden; background: var(--secondary); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.editor-topbar { height: 4rem; border-bottom: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; position: sticky; top: 4rem; z-index: 10; }
.editor-section { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.editor-section-title { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; }

/* ── PLAN CARD ── */
.plan-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 1.25rem; padding: 2rem; display: flex; flex-direction: column; position: relative; }
.plan-card.featured { border-color: var(--primary); box-shadow: 0 8px 32px rgba(224,92,42,.12); }
.plan-card .plan-badge { position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: .3rem 1.25rem; border-radius: 9999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.plan-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; margin: 1.25rem 0; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; flex: 1; }
.plan-features li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.plan-check { color: var(--primary); font-weight: 700; flex-shrink: 0; }
.plan-check-green { color: #22c55e; }

/* ── TEMPLATE CARD ── */
.tpl-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: 3rem 0; border-top: 1px solid var(--border); }
.tpl-section:first-of-type { border-top: none; }
.tpl-info { display: flex; flex-direction: column; gap: 1rem; }
.tpl-features { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.tpl-features li { display: flex; gap: .5rem; align-items: center; font-size: .88rem; color: var(--fg); }
.tpl-check { font-size: .75rem; color: var(--primary); font-weight: 700; }
@media(max-width:700px){ .tpl-section { grid-template-columns: 1fr; } }

/* ── DASHBOARD CHART PLACEHOLDER ── */
.chart-bar-wrap { display: flex; align-items: flex-end; gap: 4px; height: 80px; padding: 0 4px; }
.chart-bar { flex: 1; border-radius: 3px 3px 0 0; background: var(--primary); opacity: .7; transition: opacity .15s; min-width: 6px; }
.chart-bar:hover { opacity: 1; }