/* CodForm — TikTok Ads Coupon premium landing (2026) */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --brand: #0f766e;
  --brand-2: #0d9488;
  --brand-ink: #115e59;
  --brand-soft: rgba(15, 118, 110, 0.1);
  --sky: #0284c7;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --prose: 44rem;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Outfit", "Plus Jakarta Sans", sans-serif;
}

*, *::before, *::after { 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.tt-page {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 0% -10%, rgba(13, 148, 136, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(2, 132, 199, 0.1), transparent 50%),
    linear-gradient(180deg, #eef4fb 0%, var(--bg) 220px);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); }
a:hover { color: var(--brand); }

.tt-skip {
  position: absolute;
  left: -9999px;
}
.tt-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
}

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

/* Header */
.tt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(246, 248, 252, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.tt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.tt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.tt-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.tt-brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.tt-brand__sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.tt-header__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 650;
  transition: transform 0.2s ease, background 0.2s ease;
}
.tt-header__cta:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* Hero */
.tt-hero {
  padding: 2.5rem 0 1.5rem;
}
.tt-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 960px) {
  .tt-hero {
    padding: 3.5rem 0 2rem;
  }
  .tt-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.tt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.tt-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
}

.tt-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 750;
  max-width: 12ch;
}
.tt-hero__sub {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  font-size: 1.08rem;
  color: var(--ink-2);
  line-height: 1.65;
}
.tt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 1.5rem;
}
.tt-hero__note {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.05rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.tt-btn:hover { transform: translateY(-1px); }
.tt-btn:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}
.tt-btn--primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}
.tt-btn--primary:hover {
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.34);
}
.tt-btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line-2);
  color: var(--ink) !important;
}
.tt-btn--ghost:hover { background: #fff; }
.tt-link {
  color: var(--brand-ink);
  font-weight: 650;
  text-decoration: none;
}
.tt-link:hover { text-decoration: underline; }

/* Abstract promo card */
.tt-promo-card {
  position: relative;
  border-radius: 28px;
  padding: 1.35rem;
  background:
    linear-gradient(160deg, #0f172a 0%, #134e4a 48%, #0f766e 100%);
  color: #ecfeff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
}
.tt-promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(45, 212, 191, 0.35), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.18), transparent 40%);
  z-index: 0;
}
.tt-promo-card > * { position: relative; z-index: 1; }
.tt-promo-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}
.tt-promo-card__pill {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.tt-promo-card__chip {
  font-size: 0.75rem;
  opacity: 0.8;
}
.tt-promo-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.tt-promo-card p {
  margin: 0.7rem 0 0;
  opacity: 0.88;
  max-width: 28rem;
  font-size: 0.95rem;
}
.tt-promo-card__foot {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tt-promo-card__tag {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Disclosure */
.tt-disclosure {
  margin: 0.5rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
}

/* Quick answer */
.tt-quick {
  margin: 0.5rem 0 2rem;
  padding: 1.4rem 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(15, 118, 110, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.07), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
.tt-quick h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.tt-quick p {
  margin: 0;
  color: var(--ink-2);
  max-width: 52rem;
}
.tt-quick .tt-btn { margin-top: 1.1rem; }

/* Info cards */
.tt-cards {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 2.5rem;
}
@media (min-width: 720px) {
  .tt-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .tt-cards { grid-template-columns: repeat(4, 1fr); }
}
.tt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.25);
}
.tt-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  margin-bottom: 0.85rem;
}
.tt-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.tt-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Layout */
.tt-main {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 5.5rem;
}
@media (min-width: 1040px) {
  .tt-main {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 2.25rem;
    align-items: start;
  }
}

.tt-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.2rem 2rem;
}
@media (min-width: 760px) {
  .tt-article { padding: 2rem 2.15rem 2.4rem; }
}

.tt-article h2 {
  margin: 2.35rem 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  scroll-margin-top: 5.5rem;
}
.tt-article h2:first-of-type { margin-top: 0.35rem; }
.tt-article h3 {
  margin: 1.55rem 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  scroll-margin-top: 5.5rem;
}
.tt-article p,
.tt-article li {
  color: var(--ink-2);
}
.tt-article p { margin: 0.85rem 0; max-width: var(--prose); }
.tt-article ul,
.tt-article ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
  max-width: var(--prose);
}
.tt-article li { margin: 0.4rem 0; }
.tt-article strong { color: var(--ink); }

.tt-callout {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #f0fdfa;
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: var(--brand-ink);
  font-size: 0.94rem;
  max-width: var(--prose);
}

