/* DrainDome landing page. All rules are scoped under #dd. */

body.ddl-page { margin: 0; padding: 0; background: #1d1410; }

/* Season palettes. Add winter / spring / summer blocks later and switch
   the data-season attribute in templates/body.html. */
#dd[data-season="fall"] {
  --sky-1: #1a120e;
  --sky-2: #3d1e12;
  --sky-3: #8a3814;
  --leaf-1: #c2410c;
  --leaf-2: #e0892b;
  --leaf-3: #f2b33d;
  --leaf-4: #8c2f1b;
  --accent: #e0892b;
  --accent-soft: #f6d9b0;
  --cream: #fbf4ea;
  --paper: #fffaf3;
  --ink: #2b1d14;
  --muted: #6b5a4c;
  --line: #e7d8c4;
  --forest: #1c360f;
  --forest-2: #305c1a;
  --water: #78bbfa;
  --concrete: #9a9087;
  --concrete-dark: #4a423c;
}

#dd, #dd *, #dd *::before, #dd *::after { box-sizing: border-box; }
#dd {
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#dd img { max-width: 100%; height: auto; display: block; }
#dd a { color: var(--forest-2); }
#dd h1, #dd h2, #dd h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: inherit;
}
#dd h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
#dd h3 { font-size: 1.2rem; }
#dd p { margin: 0 0 1em; }
#dd ul, #dd ol { margin: 0; padding: 0; }
#dd :focus-visible { outline: 3px solid var(--leaf-3); outline-offset: 3px; border-radius: 4px; }

#dd .dd-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
#dd .dd-section { padding: 88px 0; }
#dd .dd-kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--leaf-1); margin-bottom: .6em;
}
#dd .dd-intro { max-width: 720px; font-size: 1.1rem; color: var(--muted); }

/* Buttons */
#dd .dd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 30px; border-radius: 999px;
  background: var(--forest); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.02rem; border: 2px solid var(--forest);
  transition: background .2s, transform .2s, border-color .2s;
}
#dd .dd-btn:hover { background: var(--forest-2); border-color: var(--forest-2); transform: translateY(-2px); }
#dd .dd-btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); }
#dd .dd-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
#dd .dd-btn-small { min-height: 42px; padding: 8px 20px; font-size: .95rem; }

/* Nav */
#dd .dd-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 24px; max-width: 1240px; margin: 0 auto; color: #fff;
}
#dd .dd-brand { color: #fff; display: block; width: 150px; flex: none; }
#dd .dd-brand svg { width: 100%; height: auto; display: block; }
#dd .dd-links { display: flex; gap: 24px; margin-left: auto; }
#dd .dd-links a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .98rem; }
#dd .dd-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
#dd .dd-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 75% 45%, rgba(242,179,61,.28), transparent 70%),
    linear-gradient(170deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  padding: 140px 0 110px;
  min-height: 92vh; display: flex; align-items: center;
}
#dd .dd-leaves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
#dd .dd-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
#dd .dd-eyebrow {
  display: inline-block; font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
#dd .dd-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); margin-bottom: .35em; }
#dd .dd-hero h1 span { color: var(--water); font-style: italic; }
#dd .dd-lede { font-size: 1.15rem; color: rgba(255,255,255,.86); max-width: 580px; }
#dd .dd-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 30px; }
#dd .dd-cta-row .dd-btn:first-child { background: var(--accent); border-color: var(--accent); color: #2b1d14; }
#dd .dd-cta-row .dd-btn:first-child:hover { background: var(--leaf-3); border-color: var(--leaf-3); }
#dd .dd-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: rgba(255,255,255,.8); }
#dd .dd-badges li { position: relative; padding-left: 16px; }
#dd .dd-badges li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--leaf-3);
}
#dd .dd-hero-art { position: relative; }
#dd .dd-hero-art img {
  position: relative; z-index: 1; width: 100%; max-width: 520px; margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
  animation: ddFloat 7s ease-in-out infinite;
}
#dd .dd-halo {
  position: absolute; inset: 8% 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,187,250,.35), transparent 65%);
}
#dd .dd-hero-edge { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; z-index: 3; }
#dd .dd-hero-edge path { fill: var(--cream); }
@keyframes ddFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* Fit */
#dd .dd-fit-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 36px; align-items: stretch; }
#dd .dd-photo { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
#dd .dd-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
#dd .dd-photo figcaption { padding: 12px 16px; font-size: .95rem; color: var(--muted); }
#dd .dd-fit-lists { display: grid; gap: 16px; }
#dd .dd-yes, #dd .dd-no { border-radius: 18px; padding: 20px 22px; }
#dd .dd-yes { background: #e6efdc; }
#dd .dd-no { background: #f7e1d6; }
#dd .dd-yes h3 { color: var(--forest); }
#dd .dd-no h3 { color: var(--leaf-4); }
#dd .dd-fit-lists ul { list-style: none; }
#dd .dd-fit-lists li { padding: 4px 0 4px 26px; position: relative; font-size: .98rem; }
#dd .dd-yes li::before, #dd .dd-no li::before {
  position: absolute; left: 0; top: 4px; font-weight: 700; font-size: 1rem;
}
#dd .dd-yes li::before { content: "+"; color: var(--forest-2); }
#dd .dd-no li::before { content: "x"; color: var(--leaf-4); }

