@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Patrick+Hand&display=swap');

:root {
  --background: #191c20;
  --surface: #22272e;
  --chalk-white: #eef1f4;
  --chalk-blue: #5dade2;
  --chalk-yellow: #f1c40f;
  --chalk-red: #ec7063;
  --chalk-green: #58d68d;
  --line: rgba(238, 241, 244, 0.18);
  --line-dashed: rgba(238, 241, 244, 0.35);
  --shadow: 0 12px 35px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  margin: 0; 
  color: var(--chalk-white); 
  background: var(--background); 
  font-family: "Patrick Hand", cursive; 
  font-size: 17px;
  line-height: 1.5; 
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

/* Sticky Chalk Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 85px;
  background: rgba(25, 28, 32, 0.95);
  border-bottom: 2.5px dashed var(--line-dashed);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--chalk-yellow);
  border-radius: 50%;
  color: var(--chalk-yellow);
  font-size: 26px;
}
.brand strong {
  font-family: "Architects Daughter", cursive;
  font-size: 22px;
  color: #fff;
}
.header-nav {
  display: flex;
  gap: 25px;
}
.header-nav a {
  color: var(--chalk-white);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--chalk-yellow);
  text-shadow: 0 0 5px rgba(241, 196, 15, 0.4);
}

/* Hero Section */
.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: radial-gradient(circle at 10% 20%, rgba(93, 173, 226, 0.08) 0%, transparent 45%);
}
.hero-card {
  background: var(--surface);
  border: 3px dashed var(--line-dashed);
  padding: 50px 30px;
  border-radius: 8px;
  max-width: 860px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero-card .catalog {
  color: var(--chalk-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.hero-card h1 {
  font-family: "Architects Daughter", cursive;
  font-size: clamp(36px, 5.5vw, 68px);
  margin: 0 0 20px;
  line-height: 1.1;
  color: #fff;
}
.hero-card h1 em {
  font-style: normal;
  color: var(--chalk-yellow);
}
.hero-card p {
  color: var(--chalk-white);
  font-size: 19px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.atlas-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 26px;
  border: 2.5px solid var(--chalk-yellow);
  border-radius: 4px;
  background: transparent;
  color: var(--chalk-yellow);
  font-family: "Architects Daughter", cursive;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.2s;
  text-transform: uppercase;
}
.atlas-button:hover {
  background: var(--chalk-yellow);
  color: #000;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}
.atlas-button.outline {
  border-color: var(--chalk-blue);
  color: var(--chalk-blue);
}
.atlas-button.outline:hover {
  background: var(--chalk-blue);
  color: #000;
}

/* Centered Chalk Game Panel */
.study-section {
  padding: 85px 24px;
}
.section-heading {
  max-width: 800px;
  margin: 0 auto 45px;
  text-align: center;
}
.section-heading h2 {
  font-family: "Architects Daughter", cursive;
  font-size: clamp(34px, 4.5vw, 54px);
  margin: 0 0 12px;
  color: #fff;
}
.section-heading p {
  color: var(--chalk-white);
  font-size: 18px;
}

.study-desk {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Wanted Specimen banner */
.clue-banner {
  background: var(--surface);
  border: 3px dashed var(--line-dashed);
  padding: 20px 30px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 30px;
  border-radius: 8px;
}
.clue-illustration {
  height: 80px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed var(--line);
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.clue-illustration span {
  --fish-color: #f1c40f;
  width: 58px;
  height: 22px;
  position: relative;
  border-radius: 50%;
  border: 1.5px dashed var(--fish-color);
}
.clue-illustration span::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 3px;
  border-right: 14px solid var(--fish-color);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.clue-illustration span::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fish-color);
}

.clue-details {
  display: flex;
  justify-content: space-around;
  gap: 15px;
}
.clue-details-col {
  text-align: center;
}
.clue-details-col dt {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--chalk-white);
  opacity: 0.7;
}
.clue-details-col dd {
  margin: 4px 0 0;
  font-family: "Architects Daughter", cursive;
  font-size: 18px;
  color: var(--chalk-yellow);
}

/* Canvas Area */
.canvas-frame {
  position: relative;
  aspect-ratio: 45/26;
  overflow: hidden;
  border: 3px dashed var(--line-dashed);
  box-shadow: var(--shadow);
  border-radius: 8px;
  background: #181d22;
}
#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Overlay prompts */
.game-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(28, 32, 36, 0.96);
  backdrop-filter: blur(2px);
}
.game-overlay.open {
  display: grid;
}
.game-overlay h3 {
  font-family: "Architects Daughter", cursive;
  font-size: 32px;
  margin: 0 0 10px;
  color: #fff;
}
.game-overlay p {
  font-size: 15px;
  color: var(--chalk-white);
  max-width: 440px;
  margin: 0 auto 20px;
}

/* Dials Stats Layout */
.stats-dials {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.dial-card {
  background: var(--surface);
  border: 2.5px dashed var(--line-dashed);
  padding: 15px 10px;
  text-align: center;
  border-radius: 8px;
}
.dial-card small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--chalk-white);
  opacity: 0.7;
}
.dial-card strong {
  display: block;
  font-family: "Architects Daughter", cursive;
  font-size: 20px;
  margin-top: 4px;
  color: var(--chalk-yellow);
}

/* Logger Panel */
.logger-panel {
  background: var(--surface);
  border: 2.5px dashed var(--line-dashed);
  padding: 20px 25px;
  border-radius: 8px;
}
.logger-panel h3 {
  margin: 0 0 12px;
  font-family: "Architects Daughter", cursive;
  font-size: 16px;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 6px;
  color: #fff;
}
.logger-entries {
  max-height: 120px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--chalk-green);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.logger-entries p {
  margin: 0;
}
.logger-entries .err {
  color: var(--chalk-red);
}
.logger-entries .sys {
  color: var(--chalk-blue);
}

/* Chalk Manual Steps Grid */
.method-section {
  padding: 85px 24px;
  background: rgba(25, 28, 32, 0.5);
  border-top: 2.5px dashed var(--line-dashed);
  border-bottom: 2.5px dashed var(--line-dashed);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}
.method-card {
  background: var(--surface);
  border: 2.5px dashed var(--line-dashed);
  padding: 30px 24px;
  border-radius: 8px;
  text-align: center;
}
.method-card span {
  font-family: "Architects Daughter", cursive;
  font-size: 28px;
  color: var(--chalk-blue);
  display: block;
  margin-bottom: 10px;
}
.method-card h3 {
  font-family: "Architects Daughter", cursive;
  font-size: 20px;
  margin: 0 0 10px;
  color: #fff;
}
.method-card p {
  margin: 0;
  color: var(--chalk-white);
  font-size: 15px;
}

/* Chalk Contact Form Card */
.contact-section {
  padding: 85px 24px;
}
.contact-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 3px dashed var(--line-dashed);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.contact-card h2 {
  font-family: "Architects Daughter", cursive;
  font-size: 30px;
  margin: 0 0 12px;
  text-align: center;
  color: #fff;
}
.contact-card > p {
  text-align: center;
  color: var(--chalk-white);
  margin-bottom: 30px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--chalk-yellow);
}
.form-group input, .form-group textarea {
  padding: 12px;
  border: 2px dashed var(--line);
  background: var(--background);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  border-radius: 4px;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--chalk-yellow);
}
.contact-form .atlas-button {
  align-self: center;
}