.tt-steps {
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0 1.4rem;
}
.tt-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}
.tt-step__n {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}
.tt-step h3 {
  margin: 0.1rem 0 0.3rem;
  font-size: 1rem;
}
.tt-step p {
  margin: 0;
  font-size: 0.92rem;
}

.tt-table-wrap {
  overflow-x: auto;
  margin: 1.1rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.tt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.92rem;
}
.tt-table th,
.tt-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tt-table th {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tt-table tr:last-child td { border-bottom: 0; }
.tt-table tbody tr:nth-child(even) { background: #f8fafc; }

.tt-mid-cta {
  margin: 1.6rem 0;
  padding: 1.2rem 1.15rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(15, 118, 110, 0.35);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.05), transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}
.tt-mid-cta p {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.tt-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  background: #fff;
  margin: 0.65rem 0;
}
.tt-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.tt-faq summary::-webkit-details-marker { display: none; }
.tt-faq details[open] summary { margin-bottom: 0.45rem; }
.tt-faq p {
  margin: 0;
  font-size: 0.94rem;
}

.tt-sources {
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.tt-sources h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}
.tt-sources ul {
  margin: 0;
  padding-left: 1.15rem;
}
.tt-sources li { margin: 0.35rem 0; }
.tt-sources a { color: #0f766e; font-weight: 600; }
.tt-sources__note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
}

.tt-byline {
  margin: 0 0 1.35rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}
.tt-byline strong { color: #0f172a; font-weight: 650; }

.tt-about {
  margin-top: 2rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: #f1f5f9;
  border: 1px solid var(--line);
}
.tt-about h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.tt-about p { margin: 0.45rem 0 0; font-size: 0.92rem; }

/* Aside */
.tt-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.tt-aside__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
}
.tt-aside__card h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tt-aside__card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.tt-aside__card a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 550;
}
.tt-aside__card a:hover { color: var(--brand-ink); }

/* Deal card (sidebar coupon widget) */
.tt-deal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tt-deal-card__media {
  display: block;
  background: #0a0a0a;
  line-height: 0;
}
.tt-deal-card__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.tt-deal-card__body {
  padding: 1.15rem 1.1rem 1.25rem;
  text-align: center;
}
.tt-deal-card__body h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #2563eb;
  text-transform: none;
}
.tt-deal-card__icon {
  display: inline-flex;
  color: #2563eb;
}
.tt-deal-card__body p {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
  text-align: center;
}
.tt-deal-card__body p strong { color: var(--ink); }
.tt-deal-card__code {
  margin: 1rem 0 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink);
}
.tt-deal-card__ok {
  color: #16a34a;
  font-weight: 700;
}
.tt-deal-card__code-box {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1.5px dashed #94a3b8;
  border-radius: 8px;
  font-weight: 700;
  color: var(--ink);
  background: #f8fafc;
}
.tt-btn--deal {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}
.tt-btn--deal:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 1039px) {
  .tt-aside { order: -1; }
  .tt-aside__toc { display: none; }
  .tt-deal-card {
    max-width: 28rem;
    margin: 0 auto;
  }
}
@media (min-width: 1040px) {
  .tt-deal-card {
    position: sticky;
    top: 5.4rem;
  }
}

/* Final CTA */
.tt-final {
  margin: 0 0 2.5rem;
  padding: 2rem 1.4rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.22), transparent 40%),
    linear-gradient(145deg, #0f172a, #134e4a 60%, #0f766e);
  color: #ecfeff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.tt-final h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.tt-final p {
  margin: 0.75rem auto 1.25rem;
  max-width: 34rem;
  opacity: 0.9;
}
.tt-final .tt-btn--primary {
  background: #fff;
  color: #0f172a !important;
  box-shadow: none;
}
.tt-final__note {
  margin-top: 0.9rem !important;
  font-size: 0.84rem;
  opacity: 0.75;
}

/* Footer */
.tt-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  padding: 1.75rem 0 6.5rem;
}
@media (min-width: 760px) {
  .tt-footer { padding-bottom: 2.25rem; }
}
.tt-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.tt-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.tt-footer a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 550;
}
.tt-footer a:hover { color: var(--brand-ink); }

/* Sticky mobile CTA */
.tt-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(246, 248, 252, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}
.tt-sticky-cta .tt-btn { width: 100%; }
.tt-sticky-cta span {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
@media (min-width: 760px) {
  .tt-sticky-cta { display: none; }
}

.tt-sep {
  height: 1px;
  background: var(--line);
  margin: 2rem 0;
  border: 0;
}
