/*
  CurioDeck marketing site stylesheet
  Update brand colors by editing the CSS variables under :root. Dark mode tokens live in the prefers-color-scheme block near the end.
*/
:root {
  --color-bg: #f9f8ff;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f5ff;
  --color-primary: #d6402c;
  --color-secondary: #6c5ce7;
  --color-accent: #ffc857;
  --color-text: #12122a;
  --color-text-muted: #4c4f7a;
  --color-border: #dfe3ff;
  --color-shadow: rgba(17, 16, 33, 0.08);
  --color-shadow-strong: rgba(17, 16, 33, 0.15);
  --radius-md: 16px;
  --radius-lg: 28px;
  --max-width: 1100px;
  --font-stack: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
}

.no-js .site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.no-js .nav-toggle,
.no-js .mobile-nav {
  display: none !important;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  margin-top: 0;
  color: var(--color-text);
}

p {
  margin-top: 0;
  color: var(--color-text-muted);
}

ul[role="list"],
ol[role="list"],
ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--color-secondary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus-visible {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 248, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand img {
  display: block;
}

.site-nav {
  display: none;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  font-weight: 500;
  color: var(--color-text);
}

.cta-group {
  display: none;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(214, 64, 44, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px rgba(214, 64, 44, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid currentColor;
  box-shadow: none;
}

.btn--secondary {
  background: var(--color-secondary);
  box-shadow: 0 15px 30px rgba(108, 92, 231, 0.25);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  display: grid;
  place-items: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

[data-nav-open="true"] .mobile-nav {
  display: flex;
}

[data-nav-open="true"] .site-nav {
  display: flex;
  flex-direction: column;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-shell {
  display: grid;
  gap: 2rem;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-left: 0;
  list-style: none;
}

.hero-meta strong {
  color: var(--color-primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.device {
  background: var(--color-surface);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 70px var(--color-shadow-strong);
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 20px 40px var(--color-shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px var(--color-shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.no-js [data-carousel] .carousel-track {
  flex-direction: column;
  gap: 1rem;
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 2rem;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
  pointer-events: none;
}

.no-js [data-carousel] .carousel-controls,
.no-js [data-carousel] .carousel-dots {
  display: none;
}

.carousel-btn {
  pointer-events: auto;
  border: none;
  background: rgba(18, 18, 42, 0.6);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
}

.carousel-dots button[aria-current="true"] {
  background: var(--color-secondary);
}

.steps {
  display: grid;
  gap: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(214, 64, 44, 0.12);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.plans {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.plan {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 2rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 60px var(--color-shadow);
}

.plan-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-secondary);
}

.plan-price {
  font-size: 3rem;
  margin: 1rem 0;
  color: var(--color-text);
}

.plan ul {
  padding-left: 0;
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  box-shadow: 0 20px 40px var(--color-shadow);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--color-border);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--color-secondary);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.no-js .accordion-panel {
  max-height: none;
}

.accordion-panel p {
  margin-bottom: 1rem;
}

.accordion-panel[aria-hidden="false"] {
  max-height: 400px;
}

.contact-shell {
  display: grid;
  gap: 2rem;
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 2rem;
  box-shadow: 0 25px 45px var(--color-shadow);
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  background: var(--color-surface-alt);
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.site-footer {
  background: #0b0b18;
  color: #f8f8ff;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-shell {
  display: grid;
  gap: 2rem;
}

.site-footer a {
  color: #f8f8ff;
}

.footer-meta {
  text-align: center;
  margin-top: 2rem;
  color: #cacbea;
}

.social-links {
  padding-left: 0;
  list-style: none;
}

.small {
  font-size: 0.9rem;
}

/* Utility helpers */
.u-center {
  text-align: center;
}

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

/* Responsive tweaks */
@media (min-width: 600px) {
  .site-nav {
    display: flex;
  }
  .cta-group {
    display: flex;
  }
  .nav-toggle,
  .mobile-nav {
    display: none;
  }
  .hero-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-shell {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0b0b18;
    --color-surface: #151527;
    --color-surface-alt: #1f1f35;
    --color-text: #f8f8ff;
    --color-text-muted: #cacbea;
    --color-border: #2d2f4c;
    --color-shadow: rgba(0, 0, 0, 0.4);
    --color-shadow-strong: rgba(0, 0, 0, 0.7);
  }
  body {
    color: var(--color-text);
  }
  .section--alt {
    background: #12122a;
  }
  .site-header {
    background: rgba(18, 18, 42, 0.92);
  }
  .carousel-btn {
    background: rgba(255, 255, 255, 0.15);
  }
  .site-footer {
    background: #04040c;
  }
}
