/* Toknee landing — paper background, ink text, one accent (deep green) */

:root {
    --paper: #f6f3ec;
    --paper-2: #eee9de;
    --ink: #1b1a17;
    --ink-2: #57534a;
    --rule: #d9d3c5;
    --accent: #0d6b4e;
    --accent-ink: #ffffff;
    --accent-dark: #0a5039;
    --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Top bar */
.topbar {
    border-bottom: 1px solid var(--rule);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.wordmark {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.wordmark-en {
    font-weight: 500;
    color: var(--ink-2);
    margin-left: 0.25em;
}

.topbar-link {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--accent);
}

.topbar-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero */
.hero {
    padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 120px);
    border-bottom: 1px solid var(--rule);
}

.hero-title {
    font-size: clamp(2.6rem, 9vw, 5.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero-sub {
    margin-top: 1.25rem;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    font-weight: 500;
    color: var(--accent);
}

.hero-lead {
    margin-top: 0.5rem;
    max-width: 30em;
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    color: var(--ink-2);
}

.button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.95rem 1.6rem;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.button:hover {
    background: var(--accent-dark);
}

/* <button> variant: drop UA defaults so it matches the link button */
button.button {
    border: 0;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

button.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Section titles */
.section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

/* How it works */
.how {
    padding: clamp(56px, 9vw, 104px) 0;
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2.5rem;
    border-top: 2px solid var(--ink);
}

.step {
    position: relative;
    padding: 1.5rem 1.5rem 0 0;
}

.step + .step {
    padding-left: 1.5rem;
    border-left: 1px solid var(--rule);
}

/* Arrow between steps (decorative, no text content) */
.step + .step::before {
    content: '';
    position: absolute;
    top: -7px;
    left: -6px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

.step:first-child::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

.step h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.step p {
    margin-top: 0.4rem;
    color: var(--ink-2);
}

/* Trust */
.trust {
    padding: clamp(56px, 9vw, 104px) 0;
    background: var(--paper-2);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: start;
}

.trust-list {
    list-style: none;
}

.trust-list li {
    padding: 1.25rem 0;
    border-top: 1px solid var(--rule);
}

.trust-list li:first-child {
    border-top: 2px solid var(--ink);
}

.trust-list h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.trust-list p {
    margin-top: 0.25rem;
    color: var(--ink-2);
}

/* Beta */
.beta {
    padding: clamp(56px, 9vw, 104px) 0;
}

.beta-box {
    max-width: 640px;
}

.beta-lead {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--ink-2);
}

/* Turnstile widget (300x65, normal size) sits above the submit button */
.beta-form {
    margin-top: 2rem;
    max-width: 100%;
}

.beta-form .cf-turnstile {
    min-height: 65px;
    max-width: 100%;
}

.beta-form .button {
    margin-top: 1rem;
}

.beta-notice {
    margin-top: 1.75rem;
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--ink);
    background: var(--paper-2);
    font-size: 0.95rem;
    color: var(--ink);
}

/* Footer */
.footer {
    border-top: 1px solid var(--rule);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--ink-2);
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 760px) {
    .steps {
        grid-template-columns: 1fr;
        border-top: 0;
        border-left: 2px solid var(--ink);
        margin-left: 6px;
    }

    .step,
    .step + .step {
        padding: 0 0 1.75rem 1.5rem;
        border-left: 0;
    }

    .step:last-child {
        padding-bottom: 0;
    }

    .step::before,
    .step + .step::before,
    .step:first-child::before {
        top: 0.45rem;
        left: -7px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Policy pages (terms, privacy) */
.legal > .container { padding-top: 48px; padding-bottom: 80px; max-width: 760px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 8px; }
.legal h2 { font-size: 20px; line-height: 1.35; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { line-height: 1.75; }
.legal ol, .legal ul { padding-left: 1.4em; margin: 0 0 16px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid rgba(0,0,0,.12); padding: 8px 10px; text-align: left; vertical-align: top; }
