/* Druan Labs — brand: ink teal + citrus on cool mist */
:root {
  --ink: #0d1f24;
  --ink-soft: #1a3339;
  --mist: #e8f0f2;
  --mist-deep: #d2e2e6;
  --paper: #f6fafb;
  --citrus: #e8ff47;
  --citrus-deep: #c6db2a;
  --coral: #ff5e3a;
  --text: #0d1f24;
  --muted: #4a646b;
  --line: rgba(13, 31, 36, 0.12);
  --radius: 4px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(232, 255, 71, 0.22), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 94, 58, 0.12), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 45%, var(--mist-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(13, 31, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 31, 36, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--citrus);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo em {
  font-style: normal;
  color: var(--ink-soft);
  opacity: 0.72;
}

.logo-mark {
  width: 0.85rem;
  height: 0.85rem;
  background: var(--coral);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--citrus);
  animation: mark-pop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-text {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 6.5rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: clip;
}

.hero-plane {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-content: end;
  padding: clamp(2rem, 6vw, 4rem);
  background:
    linear-gradient(145deg, rgba(13, 31, 36, 0.08), transparent 40%),
    linear-gradient(180deg, transparent 30%, rgba(13, 31, 36, 0.88) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Crect fill='%231a3339' width='800' height='500'/%3E%3Cpath fill='%230d1f24' d='M0 320c80-40 160-40 240 0s160 40 240 0 160-40 240 0 80 40 80 40v140H0z'/%3E%3Ccircle cx='620' cy='140' r='90' fill='%23ff5e3a' opacity='.55'/%3E%3Crect x='90' y='90' width='160' height='160' rx='8' fill='%23e8ff47' opacity='.85'/%3E%3C/svg%3E")
      center / cover no-repeat;
  color: #f4fafb;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
  max-width: 12ch;
  animation: rise 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand span {
  display: block;
  color: var(--citrus);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(246, 250, 251, 0.88);
  animation: rise 0.9s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--citrus);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--citrus-deep);
}

.btn-ghost {
  border-color: rgba(246, 250, 251, 0.45);
  color: #f6fafb;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(246, 250, 251, 0.1);
}

.btn-ink {
  background: var(--ink);
  color: var(--citrus);
}

.btn-ink:hover,
.btn-ink:focus-visible {
  background: var(--ink-soft);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
}

.section-copy {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--muted);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.service-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--coral);
}

.service-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.service-list p {
  margin: 0.35rem 0 0;
  grid-column: 2;
  color: var(--muted);
  max-width: 40rem;
}

.product-block {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--ink);
  color: #f4fafb;
  border-radius: var(--radius);
}

.product-block h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.product-block p {
  margin: 0;
  max-width: 38rem;
  color: rgba(244, 250, 251, 0.82);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-band {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.contact-band a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.contact-band a:hover,
.contact-band a:focus-visible {
  border-bottom-color: var(--coral);
}

/* Pop & Paint product page */
.app-hero {
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
}

.app-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.app-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.app-tagline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 28rem;
}

.app-lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--muted);
}

.app-cta {
  margin-bottom: 0.75rem;
}

.app-download-note {
  margin: 0;
  max-width: 32rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.app-hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 260px);
  padding: 0.75rem;
  border-radius: 2rem;
  background: linear-gradient(160deg, #1a3339, #0d1f24);
  box-shadow: 18px 24px 0 rgba(232, 255, 71, 0.55);
  animation: rise 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone-screen {
  aspect-ratio: 9 / 16;
  border-radius: 1.4rem;
  padding: 1.25rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  align-content: start;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 94, 58, 0.35), transparent 45%),
    linear-gradient(180deg, #ffe8a3 0%, #fff6d8 40%, #f6fafb 100%);
}

.phone-brand {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.phone-line {
  grid-column: 1 / -1;
  height: 3px;
  width: 42%;
  background: var(--coral);
  border-radius: 2px;
}

.phone-swatch {
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid rgba(13, 31, 36, 0.12);
}

.phone-swatch.s1 { background: #ff5e3a; }
.phone-swatch.s2 { background: #3ecf8e; }
.phone-swatch.s3 { background: #4d8dff; }
.phone-swatch.s4 { background: #ffb020; }

.phone-art {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  min-height: 58%;
  border-radius: 0.85rem;
  border: 2px dashed rgba(13, 31, 36, 0.2);
  background:
    linear-gradient(135deg, transparent 48%, rgba(13, 31, 36, 0.08) 49%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(13, 31, 36, 0.08) 49%, transparent 52%),
    #fff;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
}

.feature-grid h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.download-band {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-band code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: rgba(13, 31, 36, 0.06);
  border-radius: 3px;
}

.info-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  max-width: 48rem;
}

.info-split p {
  margin: 0;
}

@media (max-width: 860px) {
  .app-hero-grid {
    grid-template-columns: 1fr;
  }

  .app-hero-visual {
    order: -1;
  }

  .phone-frame {
    width: min(100%, 220px);
  }

  .feature-grid,
  .info-split {
    grid-template-columns: 1fr;
  }
}

/* Legal / app pages */
.page-hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.page-meta {
  margin: 0;
  color: var(--muted);
}

.prose {
  padding-bottom: clamp(3rem, 8vw, 5rem);
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.15rem;
}

.prose a {
  color: var(--coral);
  font-weight: 600;
}

.faq {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--coral);
}

.faq p {
  margin: 0.65rem 0 0;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(246, 250, 251, 0.55);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.footer-tag,
.footer-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--coral);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mark-pop {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .service-list p {
    grid-column: 1;
  }
}
