/* Portfauxl landing — Nord palette (matches the app's "nord" theme). */
:root {
  --canvas: #2e3440;
  --surface: #3b4252;
  --surface-2: #434c5e;
  --border: #4c566a;
  --muted: #9aa3b8;
  --text: #eceff4;
  --frost-teal: #8fbcbb;
  --frost: #88c0d0;
  --frost-blue: #81a1c1;
  --frost-deep: #5e81ac;
  --green: #a3be8c;
  --red: #bf616a;
  --violet: #b48ead;
  --gold: #ebcb8b;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--frost); text-decoration: none; }
a:hover { color: var(--frost-teal); }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
h3 { font-size: 19px; margin-bottom: 8px; }
p.lead { color: var(--muted); font-size: 18px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(46, 52, 64, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -0.01em; }
.brand .logo { display: block; border-radius: 7px; box-shadow: 0 0 14px rgba(136, 192, 208, 0.45); flex: none; }
.brand .word { line-height: 1; white-space: nowrap; }
.brand b { color: var(--frost); font-weight: 800; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav nav a:hover { color: var(--text); }
.soon-pill { font-size: 12px; font-weight: 700; color: var(--canvas); background: var(--gold); padding: 5px 11px; border-radius: 999px; }
@media (max-width: 720px) { .nav nav a:not(.soon-pill) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 12px 22px;
  border-radius: 10px; border: 1px solid transparent; cursor: default;
}
.btn-primary { background: linear-gradient(135deg, var(--frost), var(--frost-deep)); color: var(--canvas); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn[aria-disabled="true"] { opacity: 0.9; }

/* Hero */
.hero { padding: 92px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 480px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(136,192,208,0.18), transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); }
.hero h1 .grad { background: linear-gradient(135deg, var(--frost-teal), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 620px; margin: 18px auto 28px; color: var(--muted); font-size: 19px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Cards / grids */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; background: var(--surface-2); }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step .n { counter-increment: s; font-weight: 800; color: var(--frost); font-size: 14px; }
.step .n::before { content: "0" counter(s); }

/* Pricing */
.toggle-note { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 920px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.tier.feature { border-color: var(--frost); box-shadow: 0 0 0 1px var(--frost) inset, 0 12px 40px rgba(94,129,172,0.25); }
.tier .name { font-weight: 800; font-size: 17px; }
.tier .price { font-size: 34px; font-weight: 800; margin: 10px 0 2px; }
.tier .price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.tier .annual { font-size: 13px; color: var(--green); margin-bottom: 14px; }
.tier ul { list-style: none; margin: 8px 0 0; display: grid; gap: 9px; font-size: 14.5px; }
.tier li { display: flex; gap: 9px; color: var(--text); }
.tier li::before { content: "✓"; color: var(--green); font-weight: 800; }
.tier .tag { font-size: 12px; font-weight: 700; color: var(--frost); margin-top: 16px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--frost); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 12px; }

/* Footer */
footer.ft { border-top: 1px solid var(--border); padding: 48px 0 36px; background: var(--surface); }
.ft .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.ft a { color: var(--muted); display: block; margin: 7px 0; font-size: 14px; }
.ft a:hover { color: var(--text); }
.ft .colhead { font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 14px; }
.ft .legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* Legal / content pages */
.doc { max-width: 800px; }
.doc h1 { font-size: 34px; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.doc h2 { font-size: 22px; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--text); margin-bottom: 12px; }
.doc ul { margin: 0 0 12px 22px; }
.doc a { text-decoration: underline; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 10px; padding: 16px 18px; margin: 18px 0; color: var(--muted); font-size: 14.5px; }
.back { display: inline-block; margin-bottom: 22px; color: var(--frost); font-size: 14px; }
