/* Lyfos marketing — shared design system (matches the landing page). */
:root {
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --green: #1a9d5a; --green-soft: rgba(26,157,90,0.12);
  --maxw: 1080px;
}
html[data-theme="light"], :root {
  --bg: #f4f4f6; --surface: #ffffff; --surface-2: #f6f6f8; --surface-3: #ececef;
  --divider: rgba(0,0,0,0.07); --border-2: rgba(0,0,0,0.12);
  --ink: #1b1b1f; --ink2: #5b5b63; --ink3: #8a8a93; --ink4: #b4b4bb;
  --green-ink: #0b6b3a; --amber-ink: #7a4b00; --red-ink: #b42318;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 18px 48px rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
}
html[data-theme="dark"] {
  --bg: #0c0c0e; --surface: #161618; --surface-2: #1b1b1e; --surface-3: #232327;
  --divider: rgba(255,255,255,0.08); --border-2: rgba(255,255,255,0.14);
  --ink: #f4f4f5; --ink2: #a9a9b2; --ink3: #76767e; --ink4: #50505a;
  --green: #2faa63; --green-soft: rgba(70,217,138,0.13); --green-ink: #7ee2ab;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 18px 48px rgba(0,0,0,0.45);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background 240ms ease, color 240ms ease;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
svg { display: block; }
::selection { background: var(--green-soft); }

/* Nav */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
nav.top.scrolled { border-color: var(--divider); }
nav.top .inner {
  max-width: var(--maxw); margin: 0 auto; height: 64px;
  display: flex; align-items: center; gap: 22px; padding: 0 24px;
}
nav.top .brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.beta-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
nav.top .brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--green); display: grid; place-items: center; box-shadow: 0 4px 14px var(--green-soft); }
nav.top .brand .mark svg { width: 15px; height: 15px; color: #fff; }
nav.top ul { list-style: none; display: flex; gap: 24px; margin: 0 0 0 14px; padding: 0; }
nav.top ul a { font-size: 14.5px; color: var(--ink2); transition: color 140ms ease; }
nav.top ul a:hover { color: var(--ink); }
nav.top .nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
nav.top .cta { background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: all 160ms ease; }
nav.top .cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--divider); background: var(--surface); color: var(--ink2); display: grid; place-items: center; cursor: pointer; transition: all 140ms ease; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--border-2); }
.icon-btn svg { width: 18px; height: 18px; }

main { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 48px; }

/* Hero */
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--green-ink); font-weight: 600; }
.hero { text-align: center; padding: 32px 0 64px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; margin: 18px auto 22px; max-width: 18ch; font-weight: 600; }

/* Bold page-hero treatment (security, pricing, …) */
.hero.big { position: relative; padding-top: 40px; }
.hero.big::before { content: ""; position: absolute; inset: -30% -30% 45%; z-index: -1; background: radial-gradient(48% 60% at 50% 0%, var(--green-soft), transparent 70%); }
.hero.big.left::before { background: radial-gradient(46% 60% at 22% 0%, var(--green-soft), transparent 70%); }
.hero.big h1 { font-size: clamp(40px, 6.2vw, 70px); }
.hero-badge { width: 74px; height: 74px; border-radius: 22px; background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); display: grid; place-items: center; margin: 0 auto 26px; box-shadow: var(--shadow-sm); }
.hero.left .hero-badge { margin-left: 0; }
.hero-badge svg { width: 34px; height: 34px; color: var(--green); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero.left .hero-stats { justify-content: flex-start; }
.hero-stat { padding: 14px 20px; border: 1px solid var(--divider); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); text-align: left; }
.hero-stat b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hero-stat span { font-size: 12.5px; color: var(--ink3); }
.hero p.lede { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; color: var(--ink2); max-width: 58ch; margin: 0 auto 36px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); transition: all 160ms ease; }
.btn.primary, .btn.green { background: var(--green); color: #fff; }
.btn.primary:hover, .btn.green:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 30px var(--green-soft); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.dark:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: var(--surface); border-color: var(--border-2); color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); transform: translateY(-1px); }
.subnote { color: var(--ink3); font-size: 13.5px; margin-top: 18px; }

