/*
Theme Name: Aomark Free SEO Audit
Theme URI: https://seo-audits.net/
Author: Aomark Digital LLC
Description: A focused English one-page lead magnet for a free SEO audit, with a secure WordPress form and Meta Pixel support.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: aomark-audit
*/

:root {
  --purple: #24113d;
  --purple-deep: #160924;
  --purple-soft: #3b1b5c;
  --orange: #f07a2f;
  --button: #ffd54a;
  --cream: #fff9ee;
  --lavender: #d9c9e7;
  --white: #ffffff;
  --ink: #2e1843;
  --muted: #6e5e78;
  --danger: #8c1738;
  --success: #146b4b;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background: var(--purple);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--purple);
  background: var(--white);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.audit-page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--purple);
}

.audit-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 74px;
  padding: 15px 5%;
  align-items: center;
  background: rgba(36, 17, 61, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.audit-brand,
.audit-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.audit-brand img,
.audit-brand .custom-logo {
  display: block;
  width: 180px;
  max-width: 52vw;
  height: auto;
}

.audit-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100vh - 74px);
  padding: clamp(58px, 7vw, 100px) 5%;
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  background:
    radial-gradient(circle at 82% 12%, rgba(240, 122, 47, 0.18), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(121, 59, 234, 0.3), transparent 34%),
    linear-gradient(135deg, var(--purple-deep), var(--purple) 56%, #2c1448);
}

