
.tm-domain-page {
  --tm-domain-navy: #0f172a;
  --tm-domain-muted: #64748b;
  --tm-domain-blue: #2563eb;
  --tm-domain-blue-soft: #eff6ff;
  --tm-domain-border: #e2e8f0;
  --tm-domain-soft: #f8fafc;
  --tm-domain-white: #ffffff;
}

/* =========================================================
   HERO
   ========================================================= */

.tm-domain-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 9vw, 128px) 0 88px;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, .28), transparent 32%),
    radial-gradient(circle at 18% 88%, rgba(30, 64, 175, .15), transparent 38%),
    linear-gradient(135deg, #090d16 0%, #0c1320 58%, #0e1b33 100%);
  color: #ffffff;
}

.tm-domain-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.tm-domain-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
}

.tm-domain-hero-copy {
  max-width: 860px;
  margin: 0 auto 38px;
  text-align: center;
}

.tm-domain-hero .tm-eyebrow {
  margin-bottom: 14px;
  color: #93c5fd !important;
}

.tm-domain-hero h1 {
  max-width: 960px;
  margin: 0 auto;
  color: #ffffff !important;
  font-size: clamp(3.3rem, 6vw, 5.35rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.tm-domain-hero-lead {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(255,255,255,.76) !important;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}

.tm-domain-tool-shell {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 34px 90px rgba(0,0,0,.34);
  color: var(--tm-domain-navy);
}

.tm-domain-tool-shell .toabai-domain {
  max-width: none;
  margin: 0;
}

.tm-domain-tool-shell .toabai-domain__search {
  box-shadow: none;
  border: 0;
  padding: 0;
}

.tm-domain-tool-shell .toabai-domain__field {
  gap: 10px;
}

.tm-domain-tool-shell .toabai-domain__input {
  min-height: 56px;
  border-radius: 14px;
}

.tm-domain-tool-shell .toabai-domain__button {
  min-height: 56px;
  border-radius: 14px;
}

.tm-domain-tool-shell .toabai-domain__popular {
  margin-top: 12px;
}

.tm-domain-tool-shell .toabai-domain__result,
.tm-domain-tool-shell .toabai-domain__alternatives,
.tm-domain-tool-shell .toabai-domain__request {
  margin-top: 18px;
}

.tm-domain-plugin-note {
  padding: 24px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
}

/* Dedicated page owns the intro */
.tm-domain-tool-shell .toabai-domain__intro,
.tm-domain-tool-shell .toabai-domain__header,
.tm-domain-tool-shell .toabai-domain > .toabai-domain__eyebrow,
.tm-domain-tool-shell .toabai-domain > h2,
.tm-domain-tool-shell .toabai-domain > h3,
.tm-domain-tool-shell .toabai-domain > p:first-of-type {
  display: none !important;
}

.tm-domain-tool-shell [hidden] {
  display: none !important;
}

/* =========================================================
   SHARED SECTIONS
   ========================================================= */

.tm-domain-section {
  padding: 104px 0;
}

.tm-domain-section-head {
  max-width: 820px;
  margin: 0 auto 46px;
  text-align: center;
}

.tm-domain-section-head h2 {
  max-width: 850px;
  margin: 0 auto 18px;
  font-size: clamp(2.45rem, 4.4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.tm-domain-section-head p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: var(--tm-domain-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.tm-domain-section-head-left {
  margin: 0;
  text-align: left;
}

.tm-domain-section-head-left h2,
.tm-domain-section-head-left p:last-child {
  margin-left: 0;
}

/* =========================================================
   SERVICES
   ========================================================= */

.tm-domain-service-section {
  background: #ffffff;
}

.tm-domain-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1020px;
  margin: 0 auto;
}

.tm-domain-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--tm-domain-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.075), transparent 34%),
    #ffffff;
  box-shadow: 0 14px 38px rgba(15,23,42,.045);
}

.tm-domain-card-icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 15px;
  background: var(--tm-domain-blue-soft);
  color: var(--tm-domain-blue);
}

.tm-domain-card-icon svg {
  width: 23px;
  height: 23px;
}

.tm-domain-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.tm-domain-card p {
  margin: 0;
  color: var(--tm-domain-muted);
  line-height: 1.65;
}

/* =========================================================
   PROCESS
   ========================================================= */

.tm-domain-process-section {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.tm-domain-process-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid #dbeafe;
  border-radius: 34px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 50px rgba(37,99,235,.06);
}

.tm-domain-process-copy {
  max-width: 720px;
}

.tm-domain-process-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.tm-domain-process-copy p {
  color: var(--tm-domain-muted);
}

.tm-domain-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.tm-domain-steps li {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--tm-domain-border);
  border-radius: 22px;
  background: #ffffff;
}

.tm-domain-steps li > span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 13px;
  background: var(--tm-domain-blue);
  color: #ffffff;
  font-size: .76rem;
  font-weight: 900;
}

