/* ===================================================================
   Qualeto — site styles
   Palette: white bg, near-black ink, black accents, blue links/buttons
   =================================================================== */

:root {
    /* Palette aligned with qaizoku.com so the two sites read as one family */
    --bg:        #ffffff;
    --bg-alt:    #f5f7fa;
    --bg-dark:   #1a1a1a;   /* near-black for dark sections/footer */
    --ink:       #1a1a1a;   /* primary text */
    --ink-soft:  #6b7280;   /* muted text */
    --line:      #e5e7eb;   /* borders */
    --black:     #000000;   /* hard accents */
    --blue:      #3a6fc0;   /* links + buttons */
    --blue-dark: #2c5699;   /* hover */
    --blue-soft: #eaf0fb;   /* tints */

    /* RPGAnywhere brand teal — exact values sourced from rpganywhere.com */
    --teal:       oklch(40% 0.11 199);
    --teal-light: oklch(50% 0.12 196);
    --teal-dark:  oklch(28% 0.09 202);
    --teal-soft:  oklch(95% 0.03 196);

    --radius:    14px;
    --radius-sm: 10px;
    --shadow:    0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
    --shadow-lg: 0 12px 40px rgba(16,24,40,.12);
    --maxw:      1140px;
    --gap:       clamp(1rem, 3vw, 2rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 600; font-size: .98rem;
    padding: .8rem 1.5rem; border-radius: 999px;
    border: 1.5px solid transparent; cursor: pointer;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(31,111,235,.28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 8px 22px rgba(31,111,235,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 18px oklch(40% 0.11 199 / .28); }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-pink { background: #f47bb1; color: #111; box-shadow: 0 6px 18px rgba(244,123,177,.30); }
.btn-pink:hover { background: #ef5fa0; color: #111; box-shadow: 0 8px 22px rgba(244,123,177,.40); }
.btn-gold { background: #fcbf0f; color: #111; box-shadow: 0 6px 18px rgba(252,191,15,.30); }
.btn-gold:hover { background: #e9af07; color: #111; box-shadow: 0 8px 22px rgba(252,191,15,.40); }
.btn-purple { background: #8b7ad6; color: #fff; box-shadow: 0 6px 18px rgba(139,122,214,.30); }
.btn-purple:hover { background: #7a66cf; color: #fff; box-shadow: 0 8px 22px rgba(139,122,214,.40); }
.btn-cyan { background: #3fc4ee; color: #111; box-shadow: 0 6px 18px rgba(63,196,238,.30); }
.btn-cyan:hover { background: #28b4e0; color: #111; box-shadow: 0 8px 22px rgba(63,196,238,.40); }
.btn-amber { background: #e0962a; color: #fff; box-shadow: 0 6px 18px rgba(224,150,42,.30); }
.btn-amber:hover { background: #c9831f; color: #fff; box-shadow: 0 8px 22px rgba(224,150,42,.40); }
.btn-soon { background: var(--bg-alt); color: var(--ink-soft); border-color: var(--line); cursor: default; font-weight: 600; }
.btn-soon:active { transform: none; }
.btn-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); display: inline-block; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.card .card-foot.stack { flex-direction: column; align-items: flex-start; gap: .85rem; }
.shop-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(16,24,40,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; }
.site-nav a {
    display: inline-block; color: var(--ink); font-weight: 500; font-size: .96rem;
    padding: .5rem .85rem; border-radius: 8px; position: relative;
}
.site-nav a:hover { color: var(--blue); background: var(--bg-alt); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .1rem;
    height: 2px; background: var(--blue); border-radius: 2px;
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
    align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- sections / layout ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-head .eyebrow { color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { margin: .5rem 0 .75rem; }
.section-head p { font-size: 1.08rem; }

.eyebrow { display: inline-block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 500px at 50% -10%, var(--blue-soft), transparent 70%),
    var(--bg); }
.hero-inner { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem); text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
.hero h1 .accent { color: var(--blue); }
.hero .lede { max-width: 660px; margin: 1.25rem auto 2rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- feature (split) ---------- */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.feature.reverse { grid-template-columns: .9fr 1.1fr; }
.feature.reverse .feature-media { order: -1; }
.feature-media {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
    aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body h2 { margin-bottom: .75rem; }
.feature-body p { font-size: 1.05rem; margin-bottom: 1.25rem; }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7dbe2; }
.card-media {
    aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden;
    background: var(--bg-alt); margin: -1.6rem -1.6rem 1.25rem; display: grid; place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card .badge { align-self: flex-start; margin-bottom: .75rem; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; margin-bottom: 1rem; }
.card .card-foot { margin-top: auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.card-link { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.card-link .arrow { transition: transform .15s ease; }
.card-link:hover .arrow { transform: translateX(3px); }

.badge {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px;
}
.badge-live  { background: #e7f7ee; color: #157347; }
.badge-soon  { background: #fff3e0; color: #b5610a; }
.badge-blue  { background: var(--blue-soft); color: var(--blue-dark); }
.badge-teal  { background: var(--teal-soft); color: var(--teal-dark); }
.badge-ink   { background: #eceef1; color: var(--ink); }

/* ---------- list facts ---------- */
.facts { list-style: none; padding: 0; display: grid; gap: .55rem; margin: 1rem 0 0; }
.facts li { display: flex; gap: .6rem; color: var(--ink-soft); font-size: .96rem; }
.facts li::before { content: "▸"; color: var(--blue); font-weight: 700; }

/* ---------- about: pillars ---------- */
.pillar { text-align: left; }
.pillar .num { font-size: .82rem; font-weight: 700; color: var(--blue); letter-spacing: .08em; }
.pillar h3 { margin: .35rem 0 .5rem; font-size: 1.3rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.contact-intro h2 { margin-bottom: .9rem; }
.contact-intro p { font-size: 1.05rem; margin-bottom: 1rem; }
.contact-card-info { margin-top: 1.5rem; padding: 1.25rem 1.5rem; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--line); }
.contact-card-info .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; }
.contact-card-info a { font-size: 1.15rem; font-weight: 700; }

.form { display: grid; gap: 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .req { color: var(--blue); }
.field input, .field textarea {
    font: inherit; color: var(--ink); width: 100%;
    padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; }
.alert-ok  { background: #e7f7ee; color: #157347; border: 1px solid #b8e6cb; }
.alert-err { background: #fdecea; color: #b42318; border: 1px solid #f6c9c4; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: #c7ccd6; margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr; gap: 1.5rem 2rem; align-items: center; padding: 1.75rem clamp(1rem,4vw,2rem); }
.footer-logo { height: 30px; width: auto; background: #fff; padding: 5px 9px; border-radius: 7px; }
.footer-tag { margin-top: .5rem; color: #9aa1ad; max-width: 240px; font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.footer-nav a { color: #c7ccd6; font-weight: 500; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact p { color: #9aa1ad; margin-bottom: .25rem; font-size: .9rem; }
.footer-email { color: #fff; font-weight: 700; font-size: 1rem; }
.footer-email:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom p { padding: .8rem 0; text-align: center; color: #8b93a0; font-size: .85rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- flagship cards (home) ---------- */
.flagship { padding: 0; overflow: hidden; }
.flagship .flag-band {
    margin: 0; padding: 1.5rem 1.6rem; color: #fff; position: relative;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}
.flagship.alt .flag-band { background: linear-gradient(135deg, #1a1a1a, #34384a); }
.flagship.teal .flag-band { background: linear-gradient(135deg, var(--teal-dark), var(--teal-light)); }
.flag-band .kicker { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.flag-band h3 { color: #fff; font-size: 1.5rem; margin-top: .25rem; }
.flag-band .sub { color: rgba(255,255,255,.85); font-size: .98rem; margin-top: .35rem; }
.flagship .flag-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.flagship .flag-body p { font-size: 1rem; }
.flagship .flag-body .card-foot { margin-top: auto; padding-top: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--blue-dark); background: var(--blue-soft); padding: .25rem .6rem; border-radius: 999px; }
.tags.teal li { color: var(--teal-dark); background: var(--teal-soft); }
.section-head .eyebrow.teal, .eyebrow.teal { color: var(--teal); }

/* ---------- typographic media panel (stand-in for product art) ---------- */
.media-panel {
    border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center;
    text-align: center; color: #fff; padding: 2rem; box-shadow: var(--shadow); overflow: hidden;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}
.media-panel.dark { background: linear-gradient(135deg, #1f232b, #3a414f); }
.media-panel.forest { background: linear-gradient(135deg, #1f3d2e, #2f6f4a); }
.media-panel.teal { background: linear-gradient(135deg, var(--teal-dark), var(--teal-light)); }
.media-panel .kicker { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .82; }
.media-panel strong { display: block; font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: .5rem 0; }
.media-panel em { font-style: normal; opacity: .85; font-size: 1.02rem; }

/* ---------- doorway cards (home arms) ---------- */
.doorway { text-decoration: none; }
.ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--blue-soft); color: var(--blue-dark); font-size: 1.4rem; margin-bottom: 1rem;
}
.doorway h3 { color: var(--ink); }
.doorway:hover h3 { color: var(--blue); }

/* ---------- legacy teaser ---------- */
.legacy { background: linear-gradient(135deg, #434956, #515869); color: #e1e3e8; border-radius: var(--radius); padding: clamp(2rem,5vw,3rem); }
.legacy .eyebrow { color: #b9cdf0; }
.legacy h2 { color: #fff; margin: .5rem 0 1rem; }
.legacy p { color: #ced1d8; font-size: 1.05rem; }
.legacy a.inline { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legacy a.inline:hover { color: #8fb0e6; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
        transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
    }
    .site-nav.open { transform: translateY(0); }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem; }
    .site-nav a { padding: .85rem 1rem; border-radius: 8px; }
    .site-nav a.is-active::after { display: none; }
    .site-nav a.is-active { background: var(--blue-soft); color: var(--blue-dark); }

    .feature, .feature.reverse { grid-template-columns: 1fr; }
    .feature.reverse .feature-media { order: 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (min-width: 861px) and (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
