/* ============================================================
   Craft My Case — flagship landing (index.html)
   Self-contained modern, conversion-focused styles.
   Isolated from style.css so partner.html is unaffected.
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6e8ef;
  --primary: #6d28d9;
  --primary-600: #7c3aed;
  --primary-700: #5b21b6;
  --accent: #f97316;
  --accent-600: #ea580c;
  --ok: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(79, 70, 229, .18);
  --maxw: 1160px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-600), var(--primary-700)); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-600)); color: #fff; box-shadow: 0 12px 30px rgba(249, 115, 22, .35); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--primary-700); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--primary); background: #faf5ff; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
}
.lp-nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.lp-brand { font-weight: 800; font-size: 20px; letter-spacing: -.3px; display: flex; align-items: center; gap: 9px; }
.lp-brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--primary-600), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 14px; }
.lp-menu { display: flex; gap: 6px; margin-left: 14px; }
.lp-menu a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; }
.lp-menu a:hover { color: var(--ink); background: var(--bg-soft); }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lp-burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.lp-hero { padding: 60px 0 40px; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; background: #faf5ff; color: var(--primary-700); border: 1px solid #ecd9ff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.lp-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 16px; font-weight: 800; }
.lp-hero h1 .grad { background: linear-gradient(135deg, var(--primary-600), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p.lp-sub { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 520px; }
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.lp-trust { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.lp-stars { color: #f59e0b; letter-spacing: 2px; }
.lp-avatars { display: flex; }
.lp-avatars span { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#a78bfa,#f0abfc); border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }

/* phone mockup visual */
.lp-visual { display: grid; place-items: center; }
.lp-phone {
  width: 250px; height: 500px; border-radius: 38px; background: #0f172a; padding: 12px;
  box-shadow: var(--shadow-lg); position: relative;
}
.lp-phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 8px; border-radius: 99px; background: #334155; }
.lp-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background:
  radial-gradient(120% 80% at 30% 10%, #c4b5fd 0%, #7c3aed 40%, #5b21b6 70%, #1e1b4b 100%);
  display: grid; place-items: center; position: relative; }
.lp-case { width: 150px; height: 320px; border-radius: 26px; background: linear-gradient(160deg, #ffffff, #ffe4cc); box-shadow: inset 0 0 0 6px rgba(255,255,255,.5); display: grid; place-items: center; transform: rotate(-4deg); }
.lp-case .emoji { font-size: 64px; }
.lp-case .name { position: absolute; bottom: 18px; font-size: 12px; color: #5b21b6; font-weight: 700; }
.lp-float { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.lp-float.f1 { top: 24px; right: -10px; }
.lp-float.f2 { bottom: 40px; left: -16px; }
.lp-float .ic { width: 26px; height: 26px; border-radius: 8px; background: #dcfce7; color: var(--ok); display: grid; place-items: center; }

/* ---------- Brand strip ---------- */
.lp-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 18px 0; }
.lp-strip-in { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-weight: 600; }
.lp-strip .lab { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }
.lp-strip .br { font-size: 18px; font-weight: 800; color: #334155; }

/* ---------- Sections ---------- */
.lp-section { padding: 70px 0; }
.lp-section.alt { background: var(--bg-soft); }
.lp-sec-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.lp-eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; font-weight: 700; color: var(--primary-600); }
.lp-sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 10px; letter-spacing: -.5px; }
.lp-sec-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* brand tabs */
.lp-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.lp-tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .15s ease; }
.lp-tab:hover { color: var(--ink); }
.lp-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* model grid */
.lp-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.lp-model { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.lp-model:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8c9ff; }
.lp-model .thumb { width: 100%; height: 120px; border-radius: 12px; background: linear-gradient(160deg,#ede9fe,#fae8ff); display: grid; place-items: center; font-size: 40px; margin-bottom: 14px; }
.lp-model h4 { margin: 0 0 6px; font-size: 16px; }
.lp-model .from { color: var(--muted); font-size: 13px; }
.lp-model .from b { color: var(--ink); }
.lp-model .go { margin-top: 14px; }

/* case-type / pricing cards */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-card.featured { border-color: var(--primary); box-shadow: 0 16px 40px rgba(124,58,237,.15); }
.lp-card .tag { position: absolute; top: -12px; right: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-600)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.lp-card .ico { width: 46px; height: 46px; border-radius: 12px; background: #faf5ff; color: var(--primary-700); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.lp-card h3 { margin: 0 0 6px; font-size: 19px; }
.lp-card .desc { color: var(--muted); font-size: 14px; margin: 0 0 14px; min-height: 38px; }
.lp-card .price { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.lp-card .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.lp-card ul { list-style: none; padding: 0; margin: 14px 0 18px; }
.lp-card li { padding: 5px 0; color: var(--muted); font-size: 14px; display: flex; gap: 8px; }
.lp-card li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.lp-step { text-align: center; }
.lp-step .num { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-600), var(--primary-700)); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; margin: 0 auto 14px; box-shadow: var(--shadow); }
.lp-step h4 { margin: 0 0 6px; }
.lp-step p { color: var(--muted); font-size: 14px; margin: 0; }

/* testimonials */
.lp-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.lp-review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.lp-review .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 8px; }
.lp-review p { margin: 0 0 14px; font-size: 15px; }
.lp-review .who { display: flex; align-items: center; gap: 10px; }
.lp-review .ava { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#a78bfa,#f0abfc); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.lp-review .who b { font-size: 14px; } .lp-review .who span { font-size: 12px; color: var(--muted); display: block; }

/* final CTA */
.lp-cta { background: linear-gradient(135deg, #4c1d95, #7c3aed); color: #fff; border-radius: 24px; padding: 54px 32px; text-align: center; }
.lp-cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; }
.lp-cta p { color: #e9d5ff; margin: 0 0 24px; font-size: 17px; }

/* footer */
.lp-footer { background: #0f172a; color: #cbd5e1; padding: 50px 0 30px; }
.lp-footer a { color: #cbd5e1; }
.lp-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.lp-footer h3 { color: #fff; font-size: 20px; margin: 0 0 10px; }
.lp-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; }
.lp-footer li { padding: 5px 0; font-size: 14px; }
.lp-foot-bottom { border-top: 1px solid #1e293b; margin-top: 30px; padding-top: 18px; font-size: 13px; color: #94a3b8; text-align: center; }
.lp-note { font-size: 13px; color: var(--muted); text-align: center; padding: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-visual { order: -1; }
  .lp-menu { display: none; }
  .lp-burger { display: block; }
  .lp-foot-grid { grid-template-columns: 1fr; }
  .lp-actions .btn-secondary { display: none; }
}
