/* ==========================================================================
   TailoredAI.biz — Site stylesheet
   EDIT: Brand colours and fonts live in the :root block below.
   ========================================================================== */

:root {
  /* Brand colours — EDIT here to re-theme the whole site */
  --ink: #16233b;        /* deep navy: headings, primary buttons */
  --ink-soft: #33415e;   /* body text */
  --ink-faint: #5c6b8a;  /* secondary text */
  --paper: #ffffff;      /* page background */
  --mist: #f3f5f9;       /* light section background */
  --line: #dde3ec;       /* borders */
  --thread: #e2a23c;     /* "thread gold" accent — the tailored stitch */
  --thread-deep: #b97f22;
  --live: #1f7a6d;       /* status: available */
  --roadmap: #8a5fbf;    /* status: roadmap */

  --font-display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(22, 35, 59, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--ink); }

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

/* --- Signature: the tailored stitch ------------------------------------- */
.stitch {
  background-image: linear-gradient(90deg, var(--thread) 55%, transparent 0);
  background-size: 14px 3px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  padding-bottom: 6px;
}
.stitch-rule {
  border: 0;
  height: 3px;
  margin: 0 auto 2.5rem;
  width: 92px;
  background-image: linear-gradient(90deg, var(--thread) 55%, transparent 0);
  background-size: 14px 3px;
}

/* --- Skip link / focus --------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--thread);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Header / navigation -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.brand .tld { color: var(--thread-deep); font-weight: 600; font-size: 0.95em; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 48px; height: 48px; cursor: pointer; color: var(--ink);
  font-size: 1.3rem; line-height: 1;
}

.nav-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a, .nav-menu button.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  font: inherit; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  border-radius: 8px;
}
.nav-menu a:hover, .nav-menu button.nav-link:hover { color: var(--ink); background: var(--mist); }
.nav-menu a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem; margin: 0; list-style: none;
  display: none;
}
.dropdown-panel.open { display: block; }
.dropdown-panel a { display: block; padding: 0.6rem 0.75rem; border-radius: 8px; }
.dropdown-panel .dd-note {
  display: block; font-size: 0.78rem; color: var(--ink-faint); font-weight: 400;
}
.caret { transition: transform 0.15s ease; font-size: 0.7em; }
button[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 0.65rem 1.1rem !important; border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--ink-soft) !important; }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a, .nav-menu button.nav-link { width: 100%; padding: 0.85rem 0.75rem; }
  .dropdown-panel { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--line); border-radius: 0; margin-left: 0.75rem; }
  .nav-cta { margin-top: 0.5rem; text-align: center; justify-content: center; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: 4.5rem 0 4rem; text-align: left; }
.hero .eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--thread-deep);
  margin-bottom: 1rem;
}
.hero p.lede { font-size: 1.15rem; max-width: 620px; color: var(--ink-faint); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }

/* --- Sections ---------------------------------------------------------------- */
.section { padding: 4rem 0; }
.section.alt { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-faint); }

/* --- Product grid --------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  position: relative;
  border-top: 3px dashed var(--thread);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card p { color: var(--ink-faint); font-size: 0.95rem; margin: 0; flex: 1; }
.card .card-more { font-weight: 600; font-size: 0.9rem; color: var(--thread-deep); }

.chip {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.chip-live { background: #e4f2ef; color: var(--live); }
.chip-roadmap { background: #efe7f8; color: var(--roadmap); }

/* --- Callout (Ask Your PM) -------------------------------------------------- */
.callout {
  background: var(--ink); color: #d9deea; border-radius: var(--radius);
  padding: 2.5rem; display: grid; gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr; align-items: center;
  border-top: 4px dashed var(--thread);
}
.callout h2 { color: #fff; }
.callout p { color: #b9c2d6; }
.callout .btn-primary { background: var(--thread); color: var(--ink); }
.callout .btn-primary:hover { background: #f0b95c; }
@media (max-width: 720px) { .callout { grid-template-columns: 1fr; padding: 1.75rem; } }

/* --- Why list ----------------------------------------------------------------- */
.why-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why-item h3 { display: flex; align-items: center; gap: 0.5rem; }
.why-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--thread); flex: none; }
.why-item p { color: var(--ink-faint); font-size: 0.95rem; }

/* --- Product page ------------------------------------------------------------- */
.product-hero { padding: 4rem 0 3rem; }
.product-hero .crumbs { font-size: 0.85rem; margin-bottom: 1.25rem; }
.product-hero .crumbs a { color: var(--ink-faint); text-decoration: none; }
.product-hero .crumbs a:hover { color: var(--ink); }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.85rem; max-width: 640px; }
.feature-list li { padding-left: 1.6rem; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 12px; height: 3px;
  background-image: linear-gradient(90deg, var(--thread) 55%, transparent 0);
  background-size: 7px 3px;
}

.notice {
  border: 1px dashed var(--thread); border-radius: var(--radius);
  background: #fdf7ec; padding: 1rem 1.25rem; font-size: 0.95rem; max-width: 640px;
}

/* --- Footer --------------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: #b9c2d6;
  padding: 3rem 0 2rem; margin-top: 4rem;
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: #b9c2d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; }
.operator-line {
  border-top: 1px dashed rgba(226, 162, 60, 0.5);
  margin-top: 2.25rem; padding-top: 1.25rem;
  color: #93a0bb; font-size: 0.85rem;
}


/* --- Sitewide legal / tools additions ----------------------------------------- */
.footer-grid-wide { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-disclaimer { color: #b9c2d6; font-size: 0.86rem; margin-top: 0.8rem; }
.product-disclaimer { margin: 1.25rem 0; }
.tools-band { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 1.5rem; margin-top: 1.5rem; }
.tools-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.tool-pill { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 0.65rem 0.85rem; text-decoration: none; font-weight: 600; background: var(--mist); }
.tool-pill:hover { border-color: var(--thread); background: #fff8ec; }
.legal-section { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 0.75rem; }
.legal-section ul { margin-top: 0.5rem; }
.legal-callout { border: 1px dashed var(--thread); border-radius: var(--radius); background: #fdf7ec; padding: 1rem 1.25rem; margin: 1rem 0; }
@media (max-width: 880px) { .tools-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid-wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tools-list { grid-template-columns: 1fr; } .footer-grid-wide { grid-template-columns: 1fr; } }
