/* Layout on top of brand/tokens.css (the dipster-brand skill). Only token colors. */
* { box-sizing: border-box; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.site-header { background: var(--dip-white); border-bottom: 1px solid var(--dip-mist); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 0; }
.lockup img { width: 32px; height: 32px; }
.lockup span { font: 700 32px/1 var(--dip-font-heading); letter-spacing: -0.035em; color: var(--dip-ink); }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--dip-radius-control); color: var(--dip-slate); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--dip-ink); background: var(--dip-cloud); }
.nav a[aria-current="page"] { color: var(--dip-iris); background: var(--dip-iris-tint); }

.hero { padding: 80px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero p.dip-body-l { margin: 20px 0 32px; max-width: 520px; }
.soon { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dip-btn { text-decoration: none; }
.dip-btn:hover { color: var(--dip-white); }
.dip-btn--secondary:hover { color: var(--dip-ink); }


section.band { padding: 64px 0; }
section.band.white { background: var(--dip-white); border-top: 1px solid var(--dip-mist); border-bottom: 1px solid var(--dip-mist); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { margin-top: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 24px; }
.feature svg { color: var(--dip-iris); width: 32px; height: 32px; }
.feature h3 { margin: 16px 0 8px; }
.feature p { margin: 0; color: var(--dip-graphite); }
.step { font: 700 13px/16px var(--dip-font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dip-slate); }

.doc { padding: 48px 0 64px; }
.doc .dip-card { padding: 32px; }
.doc h1 { margin-bottom: 8px; }
.doc h2 { font-size: 20px; line-height: 26px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--dip-graphite); }
.doc .updated { color: var(--dip-slate); font-size: 14px; }
.doc code { font-size: 14px; background: var(--dip-cloud); border: 1px solid var(--dip-mist); border-radius: 6px; padding: 1px 6px; }

.site-footer { padding: 32px 0 48px; color: var(--dip-slate); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--dip-slate); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: var(--dip-ink); }

@media (max-width: 900px) {
  .hero { padding: 48px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .grid3, .grid4 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a.optional { display: none; }
  .doc .dip-card { padding: 20px; }
  .lockup span { font-size: 28px; }
  .lockup img { width: 28px; height: 28px; }
}

/* Hero phone demo (demo.js). Screens are laid out at 375px wide and scaled to fit. */
.phone-wrap { margin: 0; display: grid; justify-items: center; gap: 12px; }
.phone { width: 300px; max-width: 100%; padding: 10px; border-radius: 48px; background: var(--dip-ink); }
.pd-screen { position: relative; width: 100%; aspect-ratio: 375 / 780; border-radius: 38px; overflow: hidden; background: var(--dip-cloud); }
.pd-stage { position: absolute; top: 0; left: 0; width: 375px; height: 780px; transform: scale(var(--s, 0.75)); transform-origin: 0 0; transition: opacity .4s; color: var(--dip-ink); font: 400 16px/24px var(--dip-font-body); }
.pd-stage.st-fade { opacity: 0; }

.pd-status { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 32px 0; font: 600 16px var(--dip-font-body); }
.pd-island { position: absolute; left: 50%; top: 12px; width: 112px; height: 32px; margin-left: -56px; border-radius: 999px; background: var(--dip-ink); }
.pd-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.pd-bars i { width: 3px; border-radius: 1px; background: var(--dip-ink); }
.pd-bars i:nth-child(1) { height: 4px; }
.pd-bars i:nth-child(2) { height: 6px; }
.pd-bars i:nth-child(3) { height: 9px; }
.pd-bars i:nth-child(4) { height: 12px; }

.pd-scr { position: absolute; inset: 0; padding-top: 54px; background: var(--dip-cloud); box-shadow: inset 0 54px var(--dip-white); transition: transform .45s cubic-bezier(.3,.7,.2,1), filter .45s; }
.pd-nav { height: 52px; display: flex; align-items: center; justify-content: center; background: var(--dip-white); border-bottom: 1px solid var(--dip-mist); }
.pd-navtitle { font: 600 17px var(--dip-font-heading); }
.pd-navback { justify-content: flex-start; padding: 0 8px; }
.pd-back { display: inline-flex; align-items: center; gap: 2px; color: var(--dip-iris); font-size: 17px; padding: 8px; border-radius: 10px; }
.pd-lockup { display: inline-flex; align-items: center; gap: 6px; }
.pd-lockup img { width: 24px; height: 24px; }
.pd-lockup b { font: 700 24px/1 var(--dip-font-heading); letter-spacing: -0.035em; }

.pd-items { padding: 16px; display: grid; gap: 12px; }
.pd-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--dip-white); border: 1px solid var(--dip-mist); border-radius: 20px; }
.pd-new { animation: pd-new 2.4s ease-out; }
@keyframes pd-new { 0%, 40% { background: var(--dip-iris-tint); border-color: var(--dip-iris); } 100% { background: var(--dip-white); } }
.pd-tile { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--dip-mist); color: var(--dip-slate); }
.pd-photo { background: var(--dip-white); border: 1px solid var(--dip-mist); object-fit: contain; padding: 4px; }
.pd-tile80 { width: 80px; height: 80px; border-radius: 16px; }
.pd-col { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pd-row { display: flex; align-items: center; }
.pd-small.pd-row { gap: 4px; }
.pd-strong { font-weight: 600; }
.pd-small { font-size: 14px; line-height: 20px; color: var(--dip-slate); }
.pd-clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pd-price { font: 700 21px/26px var(--dip-font-heading); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pd-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 28px; display: grid; gap: 4px; }
.pd-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 14px; background: var(--dip-iris); color: var(--dip-white); font-weight: 600; transition: background .15s, opacity .2s; }
.pd-btn2 { background: var(--dip-white); color: var(--dip-ink); border: 1px solid var(--dip-mist); }
.pd-off { opacity: .45; }
.pd-textbtn { text-align: center; color: var(--dip-iris); font-weight: 600; padding: 12px; }
.pd-pressed { filter: brightness(.9); }