/* Why: animated comparison */
#dd .dd-why { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#dd .dd-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
#dd .dd-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 30px rgba(60,30,10,.07); }
#dd .dd-card svg { display: block; width: 100%; height: auto; }
#dd .dd-card figcaption { padding: 18px 22px 22px; color: var(--muted); }
#dd .dd-card figcaption strong { color: var(--ink); }
#dd .dd-sky { fill: #f3e6d4; }
#dd .dd-slab { fill: var(--concrete); }
#dd .dd-pipe { fill: var(--concrete-dark); }
#dd .dd-grate { fill: #1d1d1d; }
#dd .dd-dome { fill: #8d9196; }
#dd .dd-ripple { stroke: #b9bdc2; stroke-width: 2; }
#dd .dd-water { fill: var(--water); opacity: .6; }
#dd .dd-pipe-drop { fill: var(--water); animation: ddDrip 1.2s linear infinite; }
#dd .dd-l1 { fill: var(--leaf-1); }
#dd .dd-l2 { fill: var(--leaf-2); }
#dd .dd-l3 { fill: var(--leaf-3); }
#dd .dd-l4 { fill: var(--leaf-4); }
#dd .dd-fl {
  transform-box: fill-box; transform-origin: center;
  animation: ddLeafLand 9s ease-out infinite; animation-delay: var(--d);
}
#dd .dd-water-rise {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: ddRise 9s ease-in infinite;
}
#dd .dd-flow circle { fill: var(--water); animation: ddFlowL 1.5s linear infinite; }
#dd .dd-flow-r circle { animation-name: ddFlowR; }
@keyframes ddLeafLand {
  0% { transform: translate(-20px, -150px) rotate(-40deg); opacity: 0; }
  4% { opacity: 1; }
  22% { transform: translate(0, 0) rotate(0); opacity: 1; }
  90% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(0, 0) rotate(0); opacity: 0; }
}
@keyframes ddRise {
  0%, 30% { transform: scaleY(.04); opacity: .6; }
  85% { transform: scaleY(1); opacity: .6; }
  93% { transform: scaleY(1); opacity: .6; }
  100% { transform: scaleY(1); opacity: 0; }
}
@keyframes ddFlowL { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(60px); opacity: 0; } }
@keyframes ddFlowR { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(-60px); opacity: 0; } }
@keyframes ddDrip { 0% { transform: translate(160px, 160px) scale(.18); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(160px, 205px) scale(.18); opacity: 0; } }

/* Video bands */
#dd .dd-video-band { background: linear-gradient(160deg, var(--sky-1), var(--sky-2)); color: #fff; }
#dd .dd-video-band p { color: rgba(255,255,255,.82); font-size: 1.1rem; }
#dd .dd-video-band .dd-kicker { color: var(--leaf-3); }
#dd .dd-video-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
#dd .dd-video-grid-rev { grid-template-columns: 1.2fr .8fr; }
#dd .dd-yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0;
  border: 0; border-radius: 20px; overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
#dd .dd-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
#dd .dd-yt:hover img { opacity: 1; }
#dd .dd-play {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
#dd .dd-play::after {
  content: ""; position: absolute; left: 31px; top: 24px;
  border-left: 24px solid #2b1d14; border-top: 15px solid transparent; border-bottom: 15px solid transparent;
}
#dd .dd-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* How */
#dd .dd-how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; margin-top: 32px; }
#dd .dd-how-img { border-radius: 22px; box-shadow: 0 20px 40px rgba(60,30,10,.15); }
#dd .dd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
#dd .dd-stat { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
#dd .dd-num { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--leaf-1); line-height: 1.1; }
#dd .dd-stat h3 { font-family: "Outfit", Arial, sans-serif; font-size: 1rem; font-weight: 600; margin: 2px 0 8px; }
#dd .dd-stat p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Install */
#dd .dd-install { background: var(--paper); border-top: 1px solid var(--line); }
#dd .dd-steps { list-style: none; counter-reset: ddstep; margin-top: 18px; }
#dd .dd-steps li { counter-increment: ddstep; position: relative; padding: 0 0 18px 56px; }
#dd .dd-steps li::before {
  content: counter(ddstep); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
