/* CrateSync web — matches iOS CrateTheme */
:root {
  --accent: #ff9500;
  --accent-dim: rgba(255, 149, 0, 0.16);
  --success: #33b373;
  --bg: #000000;
  --bg-elevated: #1c1c1e;
  --bg-secondary: #2c2c2e;
  --text: #f5f5f7;
  --text-secondary: #98989f;
  --text-tertiary: #636366;
  --hairline: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max: 40rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 149, 0, 0.12), transparent 55%),
    radial-gradient(800px 400px at 100% 100%, rgba(255, 149, 0, 0.05), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

/* Brand header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  animation: spin 12s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark {
    animation: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-secondary);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

/* Hero / support */
.hero {
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero .lede {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 34rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 0 0 0.85rem;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card a.action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.card a.action:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.card a.secondary {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.section-label {
  margin: 2.25rem 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.feature {
  display: grid;
  gap: 0.35rem;
}

.feature h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature .aside {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.note {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 149, 0, 0.35);
  background: rgba(255, 149, 0, 0.06);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* Privacy article */
.meta {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}

article h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

article h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}

article p,
article li {
  color: var(--text-secondary);
}

article ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0;
}

article li {
  margin: 0.35rem 0;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.site-footer p {
  margin: 0.35rem 0;
}