/* Footer layout */
.footer {
  min-height: 150px;
  background: var(--background);
  border-top: 2.5px dashed var(--line-dashed);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 40px clamp(20px,5vw,80px);
}
.footer p {
  color: var(--chalk-white);
  opacity: 0.7;
  font-size: 13px;
  margin: 5px 0 0;
}
.footer-brand strong {
  font-family: "Architects Daughter", cursive;
  font-size: 18px;
  color: #fff;
}
.footer-contacts {
  font-size: 13px;
  color: var(--chalk-white);
  opacity: 0.7;
  text-align: center;
}
.footer-contacts p {
  margin: 4px 0;
}
.footer-contacts a {
  color: var(--chalk-blue);
  text-decoration: none;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--chalk-white);
  opacity: 0.7;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--chalk-yellow);
}

.toast {
  position: fixed; 
  z-index: 120; 
  left: 50%; 
  bottom: 24px; 
  transform: translate(-50%, 18px); 
  padding: 10px 20px; 
  border: 2px dashed var(--chalk-yellow); 
  background: var(--surface); 
  color: var(--chalk-yellow); 
  box-shadow: var(--shadow); 
  font-size: 14px; 
  opacity: 0; 
  pointer-events: none; 
  transition: .2s;
  border-radius: 4px;
}
.toast.show { 
  opacity: 1; 
  transform: translate(-50%, 0); 
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  z-index: 110;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px 24px;
  background: var(--surface);
  border-top: 3px dashed var(--chalk-yellow);
  box-shadow: 0 -8px 25px rgba(0,0,0,0.3);
  display: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.cookie-content p {
  margin: 0;
  font-size: 13px;
  color: var(--chalk-white);
}
.cookie-content .atlas-button {
  min-height: 38px;
  padding: 0 16px;
  box-shadow: none;
}

/* Pricing Page Dashboard style */
.pricing-section {
  padding: 85px 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-heading {
  text-align: center;
  margin-bottom: 50px;
}
.pricing-heading h1 {
  font-family: "Architects Daughter", cursive;
  font-size: 44px;
  margin: 0 0 15px;
  color: #fff;
}
.pricing-heading p {
  color: var(--chalk-white);
  max-width: 650px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.price-card {
  background: var(--surface);
  border: 2.5px dashed var(--line-dashed);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--chalk-yellow);
}
.price-card.popular {
  border-color: var(--chalk-red);
  transform: scale(1.03);
}
.price-card.popular:hover {
  transform: scale(1.03) translateY(-5px);
}
.card-inner {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card h3 {
  margin: 10px 0 15px;
  font-family: "Architects Daughter", cursive;
  font-size: 24px;
  color: #fff;
}
.price-card .price {
  font-size: 38px;
  font-family: "Architects Daughter", cursive;
  color: var(--chalk-yellow);
  margin: 0 0 20px;
}
.price-card .price span {
  font-size: 13px;
  font-family: "Patrick Hand", cursive;
  color: var(--chalk-white);
}
.price-card .desc {
  font-size: 13px;
  color: var(--chalk-white);
  margin-bottom: 30px;
  min-height: 40px;
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 2px dashed var(--line-dashed);
  padding-top: 20px;
}
.features-list li {
  font-size: 14px;
  position: relative;
  padding-left: 20px;
}
.features-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--chalk-yellow);
}
.price-card .atlas-button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--chalk-red);
  color: #fff;
  font-family: "Architects Daughter", cursive;
  font-size: 10px;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(236, 112, 99, 0.4);
}

