/* Public website. Builds on the colours and type in site.css so the website and the app look like one product. */
body.site { background: #fff; color: var(--ink); font-size: 16px; line-height: 1.6; }
.site h1, .site h2, .site h3 { letter-spacing: -0.02em; line-height: 1.15; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.site :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; }
.site-brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #EAF1EF; color: var(--primary-dark); }
.site-nav .nav-demo { color: var(--primary-dark); }
.site-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }

/* buttons */
.btn-lg { padding: 13px 24px; font-size: 16px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: #EAF1EF; color: var(--primary-dark); }
.btn-amber { background: var(--amber); color: #2A1D00; }
.btn-amber:hover { background: #F0AE22; color: #2A1D00; }
.site .btn { display: inline-block; text-decoration: none; text-align: center; }

/* sections */
.section { padding: 80px 0; }
.section-tint { background: var(--bg); }
.section-dark { background: var(--deep); color: #fff; }
.section-dark .muted, .section-dark p { color: #B9D3CB; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.section-dark .section-head p { color: #B9D3CB; }

/* hero */
.hero { background: linear-gradient(180deg, #F3F8F6 0%, #fff 100%); padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero-text { font-size: 19px; color: var(--muted); margin: 20px 0 28px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* the product preview: built from the same parts as the real dashboard, with sample figures */
.preview { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(14,42,38,.35); padding: 18px; }
.preview-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5DDDA; }
.preview .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.preview .tile { padding: 12px 14px; }
.preview .tile-value { font-size: 20px; }
.preview .chart { height: 110px; margin-top: 14px; }
.preview-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: right; }

/* cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.section-tint .feature { background: #fff; }
.feature h3 { font-size: 19px; margin: 14px 0 8px; }
.feature p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: #E3F0EC; display: flex; align-items: center; justify-content: center; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding: 7px 0 7px 28px; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 11px; height: 6px; border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(-45deg); }
.section-dark .tick-list li::before { border-color: var(--amber); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.steps li::before { content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* pricing */
.billing-toggle { display: inline-flex; background: #E3EBE8; border-radius: 99px; padding: 4px; margin-bottom: 36px; }
.billing-toggle button { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 9px 22px; border-radius: 99px; cursor: pointer; color: var(--muted); }
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan-popular { border: 2px solid var(--primary); box-shadow: 0 24px 48px -28px rgba(11,93,75,.5); }
.plan-flag { position: absolute; top: -13px; left: 26px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.plan h3 { font-size: 22px; }
.plan-desc { color: var(--muted); margin: 8px 0 18px; min-height: 48px; }
.plan-price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-period { color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.plan-limits { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); flex: 1; }
.plan .btn { margin-top: 24px; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.compare thead th { background: #EEF3F1; font-size: 16px; }
.compare tbody th { font-weight: 600; color: var(--muted); width: 22%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.yes { color: var(--primary); font-weight: 800; }

/* faq */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; font-size: 17px; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* page head */
.page-head { background: linear-gradient(180deg, #F3F8F6, #fff); padding: 64px 0 36px; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 48px); }
.page-head p { color: var(--muted); font-size: 19px; max-width: 700px; margin: 14px 0 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: #33433E; }

/* cta band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { font-size: 18px; max-width: 620px; margin: 14px auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.site .field input, .site .field textarea, .site .field select { width: 100%; }
.hp { position: absolute; left: -5000px; }

/* footer */
.site-footer { background: var(--deep); color: #B9D3CB; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-base { border-top: 1px solid #1F4A42; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }

@media (prefers-reduced-motion: no-preference) { .plan, .feature { transition: transform .18s ease, box-shadow .18s ease; } .feature:hover { transform: translateY(-3px); } }
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 10px 20px 16px; }
  .site-nav.open { display: flex; }
  .site-actions .btn-ghost { display: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* the demo banner */
.demo-banner { position: sticky; top: 0; z-index: 60; background: var(--amber); color: #2A1D00; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; font-weight: 700; font-size: 14px; text-align: center; }
.demo-banner a { background: var(--deep); color: #fff; padding: 6px 14px; border-radius: 8px; text-decoration: none; }

.notice{padding:12px 14px;border-radius:8px;margin-bottom:16px;border:1px solid var(--line,#d9dee3)}
.notice.ok{background:#e8f5ee;border-color:#9fd2b5;color:#14532d}
.notice.bad{background:#fdeceb;border-color:#f0b3ae;color:#7a1d16}
.notice:empty{display:none}
.field-error{display:block;color:#a32a21;font-size:.9rem;margin-top:4px}

.plan-prices { display: grid; gap: 4px; }
.plan-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.plan-prices .plan-price { font-size: 32px; }
.plan-actions { display: grid; gap: 10px; margin-top: 24px; }
.plan-actions .btn { margin-top: 0; text-align: center; }

/* Billing period switch (pricing page and checkout). Without JavaScript the links reload the page with the period in the address. */
.billing-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 8px; background: #eef1f7; border: 1px solid var(--border); border-radius: 999px; max-width: 100%; }
.billing-switch a { padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: inherit; text-decoration: none; white-space: nowrap; }
.billing-switch a:hover { background: rgba(0, 0, 0, 0.05); }
.billing-switch a.is-on { background: #fff; box-shadow: 0 1px 3px rgba(15, 27, 76, 0.18); }
.billing-switch a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.billing-switch-sm { margin-top: 10px; }
.billing-switch-sm a { padding: 6px 12px; font-size: 14px; }
.billing-note { margin: 0 0 26px; }
.plan-na .plan-period { font-size: 15px; }
.plans[data-billing="monthly"] [data-period]:not([data-period="monthly"]),
.plans[data-billing="halfyear"] [data-period]:not([data-period="halfyear"]),
.plans[data-billing="annual"] [data-period]:not([data-period="annual"]) { display: none; }
@media (max-width: 480px) {
  .billing-switch { display: flex; width: 100%; }
  .billing-switch a { flex: 1 1 0; text-align: center; padding: 9px 6px; font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) { .billing-switch a { transition: background 0.15s ease; } }
