/* DrivenAI.ai — shared styles. Plain CSS, no build step. */

:root {
  --brown: #4a3529;
  --brown-dark: #3a2820;
  --ink: #2b2320;
  --tan: #c9a86a;
  --tan-light: #d9be93;
  --cream: #fbf8f2;
  --white: #ffffff;
  --muted: #6e6358;
  --rule-blue: #a9c3e0;
  --margin-red: #c0504a;
  --border: #e7ded0;
  --shadow: 0 1px 2px rgba(43, 35, 32, 0.06), 0 8px 24px rgba(43, 35, 32, 0.08);
  --radius: 14px;
  --maxw: 1080px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; color: var(--brown); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--ink); }
p { margin: 0 0 1rem; }
a { color: var(--brown); }
a:hover { color: var(--brown-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brown); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--tan); outline-offset: 2px; border-radius: 4px;
}

/* Header / nav */
.site-header {
  background: var(--brown);
  color: #f3ece1;
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.wordmark {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700;
  color: #fff; text-decoration: none; letter-spacing: 0.2px; white-space: nowrap;
}
.wordmark:hover { color: #fff; }
.wordmark .dot { color: var(--tan-light); }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a {
  color: #e9e0d3; text-decoration: none; font-size: 0.95rem; padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: #fff; border-bottom-color: var(--tan); }

/* Hero — App Store / Play Store style product header */
.hero {
  background: radial-gradient(ellipse 120% 100% at 50% 0%, var(--cream) 0%, var(--white) 62%);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.app-header {
  display: flex; gap: clamp(1.25rem, 4vw, 2.25rem); align-items: center;
}
.app-icon-lg {
  width: clamp(96px, 16vw, 132px); height: clamp(96px, 16vw, 132px);
  border-radius: 22%; box-shadow: var(--shadow); flex: none;
}
.app-header-text { min-width: 0; }
.app-name { margin: 0 0 0.15rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.app-tagline { color: var(--muted); font-size: 1.08rem; margin: 0 0 0.55rem; max-width: 48ch; }
.app-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center;
  font-size: 0.9rem; color: var(--muted);
}
.app-meta .by { color: var(--ink); }
.app-meta .sep { color: var(--border); }
.app-meta .coming-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--tan-light); color: var(--brown-dark); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.3px; text-transform: uppercase;
  padding: 0.2rem 0.65rem; border-radius: 999px;
}
.app-meta .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brown); display: inline-block; }

.hero-desc { max-width: 62ch; margin: 1.5rem 0 0; color: var(--ink); font-size: 1.02rem; }

/* Store-style "coming soon" badges — placeholders for real App Store / Google
   Play badges once the app is actually published there. */
.store-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.5rem 0 0.5rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: var(--brown); color: #fff; text-decoration: none;
  padding: 0.55rem 1.1rem; border-radius: 12px; border: 1px solid var(--brown);
  transition: background 0.15s ease, transform 0.15s ease;
}
.store-badge:hover { background: var(--brown-dark); color: #fff; transform: translateY(-1px); }
.store-badge svg { flex: none; opacity: 0.9; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge-text small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.6px; color: #d8ccbc; }
.store-badge-text strong { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; }
.store-note { font-size: 0.86rem; color: var(--muted); margin-top: 0.35rem; }

/* Badges / pills */
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--tan-light); color: var(--brown-dark);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.3px;
  padding: 0.35rem 0.8rem; border-radius: 999px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brown); display: inline-block; }

/* Buttons */
.btn {
  display: inline-block; background: var(--brown); color: #fff; text-decoration: none;
  padding: 0.7rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid var(--brown); transition: background 0.15s ease;
}
.btn:hover { background: var(--brown-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brown); }
.btn-outline:hover { background: var(--cream); color: var(--brown); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Sections */
section { padding: clamp(3rem, 7vw, 4.5rem) 0; }
section.alt { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { max-width: 60ch; margin-bottom: 2rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem;
  font-weight: 700; color: var(--tan); margin: 0 0 0.5rem;
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { color: var(--brown); }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card .ico { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }

/* Screenshot gallery — horizontal scroll of framed phone screens, App Store style */
.gallery {
  display: flex; gap: 1.5rem; overflow-x: auto; padding: 0.5rem 0.25rem 1.25rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
figure.shot-wrap { margin: 0; flex: none; scroll-snap-align: start; }
.phone-frame {
  width: 220px; max-width: 62vw; border-radius: 34px; padding: 8px;
  background: #211a15; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.phone-frame::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 16px; background: #211a15; border-radius: 0 0 10px 10px; z-index: 2;
}
.phone-frame img { border-radius: 26px; width: 100%; }
figcaption { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 0.7rem; max-width: 220px; }

/* Info list — store "information" panel, verified facts only */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.info-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list .k { color: var(--muted); }
.info-list .v { color: var(--ink); font-weight: 600; text-align: right; }

/* Status strip */
.status-card {
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--tan);
  border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: var(--shadow);
  max-width: 60ch;
}

/* Contact */
.contact-email {
  font-family: var(--font-serif); font-size: 1.3rem; color: var(--brown); text-decoration: none;
  border-bottom: 2px solid var(--tan);
}
.contact-email:hover { border-bottom-color: var(--brown); }

/* Footer */
.site-footer {
  background: var(--brown); color: #d8ccbc; padding: 2.5rem 0; margin-top: 0;
  font-size: 0.92rem;
}
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #f0e7d9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Legal / article pages */
.doc { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.doc .container { max-width: 780px; }
.doc h1 { margin-bottom: 0.25rem; }
.doc .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }
.doc h2 { font-size: 1.3rem; margin-top: 2.25rem; color: var(--brown); }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.callout {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 1.5rem 0; color: var(--muted); font-size: 0.95rem;
}
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: 0.92rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .info-list { max-width: none; }
}
@media (max-width: 560px) {
  .site-header .container { flex-direction: column; align-items: flex-start; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .nav { gap: 0.9rem; }
  .app-header { flex-direction: column; align-items: flex-start; }
  .app-meta { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
