/* All Day Software — shared styles for secondary pages (blog + product detail pages).
   Matches the homepage design system (index.html). The legacy styles.css is no longer referenced. */

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

:root {
  --ink: oklch(0.24 0.015 265);
  --ink-2: oklch(0.40 0.012 265);
  --ink-3: oklch(0.58 0.010 265);
  --ink-4: oklch(0.76 0.008 265);
  --rule: oklch(0.90 0.006 265);
  --paper: oklch(0.985 0.003 265);
  --paper-2: oklch(0.965 0.005 265);
  --paper-3: oklch(0.935 0.007 265);
  --card: oklch(1 0 0);
  --accent: oklch(0.55 0.15 265);
  --accent-ink: oklch(0.36 0.12 265);
  --accent-tint: oklch(0.94 0.03 265);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--paper);
  line-height: 1.55; font-size: 17px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }

/* ===== NAV (mirrors homepage) ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark-img { width: 28px; height: 28px; display: block; }
.brand em { font-style: normal; color: var(--ink-3); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--ink-2); font-weight: 500; transition: color 150ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { font-size: 14px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; }
@media (max-width: 720px) {
  .nav-inner { position: relative; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin: -8px -8px -8px 0;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: ""; display: block; width: 22px; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform 200ms ease, background 150ms ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -7px; left: 0; }
  .nav-toggle-bars::after  { position: absolute; top: 7px; left: 0; }
  .nav.menu-open .nav-toggle-bars { background: transparent; }
  .nav.menu-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 18px 16px; background: var(--paper);
    border: 1px solid var(--rule); border-radius: 14px;
    box-shadow: 0 18px 40px -20px rgba(0,0,0,0.35);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav.menu-open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 14px 0; font-size: 16px; }
  .nav-links a.nav-cta { margin-top: 12px; text-align: center; padding: 14px; }
}

/* ===== BLOG INDEX ===== */
.blog-head { padding: clamp(56px, 8vw, 110px) 0 clamp(32px, 4vw, 56px); }
.blog-head .label { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.blog-head .label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.blog-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.025em; color: var(--ink); }
.blog-title em { font-style: italic; color: var(--accent-ink); }
.blog-sub { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 48ch; line-height: 1.5; }

.post-list { list-style: none; border-top: 1px solid var(--rule); margin-bottom: clamp(64px, 9vw, 120px); }
.post-row { border-bottom: 1px solid var(--rule); }
.post-row a { display: grid; grid-template-columns: 170px 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: baseline; padding: clamp(28px, 3.5vw, 44px) 0; transition: opacity 160ms ease; }
.post-row a:hover { opacity: 0.62; }
.post-cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding-top: 9px; }
.post-main { display: block; }
.post-title { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.04; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 12px; }
.post-excerpt { display: block; font-size: 16px; color: var(--ink-2); line-height: 1.6; max-width: 54ch; }
.post-meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); text-align: right; white-space: nowrap; padding-top: 9px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 720px) {
  .post-row a { grid-template-columns: 1fr; gap: 12px; }
  .post-meta { text-align: left; flex-direction: row; gap: 14px; padding-top: 0; }
}

/* ===== ARTICLE (post) ===== */
.article { padding: clamp(44px, 6vw, 84px) 0 clamp(56px, 7vw, 104px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 36px; transition: color 150ms ease; }
.back-link:hover { color: var(--ink); }
.article-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.article-cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); display: block; margin-bottom: 18px; }
.article-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.0; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.article-meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; gap: 16px; align-items: center; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.article-meta .sep { color: var(--ink-4); }

.prose { max-width: 680px; margin: 0 auto; }
.prose p { font-size: 19px; line-height: 1.75; color: var(--ink-2); margin-bottom: 24px; text-wrap: pretty; }
.prose > p:first-of-type { font-size: 22px; line-height: 1.6; color: var(--ink); }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); margin: 48px 0 18px; }
.prose h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--ink); margin: 36px 0 14px; }
.prose a { color: var(--accent-ink); border-bottom: 1px solid color-mix(in oklab, var(--accent-ink) 35%, transparent); padding-bottom: 1px; transition: border-color 150ms ease; }
.prose a:hover { border-color: var(--accent-ink); }
.prose ul, .prose ol { margin: 0 0 24px 1.2em; color: var(--ink-2); }
.prose li { font-size: 19px; line-height: 1.7; margin-bottom: 8px; }
.prose blockquote { margin: 32px 0; padding-left: 24px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-size: 25px; line-height: 1.3; color: var(--ink); font-style: italic; }
.prose pre { background: var(--ink); color: var(--paper); padding: 20px 22px; border-radius: 12px; overflow: auto; margin: 0 0 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--paper-3); padding: 2px 6px; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }

.article-cta { max-width: 680px; margin: clamp(48px, 6vw, 80px) auto 0; padding-top: 36px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1; border: 1px solid transparent; transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ===== FOOTER (mirrors homepage) ===== */
.footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 48px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left .mono { color: var(--ink-3); }
.footer-mark { width: 22px; height: 22px; }
.footer-right { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-right a { font-size: 13px; color: var(--ink-3); transition: color 150ms ease; }
.footer-right a:hover { color: var(--ink); }

/* ============================================================
   PRODUCT DETAIL PAGES (splitterup, mathwiz-league)
   ============================================================ */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section + .section { padding-top: 0; }

/* section header */
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 60ch; }
.sec-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 22px; }
.sec-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.sec-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.5vw, 60px); line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.sec-title em { font-style: italic; color: var(--accent-ink); }
.sec-sub { margin-top: 18px; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); line-height: 1.55; max-width: 48ch; }

/* product hero */
.phero { padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.phero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.phero-meta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 26px; }
.phero-meta .status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-live { background: oklch(0.70 0.14 150); box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.70 0.14 150) 22%, transparent); }
.status-soon { background: oklch(0.72 0.14 75); box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.72 0.14 75) 22%, transparent); }
.phero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 8vw, 104px); line-height: 0.96; letter-spacing: -0.025em; color: var(--ink); }
.phero-tag { margin-top: 14px; font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2vw, 28px); color: var(--accent-ink); }
.phero-desc { margin-top: 26px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.phero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.phero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.phero-glow { position: absolute; inset: 0; pointer-events: none; }
.phero-glow::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 460px; height: 460px; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 68%); }
@media (max-width: 860px) { .phero-grid { grid-template-columns: 1fr; gap: 44px; } .phero-visual { order: -1; } }

/* pill badge */
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); }
.pill .status-dot { width: 7px; height: 7px; border-radius: 50%; }

/* phone + browser mockups (match homepage) */
.mock-phone { width: 260px; max-width: 100%; }
.phone-frame { width: 260px; height: 540px; background: #0d0d12; border-radius: 38px; padding: 9px; box-shadow: 0 1px 0 1px oklch(0.3 0.01 260), 0 24px 48px -14px rgba(0,0,0,0.32), 0 48px 90px -24px rgba(0,0,0,0.25); position: relative; margin: 0 auto; }
.phone-frame::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #0d0d12; border-radius: 12px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; background-size: cover; background-position: top center; overflow: hidden; background-color: #0b1120; }
.mock-browser { width: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 18px 44px -14px rgba(0,0,0,0.20), 0 2px 8px rgba(0,0,0,0.05); border: 1px solid var(--rule); }
.mock-browser .bar { height: 36px; background: var(--paper-2); border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.mock-browser .bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); }
.mock-browser .screen { aspect-ratio: 16 / 10; background-size: cover; background-position: top center; }

/* card grid (overview / features) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.card .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* alternating feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--rule); }
.feature-row:first-of-type { border-top: none; padding-top: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); margin-bottom: 16px; }
.feature-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 18px; text-wrap: balance; }
.feature-p { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 50ch; margin-bottom: 22px; }
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.feature-visual { display: flex; justify-content: center; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; gap: 36px; } .feature-row.reverse .feature-text { order: 0; } }

/* tag groups (tech stack / highlights) */
.tag-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.tag-col h3 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; }

/* screenshots */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.screen-item { display: flex; flex-direction: column; gap: 14px; }
.screen-cap { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }

/* CTA block (dark, matches homepage contact-card) */
.cta { background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; text-align: center; }
.cta::before { content: ""; position: absolute; top: -90px; right: -60px; width: 360px; height: 360px; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 42%, transparent) 0%, transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 18px; }
.cta-h em { font-style: italic; color: color-mix(in oklab, var(--accent) 80%, var(--paper)); }
.cta-p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: color-mix(in oklab, var(--paper) 78%, transparent); max-width: 46ch; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn-primary { background: var(--paper); color: var(--ink); }
.cta .btn-primary:hover { background: color-mix(in oklab, var(--accent) 78%, var(--paper)); color: var(--ink); transform: translateY(-1px); }
.cta .btn-ghost { border-color: color-mix(in oklab, var(--paper) 28%, transparent); color: var(--paper); }
.cta .btn-ghost:hover { border-color: var(--paper); background: color-mix(in oklab, var(--paper) 10%, transparent); }
.cta-note { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: color-mix(in oklab, var(--paper) 55%, transparent); }