#dd .dd-steps strong { display: block; }

/* Specs */
#dd .dd-specs-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: 40px; align-items: start; }
#dd table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
#dd th, #dd td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 1rem; }
#dd tr:last-child th, #dd tr:last-child td { border-bottom: 0; }
#dd th { width: 34%; font-weight: 600; color: var(--muted); background: var(--paper); }

/* Buy */
#dd .dd-buy { background: linear-gradient(180deg, var(--cream), #f3e2c8); }
#dd .dd-buy-card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px;
  box-shadow: 0 30px 60px rgba(60,30,10,.12);
}
#dd .dd-buy-img { border-radius: 20px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
#dd .dd-price { font-family: "Fraunces", Georgia, serif; font-size: 2.6rem; font-weight: 600; color: var(--forest); margin: 0 0 .3em; }
#dd .dd-checks { list-style: none; margin-bottom: 18px; }
#dd .dd-checks li { position: relative; padding: 5px 0 5px 28px; }
#dd .dd-checks li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px;
  border-left: 3px solid var(--forest-2); border-bottom: 3px solid var(--forest-2); transform: rotate(-45deg);
}
#dd .dd-small { font-size: .92rem; color: var(--muted); }
#dd .dd-buy-component { min-height: 70px; }

/* FAQ */
#dd .dd-faq-wrap { max-width: 860px; }
#dd details { border-bottom: 1px solid var(--line); padding: 4px 0; }
#dd summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
#dd summary::-webkit-details-marker { display: none; }
#dd summary::after {
  content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--leaf-1); font-weight: 400;
}
#dd details[open] summary::after { content: "-"; }
#dd details p { color: var(--muted); padding-right: 30px; }

/* Final band */
#dd .dd-final {
  text-align: center; color: #fff; padding: 96px 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(224,137,43,.55), transparent 70%),
    linear-gradient(170deg, var(--sky-2), var(--sky-1));
}
#dd .dd-final h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
#dd .dd-final p { color: rgba(255,255,255,.82); font-size: 1.15rem; }
#dd .dd-final .dd-btn { background: var(--accent); border-color: var(--accent); color: #2b1d14; }
#dd .dd-final .dd-btn:hover { background: var(--leaf-3); border-color: var(--leaf-3); }

/* Footer */
#dd .dd-footer { background: var(--sky-1); color: rgba(255,255,255,.75); padding: 48px 0 28px; font-size: .95rem; }
#dd .dd-footer a { color: #fff; }
#dd .dd-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: center; }
#dd .dd-footer-logo { width: 170px; height: auto; color: #fff; }
#dd .dd-legal { margin-top: 28px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* Responsive */
@media (max-width: 960px) {
  #dd .dd-hero-inner, #dd .dd-video-grid, #dd .dd-video-grid-rev, #dd .dd-how-grid,
  #dd .dd-specs-grid, #dd .dd-buy-card { grid-template-columns: 1fr; }
  #dd .dd-fit-grid { grid-template-columns: 1fr 1fr; }
  #dd .dd-fit-lists { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  #dd .dd-hero-art img { max-width: 360px; }
  #dd .dd-video-grid-rev .dd-yt { order: 2; }
}
@media (max-width: 720px) {
  #dd { font-size: 17px; }
  #dd .dd-section { padding: 64px 0; }
  #dd .dd-links { display: none; }
  #dd .dd-nav { justify-content: space-between; padding: 14px 16px; }
  #dd .dd-wrap { padding: 0 16px; }
  #dd .dd-brand { width: 120px; }
  #dd .dd-hero { padding: 110px 0 90px; min-height: 0; }
  #dd .dd-hero-art { order: -1; }
  #dd .dd-hero-art img { max-width: 240px; }
  #dd .dd-cta-row .dd-btn { width: 100%; }
  #dd .dd-fit-grid, #dd .dd-fit-lists, #dd .dd-compare, #dd .dd-stats, #dd .dd-footer-grid { grid-template-columns: 1fr; }
  #dd .dd-buy-card { padding: 20px; border-radius: 22px; }
  #dd th, #dd td { padding: 12px 14px; }
  #dd th { width: 40%; }
}

/* Respect reduced motion: show the end state of each animation */
@media (prefers-reduced-motion: reduce) {
  #dd *, #dd *::before, #dd *::after { animation: none !important; transition: none !important; }
  #dd .dd-water-rise { transform: scaleY(1); }
}