.pd-sheet { transform: translateY(105%); z-index: 2; }
.st-sheet .pd-sheet { transform: none; }
.st-product .pd-sheet { transform: translateY(105%); }
.pd-product { transform: translateX(100%); z-index: 3; }
.st-product .pd-product { transform: none; }
.pd-body { padding: 16px; display: grid; gap: 12px; align-content: start; }
.pd-p { margin: 0; }
.pd-field { min-height: 96px; padding: 12px 14px; background: var(--dip-white); border: 1px solid var(--dip-mist); border-radius: 14px; word-break: break-all; }
.pd-ph { color: var(--dip-slate); }

.pd-head { gap: 12px; }
.pd-h3 { font: 600 20px/26px var(--dip-font-heading); letter-spacing: -0.01em; }
.pd-label { margin-top: 4px; font: 700 13px/16px var(--dip-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--dip-slate); }
.pd-card { padding: 16px; display: grid; gap: 12px; background: var(--dip-white); border: 1px solid var(--dip-mist); border-radius: 20px; }
.pd-search { overflow: hidden; max-height: 120px; transition: max-height .4s, padding .4s, opacity .3s, border-width .4s, margin .4s; }
.pd-search.pd-gone { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; border-width: 0; margin-bottom: -12px; }
.pd-logo { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--dip-cloud); color: var(--dip-iris); }
.pd-logo b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--dip-ink); color: var(--dip-white); font: 700 16px var(--dip-font-heading); }
.pd-blink { animation: pd-blink .4s; }
@keyframes pd-blink { 0% { opacity: .2; } 100% { opacity: 1; } }
.pd-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-pct { color: var(--dip-iris); font-variant-numeric: tabular-nums; }
.pd-bar { height: 8px; border-radius: 999px; background: var(--dip-iris-tint); overflow: hidden; }
.pd-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--dip-iris); transition: width .35s; }

.pd-offers { display: grid; gap: 12px; }
.pd-offer { gap: 0; transition: transform .6s cubic-bezier(.3,.7,.2,1), border-color .3s; }
.pd-in { animation: pd-in .35s ease-out; }
@keyframes pd-in { from { opacity: 0; transform: translateY(8px); } }
.pd-offer s { color: var(--dip-slate); }
.pd-right { display: grid; justify-items: end; gap: 4px; }
.pd-priced .pd-right { animation: pd-in .3s ease-out; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-badges:not(:empty) { margin-top: 12px; animation: pd-in .3s ease-out; }
.pd-best { border-color: var(--dip-iris); }
.pd-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 700; }
.pd-drop { background: var(--dip-mint-tint); color: var(--dip-mint-text); }
.pd-lowest { background: var(--dip-zest-tint); color: var(--dip-zest-text); }
.pd-match { background: var(--dip-iris-tint); color: var(--dip-iris); }

.pd-tap { position: absolute; z-index: 7; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--dip-ink); opacity: 0; pointer-events: none; }
.pd-tap.on { animation: pd-tap .5s ease-out; }
@keyframes pd-tap { 0% { opacity: .28; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.4); } }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.about p { color: var(--dip-graphite); margin: 0 0 16px; max-width: 640px; }
.facts { padding: 24px; display: grid; gap: 20px; }
.fact { display: flex; gap: 12px; }
.fact svg { color: var(--dip-iris); flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; }
.fact b { display: block; color: var(--dip-ink); }
.fact span { color: var(--dip-graphite); font-size: 15px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 24px; } }
