/* TaskingMint — main site styles, version 2 (homepage, tool pages, pricing, login, contact, legal pages).
   Same clean look as QR Menus and the QR generator: light grey page, white cards, black + mint.
   The menu bar and footer come from site.php and style themselves. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg: #F6F8F7;
    --card: #FFFFFF;
    --ink: #14201B;
    --ink-2: #3E4C46;
    --muted: #4B5A54;
    --faint: #5B6B64;
    --line: #DCE3E0;
    --dash: #C9D3CF;
    --mint: #0E7C5A;
    --mint-dark: #0B6B4E;
    --mint-soft: #E3F3EC;
    --mint-ink: #0B4D38;
    --danger: #A8352A;

    /* Old names, kept so nothing that still uses them breaks */
    --paper: var(--bg);
    --paper-line: var(--line);
    --ink-soft: var(--muted);
    --coin: var(--mint-dark);
    --rust: var(--danger);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a { color: var(--mint-dark); }
a:hover { color: var(--mint-ink); }
img { max-width: 100%; }
[hidden] { display: none !important; }

h1 { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 12px; }
h2 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 6px; }

/* ---------- Layout ---------- */
.wrap { max-width: 860px; margin: 0 auto; padding: 36px 20px 24px; }
.wrap.wide { max-width: 1160px; }
.wrap.tiny { max-width: 520px; padding-top: 48px; }

.eyebrow {
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--faint);
}
.lead { font-size: 17px; color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.page-head { margin-bottom: 24px; }
.page-head .lead { margin-bottom: 0; }
.card, .tool-panel {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.tool-panel { margin: 20px 0 8px; }
.muted, .notice { color: var(--muted); }
.notice { font-size: 15px; }
.small { font-size: 14px; }
.error-text {
    background: #FBE9E7; color: #7E261D; border-radius: 12px; padding: 12px 16px; font-size: 15px;
}
.error-text a { color: inherit; font-weight: 600; }
.ok-box { background: var(--mint-soft); color: var(--mint-ink); border-radius: 12px; padding: 14px 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 10px;
    border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
    font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { color: #fff; background: #000; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--mint-soft); color: var(--ink); }
.btn.mint { background: var(--mint); border-color: var(--mint); }
.btn.mint:hover { background: var(--mint-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Forms ---------- */
input[type="email"], input[type="text"] {
    font: inherit; color: var(--ink); background: #fff;
    border: 1px solid #BFCAC5; border-radius: 8px; padding: 10px 12px; min-height: 44px;
    width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--mint); outline-offset: 2px;
}
.inline-form { margin: 16px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }

/* ---------- Homepage ---------- */
.home-hero { background: #fff; border-bottom: 1px solid var(--line); }
.home-hero-in { max-width: 1160px; margin: 0 auto; padding: 56px 20px 52px; }
.home-hero h1 { max-width: 17ch; font-size: clamp(32px, 5.4vw, 54px); }
.home-hero .lead { font-size: 18px; max-width: 54ch; }
.home-hero .mint-word { color: var(--mint); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.tool-card {
    display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink);
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tool-card:hover { color: var(--ink); border-color: var(--mint); box-shadow: 0 10px 26px rgba(20, 32, 27, 0.09); transform: translateY(-2px); }
.tool-card h3 { font-size: 19px; letter-spacing: -0.01em; margin: 4px 0 0; }
.tool-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.tool-card .tag {
    align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--mint-ink);
    background: var(--mint-soft); border-radius: 999px; padding: 3px 10px;
}
.tool-card .foot {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    border-top: 1px dashed var(--dash); padding-top: 12px; margin-top: 6px; font-size: 14px;
}
.tool-card .foot .price { color: var(--faint); }
.tool-card .foot .go { font-weight: 600; color: var(--mint-dark); white-space: nowrap; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.how-it-works { margin-top: 48px; }
.how-it-works ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.how-it-works li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--muted); font-size: 15px; }
.how-it-works li b { display: block; color: var(--ink); font-size: 16px; margin: 10px 0 4px; }
.how-it-works .num {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: 8px; background: var(--ink); color: #fff;
    font-family: 'IBM Plex Mono', monospace; font-size: 14px;
}

/* ---------- Tool page ---------- */
.stamp {
    display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
    padding: 3px 10px; border-radius: 999px; margin-bottom: 4px;
}
.stamp.locked { color: #7E261D; background: #FBE9E7; }
.stamp.unlocked { color: var(--mint-ink); background: var(--mint-soft); }
.price-hint { font-family: 'IBM Plex Mono', monospace; color: var(--mint-dark); font-size: 14px; margin: 0 0 8px; }

/* ---------- Pricing rows ---------- */
.plan-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.plan-row {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 0; border-bottom: 1px dashed var(--dash);
}
.plan-row:last-child { border-bottom: 0; }
.plan-label { font-size: 16px; font-weight: 600; }
.plan-amount {
    display: block; font-family: 'IBM Plex Mono', monospace; font-weight: 500;
    color: var(--mint-dark); font-size: 15px; margin-top: 2px;
}
.plan-row form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.plan-row input[type="email"] { width: 230px; }

/* ---------- Legal pages ---------- */
.legal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px clamp(18px, 4vw, 40px) 32px; }
.legal h1 { font-size: clamp(26px, 4vw, 34px); }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul { padding-left: 1.2rem; }

@media (max-width: 560px) {
    .wrap { padding-top: 28px; }
    .home-hero-in { padding: 40px 16px 36px; }
    .plan-row { flex-direction: column; align-items: stretch; }
    .plan-row form { justify-content: flex-start; }
    .plan-row input[type="email"] { width: 100%; max-width: none; }
    .tool-grid { grid-template-columns: 1fr; }
}
