/*
 * Piece of Cake — marketing & legal pages
 * Tokens follow poc/branding/colors.md ("Petrol & Citrus")
 */

:root {
    --poc-petrol: #0E2F42;
    --poc-petrol-surface: #163A4F;
    --poc-petrol-raised: #1F4A60;
    --poc-petrol-deep: #08222F;
    --poc-tangerine: #F08537;
    --poc-tangerine-dim: #B8642A;
    --poc-cream: #FBF1DD;
    --poc-vanilla: #FFFAEC;
    --poc-sugar: #FBF1DD;
    --poc-butter: #F5C24A;
    --poc-sage: #7DB3A0;
    --poc-tomato: #E7553C;
    --poc-aqua: #2DC4C4;

    --poc-text: #0E2F42;
    --poc-text-secondary: #163A4F;
    --poc-text-muted: #5C7382;
    --poc-border: rgba(14, 47, 66, 0.12);

    --poc-max-width: 1120px;
    --poc-reading-width: 720px;
    --poc-radius: 16px;

    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--poc-vanilla);
    color: var(--poc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 720px) {
    body { font-size: 16px; }
}

a {
    color: var(--poc-tangerine-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover, a:focus {
    color: var(--poc-tangerine);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--poc-petrol);
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(36px, 7vw, 72px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 2em; }
h3 { font-size: clamp(22px, 3vw, 28px); margin-top: 1.5em; }
h4 { font-size: clamp(18px, 2vw, 22px); margin-top: 1.25em; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

code, pre {
    font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
    background: rgba(14, 47, 66, 0.06);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.9em;
}

hr {
    border: 0;
    border-top: 1px solid var(--poc-border);
    margin: 2em 0;
}

/* Layout shell */

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

@media (min-width: 720px) {
    .poc-shell { padding: 0 48px; }
}

@media (min-width: 1024px) {
    .poc-shell { padding: 0 80px; }
}

/* Skip link */

.poc-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--poc-petrol);
    color: var(--poc-cream);
    padding: 8px 12px;
    z-index: 1000;
}

.poc-skip:focus { left: 8px; top: 8px; }

/* Top bar */

.poc-topbar {
    background: var(--poc-petrol);
    color: var(--poc-cream);
    padding: 16px 0;
    border-bottom: 1px solid rgba(251, 241, 221, 0.08);
}

.poc-topbar .poc-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.poc-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--poc-cream);
    text-decoration: none;
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.poc-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--poc-tangerine);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--poc-petrol);
    font-weight: 800;
}

.poc-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.poc-nav a {
    color: rgba(251, 241, 221, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.poc-nav a:hover, .poc-nav a:focus, .poc-nav a[aria-current="page"] {
    color: var(--poc-cream);
}

/* Page hero */

.poc-page-hero {
    background: linear-gradient(180deg, var(--poc-sugar), var(--poc-vanilla));
    padding: 64px 0 48px;
}

.poc-page-hero .poc-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    font-weight: 600;
    color: var(--poc-tangerine-dim);
    margin: 0 0 12px;
}

.poc-page-hero .poc-meta {
    color: var(--poc-text-muted);
    font-size: 15px;
    margin-top: 8px;
}

/* Long-form reading column */

.poc-prose {
    max-width: var(--poc-reading-width);
    margin: 0 auto;
    padding: 48px 0 96px;
}

.poc-prose h2 { margin-top: 2em; }
.poc-prose h3 { margin-top: 1.5em; }

.poc-prose ol > li::marker { color: var(--poc-text-muted); }

.poc-toc {
    background: var(--poc-cream);
    border: 1px solid var(--poc-border);
    border-radius: var(--poc-radius);
    padding: 16px 20px;
    margin-bottom: 32px;
}

.poc-toc strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    margin-bottom: 8px;
}

.poc-toc ol { margin: 0; padding-left: 1.2em; }

/* Buttons */

.poc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--poc-tangerine);
    color: var(--poc-petrol);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    min-height: 48px;
}

.poc-btn:hover, .poc-btn:focus { background: var(--poc-tangerine-dim); color: var(--poc-cream); }
.poc-btn:active { transform: scale(0.98); }

.poc-btn--ghost {
    background: transparent;
    color: var(--poc-petrol);
    border: 1.5px solid var(--poc-petrol);
}

.poc-btn--ghost:hover, .poc-btn--ghost:focus { background: var(--poc-petrol); color: var(--poc-cream); }

/* Cards / grid */

.poc-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 720px) {
    .poc-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .poc-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.poc-card {
    background: var(--poc-vanilla);
    border: 1px solid var(--poc-border);
    border-radius: var(--poc-radius);
    padding: 24px;
}

.poc-card h3 { margin-top: 0; }

/* Hero */

.poc-hero {
    background: linear-gradient(180deg, var(--poc-petrol), var(--poc-petrol-deep));
    color: var(--poc-cream);
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
}

.poc-hero h1 { color: var(--poc-cream); }

.poc-hero .poc-lede {
    font-size: clamp(18px, 2.2vw, 22px);
    color: rgba(251, 241, 221, 0.85);
    max-width: 640px;
}

.poc-hero-cta {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.poc-hero-meta {
    margin-top: 16px;
    color: rgba(251, 241, 221, 0.7);
    font-size: 15px;
}

/* Pricing strip */

.poc-pricing {
    background: var(--poc-petrol-surface);
    color: var(--poc-cream);
    padding: 32px 0;
    text-align: center;
}

.poc-pricing strong { color: var(--poc-butter); }

/* Footer */

.poc-footer {
    background: var(--poc-petrol);
    color: rgba(251, 241, 221, 0.75);
    padding: 56px 0 32px;
    margin-top: 64px;
    font-size: 15px;
}

/* When the Pricing strip sits directly above the footer, drop the cream gap
   so the two dark bands meet flush. */
.poc-pricing + .poc-footer {
    margin-top: 0;
}

.poc-footer a { color: rgba(251, 241, 221, 0.85); text-decoration: none; }
.poc-footer a:hover, .poc-footer a:focus { color: var(--poc-cream); text-decoration: underline; }

.poc-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 720px) {
    .poc-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.poc-footer h4 {
    color: var(--poc-cream);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
}

.poc-footer ul { list-style: none; padding: 0; margin: 0; }
.poc-footer li { margin-bottom: 8px; }

.poc-footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(251, 241, 221, 0.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: rgba(251, 241, 221, 0.55);
}

/* Forms (web fallback pages) */

.poc-form {
    background: var(--poc-vanilla);
    border: 1px solid var(--poc-border);
    border-radius: var(--poc-radius);
    padding: 32px;
}

.poc-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.poc-form input[type="password"],
.poc-form input[type="email"],
.poc-form input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--poc-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: white;
    color: var(--poc-text);
    margin-bottom: 16px;
}

.poc-form input:focus {
    outline: 2px solid var(--poc-tangerine);
    outline-offset: 1px;
    border-color: var(--poc-tangerine);
}

.poc-form .poc-form-help {
    font-size: 14px;
    color: var(--poc-text-muted);
    margin-top: -8px;
    margin-bottom: 16px;
}

.poc-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    background: var(--poc-cream);
    color: var(--poc-text);
    min-height: 44px;
}

.poc-status[data-state="success"] { background: rgba(125, 179, 160, 0.18); color: #1c5440; }
.poc-status[data-state="error"]   { background: rgba(231, 85, 60, 0.14); color: #8c2415; }

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .poc-btn { transition: none; }
}

/* Print */

@media print {
    .poc-topbar, .poc-footer, .poc-page-hero { background: white; color: black; }
    .poc-prose { padding: 0; }
}
