/* WhataJig website. Same colors and type as the app's public pages (Content/css/tc-public.css). Light and dark follow the visitor's setting. */
:root {
    --navy: #12384f;
    --ink: #16283a;
    --muted: #55697b;
    --line: #dfe6ec;
    --soft: #f3f7f9;
    --bg: #ffffff;
    --card: #ffffff;
    --teal: #0f7c84;
    --teal-d: #0b5f66;
    --teal-l: #e3f3f4;
    --orange: #e8841a;
    --orange-l: #fff1e0;
    --amber: #7a5200;
    --amber-l: #fff3d6;
    --red: #b42318;
    --red-l: #fdecea;
    --ok: #1f7a55;
    --ok-l: #e4f5ee;
    --shadow: 0 1px 2px rgba(18, 56, 79, .06), 0 8px 24px rgba(18, 56, 79, .06);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --navy: #d6e7f2; --ink: #e6edf3; --muted: #9fb2c2; --line: #263746; --soft: #111d26; --bg: #0b151c; --card: #13212b;
        --teal: #1aa5ae; --teal-d: #46c3cb; --teal-l: #12343a; --orange: #f39a3d; --orange-l: #3a2610;
        --amber: #f3c969; --amber-l: #3a2c0a; --red: #ff8a80; --red-l: #3a1614; --ok: #5fd3a3; --ok-l: #123428;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    }
}
:root[data-theme="dark"] {
    --navy: #d6e7f2; --ink: #e6edf3; --muted: #9fb2c2; --line: #263746; --soft: #111d26; --bg: #0b151c; --card: #13212b;
    --teal: #1aa5ae; --teal-d: #46c3cb; --teal-l: #12343a; --orange: #f39a3d; --orange-l: #3a2610;
    --amber: #f3c969; --amber-l: #3a2c0a; --red: #ff8a80; --red-l: #3a1614; --ok: #5fd3a3; --ok-l: #123428;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }

/* header */
.head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.brand .dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .light { display: none; } :root:not([data-theme="light"]) .brand .dark { display: block; } }
:root[data-theme="dark"] .brand .light { display: none; }
:root[data-theme="dark"] .brand .dark { display: block; }
.nav { display: flex; gap: 26px; margin: 0 auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--navy); }
.head-actions { display: flex; align-items: center; gap: 16px; }
.head-actions .signin { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.head-actions a { white-space: nowrap; }
@media (max-width: 860px) { .nav { display: none; } .head-actions { margin-left: auto; } }
@media (max-width: 420px) { .brand img { height: 28px; } .head-row { gap: 12px; } .head-actions { gap: 12px; } .btn-sm { padding: 0 12px; } }

/* hero */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 .accent { color: var(--teal); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
@media (max-width: 900px) { .hero-row { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; } }

/* the example Counter card in the hero */
.demo { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; }
.demo-who { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.demo-av { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; font-weight: 800; }
.demo-who b { display: block; color: var(--navy); }
.demo-who span { font-size: 13px; color: var(--muted); }
.demo-job { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.demo-list { list-style: none; margin: 0; padding: 0; }
.demo-list li { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.demo-list li:last-child { border-bottom: 0; }
.demo-tool b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.demo-tool span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { margin-left: auto; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-l); color: var(--ok); }
.pill.warn { background: var(--amber-l); color: var(--amber); }
.pill.stop { background: var(--red-l); color: var(--red); }
.demo-note { font-size: 12.5px; color: var(--muted); padding: 10px 4px 0; }
.demo-tool { min-width: 0; }
@media (max-width: 520px) {
    .demo-who { flex-wrap: wrap; }
    .demo-job { margin-left: 52px; }
    .demo-list li { flex-wrap: wrap; gap: 6px 12px; }
    .pill { margin-left: 0; }
}

/* sections */
section { padding: 84px 0; }
section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-intro { color: var(--muted); font-size: 18px; max-width: 40em; margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--bg); font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.also { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.also span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink); background: var(--card); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); }
.plan .for { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plan .price { margin: 18px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.plan .price b { display: block; font-size: 24px; letter-spacing: -.01em; text-transform: none; color: var(--navy); font-weight: 800; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230f7c84' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan li.plus { font-weight: 600; color: var(--navy); }
.plan li.plus::before { display: none; }
.plan li .tag { font-size: 12px; font-weight: 600; color: var(--amber); background: var(--amber-l); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.plan .btn { margin-top: auto; justify-content: center; }
.plans-note { text-align: center; color: var(--muted); margin-top: 26px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

/* questions */
.faq { max-width: 760px; margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 40px 20px 0; color: var(--muted); }

/* closing call */
.closing { text-align: center; }
.closing .sec-intro { margin: 12px auto 0; }
.closing .cta-row { justify-content: center; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--navy); }
