/* ==========================================================================
   Stephen Studio - Main Stylesheet
   Design Philosophy: Flat, honest, typography-driven, zero fluff.
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --bg-color: #ffffff;
  --bg-subtle: #f5f5f5;
  --text-main: #171717;
  --text-muted: #737373;
  --text-light: #a3a3a3;
  --border-color: #e5e5e5;
  --max-width: 1040px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--text-muted);
}

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

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

/* --- Typography --- */
h1 {
  font-size: Clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: Clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 2rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* --- Trust Signals Bar --- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 2.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-block;
  background-color: var(--text-main);
  color: var(--bg-color);
  padding: 0.875rem 1.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--text-main);
  cursor: pointer;
}

.btn:hover {
  background-color: #333333;
  color: var(--bg-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

/* --- Main Content Sections --- */
main {
  flex: 1;
  padding: 4rem 0;
}

.section {
  margin-bottom: 5rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

/* --- Grid & Cards --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content {
  margin-bottom: 2rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

.price-tag span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bg-subtle);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "— ";
  color: var(--text-main);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-color);
  color: var(--text-main);
  border-radius: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: 1px solid var(--text-main);
  border-color: var(--text-main);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* --- Footer & Policies --- */
footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
  font-size: 0.875rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.policy-block {
  margin-bottom: 2.5rem;
}

.policy-block h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.policy-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
}

.footer-bottom {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 2rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .trust-bar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}