/* TraqDesk marketing site — light, trustworthy, green primary actions */
:root {
  --bg: #ffffff;
  --surface: #f4f7fa;
  --surface-2: #eaf6ee;
  --ink: #0f1b2d;
  --ink-2: #26344a;
  --muted: #566176;
  --line: #e2e7ee;
  --green: #15803d;
  --green-dark: #166534;
  --green-soft: #dcfce7;
  --accent: #1d4ed8;
  --accent-soft: #e8efff;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --night: #0f1b2d;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, .14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--night); color: #dbe3ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 700 .97rem var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(21, 128, 61, .22); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-wa { background: #128c4a; color: #fff; }
.btn-wa:hover { background: #0e6f3a; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-weight: 700; text-decoration: none; color: var(--green-dark); }
.text-link::after { content: ' →'; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-links .btn { display: inline-flex; margin-left: 8px; color: #fff; padding: 0 18px; white-space: nowrap; }
.nav-links .btn:hover { background: var(--green-dark); color: #fff; }
body[data-page="features"] .nav-links a[data-nav="features"],
body[data-page="industries"] .nav-links a[data-nav="industries"],
body[data-page="pricing"] .nav-links a[data-nav="pricing"],
body[data-page="how-it-works"] .nav-links a[data-nav="how-it-works"],
body[data-page="about"] .nav-links a[data-nav="about"],
body[data-page="faq"] .nav-links a[data-nav="faq"],
body[data-page="contact"] .nav-links a[data-nav="contact"] { color: var(--green-dark); background: var(--surface-2); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; }
  .nav-links .btn { display: flex; margin: 10px 0 0; min-height: 48px; padding: 0 18px; }
}

/* Hero */
.hero { padding: 72px 0 64px; background: radial-gradient(ellipse at 85% 0%, var(--green-soft) 0, transparent 50%), radial-gradient(ellipse at 0% 100%, var(--accent-soft) 0, transparent 45%), #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 .hl { color: var(--green); }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: '✓ '; color: var(--green); font-weight: 800; }
.page-hero { padding: 64px 0 48px; background: linear-gradient(180deg, #fff, var(--surface)); border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-bottom: 0; }

/* Screenshot frame */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.shot-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f1f4f8; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dae3; }
.shot-bar i:nth-child(1) { background: #f28b82; }
.shot-bar i:nth-child(2) { background: #f6c96a; }
.shot-bar i:nth-child(3) { background: #7fcf98; }
.shot-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); font-weight: 600; }
.shot img { width: 100%; }
.shot figcaption { padding: 10px 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }

/* Proof strip */
.proof { border-block: 1px solid var(--line); background: #fff; }
.proof ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.proof li b { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--green-dark); font-size: 1.1rem; }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--green-dark); margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.card.problem { border-top: 4px solid var(--danger); }
.card.problem .icon { background: var(--danger-soft); color: var(--danger); }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s, border-color .15s; }
.card-link:hover { transform: translateY(-2px); border-color: var(--green); color: inherit; }
.card-link .text-link { display: inline-block; margin-top: 12px; }
.quote-mark { font-size: 1.05rem; color: var(--ink-2); font-style: italic; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li::before { content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23166534' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--green-dark); }
.pill-blue { background: var(--accent-soft); color: var(--accent); }
.pill-amber { background: var(--warn-soft); color: var(--warn); }

/* Feature rows (alternating image/text) */
.feature-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row.flip > .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature-copy .text-link { display: inline-block; margin-top: 22px; }
.subnav { position: sticky; top: 72px; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.subnav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; display: block; padding: 7px 13px; border-radius: 999px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); }
.subnav a:hover { border-color: var(--green); color: var(--green-dark); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }

/* Callouts */
.callout { border-left: 4px solid var(--green); background: var(--surface-2); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.callout.amber { border-color: var(--warn); background: var(--warn-soft); }
.callout.blue { border-color: var(--accent); background: var(--accent-soft); }
.callout p:last-child { margin-bottom: 0; }

/* Pricing */
.billing { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); gap: 4px; }
.billing button { border: 0; background: none; padding: 9px 20px; border-radius: 999px; font: 700 .93rem var(--font); color: var(--muted); cursor: pointer; }
.billing button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.billing .save { margin-left: 6px; color: var(--green); font-size: .78rem; }
.price-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 32px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--green); box-shadow: 0 24px 50px rgba(21, 128, 61, .14); }
.price-card .badge { align-self: flex-start; margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.price strong { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-weight: 600; }
.price-sub { color: var(--muted); font-size: .93rem; min-height: 1.6em; }
.price-card .check-list { margin-bottom: 28px; }
.price-card .btn { margin-top: auto; }
[data-price-monthly][hidden], [data-price-yearly][hidden] { display: none !important; }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.save { color: var(--green-dark); font-weight: 700; }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; background: none; border: 0; text-align: left; font: 700 1.03rem var(--font); color: var(--ink); cursor: pointer; }
.faq-item > button::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--green-dark); font-size: 1.3rem; font-weight: 500; transition: transform .2s; }
.faq-item > button[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-answer { padding: 0 46px 20px 0; color: var(--muted); }
.faq-answer[hidden] { display: none; }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 8px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #14532d, #15803d); color: #e8f7ee; border-radius: 20px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; color: #d1f0dc; }
.cta-band .actions { margin-top: 0; justify-content: flex-end; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Story / example cards */
.story { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.story .pill { margin-bottom: 14px; }
.story dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 0; }
.story dt { font-weight: 800; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.story dd { margin: 0; color: var(--muted); }

/* Industry blocks */
.industry { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 64px 0; border-bottom: 1px solid var(--line); align-items: start; }
.industry:last-of-type { border-bottom: 0; }
.industry .pain { background: var(--danger-soft); border-radius: var(--radius-sm); padding: 16px 20px; color: #7f1d1d; margin: 18px 0; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature-tags a { text-decoration: none; }

/* Contact / form */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; font: 1rem var(--font); padding: 12px 14px; border: 1px solid #cdd5e0; border-radius: 9px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.field textarea { min-height: 110px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: .85rem; margin-top: 5px; font-weight: 600; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--green-soft); color: #14532d; }
.form-status.err { background: var(--danger-soft); color: #7f1d1d; }
.form-status a { color: inherit; font-weight: 800; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
a.contact-card:hover { border-color: var(--green); color: var(--ink); }
.contact-card .icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--green-dark); }
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card b { display: block; }
.contact-card span { color: var(--muted); font-size: .92rem; }

/* Legal / prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--night); color: #aab6c7; padding: 64px 0 0; margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #cdd6e3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { margin-top: 48px; border-top: 1px solid #24324a; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #128c4a; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 10px 28px rgba(18, 140, 74, .4); }
.wa-float:hover { background: #0e6f3a; color: #fff; }
.wa-float svg { width: 24px; height: 24px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card-link { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .proof ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0; }
  .hero-grid, .feature-row, .industry, .contact-grid, .price-grid, .cta-band { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip > .feature-copy { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .cta-band .actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .proof ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-card, .price-card { padding: 22px; }
  .price strong { font-size: 2.5rem; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .actions .btn { flex: 1 1 100%; }
  .faq-answer { padding-right: 0; }
  .story dl { grid-template-columns: 1fr; gap: 2px; }
  .story dd { margin-bottom: 10px; }
}

/* Section heading inside a prose column (e.g. How it works › Monitoring responsibly) */
.prose .eyebrow + h2 { margin-top: 0; font-size: clamp(1.65rem, 3vw, 2.4rem); }
