/* williamarana.pro shared styles. Light by default, dark via [data-theme="dark"]. */
:root {
  --bg: #ffffff;
  --bg-shade: #f3f5f8;
  --bg-card: #ffffff;
  --text: #111827;
  --text-muted: #4b5563;
  --border: #d9dee6;
  --accent: #1d4ed8;
  --accent-soft: #e8eefc;
  --badge-bg: #fff4d6;
  --badge-text: #7a5300;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 2px 8px rgba(17, 24, 39, .04);
  --radius: 10px;
  --max: 1040px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f1419;
  --bg-shade: #161d25;
  --bg-card: #1a222c;
  --text: #e8edf3;
  --text-muted: #a3adba;
  --border: #2c3744;
  --accent: #7aa2ff;
  --accent-soft: #1f2a3d;
  --badge-bg: #3a2f12;
  --badge-text: #f5d27a;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
  margin-right: auto;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 15px;
}
.nav a:hover { background: var(--bg-shade); color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--bg-shade); }

/* Sections */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 640px; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 8px; }
.shaded { background: var(--bg-shade); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0 48px; }
.section-title { font-size: 20px; margin: 0 0 18px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.card .meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--accent); font-weight: 600; }
.badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
}
.card.soon { cursor: default; }

/* Stub pages */
.stub { padding: 64px 0 80px; }
.stub .badge { font-size: 13px; padding: 4px 10px; margin-top: 16px; display: inline-block; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-shade); padding: 24px 0; font-size: 14px; color: var(--text-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; margin-left: auto; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg-card); padding: 8px 12px; z-index: 20; }

@media (max-width: 640px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .site-footer nav { margin-left: 0; }
}

/* Showcase pages */
.show-hero { padding: 48px 0 36px; }
.show-hero .wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.show-hero .app-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 6px 20px rgba(17,24,39,.18); flex: none; }
.show-hero h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; }
.show-hero p { margin: 0; color: var(--text-muted); font-size: 17px; max-width: 620px; }
.show-hero .text { flex: 1; min-width: 260px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--bg-card);
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .btn.primary { color: #0f1419; }

.section { padding: 40px 0 48px; }
.section p.lead { color: var(--text-muted); margin: -8px 0 20px; max-width: 680px; }

.brand-kit { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.brand-kit .tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.brand-kit .tile h3 { margin: 0 0 4px; font-size: 15px; }
.brand-kit .tile p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-muted); }
.brand-kit .og { grid-row: span 2; }
.brand-kit .og img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); display: block; }
.icon-demo { display: flex; align-items: flex-end; gap: 14px; }
.icon-demo img { border-radius: 22%; box-shadow: 0 3px 10px rgba(17,24,39,.15); }
.icon-demo span { display: block; font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 4px; }
.tab-mock {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 9px 9px 0 0;
  background: var(--bg-shade); border: 1px solid var(--border); border-bottom: 0; font-size: 13px; max-width: 100%;
}
.tab-mock img { width: 16px; height: 16px; border-radius: 3px; }
.fav-sizes { display: flex; gap: 14px; align-items: flex-end; margin-top: 14px; }
.fav-sizes img { image-rendering: auto; border-radius: 4px; }
.fav-sizes span { display: block; font-size: 11px; color: var(--text-muted); text-align: center; }
.wordmark { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center; }
.wordmark img { max-width: 100%; height: 44px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feature { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.feature h3 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15px; }

.callout { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; }
.timeline span { color: var(--text-muted); font-size: 15px; }
.note { font-size: 13px; color: var(--text-muted); margin-top: 18px; }

@media (max-width: 720px) {
  .brand-kit { grid-template-columns: 1fr; }
  .brand-kit .og { grid-row: auto; }
}