.motion-orb,
.motion-lines {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.motion-orb {
  width: min(48vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.35;
}

.motion-orb--one {
  top: -32%;
  right: -10%;
  background: radial-gradient(circle at 48% 48%, rgba(240, 122, 47, 0.48), rgba(109, 37, 206, 0.1) 48%, transparent 70%);
  animation: orb-one 14s ease-in-out infinite alternate;
}

.motion-orb--two {
  bottom: -45%;
  left: 18%;
  background: radial-gradient(circle, rgba(117, 50, 225, 0.52), transparent 66%);
  animation: orb-two 18s ease-in-out infinite alternate;
}

.motion-lines {
  inset: -20%;
  opacity: 0.52;
  background:
    repeating-linear-gradient(115deg, transparent 0 78px, rgba(255, 255, 255, 0.045) 79px 81px),
    repeating-linear-gradient(18deg, transparent 0 145px, rgba(240, 122, 47, 0.035) 146px 148px);
  animation: lines-drift 20s linear infinite;
}

.audit-copy,
.audit-form-card {
  position: relative;
  z-index: 2;
}

.audit-copy {
  max-width: 760px;
}

.audit-eyebrow {
  margin: 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.audit-copy h1 {
  max-width: 9ch;
  margin: 24px 0 22px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(72px, 8.4vw, 128px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-wrap: balance;
}

.audit-lead {
  max-width: 690px;
  margin: 0;
  color: var(--lavender);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}

.audit-points {
  display: flex;
  margin-top: 30px;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-points span {
  padding: 9px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.095);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.audit-form-card {
  width: 100%;
  max-width: 530px;
  margin-left: auto;
  padding: clamp(25px, 3vw, 38px);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(240, 122, 47, 0.25);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(5, 0, 12, 0.38);
}

.audit-form-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.form-intro {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.audit-form {
  position: relative;
  display: grid;
  gap: 16px;
}

.audit-form > label:not(.consent) {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.audit-form .field-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.audit-form .required-mark {
  color: #000000;
  font-weight: 800;
}

.audit-form input[type="url"],
.audit-form input[type="email"],
.audit-form textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d8cee2;
  border-radius: 6px;
  outline: none;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.audit-form textarea {
  min-height: 105px;
  resize: vertical;
}

.audit-form input:focus,
.audit-form textarea:focus {
  border-color: #7140a6;
  box-shadow: 0 0 0 4px rgba(113, 64, 166, 0.12);
}

.audit-form input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(140, 23, 56, 0.1);
}

.audit-form input::placeholder,
.audit-form textarea::placeholder {
  color: #9e91a8;
}

.audit-form label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.email-warning,
.form-status {
  margin: 0;
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.email-warning,
.form-status--error {
  color: var(--danger);
  background: #fff0f4;
  border-left: 4px solid var(--danger);
}

.form-status--success {
  color: var(--success);
  background: #edf9f3;
  border-left: 4px solid var(--success);
}

.access-terms {
  color: #4e3b5d;
  background: #f4edf8;
  border: 1px solid #e4d8ec;
  border-radius: 7px;
  font-size: 11px;
}

.access-terms summary {
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

.access-terms p {
  margin: 0;
  padding: 0 12px 12px;
}

.consent {
  display: grid;
  align-items: start;
  gap: 10px;
  color: #5e4f68;
  font-size: 11px;
  line-height: 1.45;
  grid-template-columns: 18px 1fr;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--purple-soft);
}

.audit-submit {
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  color: var(--purple);
  background: var(--button);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 9px 20px rgba(132, 85, 0, 0.16);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.audit-submit strong {
  font-weight: 800;
}

.audit-submit:hover {
  filter: brightness(1.035);
  box-shadow: 0 12px 25px rgba(132, 85, 0, 0.23);
  transform: translateY(-2px);
}

.audit-submit:focus-visible,
.success-close:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.audit-submit:disabled {
  cursor: wait;
  filter: grayscale(0.35);
  opacity: 0.75;
  transform: none;
}

.form-note {
  color: #171017;
  font-size: 11px;
  text-align: center;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.audit-value {
  display: flex;
  min-height: 105px;
  padding: 28px 5%;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  background: linear-gradient(90deg, var(--white), #f5effb, var(--white));
  text-align: center;
}

.audit-value p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: 400;
}

.audit-value strong {
  font-weight: 400;
}

.audit-footer {
  padding: 22px 5%;
  color: var(--lavender);
  background: var(--purple-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.audit-footer small {
  font-size: 12px;
}

.legal-footer-nav {
  display: flex;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.legal-footer-nav a,
.legal-footer-nav button {
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 3px;
}

.legal-footer-nav a:hover,
.legal-footer-nav button:hover {
  text-decoration-color: var(--white);
}

.legal-footer-nav a:focus-visible,
.legal-footer-nav button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.legal-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.legal-main {
  padding: clamp(46px, 7vw, 92px) 20px;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 10%, rgba(240, 122, 47, 0.12), transparent 26%),
    linear-gradient(180deg, var(--cream), #ffffff);
}

.legal-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e6dce9;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(36, 17, 61, 0.1);
}

.legal-kicker {
  margin: 0 0 12px;
  color: #70409d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.legal-shell h1 {
  margin: 0;
  color: var(--purple);
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 76px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.legal-updated {
  margin: 14px 0 clamp(34px, 5vw, 54px);
  color: var(--muted);
  font-size: 13px;
}

.legal-shell h2 {
  margin: 34px 0 10px;
  color: var(--purple);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
}

.legal-shell p,
.legal-shell li,
.legal-table {
  color: #54455e;
  font-size: 14px;
}

.legal-shell p {
  margin: 0 0 14px;
}

.legal-shell ul {
  margin: 10px 0 18px;
  padding-left: 22px;
}

.legal-shell li + li {
  margin-top: 7px;
}

.legal-shell a {
  color: #6934a2;
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-table-wrap {
  margin: 18px 0 28px;
  overflow-x: auto;
  border: 1px solid #ded3e5;
  border-radius: 9px;
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8e0ec;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--purple);
  background: #f4eef8;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-table code {
  color: var(--purple);
  font-size: 12px;
}

.cookie-banner {
  position: fixed;
  z-index: 100000;
  right: 14px;
  bottom: 14px;
  width: min(370px, calc(100vw - 28px));
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 249, 238, 0.98);
  border: 1px solid rgba(240, 122, 47, 0.32);
  border-radius: 11px;
  box-shadow: 0 18px 55px rgba(11, 2, 20, 0.32);
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden],
.cookie-banner__custom[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 5px;
  color: var(--purple);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.05;
}

.cookie-banner__summary p {
  margin: 0;
  color: #5f5068;
  font-size: 11px;
  line-height: 1.5;
}

.cookie-banner__summary a {
  display: inline-block;
  margin-top: 5px;
  color: #6531a2;
  font-size: 10px;
  font-weight: 700;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: grid;
  margin-top: 13px;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
}

.cookie-action,
.cookie-save {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.cookie-action--accept {
  color: var(--purple);
  background: var(--button);
  border: 1px solid var(--button);
}

.cookie-action--deny {
  color: var(--purple);
  background: var(--white);
  border: 1px solid #bcaec5;
}

.cookie-action--customize {
  min-height: 30px;
  color: #5f5068;
  background: transparent;
  border: 0;
  grid-column: 1 / -1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__custom {
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid #dfd4e4;
}

.cookie-toggle {
  display: flex;
  min-height: 42px;
  padding: 6px 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e9e0ec;
  cursor: pointer;
}

.cookie-toggle span {
  display: grid;
}

.cookie-toggle strong {
  color: var(--purple);
  font-size: 11px;
}

.cookie-toggle small {
  color: var(--muted);
  font-size: 9px;
}

.cookie-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #6d38a3;
}

.cookie-toggle--locked {
  cursor: default;
}

.cookie-save {
  width: 100%;
  margin-top: 11px;
  color: var(--white);
  background: var(--purple);
  border: 1px solid var(--purple);
}

.cookie-action:hover,
.cookie-save:hover {
  filter: brightness(1.04);
}

.cookie-action:focus-visible,
.cookie-save:focus-visible,
.cookie-banner a:focus-visible {
  outline: 2px solid #70409d;
  outline-offset: 2px;
}

.submitted-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.submitted-main {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 680px;
  padding: clamp(55px, 8vw, 110px) 20px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(240, 122, 47, 0.2), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(121, 59, 234, 0.3), transparent 34%),
    linear-gradient(135deg, var(--purple-deep), var(--purple) 56%, #2c1448);
}

.submitted-card {
  position: relative;
  z-index: 2;
  width: min(100%, 820px);
  padding: clamp(34px, 6vw, 72px);
  color: var(--cream);
  background: rgba(36, 17, 61, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 35px 100px rgba(5, 0, 12, 0.42);
  text-align: center;
  backdrop-filter: blur(16px);
}

.submitted-check {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #7b3cc9, var(--orange));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 16px 42px rgba(240, 122, 47, 0.23);
  font-size: 34px;
  font-weight: 800;
}

.submitted-card h1 {
  max-width: 12ch;
  margin: 20px auto 24px;
  font-family: var(--serif);
  font-size: clamp(46px, 7.5vw, 82px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.submitted-card > p:not(.audit-eyebrow) {
  max-width: 680px;
  margin: 0 auto;
  color: var(--lavender);
  font-size: clamp(16px, 2vw, 20px);
}

.submitted-note {
  max-width: 650px;
  margin: 28px auto 0;
  padding: 15px 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
}

.submitted-link {
  display: inline-flex;
  min-height: 48px;
  margin-top: 28px;
  padding: 11px 22px;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  background: var(--button);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.submitted-link:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.success-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
}

.success-modal[hidden] {
  display: none;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 3, 19, 0.8);
  backdrop-filter: blur(7px);
  animation: modal-fade 220ms ease both;
}

.success-modal__panel {
  position: relative;
  width: min(100%, 540px);
  padding: clamp(30px, 5vw, 52px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(240, 122, 47, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: modal-rise 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #7b3cc9, var(--orange));
  border-radius: 50%;
  font-size: 30px;
  font-weight: 800;
}

.success-modal h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}

.success-modal p {
  margin: 18px 0 26px;
  color: var(--muted);
}

.success-close {
  min-width: 150px;
  min-height: 46px;
  padding: 11px 24px;
  color: var(--white);
  background: var(--purple);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.content-page {
  min-height: 100vh;
  padding: 80px max(5%, calc((100% - 860px) / 2));
  color: var(--ink);
  background: var(--white);
}

.content-page h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 74px);
  font-weight: 400;
  line-height: 1;
}

.entry-content a {
  color: #6531a2;
}

@keyframes orb-one {
  from { transform: translate3d(-3%, -2%, 0) scale(0.96); }
  to { transform: translate3d(8%, 10%, 0) scale(1.12); }
}

@keyframes orb-two {
  from { transform: translate3d(-8%, 3%, 0) scale(1); }
  to { transform: translate3d(12%, -10%, 0) scale(1.16); }
}

@keyframes lines-drift {
  to { background-position: 240px 0, -190px 80px; }
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .audit-hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 76px;
    grid-template-columns: 1fr;
  }

  .audit-copy {
    max-width: 800px;
  }

  .audit-copy h1 {
    font-size: clamp(72px, 14vw, 112px);
  }

  .audit-form-card {
    max-width: 680px;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .audit-header {
    min-height: 66px;
    padding: 13px 20px;
  }

  .audit-brand img,
  .audit-brand .custom-logo {
    width: 155px;
  }

  .audit-hero {
    padding: 48px 20px 58px;
    gap: 42px;
  }

  .audit-copy h1 {
    margin-top: 18px;
    font-size: clamp(58px, 19vw, 86px);
    line-height: 0.86;
  }

  .audit-points {
    gap: 8px;
  }

  .audit-points span {
    font-size: 11px;
  }

  .audit-form-card {
    padding: 25px 20px;
  }

  .motion-lines {
    opacity: 0.34;
  }

  .legal-main {
    padding: 30px 14px 42px;
  }

  .legal-shell {
    padding: 26px 20px;
    border-radius: 10px;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