.tm-domain-steps h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.tm-domain-steps p {
  margin: 0;
  color: var(--tm-domain-muted);
  font-size: .93rem;
  line-height: 1.6;
}

/* =========================================================
   EXISTING DOMAIN
   ========================================================= */

.tm-domain-existing-section {
  padding-top: 78px;
  padding-bottom: 78px;
  background: #ffffff;
}

.tm-domain-existing {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 38px;
  border: 1px solid var(--tm-domain-border);
  border-radius: 28px;
  background: #f8fafc;
}

.tm-domain-existing-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--tm-domain-blue-soft);
  color: var(--tm-domain-blue);
}

.tm-domain-existing-icon svg {
  width: 26px;
  height: 26px;
}

.tm-domain-existing .tm-eyebrow {
  margin-bottom: 7px;
}

.tm-domain-existing h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.tm-domain-existing p {
  max-width: 720px;
  margin: 0;
  color: var(--tm-domain-muted);
  line-height: 1.65;
}

/* =========================================================
   FAQ
   ========================================================= */

.tm-domain-faq-section {
  background: #f8fafc;
}

.tm-domain-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 7vw, 88px);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.tm-domain-faq {
  display: grid;
  gap: 12px;
}

.tm-domain-faq details,
.tm-domain-faq details:first-child {
  overflow: hidden;
  border: 1px solid var(--tm-domain-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15,23,42,.035);
}

.tm-domain-faq summary {
  position: relative;
  display: block;
  padding: 20px 54px 20px 22px;
  color: var(--tm-domain-navy);
  font-size: .98rem;
  font-weight: 760;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

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

.tm-domain-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--tm-domain-blue-soft);
  color: var(--tm-domain-blue);
  font-size: 1rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.tm-domain-faq details[open] summary::after {
  content: "–";
  background: var(--tm-domain-blue);
  color: #ffffff;
}

.tm-domain-faq details[open] summary {
  border-bottom: 1px solid #eef2f7;
}

.tm-domain-faq details p {
  margin: 0;
  padding: 18px 22px 22px;
  color: var(--tm-domain-muted);
  font-size: .95rem;
  line-height: 1.7;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.tm-domain-final {
  background: #ffffff;
}

.tm-domain-final-box {
  position: relative;
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 72px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 0%, rgba(37,99,235,.28), transparent 33%),
    linear-gradient(135deg, #090d16 0%, #0d1628 100%);
  color: #ffffff;
  text-align: center;
}

.tm-domain-final-box .tm-eyebrow {
  color: #93c5fd !important;
}

.tm-domain-final-box h2 {
  max-width: 760px;
  margin: 0 auto 16px;
  color: #ffffff !important;
  font-size: clamp(2.45rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.tm-domain-final-box > p:not(.tm-eyebrow) {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,.72);
}

.tm-domain-final-box .tm-final-cta-actions {
  justify-content: center;
  margin-top: 28px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .tm-domain-service-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .tm-domain-card {
    min-height: auto;
  }

  .tm-domain-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-domain-existing {
    grid-template-columns: 58px 1fr;
  }

  .tm-domain-existing .tm-btn {
    grid-column: 2;
    justify-self: start;
  }

  .tm-domain-faq-grid {
    grid-template-columns: 1fr;
  }

  .tm-domain-section-head-left {
    text-align: center;
    margin: 0 auto;
  }

  .tm-domain-section-head-left h2,
  .tm-domain-section-head-left p:last-child {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .tm-domain-hero {
    padding: 72px 0 52px;
  }

  .tm-domain-hero-copy {
    text-align: left;
  }

  .tm-domain-hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.1rem);
    line-height: 1;
  }

  .tm-domain-hero-lead {
    margin-left: 0;
  }

  .tm-domain-tool-shell {
    padding: 12px;
    border-radius: 22px;
  }

  .tm-domain-section {
    padding: 76px 0;
  }

  .tm-domain-section-head {
    text-align: left;
  }

  .tm-domain-section-head h2,
  .tm-domain-section-head p:last-child {
    margin-left: 0;
  }

  .tm-domain-steps {
    grid-template-columns: 1fr;
  }

  .tm-domain-steps li {
    min-height: auto;
  }

  .tm-domain-existing {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .tm-domain-existing .tm-btn {
    grid-column: 1;
    width: 100%;
  }

  .tm-domain-faq-grid {
    gap: 34px;
  }

  .tm-domain-faq summary {
    padding: 18px 50px 18px 18px;
  }

  .tm-domain-faq details p {
    padding: 16px 18px 20px;
  }

  .tm-domain-final-box {
    text-align: left;
  }

  .tm-domain-final-box h2,
  .tm-domain-final-box > p:not(.tm-eyebrow) {
    margin-left: 0;
  }

  .tm-domain-final-box .tm-final-cta-actions {
    justify-content: flex-start;
  }
}
