/* TaskingMint — shared design system.
   Ticket/receipt motif: tools are line items, prices read like a register tape. */

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

:root {
    --paper: #FBFAF6;
    --paper-line: #DAD5C6;
    --ink: #14213D;
    --ink-soft: #4A5268;
    --mint: #0F6B5C;
    --mint-dark: #0B5347;
    --coin: #9C6B12;
    --rust: #B23A2E;
}

* { box-sizing: border-box; }

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

.wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.site-header .logo {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.site-header .logo svg { flex-shrink: 0; }

.site-header .login-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    opacity: 0.8;
}

.site-header .login-link:hover { opacity: 1; }

/* Hero band — full-width color block so the page isn't one flat plane */
.hero-band {
    background: var(--ink);
    color: var(--paper);
}

.hero-band .site-header .login-link { color: var(--paper); }

.hero {
    padding: 1.5rem 0 3rem;
}

.hero h1 {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 0.9rem;
    max-width: 14ch;
    color: var(--paper);
}

.hero p {
    color: #C9CEDB;
    max-width: 46ch;
    margin: 0;
    font-size: 1.05rem;
}

/* Torn paper edge — cuts from the ink hero band down into the paper page below */
.torn-edge {
    height: 18px;
    width: 100%;
    background-image:
        linear-gradient(135deg, var(--ink) 50%, transparent 50%),
        linear-gradient(45deg, var(--ink) 50%, transparent 50%);
    background-size: 22px 18px;
    background-position: bottom left, bottom left;
    background-repeat: repeat-x;
    margin-bottom: 2.5rem;
}

/* Ticket rows (tool list) — a colored stub edge + stamped price chip */
.ticket-list { border-top: 1px solid var(--paper-line); }

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0 1.1rem 1rem;
    border-bottom: 1px dashed var(--paper-line);
    border-left: 4px solid var(--mint);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.ticket-row:hover { background: #F3F0E6; }

.ticket-main { flex: 1; min-width: 0; }

.ticket-name {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.ticket-desc {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin: 0;
}

.ticket-price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--paper);
    background: var(--mint);
    padding: 0.4rem 0.75rem;
    border-radius: 2px;
    white-space: nowrap;
}

/* How it works */
.how-it-works {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--paper-line);
}

.how-it-works h2 {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.3rem;
    margin: 0 0 1.25rem;
}

.how-it-works ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.how-it-works li {
    display: flex;
    gap: 0.9rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.how-it-works .num {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--paper);
    background: var(--ink);
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Stamp — locked/unlocked state on a tool page */
.stamp {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.7rem;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    transform: rotate(-2deg);
    margin-bottom: 1.25rem;
}

.stamp.locked { color: var(--rust); }
.stamp.unlocked { color: var(--mint); }

/* Buttons */
.btn {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    background: var(--ink);
    color: var(--paper);
    border: none;
    padding: 0.65rem 1.1rem;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover { background: var(--mint-dark); }

/* Pricing / login page rows */
.plan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px dashed var(--paper-line);
}

.plan-row:first-child { border-top: 1px solid var(--paper-line); }

.plan-label { font-size: 0.98rem; }
.plan-amount {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--coin);
    margin-left: 0.5rem;
    font-size: 0.88rem;
}

/* Forms */
input[type="email"] {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--paper-line);
    border-radius: 3px;
    width: 100%;
    max-width: 320px;
    background: #fff;
    color: var(--ink);
}

form { margin: 1.25rem 0; display: flex; gap: 0.6rem; flex-wrap: wrap; }

.notice { color: var(--ink-soft); font-size: 0.95rem; }
.error-text { color: var(--rust); font-size: 0.92rem; }

footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--paper-line);
    color: var(--ink-soft);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .ticket-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .plan-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}
