/* ===========================================================
   DSPX — brand site styles
   Brand name lives in the HTML (search: BRAND). Change once.
   No external dependencies → fast, self-contained, deploy-ready.
   =========================================================== */

:root {
  --bg: #faf7f2;
  --bg-soft: #f3ede3;
  --ink: #2b2622;
  --muted: #8a8178;
  --card: #ffffff;
  --border: #ece5db;
  --accent: #c2683f;      /* terracotta */
  --accent-dark: #a4502c;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(43, 38, 34, .04), 0 8px 24px rgba(43, 38, 34, .06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 242, .85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--ink);
}
.brand span { color: #d63b2f; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink); font-size: .95rem; }
.nav-links a:hover { color: var(--accent-dark); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 16px; border-radius: 999px; font-size: .9rem;
}
.nav-cta:hover { background: var(--accent-dark); text-decoration: none; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  padding: 92px 0 72px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 82% -12%, #f6e7dd 0%, rgba(246,231,221,0) 60%),
    radial-gradient(700px 340px at -8% 105%, #f1ddc9 0%, rgba(241,221,201,0) 65%),
    var(--bg);
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px 6px 10px; font-size: .8rem; font-weight: 600; color: var(--accent-dark);
  margin: 0 0 16px; box-shadow: var(--shadow);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #3b6d11; flex: none; position: relative; }
.dot-live::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3b6d11;
  animation: livepulse 1.8s ease-out infinite;
}
@keyframes livepulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: .76rem;
  color: var(--accent-dark); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08; margin: 0 0 18px; max-width: 17ch;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--accent-dark), var(--accent) 60%, #e0925f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 1.18rem; color: var(--muted); max-width: 56ch; margin: 0 0 30px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(194,104,63,.28); }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(194,104,63,.36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; transform: translateY(-2px); }
.btn-glow { box-shadow: 0 0 0 4px rgba(194,104,63,.18), 0 10px 24px rgba(194,104,63,.3); }

.trustrow { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.trustchip { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.trustchip.soon { color: var(--muted); font-weight: 500; }
.trustchip.soon i { font-style: normal; font-size: .72rem; color: var(--accent-dark); margin-left: 4px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 12px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(43,38,34,.10); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft);
  display: grid; place-items: center; margin-bottom: 16px; font-size: 1.4rem;
}
.ico-a { background: #f6e7dd; }
.ico-b { background: #e7eefb; }
.ico-c { background: #e7f0e0; }
.ico-d { background: #f6dcd5; }
.card h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- about / split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-bg {
  background: var(--bg-soft);
}
.about h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0 0 16px; }
.about p { color: #5e564e; margin: 0 0 14px; }
.media {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--border);
  background:
    linear-gradient(135deg, #f6e7dd 0%, #efe4d6 100%);
  display: grid; place-items: center; color: var(--accent-dark); font-family: var(--serif);
  font-size: 1.1rem; box-shadow: var(--shadow);
}

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .card { max-width: 540px; margin: 0 auto; }
.contact h2 { font-family: var(--serif); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border); background: var(--bg-soft);
  padding: 40px 0; color: var(--muted); font-size: .92rem;
}
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 22px 80px; }
.legal h1 { font-family: var(--serif); font-size: 2.1rem; margin-bottom: 6px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-family: var(--serif); font-size: 1.3rem; margin-top: 34px; }
.legal p, .legal li { color: #4e463e; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
}

/* ---------- hero two-column + app preview ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-grid .lead { max-width: 48ch; margin-bottom: 28px; }
.hero-grid h1 { max-width: 18ch; }

.app-win { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 50px rgba(43, 38, 34, .13); overflow: hidden; animation: appfloat 5s ease-in-out infinite; }
@keyframes appfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.stat.hi { background: linear-gradient(135deg, #f6e7dd, #efd9c4); border-color: #e6cdb2; }
.win-bar { display: flex; gap: 7px; padding: 13px 15px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; background: #ddd3c6; }
.win-bar i.r { background: #e2a08c; }
.win-bar i.y { background: #e8c98a; }
.win-bar i.g { background: #b4cf93; }
.win-body { padding: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; }
.stat .l { font-size: .67rem; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: 1.45rem; margin-top: 5px; }
.applist { margin-top: 8px; }
.applist .row { display: flex; align-items: center; gap: 11px; padding: 12px 2px; border-top: 1px solid var(--border); font-size: .93rem; }
.applist .row .d { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pill { margin-left: auto; font-size: .7rem; padding: 4px 11px; border-radius: 999px; font-weight: 500; }
.pill.ok { background: #e7f0e0; color: #3b6d11; }
.pill.warn { background: #faeeda; color: #a4502c; }
.pill.new { background: #e7eefb; color: #185fa5; }

/* ---------- step numbers ---------- */
.stepnum { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 16px; }

/* ---------- closing CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #2b2622, #3a3229 60%, #4a3324);
  border-radius: 18px; padding: 50px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 220px at 85% -20%, rgba(194,104,63,.35), rgba(194,104,63,0) 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 10px; color: #fff; }
.cta-band p { color: #d9cfc4; margin: 0 0 26px; }
.cta-band .btn-primary { background: var(--accent); color: #fff; }
.cta-band .btn-primary:hover { background: var(--accent-dark); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ============ Trend Radar page ============ */
.trend-top { padding: 46px 0 6px; }
.trend-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem); margin: 6px 0 10px; }
.trend-sub { color: var(--muted); max-width: 72ch; margin: 0; }
.tr-summary { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-top: 20px; }
.tr-summary p { margin: 0 0 12px; color: #4e463e; }
.tr-summary p:last-child { margin-bottom: 0; }
.tr-label { font-size: .7rem; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.kwrow { display: flex; flex-wrap: wrap; gap: 8px; }
.kw { background: #f6e7dd; color: var(--accent-dark); border-radius: 999px; padding: 5px 12px; font-size: .82rem; }
.toppick { background: var(--accent); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 500; }

.controls { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 28px 0 18px; }
.chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: .84rem; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.controls .spacer { flex: 1 1 auto; }
.sortsel { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--card); font: inherit; font-size: .85rem; color: var(--ink); }

.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; padding-bottom: 60px; }
.opp-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.opp-card:hover { box-shadow: 0 12px 30px rgba(43, 38, 34, .10); }
.opp-head { display: flex; align-items: flex-start; gap: 12px; }
.rankbadge { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; }
.opp-title { font-family: var(--serif); font-size: 1.16rem; margin: 0 0 2px; line-height: 1.25; }
.opp-sub { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.score { margin-left: auto; text-align: center; flex: none; }
.score .n { font-family: var(--serif); font-size: 1.35rem; color: var(--accent-dark); line-height: 1; }
.score .l { font-size: .58rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.scorebar { height: 7px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.scorefill { height: 100%; background: linear-gradient(90deg, #e8c98a, #c2683f); border-radius: 999px; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.badge { font-size: .72rem; padding: 4px 10px; border-radius: 999px; font-weight: 500; }
.badge .k { opacity: .65; font-weight: 400; }
.b-high { background: #e7f0e0; color: #3b6d11; }
.b-med { background: #faeeda; color: #a4502c; }
.b-low { background: #f1e7e3; color: #8a5a47; }
.b-comp-high { background: #f6dcd5; color: #a4502c; }
.b-comp-med { background: #faeeda; color: #a4502c; }
.b-comp-low { background: #e7f0e0; color: #3b6d11; }
.fmt { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: #e7eefb; color: #185fa5; font-weight: 500; }
.why { font-size: .92rem; color: #5e564e; margin: 0; }
.pricerow { display: flex; gap: 16px; flex-wrap: wrap; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; font-size: .82rem; color: var(--muted); }
.pricerow b { font-family: var(--serif); font-size: .98rem; color: var(--ink); display: block; }
.opp-card details { border-top: 1px solid var(--border); padding-top: 11px; }
.opp-card summary { cursor: pointer; font-size: .85rem; color: var(--accent-dark); font-weight: 500; }
.opp-card details .dbody { margin-top: 12px; font-size: .86rem; color: #4e463e; display: flex; flex-direction: column; gap: 11px; }
.seo { background: var(--bg-soft); border-radius: 8px; padding: 9px 11px; font-size: .82rem; line-height: 1.5; }
.tagwrap { display: flex; flex-wrap: wrap; gap: 6px; }
.tagchip { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: .73rem; }
.tr-loading { text-align: center; color: var(--muted); padding: 80px 0; font-size: 1.05rem; }
@media (max-width: 820px) { .opp-grid { grid-template-columns: 1fr; } }
