:root {
    --bg: #f7f7f8;
    --surface: #ffffff;
    --text: #18181b;
    --muted: #71717a;
    --border: #e4e4e7;
    --accent: #4f46e5;
    --accent-soft: #eef2ff;
    --hero: #18181b;
    --radius-lg: 16px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
    --maxw: 760px;
}

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

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    background: var(--hero);
    color: #fff;
    padding: 72px 0 60px;
}

.hero .wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero .eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    color: #d4d4d8;
    max-width: 46ch;
}

.hero.compact {
    padding: 56px 0 48px;
}

.hero.compact h1 {
    font-size: 2.1rem;
}

/* Layout sections */
main {
    padding: 56px 0 72px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

/* App cards (homepage) */
.cards {
    display: grid;
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: #d4d4d8;
    transform: translateY(-2px);
}

.card h2 {
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    margin-bottom: 20px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 550;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: #fafafa;
    border-color: #d4d4d8;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 550;
    margin-bottom: 32px;
}

.back-link:hover {
    color: var(--text);
}

/* Policy content */
.policy .meta {
    color: var(--muted);
    font-size: 0.92rem;
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.policy .meta p {
    margin-bottom: 2px;
}

.policy .meta strong {
    color: var(--text);
    font-weight: 600;
}

.policy .lead {
    font-size: 1.05rem;
    color: #3f3f46;
    margin-bottom: 8px;
}

.policy h2 {
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 40px 0 14px;
}

.policy h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 22px 0 6px;
}

.policy p {
    color: #3f3f46;
    margin-bottom: 14px;
}

.policy ul {
    margin: 0 0 14px 1.1rem;
    color: #3f3f46;
}

.policy li {
    margin-bottom: 8px;
}

/* Plain policy items (Hot Dog) */
.policy-list {
    display: grid;
    gap: 16px;
}

.policy-list .item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    background: var(--surface);
}

.policy-list .item h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 600;
}

.policy-list .item p {
    margin: 0;
    color: var(--muted);
}

/* Links inside text */
.policy a:not(.btn),
.contact a.inline {
    color: var(--accent);
    text-decoration: none;
    font-weight: 550;
}

.policy a:not(.btn):hover {
    text-decoration: underline;
}

/* Contact */
.contact {
    margin-top: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 32px;
    text-align: center;
}

.contact h3 {
    font-size: 1.2rem;
    font-weight: 650;
    margin-bottom: 6px;
}

.contact p {
    color: var(--muted);
    margin-bottom: 18px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 640px) {
    .hero { padding: 56px 0 44px; }
    .hero h1 { font-size: 2.1rem; }
    main { padding: 40px 0 56px; }
    .card, .contact { padding: 22px; }
}
