/* Wrixon public homepage. Colours follow the Phase 7 tokens (frontend/src/styles/tokens.css). */
:root {
  --bg: #f4f7fb; --surface: #ffffff; --border: #d7e0ea; --text: #0f1b2d; --text-2: #46566b;
  --primary: #0f766e; --primary-hover: #0b5f58; --primary-text: #0d6e66; --accent: #38bdf8;
  --radius: 12px; --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 14px rgba(15, 27, 45, .06);
  --hero: linear-gradient(135deg, #0b1726 0%, #0f2f3a 55%, #0f5f59 100%);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101827; --surface: #18233a; --border: #2a3a55; --text: #e7edf6; --text-2: #a9b6c8;
    --primary-text: #5eead4; --accent: #22d3ee; --shadow: 0 1px 2px rgba(0,0,0,.3); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px 12px; z-index: 9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; } .wordmark span, .accent { color: #0ea5e9; }
.nav-links { display: flex; gap: 20px; font-size: .9rem; color: var(--text-2); }
.nav-links a { text-decoration: none; } .nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px;
  font-weight: 600; font-size: .92rem; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; } .btn-ghost:hover { background: rgba(255,255,255,.1); }

.hero { background: var(--hero); color: #fff; }
.hero-grid { display: grid; gap: 32px; padding-top: 72px; padding-bottom: 72px; align-items: center; grid-template-columns: 1.25fr 1fr; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: #5eead4; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
.lead { font-size: 1.15rem; color: #dbe4ee; margin: 18px 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: .9rem; color: #b8c6d6; margin-top: 16px; }
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.35); }
.hero-art figcaption { margin-top: 12px; font-size: .8rem; color: #b8c6d6; text-align: center; }
.lifecycle { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 24px; }
.lifecycle h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #5eead4; }
.lifecycle ol { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.lifecycle li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.lifecycle li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,184,166,.2); color: #99f6e4; font-size: .85rem; font-weight: 700; }
.lifecycle p { font-size: .8rem; color: #b8c6d6; margin: 0; }

.section { padding-top: 64px; padding-bottom: 64px; }
.section > h2 { font-size: 1.9rem; letter-spacing: -.01em; }
.sub { color: var(--text-2); margin: 8px 0 0; }
.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card h3 { font-size: 1rem; padding: 12px 20px; color: #fff; }
.card p { margin: 0; padding: 14px 20px 18px; font-size: .92rem; color: var(--text-2); }
.c-sky { background: linear-gradient(90deg, #0284c7, #0ea5e9); } .c-violet { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.c-indigo { background: linear-gradient(90deg, #4f46e5, #6366f1); } .c-teal { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.c-amber { background: linear-gradient(90deg, #b45309, #d97706); } .c-cyan { background: linear-gradient(90deg, #0e7490, #0891b2); }
.c-slate { background: linear-gradient(90deg, #334155, #64748b); }
.trust .card h3 { color: var(--primary-text); padding-bottom: 0; }
.trust .card p { padding-top: 6px; }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.steps span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; }
.steps h3 { margin: 12px 0 6px; font-size: 1.1rem; } .steps p { margin: 0; color: var(--text-2); font-size: .92rem; }

.cta { background: linear-gradient(135deg, #0f2f3a 0%, #0f5f59 100%); color: #fff; }
.cta-row { display: flex; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.cta-row > div { flex: 1; } .cta h2 { font-size: 1.6rem; } .cta p { color: #dbe4ee; margin: 6px 0 0; }

.trial { background: linear-gradient(120deg, #78350f 0%, #b45309 45%, #f59e0b 100%); color: #fff; }
.trial-row { display: flex; align-items: center; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
.trial-badge { flex: none; width: 96px; height: 96px; border-radius: 50%; background: #fff; color: #92400e;
  display: grid; place-items: center; align-content: center; font-size: 2.4rem; font-weight: 800; line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.trial-badge span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.trial-copy { flex: 1; }
.trial-eyebrow { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; color: #fef3c7; }
.trial h2 { font-size: 1.8rem; letter-spacing: -.01em; }
.trial ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; color: #fffbeb; font-weight: 500; }
.trial li::before { content: "\2713"; margin-right: 6px; font-weight: 800; }
.btn-trial { background: #ffffff; color: #92400e; font-size: 1rem; padding: 12px 24px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-trial:hover { background: #fef3c7; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; font-size: .88rem; color: var(--text-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; } .nav-cta { padding: 8px 12px; font-size: .85rem; }
  .cards, .steps { grid-template-columns: 1fr; }
  .cta-row, .foot, .trial-row { flex-direction: column; align-items: flex-start; }
}
