/*
 * ShadowTag website stylesheet
 *
 * Self-contained — does not depend on help.css.
 * Design language mirrors the in-app help docs.
 */

/* ─── Custom properties ──────────────────────────────────── */

:root {
    --bg:           #ffffff;
    --surface:      #f5f5f7;
    --text:         #1d1d1f;
    --secondary:    #6e6e73;
    --border:       #d2d2d7;
    --accent:       #0071e3;
    --code-bg:      #f0f0f5;
    --note-bg:      #e8f0fb;
    --max-width:    860px;
    --header-h:     52px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:        #000000;
        --surface:   #1c1c1e;
        --text:      #f5f5f7;
        --secondary: #98989d;
        --border:    #3a3a3c;
        --accent:    #2997ff;
        --code-bg:   #2c2c2e;
        --note-bg:   #1c2d42;
    }
}

/* ─── Reset ──────────────────────────────────────────────── */

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

/* ─── Base ───────────────────────────────────────────────── */

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* ─── Header ─────────────────────────────────────────────── */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-parent {
    font-size: 15px;
    color: var(--secondary);
    text-decoration: none;
}

.brand-parent:hover {
    color: var(--text);
    text-decoration: none;
}

.brand-sep {
    font-size: 15px;
    color: var(--secondary);
    opacity: 0.5;
}

.brand {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--text);
}

header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

header nav a {
    font-size: 14px;
    color: var(--secondary);
}

header nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 72px 24px 56px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-icon {
    width: auto;
    height: 200px;
    border: none;
    border-radius: 0;
    margin: 0 auto 24px;
    filter: drop-shadow(0 4px 16px rgba(255, 99, 55, 0.35));
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--text);
}

.hero .tagline {
    font-size: 20px;
    color: var(--secondary);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.45;
}

.hero .sub-tagline {
    font-size: 14px;
    color: var(--secondary);
    margin-top: 14px;
}

.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text);
    color: var(--bg);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 980px;
    transition: opacity 0.15s;
}

.btn-appstore:hover {
    opacity: 0.75;
    text-decoration: none;
}

/* ─── Main content ───────────────────────────────────────── */

.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 72px;
}

/* ─── Headings ───────────────────────────────────────────── */

h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-top: 56px;
    margin-bottom: 10px;
    color: var(--text);
}

h2:first-child {
    margin-top: 0;
}

h3 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
}

/* ─── Body text ──────────────────────────────────────────── */

p {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text);
}

.subtitle {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 32px;
    margin-top: 4px;
    line-height: 1.4;
}

/* ─── Lists ──────────────────────────────────────────────── */

ul,
ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

li {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text);
}

/* ─── Table ──────────────────────────────────────────────── */

table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    font-size: 14px;
}

th {
    text-align: left;
    font-weight: 600;
    padding: 8px 14px 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--secondary);
}

td {
    padding: 9px 14px 9px 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

/* ─── Note / callout ─────────────────────────────────────── */

.note {
    background: var(--note-bg);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 15px;
}

.note p:last-child {
    margin-bottom: 0;
}

/* ─── Code / kbd ─────────────────────────────────────────── */

code {
    font-family: "SF Mono", Menlo, Monaco, monospace;
    font-size: 13px;
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

kbd {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 7px;
    white-space: nowrap;
}

/* ─── Pro section ────────────────────────────────────────── */

.pro-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 36px;
    margin-top: 56px;
}

.pro-section h2 {
    margin-top: 0;
}

/* ─── Tag color swatch ───────────────────────────────────── */

.tag-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 16px 0;
}

.tag-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ─── Footer ─────────────────────────────────────────────── */

footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

footer p {
    font-size: 13px;
    color: var(--secondary);
    margin: 0;
}

footer nav {
    display: flex;
    gap: 18px;
}

footer nav a {
    font-size: 13px;
    color: var(--secondary);
}

footer nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 600px) {
    .hero h1      { font-size: 36px; }
    .hero .tagline { font-size: 17px; }
    .hero          { padding: 48px 20px 40px; }
    .content       { padding: 36px 20px 56px; }
    h2             { font-size: 20px; margin-top: 40px; }
    .pro-section   { padding: 24px 20px; }
    .footer-inner  { flex-direction: column; align-items: flex-start; }
}