/* Sections */
section.row { padding: 72px 0; border-top: 1px solid var(--divider); }
section.row:first-of-type { border-top: 0; }
section.row h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.03em; margin: 14px 0 16px; font-weight: 600; }
section.row p.lede { font-size: 18px; line-height: 1.55; color: var(--ink2); max-width: 62ch; margin: 0 0 40px; }

/* Cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--divider); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-2); }
.card h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; font-weight: 600; }
.card p { color: var(--ink2); margin: 0; font-size: 14.5px; line-height: 1.55; }
.card .num { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--green-ink); margin-bottom: 14px; font-weight: 600; }

/* Promise list */
.promises { max-width: 760px; }
.promises h2 { margin-bottom: 28px; }
.promise { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--divider); }
.promise:last-child { border-bottom: 0; }
.promise .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-top: 9px; flex-shrink: 0; box-shadow: 0 0 0 5px var(--green-soft); }
.promise h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.promise p { margin: 0; color: var(--ink2); font-size: 15px; }
.promise a { color: var(--green-ink); border-bottom: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }

/* Pricing */
.pricing-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--divider); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: color-mix(in srgb, var(--green) 40%, transparent); box-shadow: var(--shadow); }
.plan .name { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink3); margin-bottom: 10px; font-weight: 600; }
.plan.featured .name { color: var(--green-ink); }
.plan .price { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 4px; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink3); }
.plan .tagline { color: var(--ink2); font-size: 14.5px; margin: 0 0 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan ul li { padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 14.5px; color: var(--ink); }
.plan ul li:last-child { border-bottom: 0; }
.plan ul li.dim { color: var(--ink3); }
.plan .cta { margin-top: auto; text-align: center; }

/* Inline forms */
.signup-row { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.signup-row input { flex: 1; padding: 0 18px; height: 54px; font-size: 16px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface); color: var(--ink); font-family: var(--sans); outline: none; transition: border-color 140ms ease, box-shadow 140ms ease; }
.signup-row input:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.signup-row button { padding: 0 28px; height: 54px; border-radius: 14px; border: 0; background: var(--green); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; font-family: var(--sans); transition: filter 140ms ease; }
.signup-row button:hover { filter: brightness(1.05); }
.signup-row button:disabled { opacity: 0.6; cursor: default; }
.form-note { font-size: 14px; margin-top: 14px; }
.form-note.ok { color: var(--green-ink); font-weight: 600; }
.form-note.err { color: var(--red-ink); font-weight: 600; }
@media (max-width: 480px) { .signup-row { flex-direction: column; } }

/* Footer */
footer { border-top: 1px solid var(--divider); padding: 56px 0 44px; margin-top: 32px; }
footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink3); margin: 0 0 14px; font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 5px 0; font-size: 14.5px; }
footer a { color: var(--ink2); }
footer a:hover { color: var(--ink); }
footer .brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
footer .brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--green); display: grid; place-items: center; }
footer .brand .mark svg { width: 15px; height: 15px; color: #fff; }
footer .blurb { color: var(--ink2); font-size: 14px; max-width: 300px; margin: 0; }
footer .copy { color: var(--ink4); font-size: 12.5px; margin-top: 18px; }

/* Tables (security + pricing pages) */
table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink3); font-weight: 600; }

/* Blog */
article.post { max-width: 720px; margin: 0 auto; }
article.post header { margin-bottom: 44px; }
article.post h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 600; }
article.post .meta { color: var(--ink3); font-size: 14px; }
article.post h2 { margin: 44px 0 16px; font-size: 26px; letter-spacing: -0.02em; }
article.post h3 { margin: 32px 0 12px; font-size: 19px; }
article.post p, article.post li { font-size: 17.5px; line-height: 1.7; color: var(--ink); }
article.post a { color: var(--green-ink); border-bottom: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
article.post blockquote { border-left: 3px solid var(--green); padding-left: 20px; color: var(--ink2); margin: 24px 0; font-style: italic; }
.post-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.post-list a { display: block; padding: 24px 26px; border: 1px solid var(--divider); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.post-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-2); }
.post-list h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.post-list p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.post-list .meta { color: var(--ink3); font-size: 12.5px; margin-top: 8px; }

/* Responsive */
@media (max-width: 720px) {
  nav.top ul { display: none; }
  footer .inner { grid-template-columns: 1fr 1fr; }
}
