@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

:root {
  --cream: #FFF9ED;
  --cream-border: #E8D4B8;
  --wood: #5C3D2E;
  --wood-light: #7A5442;
  --sky: #B5DCE8;
  --sky-deep: #5B9BD5;
  --text: #3D2B20;
  --text-light: #6B5344;
  --leaf: #6BA84F;
  --leaf-hover: #5A933F;
  --err-bg: #F5D0CC;
  --err-text: #7A2828;
  --ok-bg: #D0EDC9;
  --ok-text: #2A6B2A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  /* Same repeating cloud tile as DodoBuilder exports (assets/theme/bg-cloud-tile.png) / SDT CloudTile.svg */
  background-color: #c0dfd8;
  background-image: url("/assets/brand/sdt-trial-cloudtile.svg");
  background-repeat: repeat;
  background-size: 300px auto;
  background-position: 0 0;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header / Nav (shared) ---- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  padding: 0;
}

.site-header .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.brand img {
  height: 160px;
  width: auto;
  display: block;
}

.brand {
  margin-left: 0;
  position: relative;
  left: 152px;
}

/* Only the site header uses pill-style nav links — not in-page <nav> (e.g. wiki hub grid). */
.site-header nav {
  display: flex;
  gap: 10px;
  margin-left: auto;
  margin-right: 20px;
  margin-top: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header nav a {
  color: #fff;
  background: var(--wood);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 8px 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.site-header nav a:hover {
  background: var(--wood-light);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(92, 61, 46, 0.25);
}

/* ---- Page Art ---- */

/* Match .wrap so the banner lines up with the main content column */
.page-header-art,
.page-footer-art {
  display: block;
  width: min(960px, 92vw);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  object-fit: contain;
}

.page-header-art {
  margin-top: 0;
  margin-bottom: 0;
}
.page-footer-art {
  margin-top: 28px;
  clear: both;
  position: relative;
  z-index: 0;
}

/* Short pages (home, etc.): tuck footer art up toward content */
.page-footer-art--overlap {
  margin-top: -60px;
}

/* ---- Layout ---- */

.wrap {
  width: min(960px, 92vw);
  margin: 0 auto;
}

.content-wrap {
  width: min(680px, 92vw);
  margin: 0 auto;
  padding: 0 0 16px;
  position: relative;
  z-index: 1;
}

main {
  flex: 1;
  padding: 0;
}

/* ---- Hero Banner ---- */

.hero-banner {
  text-align: center;
  padding: 28px 20px 36px;
}

.hero-tagline {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--wood);
  margin: 0 0 24px;
  letter-spacing: -0.2px;
  line-height: 1.35;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Pill Buttons ---- */

.pill-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.pill-btn:hover {
  transform: translateY(-2px);
}

.pill-btn.primary {
  background: var(--leaf);
  color: #fff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(107, 168, 79, 0.3);
}

.pill-btn.primary:hover {
  background: var(--leaf-hover);
  box-shadow: 0 4px 14px rgba(107, 168, 79, 0.35);
}

.pill-btn:not(.primary):not(.ghost) {
  background: var(--sky-deep);
  color: #fff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(91, 155, 213, 0.25);
}

.pill-btn:not(.primary):not(.ghost):hover {
  background: #4A8BC9;
  box-shadow: 0 4px 12px rgba(91, 155, 213, 0.3);
}

.pill-btn.ghost {
  background: rgba(255,255,255,0.6);
  color: var(--wood);
  border-color: var(--cream-border);
}

.pill-btn.ghost:hover {
  background: var(--cream);
  border-color: var(--wood-light);
  box-shadow: 0 2px 8px rgba(92, 61, 46, 0.08);
}

/* ---- Cards (warm cream style, shared) ---- */

.card {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(92, 61, 46, 0.06);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.card h1, .card h2, .card h3 {
  color: var(--wood);
  margin-top: 0;
  font-weight: 700;
}

.card a {
  color: var(--sky-deep);
  font-weight: 600;
}

.card a:hover {
  color: #4A7EBC;
  text-decoration: underline;
}

/* ---- Accordion (homepage) ---- */

.accordion-wrap {
  width: min(720px, 92vw);
  margin: 0 auto;
  padding: 0 0 24px;
  position: relative;
  z-index: 1;
}

.acc-intro {
  background: linear-gradient(160deg, #fffaf2 0%, #fff5e6 100%);
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(92, 61, 46, 0.06);
}

.acc-intro h2 {
  color: var(--wood);
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
}

.acc-intro p {
  line-height: 1.75;
  margin: 0;
  font-size: 1rem;
}

.acc-intro p + p {
  margin-top: 12px;
}

.acc {
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  margin-bottom: 12px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 1px 6px rgba(92, 61, 46, 0.04);
  overflow: hidden;
  transition: all 0.2s ease;
  border-left: 5px solid var(--cream-border);
}

.acc:nth-child(2)  { border-left-color: var(--sky-deep); }
.acc:nth-child(3)  { border-left-color: var(--leaf); }
.acc:nth-child(4)  { border-left-color: #E8A040; }
.acc:nth-child(5)  { border-left-color: #9575CD; }
.acc:nth-child(6)  { border-left-color: var(--sky-deep); }
.acc:nth-child(7)  { border-left-color: var(--leaf); }

.acc:hover {
  box-shadow: 0 4px 16px rgba(92, 61, 46, 0.08);
  background: rgba(255, 253, 249, 0.98);
}

.acc[open] {
  box-shadow: 0 4px 16px rgba(92, 61, 46, 0.08);
  background: #fffefb;
}

.acc summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--wood);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.15s ease;
}

.acc summary:hover {
  background: rgba(232, 212, 184, 0.15);
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary::after {
  content: "\276F";
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream-border);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 14px;
  transform: rotate(0deg);
}

.acc[open] summary::after {
  transform: rotate(90deg);
  color: var(--wood-light);
}

.acc-body {
  padding: 0 24px 20px;
  border-top: 1px solid rgba(232, 212, 184, 0.5);
  margin-top: -1px;
}

.acc-body p {
  line-height: 1.7;
  margin: 0;
  font-size: 0.98rem;
}

.acc-body p + p {
  margin-top: 8px;
}

.acc-body p:first-child {
  margin-top: 14px;
}

.acc-body h3 {
  color: var(--wood-light);
  margin: 16px 0 6px;
  font-size: 0.95rem;
  letter-spacing: -0.2px;
}

.acc-body h3:first-child {
  margin-top: 14px;
}

.acc-body ul {
  padding-left: 20px;
  margin: 6px 0 8px;
  line-height: 1.6;
  font-size: 0.93rem;
}

.acc-body ul li + li {
  margin-top: 5px;
}

.acc-body a {
  color: var(--sky-deep);
  font-weight: 600;
}

.acc-body a:hover {
  color: #2E6DB3;
}

.acc-warn {
  border-left-color: #C75000 !important;
  background: rgba(255, 245, 236, 0.9);
}

.acc-warn summary {
  color: #A04000;
}

.acc-warn summary::after {
  color: #D4874A;
}

.acc-warn .acc-body {
  border-top-color: rgba(199, 80, 0, 0.15);
}

/* ---- Vertical Steps ---- */

.steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 12px;
}

.step-v {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wood);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.step-v p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

.note {
  color: var(--text-light);
  font-size: 13px;
  margin: 4px 0 0;
}

/* ---- Legacy layout classes (other pages) ---- */

.intro-card,
.info-card,
.steps-card {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(92, 61, 46, 0.06);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.intro-card h2, .info-card h2, .steps-card h2 {
  color: var(--wood);
  margin-top: 0;
}

.intro-card p, .info-card p {
  line-height: 1.6;
  margin: 0;
}

.intro-card p + p, .info-card p + p {
  margin-top: 10px;
}

.info-card ul {
  padding-left: 20px;
  line-height: 1.55;
}

.info-card ul li + li {
  margin-top: 4px;
}

.intro-card a, .info-card a, .steps-card a {
  color: var(--sky-deep);
  font-weight: 600;
}

.intro-card a:hover, .info-card a:hover, .steps-card a:hover {
  color: #2E6DB3;
}

.two-col {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.steps {
  display: flex;
  gap: 12px;
  margin: 10px 0 14px;
}

.step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 252, 248, 0.8);
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  padding: 14px 16px;
}

.step p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

/* ---- Buttons (used on other pages) ---- */

.btn {
  display: inline-block;
  border: 2px solid var(--sky-deep);
  border-radius: 50px;
  background: var(--sky-deep);
  color: #ffffff;
  padding: 11px 24px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #3A7CC7;
  border-color: #3A7CC7;
  box-shadow: 0 4px 14px rgba(74, 144, 217, 0.3);
}

.btn.primary {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.btn.primary:hover {
  background: var(--leaf-hover);
  border-color: var(--leaf-hover);
  box-shadow: 0 4px 14px rgba(90, 158, 62, 0.3);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ---- CTA row (other pages) ---- */

.cta-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Deprecated grid class (other pages still use it) ---- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.list-tight li + li {
  margin-top: 6px;
}

.hero h1 { margin: 0 0 8px; }
.hero p { margin: 0; line-height: 1.5; }
.hero p + p { margin-top: 12px; }

/* ---- Forms ---- */

.form {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 600;
  color: var(--wood);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

input:not([type="checkbox"]),
textarea,
select {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--cream-border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:not([type="checkbox"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #B8A99A;
}

select option {
  color: #111;
}

/* ---- Messages ---- */

.message {
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  line-height: 1.45;
}

.message.error {
  background: var(--err-bg);
  color: var(--err-text);
}

.message.success {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.token-box {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid var(--cream-border);
  color: var(--wood);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  overflow: auto;
}

/* ---- Utilities ---- */

.muted {
  color: var(--text-light);
}

.hidden {
  display: none;
}

/* ---- Footer ---- */

.site-footer {
  padding: 0;
  background: transparent;
}

.footer-inner {
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  padding: 0 0 8px;
}

/* ---- Responsive ---- */

@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .acc-intro {
    padding: 18px 18px;
  }

  .acc summary {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .acc-body {
    padding: 0 16px 14px;
  }
}

@media (max-width: 560px) {
  .site-header .wrap {
    gap: 8px;
    padding-top: 2px;
  }

  .brand {
    margin-left: 0;
    left: 166px;
  }

  .brand img {
    height: 119px;
  }

  .site-header nav {
    gap: 8px;
  }

  .site-header nav a {
    padding: 7px 10px;
    font-size: 13px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .intro-card,
  .info-card,
  .steps-card,
  .card {
    padding: 14px 16px;
  }

  .hero-banner {
    padding: 20px 16px 28px;
  }

  .pill-btn {
    padding: 10px 22px;
    font-size: 14px;
  }
}

/* Print / Save as PDF — header and footer art use the same full printable width */
@media print {
  .page-header-art,
  .page-footer-art {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    object-fit: contain !important;
    break-inside: avoid;
  }

  .page-footer-art {
    margin-top: 16px !important;
  }
}
