/* redefinedbyai.tech: apex landing.
   Self-contained: the blog lives on another origin now, so this does not
   depend on the blog's /styles.css. Same brand tokens, kept in sync by hand. */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --card: #faf9f5;
  --ring: #c96442;
  --muted: #ede9de;
  --accent: #e9e6dc;
  --border: #dad9d4;
  --radius: 0.5rem;
  --primary: #c96442;
  --secondary: #e9e6dc;
  --background: #faf9f5;
  --foreground: #3d3929;
  --card-foreground: #141413;
  --muted-foreground: #83827d;
  --accent-foreground: #28261b;
  --primary-foreground: #ffffff;
  --secondary-foreground: #535146;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(circle at 16% 8%, rgba(201, 100, 66, 0.13), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(156, 135, 245, 0.12), transparent 28rem),
    linear-gradient(rgba(61,57,41,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,57,41,0.035) 1px, transparent 1px),
    var(--background);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 14px; font-weight: 800; }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.01; letter-spacing: -0.033em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.025em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- header --- */
.site-header {
  position: sticky; top: 14px; z-index: 40;
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px;
  border: 1px solid rgba(218, 217, 212, 0.82);
  border-radius: 16px;
  background: rgba(250,249,245,0.86);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--primary); color: #fff;
  font-weight: 900;
}
.nav { display: flex; align-items: center; gap: 3px; }
.nav a {
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--secondary-foreground);
}
.nav a:hover { background: var(--accent); color: var(--accent-foreground); }
.nav .nav-cta { background: var(--foreground); color: #fff; padding-inline: 15px; }
.nav .nav-cta:hover { background: var(--primary); color: #fff; }

main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { margin: 92px 0; scroll-margin-top: 100px; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.kicker {
  display: block; margin-bottom: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--primary);
}
.lede { color: var(--muted-foreground); font-size: 18px; line-height: 1.72; }

/* --- buttons --- */
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 46px; padding: 12px 18px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 750; cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}
.button:hover { transform: translateY(-1px); }
.primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 14px 32px rgba(201,100,66,0.22); }
.primary:hover { background: #b4552d; }
.secondary { background: var(--secondary); color: var(--secondary-foreground); border-color: var(--border); }
.secondary:hover { background: var(--accent); color: var(--accent-foreground); }

/* --- hero --- */
.hero {
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 30px; align-items: center;
  padding: 66px 0 12px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card);
  font-size: 13px; font-weight: 700; color: var(--secondary-foreground);
}
.pill span {
  width: 8px; height: 8px; border-radius: 999px; background: var(--primary);
  box-shadow: 0 0 0 5px rgba(201,100,66,0.14);
}
.hero-text { max-width: 620px; color: var(--muted-foreground); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: 13.5px; color: var(--muted-foreground); }
.hero-meta strong { color: var(--foreground); }

.hero-card {
  padding: 22px;
  border: 1px solid var(--border); border-radius: 28px;
  background: var(--card);
  box-shadow: 0 20px 56px rgba(61,57,41,0.09);
}
.hero-card img { border-radius: 20px; aspect-ratio: 4 / 5; max-height: 460px; width: 100%; object-fit: cover; object-position: center top; }
.hero-card-caption { margin-top: 16px; }
.hero-card-caption strong { display: block; font-size: 17px; }
.hero-card-caption span { font-size: 13.5px; color: var(--muted-foreground); }

/* --- generic card grids --- */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border); border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 44px rgba(61,57,41,0.06);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 70px rgba(61,57,41,0.12); border-color: rgba(201,100,66,0.35); }
.card p { color: var(--muted-foreground); line-height: 1.68; margin-bottom: 0; }
.grid > .card { height: 100%; }
.card-num {
  margin-bottom: 16px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--primary);
}

/* --- products --- */
.product { position: relative; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.status {
  flex: none; padding: 5px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--muted);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-foreground); white-space: nowrap;
}
.status.live { border-color: rgba(201,100,66,0.4); color: var(--primary); background: rgba(201,100,66,0.08); }
.product h3 { margin-bottom: 0; }
.product-role { margin: 4px 0 12px; font-size: 13px; color: var(--primary); font-weight: 700; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.product-tags span {
  padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--background);
  font-size: 11.5px; font-weight: 700; color: var(--muted-foreground);
}
.products-note {
  margin-top: 18px; padding: 15px 18px;
  border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0;
  background: var(--muted);
  color: var(--secondary-foreground); font-size: 14.5px; line-height: 1.7;
}
.products-note p:last-child { margin-bottom: 0; }

/* --- hire --- */
.tier { position: relative; }
.tier-price { font-size: 30px; font-weight: 850; letter-spacing: -0.02em; margin-bottom: 4px; }
.tier-mode { margin-bottom: 14px; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.tier a { margin-top: 20px; width: fit-content; color: var(--primary); font-weight: 850; }
.tier a:hover { text-decoration: underline; }
.hire-band {
  margin-top: 14px; padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border); border-radius: 28px;
  background: var(--foreground); color: #faf9f5;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: center;
}
.hire-band h3 { font-size: clamp(24px, 3vw, 34px); }
.hire-band p { color: rgba(250,249,245,0.7); line-height: 1.7; margin-bottom: 0; }
.hire-band .button { margin-top: 20px; }

/* --- writing --- */
.writing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.writing .card { min-height: 220px; justify-content: space-between; }
.writing .card a { margin-top: 18px; width: fit-content; color: var(--primary); font-weight: 850; }

/* --- contact --- */
.contact {
  padding: clamp(26px, 4.4vw, 48px);
  border: 1px solid var(--border); border-radius: 28px;
  background: var(--card);
  text-align: center;
  box-shadow: 0 16px 44px rgba(61,57,41,0.06);
}
.contact p { max-width: 560px; margin: 0 auto 24px; color: var(--muted-foreground); line-height: 1.72; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- footer --- */
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto; padding: 30px 0 46px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--muted-foreground);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a:hover { color: var(--primary); }

@media (max-width: 960px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-card { max-width: 420px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hire-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main, .footer, .site-header { width: min(100% - 24px, 1120px); }
  .section { margin: 64px 0; }
  .grid-3, .grid-2, .writing { grid-template-columns: 1fr; }
  .nav a { font-size: 13px; padding: 9px 10px; }
}

/* hire teaser: single column inside the dark band */
.hire-band { grid-template-columns: 1fr; }
.hire-band .hero-actions { margin-top: 24px; }
.button.dark-outline { background: transparent; color: #faf9f5; border-color: rgba(250,249,245,0.32); }
.button.dark-outline:hover { background: rgba(250,249,245,0.1); color: #fff; }

/* courses */
.course-cta { margin-top: 18px; width: fit-content; color: var(--primary); font-weight: 850; }
.course-cta:hover { text-decoration: underline; }
#courses .card { justify-content: space-between; }
