/* The public pages at dapply.solutions: landing, pricing and policies. */
:root {
  --ink: #0b1d33;
  --ink-soft: #425466;
  --line: #e3e8ee;
  --paper: #ffffff;
  --mist: #f6f9fc;
  --brand: #4f46e5;
  --brand-2: #0ea5e9;
  --brand-3: #f97362;
  --brand-4: #facc15;
  --ok: #0f9d58;
  --ok-bg: #e3f6ec;
  --wait: #9a6700;
  --wait-bg: #fff4d6;
  --shadow-lg: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
  color-scheme: light;
}

* { box-sizing: border-box; }

body.site {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site a { color: var(--brand); text-decoration: none; }
.site a:hover { color: var(--ink); }
.site code { font: 14px ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--mist); padding: 1px 6px; border-radius: 5px; }
.site .muted { color: var(--ink-soft); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.site-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-nav nav { display: flex; align-items: center; gap: 28px; }
.site-nav nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.site-nav nav a:hover { opacity: 0.7; color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink) !important; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 200deg, var(--brand), var(--brand-2), var(--brand-4), var(--brand-3), var(--brand));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55);
}

/* Buttons */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  background: var(--ink); color: #fff !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pill:hover { background: #1d3557; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pill.dark { background: var(--brand); }
.pill.dark:hover { background: #4338ca; }
.pill.ghost { background: var(--mist); color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.pill.ghost:hover { background: #eef2f7; }
.arrow { display: inline-block; transition: transform 0.15s ease; }
.pill:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; color: var(--ink) !important; display: inline-flex; gap: 6px; align-items: center; }

/* Hero: an angled band of colour behind the copy and the product picture. */
.hero { position: relative; padding: 150px 0 120px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -40% 0 auto 0; height: 135%;
  transform: skewY(-9deg); transform-origin: 0 0;
  background:
    radial-gradient(40% 60% at 15% 60%, rgba(14, 165, 233, 0.75), transparent 70%),
    radial-gradient(35% 55% at 45% 30%, rgba(79, 70, 229, 0.85), transparent 70%),
    radial-gradient(40% 60% at 80% 55%, rgba(249, 115, 98, 0.8), transparent 70%),
    radial-gradient(35% 50% at 95% 15%, rgba(250, 204, 21, 0.85), transparent 70%),
    linear-gradient(120deg, #a5b4fc, #fbcfe8 60%, #fde68a);
  filter: saturate(1.1);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; filter: hue-rotate(0deg) saturate(1.1); }
  to { filter: hue-rotate(-18deg) saturate(1.2); }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 700; font-size: 15px; color: var(--brand); margin: 0 0 12px; }
.eyebrow.light { color: #a5b4fc; }
.hero .eyebrow { color: var(--ink); opacity: 0.75; }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 24px; color: var(--ink);
  mix-blend-mode: color-burn;
}
.lead { font-size: 19px; line-height: 1.6; color: #1f3147; max-width: 520px; margin: 0 0 32px; }
.cta { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* The product picture */
.mock { position: relative; min-height: 430px; }
.mock-window {
  position: absolute; top: 0; right: 0; width: 100%; max-width: 480px;
  background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe3; }
.mock-body { padding: 18px 20px 8px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 17px; }
.mock-btn { background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mock-row small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.mock-card {
  position: absolute; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 14px 18px; font-size: 14px;
}
.mock-card small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.mock-card.invoice { left: -28px; top: 300px; width: 210px; display: flex; flex-direction: column; gap: 4px; }
.mock-card.invoice strong { font-size: 24px; letter-spacing: -0.02em; }
.mock-card.invoice .badge { align-self: flex-start; }
.mock-card.backup { right: -14px; top: 340px; display: flex; gap: 10px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.live { background: var(--ok-bg); color: var(--ok); }
.badge.deploying { background: var(--wait-bg); color: var(--wait); }

/* Trust strip */
.strip { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; }
.strip-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding-top: 22px; padding-bottom: 22px; }
.strip span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-soft); font-size: 15px; }
.strip .icon { width: 20px; height: 20px; color: var(--brand); }

/* Sections */
.section { padding-top: 96px; padding-bottom: 32px; }
.section-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; max-width: 760px; }
.section-sub { font-size: 18px; max-width: 620px; margin: 0 0 40px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; margin-top: 48px; }
.feature .icon { width: 30px; height: 30px; color: var(--brand); padding: 6px; border-radius: 10px; background: #eef0ff; box-sizing: content-box; }
.feature h3 { font-size: 17px; margin: 16px 0 6px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Dark band */
.band {
  margin-top: 96px; padding: 120px 0 110px; color: #fff;
  background: linear-gradient(180deg, #0b1d33, #102a4c);
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}
.band .section-title { color: #fff; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); font-weight: 800;
}
.steps h3 { margin: 16px 0 6px; font-size: 17px; }
.steps p { margin: 0; color: #adbdcc; font-size: 15.5px; }
.steps a { color: #a5b4fc; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 820px; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: var(--paper); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan.featured { border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.featured::before {
  content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 2px; pointer-events: none;
  background: linear-gradient(120deg, var(--brand-2), var(--brand), var(--brand-3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.tag { position: absolute; top: -12px; left: 32px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 8px; font-size: 18px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 20px; }
.price span { font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-left: 8px; letter-spacing: 0; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
ul.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; color: #1f3147; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%230f9d58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.closing { text-align: center; padding-bottom: 96px; }
.closing h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 8px; }
.closing p { margin: 0 0 24px; font-size: 18px; }

/* Policy pages */
.policy { max-width: 760px; padding-top: 130px; padding-bottom: 80px; }
.policy h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.policy h2 { font-size: 20px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.policy p, .policy li { color: #1f3147; }
.policy li { margin-bottom: 6px; }
.contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; box-shadow: var(--shadow-md); margin: 24px 0; line-height: 1.9; }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { font-size: 14px; margin: 0 0 12px; color: var(--ink); }
.footer-grid a:not(.logo) { display: block; color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid p { margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }
.fineprint { margin-top: 36px; font-size: 13.5px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero { padding: 120px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .mock { min-height: 360px; margin: 0 8px; }
  .mock-card.invoice { left: 0; }
  .mock-card.backup { right: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-nav nav { gap: 14px; }
  .logo { white-space: nowrap; font-size: 18px; }
  .site-nav nav a { white-space: nowrap; }
  .site-nav .pill { padding: 7px 14px; font-size: 14px; }
  .hero h1 { mix-blend-mode: normal; color: var(--ink); }
  .mock-card.invoice { top: 300px; }
  .hide-sm { display: none; }
  .feature-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .mock { min-height: 420px; }
  .mock-card.backup { display: none; }
  .band { clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); }
}

@media (max-width: 440px) {
  .hide-xs { display: none; }
}
