/*
  Shipme SaaS prototype styles
  Step 1A: extracted from the original single-file prototype.
  This file owns the SaaS/admin shell styling only. Storefront/module-specific
  styling will move into separate design/module files in the next steps.
*/

:root {
  --navy: #0A2540;
  --navy-soft: #13314f;
  --teal: #1DC88E;
  --muted: #5a6b7b;
  --faint: #8a98a6;
  --border: #eef1f5;
  --input: #dbe2ea;
  --bg: #f7f9fc;
  --mock: #f6f8fb;
  --surface: #ffffff;
  --shadow: 0 8px 30px rgba(10,37,64,.06);
  --shadow-strong: 0 18px 44px rgba(16,17,22,.12);
  --font: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: #fff; color: var(--navy); }
button, input, textarea { font-family: var(--font); }
button, a { cursor: pointer; }
a { color: inherit; text-decoration: none; }
input:focus, textarea:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(29,200,142,.15);
  outline: none;
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #cfd8e3; border-radius: 8px; }

.logo { font-weight: 700; font-size: 26px; letter-spacing: -.04em; line-height: 1; }
.logo.light { color: #fff; }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 20px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10,37,64,.18);
  font-size: 14.5px;
  font-weight: 600;
}
.btn.teal { background: var(--teal); box-shadow: 0 2px 8px rgba(29,200,142,.25); }
.btn.secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--input); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 15px 28px; font-size: 16px; }
.btn.full { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 3px 9px;
  background: #eef1f5;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 6px; background: currentColor; }
.pill.green { background: #e6f9f1; color: #0e8f63; }
.pill.amber { background: #fff4e0; color: #b06f00; }
.pill.red { background: #fdeaea; color: #c0392b; }
.pill.navy { background: #e8eef5; color: var(--navy); }

/* Public marketing surface */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.public-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.desk-nav { display: flex; align-items: center; gap: 30px; }
.navlink { color: var(--navy-soft); font-size: 14.5px; font-weight: 500; }
.mob-nav { display: none; }
.hero { max-width: 900px; margin: 0 auto; padding: 150px 24px 0; text-align: center; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -.03em; }
.hero p { max-width: 620px; margin: 44px auto 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); line-height: 1.55; }
.hero-actions { margin-top: 56px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.underline-word { position: relative; white-space: nowrap; }
.underline-word svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 18px; }
.shot-wrap { max-width: 1080px; margin: 0 auto; padding: 100px 24px 110px; }
.shot-shell { border-radius: 18px; padding: 12px; background: linear-gradient(180deg,#f3f6fa,#e9eef5); box-shadow: 0 30px 80px rgba(10,37,64,.16); }
.shot { border-radius: 12px; background: #fff; overflow: hidden; border: 1px solid #e6ebf1; }
.shot-top { height: 38px; background: #f8fafc; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.dot { width: 11px; height: 11px; border-radius: 11px; }
.features { background: #fafbfd; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 110px 24px; }
.section-head { margin-bottom: 70px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.icbox { width: 46px; height: 46px; border-radius: 12px; background: #e6f9f1; color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; font-size: 18px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.pricing { max-width: 1080px; margin: 0 auto; padding: 110px 24px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 20px; }
.plan { position: relative; background: #fff; border: 1.5px solid #e6ebf1; border-radius: 18px; padding: 28px; }
.plan.pop { border: 2px solid var(--navy); box-shadow: 0 16px 40px rgba(10,37,64,.12); }
.plan.sel { border: 2px solid var(--teal); box-shadow: 0 16px 40px rgba(10,37,64,.12); }
.plan h3 { font-size: 20px; }
.plan .best { margin-top: 6px; color: var(--faint); font-size: 13px; font-weight: 500; }
.price { margin: 16px 0 22px; display: flex; align-items: baseline; gap: 4px; }
.price b { font-size: 40px; letter-spacing: -.02em; }
.price span { color: var(--faint); font-size: 14px; }
.plan ul { list-style: none; margin-bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan li { color: var(--navy-soft); font-size: 14px; display: flex; gap: 9px; }
.faq { background: #fafbfd; border-top: 1px solid var(--border); padding: 70px 24px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #e6ebf1; border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; padding: 18px 22px; background: transparent; border: 0; color: var(--navy); font-size: 16px; font-weight: 600; text-align: left; }
.faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.footer { background: var(--navy); color: #fff; padding: 60px 24px 30px; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4,1fr); gap: 30px; margin-bottom: 40px; }
.footer h4 { margin-bottom: 14px; font-size: 13px; }
.footer p, .footer a, .footer-bottom { color: #8ba0b6; font-size: 14px; line-height: 1.5; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

/* Signup */
.signup-page { min-height: 100vh; background: #fafbfd; display: flex; flex-direction: column; }
.signup-top { background: #fff; border-bottom: 1px solid var(--border); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.steps { width: 100%; max-width: 620px; margin: 40px auto 0; padding: 0 24px; display: flex; align-items: flex-start; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #9aa7b4; font-size: 12px; font-weight: 500; white-space: nowrap; }
.step-dot { width: 32px; height: 32px; border-radius: 32px; background: #e6ebf1; color: #9aa7b4; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.step.on { color: var(--navy); }
.step.on .step-dot { background: var(--navy); color: #fff; }
.step.done .step-dot { background: var(--teal); color: #fff; }
.line { flex: 1; height: 2px; background: #e6ebf1; margin: 15px 8px; }
.signup-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 40px 24px; }
.account-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #e6ebf1; border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: var(--navy-soft); font-size: 13px; font-weight: 600; }
.field input { width: 100%; border: 1.5px solid var(--input); border-radius: 10px; padding: 12px 14px; color: var(--navy); font-size: 14.5px; }

/* App shell */
.app { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.app-top { height: 60px; background: var(--navy); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 50; }
.top-left { display: flex; align-items: center; gap: 16px; }
.store-switch { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 9px; padding: 7px 12px; font-size: 13.5px; font-weight: 500; }
.dropdown { position: absolute; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(10,37,64,.25); padding: 6px; z-index: 60; }
.switch-item { width: 100%; display: flex; align-items: center; gap: 9px; background: transparent; border: 0; border-radius: 8px; padding: 9px 10px; color: var(--navy); font-size: 13.5px; font-weight: 500; text-align: left; }
.switch-item:hover, .switch-item.on { background: #f5f8fb; }
.avatar { width: 34px; height: 34px; border-radius: 34px; background: var(--teal); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.app-body { flex: 1; display: flex; position: relative; }
.sidebar { width: 248px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; }
.side-back { display: flex; align-items: center; gap: 7px; background: #f5f8fb; border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; margin-bottom: 14px; color: var(--navy-soft); font-size: 13px; font-weight: 600; }
.side-btn { width: 100%; display: flex; align-items: center; gap: 11px; background: transparent; border: 0; border-radius: 10px; padding: 10px 13px; color: var(--muted); font-size: 14px; font-weight: 500; text-align: left; position: relative; }
.side-btn.on { background: #eef5ff; color: var(--navy); font-weight: 600; }
.side-btn.on::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--teal); border-radius: 3px; }
.main { flex: 1; min-width: 0; overflow: auto; padding: 28px; }
.drawer-btn { display: none; background: none; border: 0; color: #fff; }
.drawer-overlay { display: none; position: fixed; inset: 60px 0 0 0; background: rgba(10,37,64,.4); z-index: 44; }

.placeholder { border: 1.5px dashed #d4dce5; background: var(--mock); border-radius: 12px; padding: 16px; min-height: 120px; display: flex; flex-direction: column; gap: 10px; }
.empty { flex: 1; display: flex; align-items: stretch; justify-content: center; padding: 40px 24px; }
.empty-card { background: #fff; border: 1px solid #e6ebf1; border-radius: 20px; padding: 50px 44px; max-width: 480px; text-align: center; box-shadow: var(--shadow); }
.modal-back { position: fixed; inset: 0; background: rgba(10,37,64,.45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 18px; padding: 32px; width: 100%; max-width: 440px; box-shadow: 0 30px 80px rgba(10,37,64,.3); }
.setting-row { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 14px; }

/* Current Design workspace placeholder/preview. Step 1B will replace this with the imported builder engine. */
.dw { display: flex; flex-direction: column; height: calc(100vh - 172px); min-height: 720px; background: #fff; border: 1px solid #e6ebf1; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.dw-tabs { display: flex; gap: 4px; padding: 12px 24px 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.dw-tabs::-webkit-scrollbar { display: none; }
.dw-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--faint); font-size: 13.5px; font-weight: 500; padding: 9px 14px; border-radius: 10px 10px 0 0; white-space: nowrap; }
.dw-tab.on { color: var(--navy); background: #fff; border: 1px solid var(--border); border-bottom: 0; border-radius: 15px 15px 0 0; padding: 12px 16px 13px; margin: 0 6px -1px; font-weight: 600; box-shadow: 0 -2px 6px rgba(10,37,64,.04); }
.dw-split { flex: 1; min-height: 0; display: flex; }
.dw-editor { width: 430px; flex: 0 0 430px; background: #fff; border-right: 1px solid var(--border); overflow: auto; }
.dw-preview { flex: 1; min-width: 0; background: var(--bg); display: flex; flex-direction: column; }
.dw-bar { flex: 0 0 auto; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.dw-bar .lbl { color: #9aa7b4; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.vp { margin-left: auto; display: flex; gap: 2px; background: var(--bg); border-radius: 10px; padding: 3px; }
.vp button { border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; }
.vp button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(10,37,64,.08); }
.stage { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 30px 24px; }
.device { width: 412px; background: #fff; border: 1px solid #e7ebf0; border-radius: 26px; padding: 5px; box-shadow: var(--shadow-strong); }
.device .scr { height: 874px; background: #fff; border: 1px solid #f0f2f5; border-radius: 21px; overflow: auto; }
.desktop .device { width: 100%; background: transparent; border: 1px solid var(--border); border-radius: 14px; padding: 0; box-shadow: none; }
.desktop .scr { height: 600px; border-radius: 0; }
.bare .device { width: 402px; background: transparent; border: 1px solid var(--border); border-radius: 14px; padding: 0; box-shadow: none; }
.bare .scr { border-radius: 0; }

/* Storefront preview and current comparison module. Kept here for Step 1A only. */
.sf { font-family: Arial, sans-serif; background: #fff; color: #11151c; }
.sf-trust { height: 34px; background: #3157C9; color: #fff; display: flex; align-items: center; justify-content: center; font: 700 12px Arial; }
.sf-head { height: 68px; border-bottom: 1px solid #edf1f5; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.sf-logo { height: 32px; border-radius: 5px; background: #3157C9; color: #fff; font-weight: 800; font-style: italic; display: flex; align-items: center; padding: 0 10px; }
.sf-ham { width: 27px; height: 20px; background: linear-gradient(#111 0 3px, transparent 3px 8px, #111 8px 11px, transparent 11px 16px, #111 16px 19px); }
.sf-product { padding: 24px 22px; border-bottom: 1px solid #f0f2f5; }
.sf-img { height: 210px; border-radius: 16px; background: linear-gradient(135deg,#eef4f7,#dfe9ef); border: 1px solid #edf1f5; display: flex; align-items: center; justify-content: center; color: #7f91a4; font-weight: 700; }
.sf-product h1 { margin-top: 18px; font-size: 28px; letter-spacing: -.03em; }
.sf-product p { margin-top: 8px; color: #4f5c68; font-size: 15px; line-height: 1.45; }
.sf-cta { width: 100%; height: 52px; margin-top: 18px; border: 0; border-radius: 999px; background: #3157C9; color: #fff; font-size: 17px; font-weight: 800; }
.sf-pl { padding: 26px 22px; border-bottom: 1px solid #f0f2f5; }
.sf-pl .tag { margin-bottom: 12px; color: #9aa7b4; font: 700 11px Arial; text-transform: uppercase; }
.sf-pl .box { min-height: 110px; border: 1.5px dashed #d4dce5; background: var(--mock); border-radius: 12px; color: #9aa7b4; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.cmp-editor { padding: 18px 18px 84px; }
.cmp-save { position: sticky; top: 0; z-index: 5; background: linear-gradient(#fff 76%, rgba(255,255,255,0)); display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 16px; }
.cmp-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.cmp-state .dot { width: 8px; height: 8px; border-radius: 8px; background: var(--teal); }
.cmp-state.dirty .dot { background: #FE6B00; }
.cmp-card, .cmp-hero { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 16px; margin-top: 14px; }
.cmp-hero { display: flex; justify-content: space-between; gap: 14px; box-shadow: 0 8px 24px rgba(10,37,64,.05); }
.kicker { margin-bottom: 5px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cmp-hero h2 { font-size: 18px; }
.cmp-hero p, .cmp-card p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; border: 0; border-radius: 99px; background: #d9e1ea; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 20px; background: #fff; box-shadow: 0 1px 3px rgba(10,37,64,.18); }
.switch.on { background: var(--teal); }
.switch.on::after { left: 23px; }
.cmp-field { display: block; margin-top: 11px; }
.cmp-field span, .color-row span { display: block; margin-bottom: 6px; color: #4d5b6b; font-size: 12px; font-weight: 700; }
.cmp-field input, .row-top input { width: 100%; height: 40px; border: 1px solid var(--input); border-radius: 10px; padding: 0 11px; font-size: 13px; font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-row { display: grid; grid-template-columns: 1fr 48px 78px; gap: 10px; align-items: center; margin-top: 13px; }
.color-row input { width: 48px; height: 38px; border: 1px solid var(--input); border-radius: 10px; padding: 3px; }
.color-row code { height: 34px; border-radius: 9px; background: var(--mock); color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.add { border: 0; border-radius: 10px; padding: 8px 10px; background: #e6f9f1; color: #0e8f63; font-size: 12px; font-weight: 800; }
.row { padding: 10px; border: 1px solid #edf1f5; border-radius: 14px; background: #fbfcfe; margin-top: 10px; }
.row-top { display: grid; grid-template-columns: 1fr 32px; gap: 8px; }
.remove { width: 32px; height: 40px; border: 0; border-radius: 10px; background: #fff0f0; color: #bf3d3d; font-size: 20px; font-weight: 700; }
.bools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bool { display: flex; justify-content: space-between; border: 1px solid #e4eaf0; border-radius: 11px; background: #fff; padding: 8px 10px; color: #6b7887; font-size: 11px; font-weight: 800; }
.bool.on { border-color: rgba(29,200,142,.45); background: #f2fcf8; color: #0e8f63; }
.cmp-s { --accent: #3157C9; background: #fff; color: #252645; font-family: Poppins, Arial, sans-serif; padding: 38px 22px 54px; border-bottom: 1px solid #f0f2f5; }
.cmp-copy { max-width: 390px; margin: 0 auto 18px; }
.cmp-copy h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
.cmp-table { max-width: 390px; margin: 0 auto; overflow: hidden; background: #fff; border-radius: 0 0 24px 24px; box-shadow: 0 16px 34px rgba(24,45,82,.10); }
.cmp-grid { display: grid; grid-template-columns: minmax(0,1fr) 84px 64px; }
.cmp-th, .cmp-cell { min-height: 53px; display: flex; align-items: center; }
.cmp-th { min-height: 62px; }
.cmp-left { padding: 0 12px 0 26px; }
.cmp-left h2 { display: none; }
.cmp-prod { justify-content: center; background: var(--accent); color: #fff; }
.cmp-prod-head { border-radius: 7px 7px 0 0; padding: 0 8px; }
.cmp-prod-head span { font-size: 11px; font-weight: 800; font-style: italic; text-transform: uppercase; text-align: center; }
.cmp-other { justify-content: center; }
.cmp-other span { font-size: 16px; }
.cmp-feature { padding: 0 10px 0 26px; font-size: 17px; }
.mark { width: 31px; height: 31px; border-radius: 31px; display: flex; align-items: center; justify-content: center; }
.yes { background: #fff; color: var(--accent); }
.no { background: #9A9A9A; color: #fff; }
.desktop .cmp-copy { display: none; }
.desktop .cmp-table { max-width: 638px; }
.desktop .cmp-grid { grid-template-columns: minmax(0,1fr) 156px 130px; }
.desktop .cmp-th { min-height: 104px; }
.desktop .cmp-cell { min-height: 66px; }
.desktop .cmp-left h2 { display: block; font-size: 25px; }
.desktop .cmp-prod-head span { font-size: 20px; }
.desktop .cmp-other span { font-size: 23px; }
.desktop .cmp-feature { padding-left: 12px; font-size: 22px; }
.desktop .mark { width: 38px; height: 38px; }

@media (max-width: 860px) {
  .desk-nav { display: none; }
  .mob-nav { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .drawer-btn { display: block; }
  .sidebar { position: fixed; top: 60px; bottom: 0; left: 0; z-index: 45; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); }
  .drawer-overlay { display: block; }
  .dw-split { flex-direction: column; }
  .dw-editor { width: 100%; flex-basis: auto; max-height: 50vh; border-right: 0; border-bottom: 1px solid var(--border); }
  .dw { height: auto; }
  .two { grid-template-columns: 1fr; }
  .device { width: 100%; }
}
