:root {
  color-scheme: dark;
  --ink: #10120f;
  --paper: #f6f2ea;
  --cyan: #1fe4dc;
  --lime: #b9ff1f;
  --muted: rgba(246, 242, 234, 0.72);
  --line: rgba(246, 242, 234, 0.14);
  --panel: rgba(255, 255, 255, 0.065);
  --radius: 24px;
}

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

[hidden] {
  display: none !important;
}

html {
  min-width: 0;
  background: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--paper);
  background: transparent;
  font-family: Inter, sans-serif;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.tone-embed {
  position: relative;
  width: min(100%, 760px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(31, 228, 220, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(31, 228, 220, 0.18), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(185, 255, 31, 0.15), transparent 38%),
    linear-gradient(145deg, #111512 0%, #090b09 100%);
  box-shadow: 0 24px 70px rgba(8, 12, 8, 0.2);
}

.tone-embed::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  pointer-events: none;
}

.tone-embed > * {
  position: relative;
  z-index: 1;
}

.tone-embed__brand,
.tone-embed__brand a,
.tone-result__signal {
  display: flex;
  align-items: center;
}

.tone-embed__brand {
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tone-embed__brand a {
  min-width: 0;
  gap: 10px;
  color: var(--paper);
  font-size: clamp(0.75rem, 2.6vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.tone-embed__mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  font-weight: 900;
}

.tone-embed__free,
.tone-embed__eyebrow,
.tone-result__signal small {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tone-embed__free {
  flex: 0 0 auto;
  color: var(--lime);
  font-size: 0.66rem;
}

.tone-embed__intro {
  padding: clamp(24px, 5vw, 42px) 0 22px;
}

.tone-embed__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.72rem;
}

.tone-embed__eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(185, 255, 31, 0.7);
}

.tone-embed h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.15rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.tone-embed__intro > p:last-child {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.7vw, 1.08rem);
  line-height: 1.62;
}

.tone-embed__form {
  display: grid;
  gap: 12px;
}

.tone-embed__form label {
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tone-embed__form textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid rgba(246, 242, 234, 0.2);
  border-radius: 17px;
  outline: none;
  padding: 16px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.075);
  line-height: 1.55;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tone-embed__form textarea:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(31, 228, 220, 0.12);
}

.tone-embed__form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

.tone-embed__form-meta button,
.tone-result__again {
  min-height: 44px;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.tone-embed__submit,
.tone-result__cta,
.tone-result__share {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--ink);
  background: linear-gradient(100deg, var(--cyan), var(--lime));
  box-shadow: 0 12px 34px rgba(31, 228, 220, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tone-result__share {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(246, 242, 234, 0.22);
  color: var(--paper);
  background: rgba(246, 242, 234, 0.07);
  box-shadow: none;
}

.tone-embed__submit:hover,
.tone-result__cta:hover,
.tone-result__share:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(31, 228, 220, 0.26);
}

.tone-result__share:hover {
  border-color: rgba(31, 228, 220, 0.55);
  background: rgba(31, 228, 220, 0.11);
}

.tone-embed__privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.tone-embed__privacy span {
  color: var(--lime);
}

.tone-result {
  margin-top: 26px;
  padding: clamp(17px, 4vw, 26px);
  border: 1px solid rgba(185, 255, 31, 0.26);
  border-radius: 20px;
  background: var(--panel);
}

.tone-result__signal {
  gap: clamp(14px, 4vw, 24px);
}

.tone-result__score {
  display: grid;
  width: 98px;
  height: 98px;
  flex: 0 0 98px;
  place-content: center;
  border: 1px solid rgba(31, 228, 220, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 228, 220, 0.16), transparent 66%);
  text-align: center;
}

.tone-result__score strong {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.tone-result__score span {
  color: var(--muted);
  font-size: 0.68rem;
}

.tone-result__signal small {
  color: var(--cyan);
  font-size: 0.64rem;
}

.tone-result__signal h2 {
  margin: 7px 0 6px;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  line-height: 1.05;
}

.tone-result__signal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.48;
}

.tone-result__findings {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.tone-result__findings li {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  background: rgba(0, 0, 0, 0.22);
}

.tone-result__findings small {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tone-result__findings strong {
  font-size: 0.85rem;
}

.tone-result__findings span {
  color: var(--lime);
  font-size: 0.88rem;
  font-weight: 800;
}

.tone-result__findings p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.tone-result__again {
  display: block;
  margin: 9px auto 0;
}

.tone-result__feedback {
  min-height: 1.1em;
  margin: 9px 0 0;
  color: var(--lime);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.tone-embed__footer {
  margin-top: 18px;
  color: rgba(246, 242, 234, 0.5);
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 420px) {
  .tone-embed {
    border-radius: 20px;
  }

  .tone-embed__free {
    display: none;
  }

  .tone-result__signal {
    align-items: flex-start;
  }

  .tone-result__score {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }

  .tone-result__score strong {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
