:root {
  --violet: #6e3aff;
  --blue: #2e7cf6;
  --yellow: #ffc733;
  --ink: #16161d;
  --ink-soft: #4b4b57;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --card: #ffffff;
  --border: #e6e7f0;
  --grad: linear-gradient(120deg, var(--violet), var(--blue));
  --radius: 16px;
  --shadow: 0 10px 40px rgba(46, 45, 96, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f7;
    --ink-soft: #b3b3c2;
    --bg: #101017;
    --bg-soft: #181824;
    --card: #1d1d2b;
    --border: #2c2c3e;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; }
.logo img { width: 36px; height: 36px; border-radius: 8px; }
nav .links { display: flex; gap: 26px; align-items: center; }
nav .links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
nav .links a:hover { color: var(--ink); }
nav .links a.cta {
  color: #fff; background: var(--grad);
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 64px 0 32px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 800;
  max-width: 820px; margin: 0 auto 20px;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft);
  max-width: 640px; margin: 0 auto 30px;
}
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: var(--grad); box-shadow: 0 8px 24px rgba(88, 76, 255, 0.35); }
.btn.ghost { color: var(--ink); border: 1.5px solid var(--border); background: var(--card); }
.hero .fine { font-size: 13px; color: var(--ink-soft); }

/* fake macOS window around the screenshot */
.machine {
  margin: 48px auto 0; max-width: 960px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}
.machine .titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.machine .dot { width: 12px; height: 12px; border-radius: 50%; }
.machine .dot.r { background: #ff5f57; } .machine .dot.y { background: #febc2e; } .machine .dot.g { background: #28c840; }
.machine .titlebar span { margin: 0 auto; font-size: 13px; color: var(--ink-soft); transform: translateX(-24px); }
.machine img { width: 100%; display: block; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); }
h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.01em; text-align: center; margin-bottom: 12px; }
p.lede { text-align: center; color: var(--ink-soft); max-width: 620px; margin: 0 auto 44px; font-size: 17px; }

/* features */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card .em { font-size: 26px; line-height: 1; margin-bottom: 12px; display: block; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--ink-soft); }
.card kbd {
  font-family: ui-monospace, monospace; font-size: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px;
}

/* comparison table */
table.compare {
  width: 100%; max-width: 760px; margin: 0 auto;
  border-collapse: collapse; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; font-size: 15px;
}
table.compare th, table.compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare th { background: var(--bg-soft); font-size: 14px; }
table.compare td:nth-child(2), table.compare td:nth-child(3),
table.compare th:nth-child(2), table.compare th:nth-child(3) { text-align: center; }
table.compare tr:last-child td { border-bottom: none; }
.yes { color: #1ea94c; font-weight: 700; }
.no { color: #c9c9d4; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 920px; margin: 0 auto; }
.plan {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 30px; text-align: center; position: relative;
}
.plan.featured { border-color: var(--violet); box-shadow: var(--shadow); }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: #4a3600; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 18px; margin-bottom: 6px; }
.plan .price { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.plan .was { text-decoration: line-through; color: var(--ink-soft); font-size: 17px; margin-right: 6px; }
.plan ul { list-style: none; margin: 18px 0 24px; text-align: left; font-size: 14.5px; color: var(--ink-soft); }
.plan ul li { padding: 5px 0 5px 26px; position: relative; }
.plan ul li::before { content: "✓"; position: absolute; left: 4px; color: #1ea94c; font-weight: 700; }
.no-sub { text-align: center; margin-top: 28px; font-weight: 600; font-size: 16px; }

/* email form */
.notify {
  max-width: 480px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.notify input[type="email"] {
  flex: 1 1 260px; padding: 13px 18px; font-size: 15px;
  border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--ink); outline: none;
}
.notify input[type="email"]:focus { border-color: var(--blue); }
.notify button {
  padding: 13px 26px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--grad); border: none; border-radius: 999px; cursor: pointer;
}

/* faq */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
footer p, footer a { font-size: 14px; color: var(--ink-soft); }
footer a { text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--ink); }

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; text-align: left; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal .updated { font-size: 13px; margin-bottom: 24px; }

@media (max-width: 640px) {
  nav .links a:not(.cta) { display: none; }
  section { padding: 52px 0; }
}
