/* Multiply My Traffic - modern home + signup styles (2026-11-14). Mobile-first.
   NOTE: kept in an external file on purpose - the PHP template engine strips {...} blocks from templates. */

:root {
  --paper: #f5f7fb;
  --white: #ffffff;
  --ink: #12203a;
  --ink-soft: #46546d;
  --line: #d9e0ec;
  --blue: #2745e6;
  --blue-deep: #1a2fa8;
  --blue-wash: #e8edff;
  --orange: #ff6a1f;
  --orange-deep: #e5550c;
  --mint: #0f9d74;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18, 32, 58, .06), 0 8px 24px rgba(18, 32, 58, .08);
  --font-display: "Bricolage Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 7.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; white-space: nowrap; }
.head-actions .login, .head-actions .btn { white-space: nowrap; }
@media (min-width: 400px) { .brand { font-size: 1.15rem; gap: 10px; } }
.brand svg { flex: none; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 14px; }
.head-actions .login { color: var(--ink-soft); font-weight: 600; text-decoration: none; }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius);
  background: var(--orange); color: #fff; font: 700 1.05rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; width: 100%;
  box-shadow: 0 2px 0 var(--orange-deep);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--orange-deep); color: #fff; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-small { min-height: 40px; padding: 0 16px; width: auto; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-ghost:hover { background: var(--blue-wash); color: var(--blue-deep); }

label { display: block; font-weight: 700; font-size: .95rem; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; min-height: 52px; padding: 0 14px; font: 400 1.0625rem var(--font-body);
  color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus { border-color: var(--blue); outline: 3px solid var(--blue-wash); }
.field-error input, .field-error select { border-color: #c62828; }
.msg-error { color: #b42318; font-size: .92rem; margin: 6px 0 0; min-height: 0; }
.hint { color: var(--ink-soft); font-size: .92rem; margin: 8px 0 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 78px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; min-height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--blue); font: 700 .92rem var(--font-body); cursor: pointer; border-radius: 8px; }

/* ---------- hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 40px; }
.hero h1 { margin-bottom: 16px; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.hero-form { display: grid; gap: 10px; margin-top: 22px; max-width: 520px; }
.hero-form input { min-height: 56px; }
.hero-note { color: var(--ink-soft); font-size: .95rem; margin: 12px 0 0; }
.hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }

/* the multiplier tree: draws itself once on load */
.tree .edge { stroke: var(--blue); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s ease forwards; }
.tree .e2 { animation-delay: .5s; }
.tree .e3 { animation-delay: 1s; }
.tree .node { fill: var(--white); stroke: var(--blue); stroke-width: 2.5; opacity: 0; animation: pop .35s ease forwards; }
.tree .n1 { animation-delay: 0s; }
.tree .n2 { animation-delay: .7s; }
.tree .n3 { animation-delay: 1.2s; }
.tree .root { fill: var(--orange); stroke: var(--orange-deep); opacity: 1; animation: none; }
.tree text { font: 700 17px var(--font-body); fill: var(--ink-soft); opacity: 0; animation: pop .35s ease 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { position: relative; padding-left: 58px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font: 800 1.15rem var(--font-display);
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); }

.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.included li { position: relative; padding-left: 34px; }
.included li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.included strong { display: block; }
.included span { color: var(--ink-soft); }

/* plans table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.plans { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.35; }
table.plans th, table.plans td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plans thead th { font-family: var(--font-display); font-size: 1rem; background: var(--paper); }
table.plans th[scope=row] { font-weight: 600; color: var(--ink-soft); width: 31%; }
@media (min-width: 600px) {
  table.plans { font-size: 1.0625rem; line-height: 1.6; }
  table.plans th, table.plans td { padding: 14px 16px; }
  table.plans thead th { font-size: 1.1rem; }
  table.plans th[scope=row] { width: 34%; }
}
table.plans tr:last-child td, table.plans tr:last-child th { border-bottom: 0; }
table.plans .free { background: var(--blue-wash); }
.plans-note { color: var(--ink-soft); font-size: .95rem; margin-top: 14px; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.4rem/1 var(--font-body); color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-soft); }

/* closing call to action */
.final { background: var(--blue); color: #fff; text-align: left; }
.final h2 { color: #fff; }
.final p { color: #dbe3ff; font-size: 1.1rem; }
.final .btn { max-width: 340px; }

/* ---------- signup page ---------- */
.signup-grid { display: grid; gap: 32px; padding: 32px 0 56px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; box-shadow: var(--shadow); }
.card h1 { font-size: clamp(1.7rem, 5.4vw, 2.3rem); margin-bottom: 8px; }
.card .lede { font-size: 1.05rem; margin-bottom: 20px; }
.notice { background: #fff4e5; border: 1px solid #ffd8a8; color: #7a3d00; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.notice a { color: #7a3d00; font-weight: 700; }
.notice ul { margin: 6px 0 4px; padding-left: 1.2em; }
.notice p { margin: 6px 0 0; font-size: .95rem; }
.legal { color: var(--ink-soft); font-size: .88rem; margin: 14px 0 0; }
.after { background: var(--blue-wash); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; font-size: .95rem; }
.aside h2 { font-size: 1.35rem; }
.aside .included { margin-bottom: 22px; }
.mini-note { color: var(--ink-soft); font-size: .95rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9d3e6; padding: 36px 0; font-size: .95rem; }
.site-foot a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; padding: 0; list-style: none; }
.site-foot p { margin: 0 0 6px; }

/* ---------- larger screens ---------- */
@media (min-width: 760px) {
  .nav { display: flex; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 68px; }
  .hero-form { grid-template-columns: 1fr auto; }
  .hero-form .btn { width: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .included.two { grid-template-columns: 1fr 1fr; column-gap: 36px; }
  section { padding: 80px 0; }
  .signup-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-top: 56px; align-items: start; }
  .card { padding: 36px 34px; }
  .btn { width: auto; min-width: 240px; }
  .card .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tree .edge { animation: none; stroke-dashoffset: 0; }
  .tree .node, .tree text { animation: none; opacity: 1; }
  .btn { transition: none; }
}
