:root {
  --bg: #161826;
  --surface: #232532;
  --surface-deep: #1b1d2b;
  --text: #e9e9ed;
  --soft: #cfd3e5;
  --muted: #9397ab;
  --line: rgba(233, 233, 237, .16);
  --accent: #9184d9;
  --accent-soft: #d2cefd;
  --accent-deep: #423a6a;
  --success: #a7d8b4;
  --radius: 8px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(53, 59, 128, .44), transparent 34rem),
    var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
}
body::before {
  content: "";
  position: fixed;
  inset: 68px 0 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(63, 66, 77, .42) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: .45;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.app-head {
  min-height: 58px;
  padding: 10px max(18px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(22, 24, 38, .9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand i { font-style: normal; color: var(--muted); font-weight: 400; }
.preview { padding: 6px 10px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent-soft); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

main { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 62px 0 78px; }
.welcome { max-width: 760px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--accent); }
.welcome h1 { margin: 0 0 16px; font-size: clamp(2.7rem, 7vw, 5.6rem); font-weight: 500; line-height: .95; letter-spacing: -.045em; }
.welcome h1::after { content: " Keep the soul."; display: block; color: var(--muted); }
.welcome > p:last-child { margin: 0; color: var(--soft); font-size: 1.05rem; }

.tabs { display: inline-flex; gap: 0; margin: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-deep); }
.tab { min-width: 150px; min-height: 46px; padding: 10px 18px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.tab:last-child { border-right: 0; }
.tab.active { color: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(145, 132, 217, .08); }
.panel { display: none; }
.panel.active { display: block; }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.action { min-height: 142px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(35, 37, 50, .9); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); transition: transform .24s ease, border-color .24s ease, background .24s ease; }
.action:hover, .action:focus-visible { border-color: var(--accent); transform: translateY(-3px); outline: 0; background: #282a3a; }
.action.primary { border-color: rgba(145, 132, 217, .65); background: linear-gradient(145deg, rgba(93, 82, 148, .6), rgba(35, 37, 50, .92)); }
.action span, .tool-list span { font-size: 1.12rem; font-weight: 600; }
.action small, .tool-list small { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }

.install-card { margin-top: 18px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(35, 37, 50, .92); }
.install-card h2 { margin: 0 0 6px; font-size: 1.65rem; font-weight: 500; letter-spacing: -.02em; }
.install-card p:last-child { margin: 0; color: var(--muted); }
.install-button { min-width: 150px; padding: 13px 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: transparent; color: var(--accent-soft); font-weight: 500; cursor: pointer; }
.install-button:hover, .install-button:focus-visible { background: rgba(145, 132, 217, .14); outline: 0; }

.tool-list { display: grid; gap: 10px; }
.tool-list a { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(35, 37, 50, .92); }
.tool-list a:hover, .tool-list a:focus-visible { border-color: var(--accent); outline: 0; }
.tool-list small { max-width: 46ch; text-align: right; }

.install-help { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; padding: 18px; background: rgba(8, 9, 16, .8); }
.install-help[hidden] { display: none; }
.install-help > div { position: relative; width: min(520px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 22px 90px #000; }
.install-help h2 { margin: 0 0 10px; font-size: 1.7rem; font-weight: 500; }
.install-help ol { margin: 0; padding-left: 22px; color: var(--soft); }
.install-help li + li { margin-top: 8px; }
.close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--text); font-size: 1.7rem; cursor: pointer; }
.update-toast { position: fixed; right: 16px; bottom: 16px; padding: 11px 14px; border-radius: var(--radius); background: var(--success); color: #111820; font-weight: 600; }
.update-toast[hidden] { display: none; }

.sales-main { padding-top: 70px; }
.sales-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 54px; align-items: center; }
.sales-hero h1 { margin: 10px 0 22px; font-size: clamp(3.2rem, 7.2vw, 6.8rem); font-weight: 500; line-height: .92; letter-spacing: -.045em; }
.sales-hero h1 span { color: var(--muted); }
.sales-lead { max-width: 46rem; margin: 0; color: var(--soft); font-size: 1.12rem; }
.price-card { padding: 14px 14px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(35, 37, 50, .94); text-align: center; box-shadow: 0 18px 46px rgba(0, 0, 0, .28); }
.sales-photo { width: 100%; height: 270px; margin-bottom: 22px; object-fit: cover; object-position: center 38%; border-radius: 9px; }
.price-card .eyebrow::before { display: none; }
.price { font-size: 4.5rem; line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.price sup { font-size: 1.8rem; color: var(--accent-soft); }
.price-card > p:not(.eyebrow) { margin: 5px 0 20px; color: var(--soft); }
.price-card small { display: block; margin-top: 12px; color: var(--muted); }
.refund-policy { margin: 16px 4px 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.refund-policy-wide { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.pay-button, .request-button { display: block; padding: 13px 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: transparent; color: var(--accent-soft); font-weight: 500; text-align: center; }
.pay-button:hover, .request-button:hover { background: rgba(145, 132, 217, .14); }

.included { margin-top: 74px; padding-top: 40px; border-top: 1px solid var(--line); }
.included h2 { margin: 0 0 22px; font-size: 2.2rem; font-weight: 500; letter-spacing: -.03em; }
.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.included-grid div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(35, 37, 50, .9); }
.included-grid b, .included-grid span { display: block; }
.included-grid b { font-size: 1rem; font-weight: 600; }
.included-grid span { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.steps { margin-top: 48px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(35, 37, 50, .92); }
.steps > div { display: flex; gap: 15px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.steps > div > span { display: grid; place-items: center; min-width: 31px; height: 31px; border-radius: 50%; background: var(--accent-deep); color: var(--accent-soft); font-weight: 600; }
.steps p { margin: 0; }
.steps b, .steps small { display: block; }
.steps small { color: var(--muted); margin-top: 2px; }
.request-button { margin-top: 18px; }

@media (max-width: 760px) {
  .sales-hero { grid-template-columns: 1fr; gap: 30px; }
  .included-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .app-head { min-height: 58px; }
  .brand { font-size: .92rem; }
  .brand img { width: 30px; height: 30px; }
  .preview { font-size: .62rem; }
  main { width: min(100% - 28px, 1120px); padding-top: 38px; }
  .welcome h1 { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; min-width: 0; }
  .action-grid { grid-template-columns: 1fr; }
  .action { min-height: 112px; }
  .install-card, .tool-list a { align-items: flex-start; flex-direction: column; }
  .install-button { width: 100%; }
  .tool-list small { text-align: left; }
  .sales-main { padding-top: 42px; }
  .sales-hero h1 { font-size: clamp(3.2rem, 17vw, 4.8rem); }
  .sales-photo { height: 230px; }
  .included { margin-top: 48px; }
  .included-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
