/* Tidythread marketing page. Scoped so the shared Komos header and footer keep their own styles. */

.tt,
.tt *,
.tt *::before,
.tt *::after {
  box-sizing: border-box;
}

.tt {
  --ink: #1a1714;
  --muted: #4e4942;
  --paper: #f4f0e8;
  --card: #fffcf7;
  --line: #e2d9cc;
  --thread: #0e5e58;
  --thread-deep: #083f3c;
  --soft: #e5f3f1;
  --gold: #8a6230;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

.tt-skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--thread-deep);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.tt-skip:focus {
  transform: none;
}

.tt a {
  color: var(--thread-deep);
  text-underline-offset: 0.15em;
}

.tt a:hover {
  color: var(--thread);
}

.tt :focus-visible {
  outline: 3px solid var(--thread);
  outline-offset: 3px;
}

.tt-wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.tt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.tt-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.tt-nav a:hover {
  text-decoration: underline;
}

.tt-hero {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 2rem;
  align-items: center;
}

.tt-kicker {
  margin: 0 0 0.6rem;
  color: var(--thread);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tt h1,
.tt h2,
.tt h3 {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.tt h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
}

.tt-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40rem;
}

.tt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}

.tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.tt-btn-primary {
  background: var(--thread-deep);
  color: #fff;
}

.tt-btn-primary:hover {
  background: var(--thread);
  color: #fff;
}

.tt-btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.tt-pill {
  display: inline-block;
  border-radius: 999px;
  background: #f3e2c2;
  color: #4d3414;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.45rem;
}

.tt-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tt-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 18px 40px rgb(26 23 20 / 0.06);
  overflow: hidden;
}

.tt-panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #faf7f2;
}

.tt-panel-bar strong {
  font-family: Palatino, Georgia, serif;
}

.tt-search {
  margin: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  background: #fff;
  font-size: 0.92rem;
}

.tt-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
}

.tt-row p {
  margin: 0;
  grid-column: 2;
  color: var(--muted);
  font-size: 0.88rem;
}

.tt-badge {
  align-self: start;
  margin-top: 0.15rem;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.tt-badge-gpt { background: #e5f6ee; color: #0d6a43; }
.tt-badge-claude { background: #fbece6; color: #8d4530; }
.tt-badge-gemini { background: #e8eefe; color: #2c4c9e; }

.tt-section {
  padding: 2.75rem 0;
}

.tt-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.tt-section > .tt-wrap > p.tt-intro {
  max-width: 42rem;
  color: var(--muted);
  margin-top: 0;
}

.tt-split,
.tt-cards,
.tt-steps,
.tt-plans {
  display: grid;
  gap: 1rem;
}

.tt-card,
.tt-step,
.tt-plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
}

.tt-card h3,
.tt-step h3,
.tt-plan h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.tt-card p,
.tt-step p,
.tt-plan p,
.tt-plan li {
  color: var(--muted);
}

.tt-step {
  position: relative;
}

.tt-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--thread);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.tt-privacy {
  background: var(--thread-deep);
  color: #f7f4ee;
}

.tt-privacy h2,
.tt-privacy p {
  color: #f7f4ee;
}

.tt-privacy a {
  color: #fff;
}

.tt-plans {
  align-items: stretch;
}

.tt-plan ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.tt-plan-pro {
  border-color: var(--thread);
  box-shadow: inset 0 0 0 1px var(--thread);
}

.tt-price {
  margin: 0.2rem 0;
  color: var(--ink);
  font-family: Palatino, Georgia, serif;
  font-size: 1.8rem;
}

.tt-founding {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #f8efdf;
  border: 1px solid #e4d0ae;
}

.tt-founding h3 {
  margin: 0 0 0.35rem;
}

.tt-code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 700;
}

.tt-faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.2rem 1rem;
  margin-bottom: 0.6rem;
}

.tt-faq summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tt-faq summary::-webkit-details-marker {
  display: none;
}

.tt-faq summary::after {
  content: "+";
  color: var(--thread);
  font-size: 1.3rem;
  line-height: 1;
}

.tt-faq details[open] summary::after {
  content: "–";
}

.tt-faq details p {
  margin-top: 0;
  color: var(--muted);
}

.tt-form {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
}

.tt-field {
  display: grid;
  gap: 0.3rem;
}

.tt-field label {
  font-weight: 650;
}

.tt input[type="text"],
.tt input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #b7ad9f;
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.tt-submit {
  justify-self: start;
  background: var(--thread-deep);
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tt-submit:hover {
  background: var(--thread);
}

.tt-fine {
  color: var(--muted);
  font-size: 0.92rem;
}

.tt-prose {
  max-width: 46rem;
}

.tt-prose h2 {
  margin-top: 1.8rem;
  font-size: 1.45rem;
}

.tt-prose h3 {
  margin-top: 1.2rem;
  font-size: 1.15rem;
}

.tt-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.tt-prose th,
.tt-prose td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.4rem;
}

.tt-prose th {
  width: 34%;
}

@media (min-width: 720px) {
  .tt-cards {
    grid-template-columns: 1fr 1fr;
  }

  .tt-steps,
  .tt-plans {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .tt-plans {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .tt-hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding-top: 3.2rem;
  }

  .tt-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 719px) {
  .tt-prose table,
  .tt-prose thead,
  .tt-prose tbody,
  .tt-prose tr,
  .tt-prose th,
  .tt-prose td {
    display: block;
    width: 100%;
  }

  .tt-prose th {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

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