/* =========================================================================
   EARMARKED STUDIOS — Production Stylesheet v4 "Primary"
   Direction: bold primary-color system · saturated blue lead · high contrast
   Derived from the Earmark logo: primary dots, bold grounds, flat + graphic
   Type: Fraunces (display serif) + Inter (body/UI)
   ========================================================================= */

:root {
  /* Signature — logo red-orange */
  --accent: #D63C20;
  --accent-deep: #B0301A;
  --accent-bright: #FF6A4D;    /* on dark grounds */
  --accent-soft: #D63C2012;
  --accent-border: #D63C2033;
  --grad: linear-gradient(155deg, #E5472C, #D63C20 55%, #C4341A);

  /* The primary-color system (dots + vertical identities + accents) */
  --blue: #1E7FD4;
  --green: #1E9B55;
  --yellow: #F4B81E;
  --red: #D63C20;

  /* Grounds — warmed to sit with the red instead of against it */
  --paper: #FBF8F4;            /* soft warm off-white */
  --sand: #F4EDE6;            /* warm light surface */
  --sand-deep: #EBE2D9;
  --ink: #1C1512;             /* warm near-black text */
  --ink-panel: #B0301A;       /* deep red (fallback for the gradient grounds) */
  --text-secondary: #6A5D57;
  --text-tertiary: #9C8E87;

  --border: #EAE1D8;
  --border-strong: #D9CDC1;

  /* Product vertical dots */
  --dot-blue: #1E7FD4;
  --dot-green: #1E9B55;
  --dot-yellow: #F4B81E;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-warm: 0 18px 40px -24px rgba(140, 40, 22, 0.42);
  --shadow-soft: 0 2px 12px -4px rgba(20, 24, 28, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; }
button { font-family: inherit; }
em { font-style: italic; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px; }
.dot-blue { background: var(--dot-blue); }
.dot-green { background: var(--dot-green); }
.dot-yellow { background: var(--dot-yellow); }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(252, 253, 254, 0.86);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.nav-wordmark { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1; color: var(--accent); letter-spacing: -0.5px; }
.nav-sub { font-size: 11px; color: var(--text-secondary); letter-spacing: 1.5px; text-transform: uppercase; }
.nav-logo-row { display: flex; align-items: center; gap: 2px; margin-top: 5px; }
.nav-logo-row .nav-sub { margin-left: 4px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); font-weight: 500; }
.nav-cta {
  background: var(--accent); color: #fff; font-size: 13px; padding: 9px 18px;
  border-radius: var(--r-md); border: none; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--accent); color: #fff; font-size: 14px; padding: 13px 26px;
  border-radius: var(--r-md); border: none; cursor: pointer; text-decoration: none;
  display: inline-block; font-weight: 500; transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-secondary {
  font-size: 14px; color: var(--ink); background: none;
  border: 1px solid var(--border-strong); padding: 13px 26px; border-radius: var(--r-md);
  cursor: pointer; text-decoration: none; display: inline-block; transition: border-color .15s, background .15s, color .15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Text link ---------- */
.text-link { font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 500; display: inline-block; }
.text-link:hover { color: var(--accent-deep); }

/* ---------- Hero ---------- */
.hero { padding: 92px 32px 56px; max-width: 760px; }
.hero-eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; font-weight: 600; }
.hero-headline { font-family: var(--serif); font-size: 58px; font-weight: 400; line-height: 1.02; color: var(--ink); margin-bottom: 26px; letter-spacing: -1.8px; }
.hero-headline em { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 18px; color: var(--text-secondary); line-height: 1.65; max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- Page header ---------- */
.page-header { padding: 76px 32px 48px; max-width: 760px; }
.page-eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 600; }
.page-title { font-family: var(--serif); font-size: 50px; font-weight: 400; line-height: 1.05; color: var(--ink); margin-bottom: 22px; letter-spacing: -1.4px; }
.page-title em { color: var(--accent); font-style: italic; }
.page-sub { font-size: 17px; color: var(--text-secondary); line-height: 1.65; max-width: 580px; }

/* ---------- Sections ---------- */
.divider { height: 1px; background: var(--border); margin: 0 32px; }
.section { padding: 68px 32px; }
.section-label { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.section-title { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.6px; }
.section-title em { color: var(--accent); font-style: italic; }
.section-body { font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-width: 580px; margin-bottom: 38px; }
.section-foot { margin-top: 32px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card-tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.card-title { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.card-body { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* ---------- Product cards (each vertical wears its primary) ---------- */
.product-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.product-card { background: var(--paper); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--border); border-top: 3px solid var(--border-strong); display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.product-card.v-blue { border-top-color: var(--blue); }
.product-card.v-green { border-top-color: var(--green); }
.product-card.v-yellow { border-top-color: var(--yellow); }
.product-dot-row { display: flex; gap: 6px; margin-bottom: 16px; }
.product-name { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.3px; }
.product-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; flex-grow: 1; }
.product-pill { display: inline-block; font-size: 10px; padding: 4px 11px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); letter-spacing: 0.5px; text-transform: uppercase; align-self: flex-start; font-weight: 600; }
.product-pill.muted { background: var(--sand-deep); color: var(--text-tertiary); border-color: var(--border-strong); }

/* ---------- Pricing tiers ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.tier { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; position: relative; display: flex; flex-direction: column; }
.tier.featured { border: 1.5px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 60%); }
.tier-badge { display: inline-block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 11px; border-radius: 20px; background: var(--accent); color: #fff; margin-bottom: 14px; align-self: flex-start; font-weight: 600; }
.tier-name { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.3px; }
.tier-price { font-size: 14px; color: var(--accent); margin-bottom: 14px; font-weight: 500; }
.tier-meta { font-size: 11px; color: var(--text-tertiary); margin-bottom: 16px; letter-spacing: 1px; text-transform: uppercase; }
.tier-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 18px; }
.tier-list { list-style: none; margin-top: auto; }
.tier-list li { font-size: 13px; color: var(--text-secondary); padding: 8px 0 8px 22px; position: relative; }
.tier-list li:before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Capability grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cap { background: var(--paper); padding: 26px; }
.cap-mark { font-family: var(--serif); font-size: 14px; font-style: italic; color: var(--accent); margin-bottom: 12px; }
.cap h4 { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.2px; }
.cap p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Bold blue panel (signature ground) ---------- */
.panel { background: var(--grad); color: #fff; margin: 0 32px 48px; border-radius: var(--r-xl); padding: 48px; box-shadow: var(--shadow-warm); }
.panel .section-label { color: #FFD9CE; }
.panel h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 14px; letter-spacing: -0.5px; color: #fff; }
.panel h3 em { color: #fff; font-style: italic; }
.panel p { font-size: 15px; color: #FFECE7; line-height: 1.7; max-width: 600px; }

/* ---------- Analyzer (red gradient ground = the signature) ---------- */
.analyzer { margin: 0 32px 48px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--accent-deep); }
.analyzer-head { background: var(--grad); color: #fff; padding: 36px 40px 32px; }
.analyzer-head .section-label { color: #FFD9CE; }
.analyzer-head h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -0.6px; margin-bottom: 12px; color: #fff; }
.analyzer-head h3 em { color: #fff; font-style: italic; }
.analyzer-head p { font-size: 15px; color: #FFECE7; line-height: 1.6; max-width: 560px; }
.analyzer-body { background: var(--sand); padding: 32px 40px 40px; }
.analyzer textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 16px; outline: none; min-height: 120px; resize: vertical; line-height: 1.55; transition: border-color .15s; }
.analyzer textarea:focus { border-color: var(--accent); }
.analyzer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.analyzer-chip { font-size: 12px; color: var(--text-secondary); background: var(--paper); border: 1px solid var(--border-strong); border-radius: 20px; padding: 7px 13px; cursor: pointer; transition: all .15s; }
.analyzer-chip:hover { border-color: var(--accent); color: var(--accent); }
.analyzer-note { font-size: 12px; color: var(--text-tertiary); margin-top: 14px; line-height: 1.5; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.process-step { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--sand); }
.step-num { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--accent); margin-bottom: 8px; line-height: 1; font-style: italic; }
.step-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.step-body { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }

/* ---------- Note ---------- */
.note { background: var(--sand); border-left: 3px solid var(--accent); padding: 20px 24px; margin: 0 32px 40px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.note p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.note strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--sand); margin: 0 32px 48px; border-radius: var(--r-lg); border: 1px solid var(--border); padding: 38px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.cta-strip-text h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.3px; }
.cta-strip-text h3 em { color: var(--accent); font-style: italic; }
.cta-strip-text p { font-size: 14px; color: var(--text-secondary); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.about-block { padding: 26px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--paper); }
.about-block h4 { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.about-block p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

.principles-list { list-style: none; margin-top: 8px; }
.principles-list li { padding: 20px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 28px 1fr; gap: 20px; align-items: start; }
.principles-list li:last-child { border-bottom: none; }
.principle-mark { color: var(--accent); font-size: 18px; line-height: 1.4; }
.principle-text { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.principle-text strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 940px; margin-top: 8px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info h4 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.contact-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.meta-item { padding: 14px 0; border-top: 1px solid var(--border); }
.meta-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; font-weight: 600; }
.meta-value { font-size: 14px; color: var(--ink); }
a.meta-value { color: var(--accent); text-decoration: none; }
a.meta-value:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-tertiary); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; font-family: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 12px 14px; outline: none; transition: border-color .15s; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.contact-form button { align-self: flex-start; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { padding: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.footer-logo { font-family: var(--serif); font-size: 18px; color: var(--accent); letter-spacing: -0.3px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text-tertiary); text-decoration: none; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: 12px; color: var(--text-tertiary); }

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 60px 24px 44px; }
  .hero-headline { font-size: 40px; letter-spacing: -1px; }
  .page-header { padding: 56px 24px 40px; }
  .page-title { font-size: 36px; }
  .section { padding: 48px 24px; }

  .nav { padding: 12px 20px; flex-wrap: wrap; }
  .nav-cta { display: none; }
  .nav-links {
    display: flex; order: 3; width: 100%; gap: 8px; margin-top: 10px;
    padding-top: 10px; border-top: 1px solid var(--border);
    justify-content: space-between; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links a { font-size: 13px; white-space: nowrap; padding: 4px 2px; }

  .divider, .note, .cta-strip, .panel, .analyzer { margin-left: 20px; margin-right: 20px; }
  .panel, .analyzer-head, .analyzer-body { padding-left: 24px; padding-right: 24px; }
  .cta-strip { padding: 26px; }
  .footer { padding: 24px 20px; }
}