/* Modal Overlay and Chalk Form */
.modal-overlay {
  position: fixed;
  z-index: 150;
  inset: 0;
  background: rgba(25, 28, 32, 0.85);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.checkout-modal {
  background: var(--surface);
  border: 3px dashed var(--chalk-yellow);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  padding: 30px;
  position: relative;
  border-radius: 8px;
  animation: modalScale 0.2s ease-out forwards;
}
@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.modal-header h2 {
  margin: 5px 0 0;
  font-size: 26px;
  font-family: "Architects Daughter", cursive;
  color: #fff;
}
.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--chalk-white);
  line-height: 1;
}
.close-btn:hover {
  color: var(--chalk-red);
}
.order-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed var(--line);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-radius: 4px;
}
.price-tag {
  color: var(--chalk-yellow);
  font-weight: 700;
  font-size: 17px;
}
.billing-disclosure {
  font-size: 11px;
  color: var(--chalk-white);
  opacity: 0.8;
  line-height: 1.45;
  margin: 15px 0;
}

/* Legal text styling */
.legal-main {
  padding: 85px 24px;
}
.legal-copy {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 3px dashed var(--line-dashed);
  padding: 50px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.legal-copy h1 {
  font-family: "Architects Daughter", cursive;
  font-size: 38px;
  color: #fff;
}
.legal-copy h2 {
  font-family: "Architects Daughter", cursive;
  font-size: 26px;
  margin-top: 30px;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 6px;
  color: #fff;
}
.legal-copy p {
  color: var(--chalk-white);
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--chalk-blue);
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media(max-width: 930px) {
  .clue-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .clue-details {
    flex-direction: column;
    gap: 15px;
  }
  .stats-dials {
    grid-template-columns: repeat(3, 1fr);
  }
  .method-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .price-card.popular {
    transform: none;
  }
  .price-card.popular:hover {
    transform: translateY(-5px);
  }
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
@media(max-width: 650px) {
  .stats-dials {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .contact-card {
    padding: 30px 20px;
  }
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
