/* DrawFin public site — mobile-first. Colours from the logo. */
:root {
    --df-primary: #7350F1;
    --df-accent: #FFA300;
    --df-yellow: #FFE000;
    --df-ink: #1f1b3a;
    --df-muted: #5d5a7a;
    --df-line: #ece9fb;
    --df-tint: #f8f7ff;
    --df-white: #fff;
    --df-radius: 16px;
    --df-shadow: 0 10px 30px rgba(31, 27, 58, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--df-ink);
    background: var(--df-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--df-primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.df-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.df-narrow { max-width: 820px; }
.df-center { text-align: center; }
.df-muted { color: var(--df-muted); }
.df-skip { position: absolute; left: -9999px; }
.df-skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--df-white); padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.df-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.df-btn:hover { transform: translateY(-1px); }
.df-btn:focus-visible, a:focus-visible, summary:focus-visible, .df-burger:focus-visible { outline: 3px solid var(--df-yellow); outline-offset: 2px; }
.df-btn--primary { background: var(--df-primary); color: #fff; box-shadow: 0 6px 18px rgba(115, 80, 241, .3); }
.df-btn--accent { background: var(--df-accent); color: var(--df-ink); box-shadow: 0 6px 18px rgba(255, 163, 0, .35); }
.df-btn--ghost { background: transparent; color: var(--df-primary); border-color: var(--df-primary); }
.df-btn--lg { padding: 14px 28px; font-size: 16px; }
.df-btn--block { width: 100%; }

/* Header */
.df-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--df-line); }
.df-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.df-brand img { height: 30px; width: auto; }
.df-brand span { font-weight: 800; font-size: 22px; color: var(--df-primary); }
.df-burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.df-burger span { width: 24px; height: 2px; background: var(--df-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.df-header.is-open .df-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.df-header.is-open .df-burger span:nth-child(2) { opacity: 0; }
.df-header.is-open .df-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.df-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--df-white); border-bottom: 1px solid var(--df-line); padding: 8px 16px 20px; box-shadow: var(--df-shadow); }
.df-header.is-open .df-nav { display: block; }
.df-nav ul { list-style: none; margin: 0; padding: 0; }
.df-nav li a { display: block; padding: 12px 4px; color: var(--df-ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--df-line); }
.df-nav__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* Hero (option B) */
.df-hero { padding: 40px 0 32px; background: radial-gradient(circle at 90% 10%, rgba(255, 224, 0, .18), transparent 40%), var(--df-white); }
.df-hero__grid { display: grid; gap: 32px; align-items: center; }
.df-hero h1 { font-size: clamp(30px, 7vw, 54px); font-weight: 800; letter-spacing: -.5px; }
.df-hl { display: block; background: linear-gradient(90deg, var(--df-primary), var(--df-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.df-lead { font-size: 17px; color: var(--df-muted); max-width: 560px; }
.df-chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.df-chips li { background: #fff4dc; color: #7a4d00; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.df-chips i { color: var(--df-accent); }
.df-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.df-hero__art { background: linear-gradient(135deg, var(--df-yellow) 0%, var(--df-accent) 40%, var(--df-primary) 100%); border-radius: 24px; padding: 20px; }
.df-hero__art img { border-radius: 14px; box-shadow: 0 20px 40px rgba(31, 27, 58, .25); }
.df-mock { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 20px 40px rgba(31, 27, 58, .25); }
.df-mock__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.df-mock__tiles span { height: 48px; border-radius: 10px; background: var(--df-primary); }
.df-mock__tiles span:nth-child(2) { background: var(--df-accent); }
.df-mock__tiles span:nth-child(3) { background: var(--df-yellow); }
.df-mock__bar { height: 10px; border-radius: 6px; background: var(--df-line); margin: 8px 0; }
.df-mock__bar.w70 { width: 70%; } .df-mock__bar.w85 { width: 85%; }
.df-mock__chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 14px; }
.df-mock__chart i { flex: 1; background: linear-gradient(var(--df-primary), #a48cf7); border-radius: 6px 6px 0 0; }
.df-mock__chart i:nth-child(1) { height: 35%; } .df-mock__chart i:nth-child(2) { height: 55%; } .df-mock__chart i:nth-child(3) { height: 45%; }
.df-mock__chart i:nth-child(4) { height: 75%; } .df-mock__chart i:nth-child(5) { height: 60%; } .df-mock__chart i:nth-child(6) { height: 95%; background: linear-gradient(var(--df-accent), #ffc961); }

/* Steps strip */
.df-steps { background: var(--df-tint); padding: 36px 0; }
.df-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.df-steps__list li { background: var(--df-white); border-radius: var(--df-radius); padding: 20px; box-shadow: var(--df-shadow); }
.df-steps__num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--df-primary); color: #fff; font-weight: 700; margin-bottom: 10px; }
.df-steps__list li:nth-child(2) .df-steps__num { background: var(--df-accent); color: var(--df-ink); }
.df-steps__list li:nth-child(3) .df-steps__num { background: var(--df-yellow); color: var(--df-ink); }
.df-steps h3 { font-size: 17px; }
.df-steps p { color: var(--df-muted); margin: 0; font-size: 15px; }

/* Sections */
.df-section { padding: 56px 0; }
.df-section--tint { background: var(--df-tint); }
.df-section__head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.df-section__head p { color: var(--df-muted); }
.df-h2 { font-size: clamp(24px, 5vw, 36px); font-weight: 800; }
.df-grid { display: grid; gap: 20px; }

.df-card { background: var(--df-white); border: 1px solid var(--df-line); border-radius: var(--df-radius); padding: 24px; transition: box-shadow .2s, transform .2s; }
.df-card:hover { box-shadow: var(--df-shadow); transform: translateY(-2px); }
.df-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(115, 80, 241, .1); color: var(--df-primary); font-size: 22px; margin-bottom: 14px; }
.df-grid .df-card:nth-child(3n+2) .df-card__icon { background: rgba(255, 163, 0, .14); color: #c77f00; }
.df-card h3 { font-size: 18px; }
.df-card p { color: var(--df-muted); margin: 0; font-size: 15px; }

.df-split { display: grid; gap: 32px; align-items: center; }
.df-split__img { border-radius: 20px; box-shadow: var(--df-shadow); }
.df-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.df-benefits li { display: flex; gap: 14px; }
.df-benefits i { color: var(--df-primary); font-size: 22px; margin-top: 2px; }
.df-benefits h3 { font-size: 17px; margin-bottom: 4px; }
.df-benefits p { margin: 0; color: var(--df-muted); font-size: 15px; }

/* Pricing */
.df-plan { position: relative; background: var(--df-white); border: 1px solid var(--df-line); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; }
.df-plan--popular { border: 2px solid var(--df-accent); box-shadow: 0 16px 40px rgba(255, 163, 0, .2); }
.df-plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--df-accent); color: var(--df-ink); font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.df-plan h3 { font-size: 20px; }
.df-plan__desc { color: var(--df-muted); font-size: 14px; }
.df-plan__price { margin: 8px 0; }
.df-plan__amt { font-size: 38px; font-weight: 800; color: var(--df-primary); }
.df-plan__per { color: var(--df-muted); font-size: 14px; }
.df-plan__setup { font-size: 13px; color: var(--df-muted); margin: 0 0 6px; }
.df-plan__trial { display: inline-block; align-self: flex-start; background: #fff4dc; color: #7a4d00; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.df-plan__list { list-style: none; padding: 0; margin: 12px 0 24px; flex: 1; }
.df-plan__list li { padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--df-line); }
.df-plan__list i { color: var(--df-primary); margin-right: 6px; }

/* Testimonials */
.df-quote { margin: 0; background: var(--df-white); border-radius: var(--df-radius); padding: 24px; box-shadow: var(--df-shadow); display: flex; flex-direction: column; gap: 14px; }
.df-quote blockquote { margin: 0; font-size: 15px; }
.df-quote figcaption { display: flex; align-items: center; gap: 12px; }
.df-quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.df-quote small { display: block; color: var(--df-muted); }
.df-stars i { color: #d9d6ea; } .df-stars i.on { color: var(--df-accent); }

/* FAQ */
.df-faq { border: 1px solid var(--df-line); border-radius: 14px; margin-bottom: 12px; background: var(--df-white); }
.df-faq summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 600; list-style: none; position: relative; }
.df-faq summary::-webkit-details-marker { display: none; }
.df-faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--df-primary); }
.df-faq[open] summary::after { content: '–'; }
.df-faq__a { padding: 0 20px 18px; color: var(--df-muted); }

/* Blog */
.df-post { background: var(--df-white); border: 1px solid var(--df-line); border-radius: var(--df-radius); overflow: hidden; display: flex; flex-direction: column; }
.df-post__img { display: block; aspect-ratio: 16 / 9; background: var(--df-tint); }
.df-post__img img { width: 100%; height: 100%; object-fit: cover; }
.df-post__ph { display: grid; place-items: center; height: 100%; font-size: 36px; color: var(--df-primary); opacity: .4; }
.df-post__body { padding: 18px 20px 22px; }
.df-post time { font-size: 13px; color: var(--df-muted); }
.df-post h2, .df-post h3 { font-size: 18px; margin: 6px 0 8px; }
.df-post h2 a, .df-post h3 a { color: var(--df-ink); text-decoration: none; }
.df-post h2 a:hover, .df-post h3 a:hover { color: var(--df-primary); }
.df-post p { color: var(--df-muted); font-size: 14px; margin: 0; }
.df-pagehead { padding: 40px 0 16px; background: var(--df-tint); }
.df-pagehead h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; }
.df-crumbs { font-size: 14px; color: var(--df-muted); margin-bottom: 10px; }
.df-crumbs a { color: var(--df-muted); }
.df-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.df-article__img { border-radius: 18px; margin: 24px 0; width: 100%; }
.df-prose { font-size: 17px; line-height: 1.8; padding: 16px 0 24px; overflow-wrap: anywhere; }
.df-prose h2 { font-size: 26px; margin-top: 1.4em; }
.df-prose h3 { font-size: 21px; margin-top: 1.2em; }
.df-prose img { border-radius: 12px; margin: 1em 0; }
.df-prose blockquote { border-left: 4px solid var(--df-accent); margin: 1em 0; padding: .4em 1em; background: var(--df-tint); }
.df-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.df-prose td, .df-prose th { border: 1px solid var(--df-line); padding: 8px; }
.df-prose pre { overflow-x: auto; background: var(--df-tint); padding: 12px; border-radius: 8px; }

/* CTA band */
.df-cta { background: linear-gradient(120deg, var(--df-primary), #5a35e0); color: #fff; padding: 48px 0; }
.df-cta__inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.df-cta p { opacity: .9; margin: 0; }

/* Contact */
.df-contact { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.df-contact li { display: flex; gap: 12px; align-items: flex-start; }
.df-contact i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(115, 80, 241, .1); color: var(--df-primary); flex-shrink: 0; }
.df-contact a, .df-contact span { color: var(--df-ink); text-decoration: none; padding-top: 8px; overflow-wrap: anywhere; }
.df-map { width: 100%; min-height: 300px; border: 0; border-radius: 18px; }

/* Footer */
.df-footer { background: var(--df-ink); color: #cfcbe6; padding: 48px 0 0; }
.df-footer a { color: #cfcbe6; }
.df-footer__grid { display: grid; gap: 28px; }
.df-footer__logo { height: 30px; width: auto; margin-bottom: 14px; filter: brightness(1.15); background: #fff; padding: 6px 10px; border-radius: 8px; box-sizing: content-box; }
.df-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.df-footer__links a { text-decoration: none; }
.df-footer__links a:hover { color: var(--df-yellow); }
.df-socials { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.df-socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); text-decoration: none; }
.df-socials a:hover { background: var(--df-accent); color: var(--df-ink); }
.df-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 16px; margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* ≥640px */
@media (min-width: 640px) {
    .df-grid--3, .df-grid--plans { grid-template-columns: repeat(2, 1fr); }
    .df-steps__list { grid-template-columns: repeat(3, 1fr); }
    .df-footer__grid { grid-template-columns: 2fr 1fr; }
}

/* ≥960px */
@media (min-width: 960px) {
    .df-burger { display: none; }
    .df-nav { display: flex !important; position: static; align-items: center; gap: 28px; padding: 0; border: 0; box-shadow: none; background: transparent; }
    .df-nav ul { display: flex; gap: 24px; }
    .df-nav li a { border: 0; padding: 6px 0; font-size: 15px; }
    .df-nav li a:hover { color: var(--df-primary); }
    .df-nav__actions { margin: 0; }
    .df-hero { padding: 72px 0 56px; }
    .df-hero__grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
    .df-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .df-grid--plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .df-split { grid-template-columns: 1fr 1fr; gap: 56px; }
    .df-split--single { grid-template-columns: 1fr; }
    .df-section { padding: 80px 0; }
    .df-cta__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Grid items must be allowed to shrink below their content width (no horizontal scroll on phones). */
.df-hero__grid > *, .df-grid > *, .df-split > *, .df-steps__list > * { min-width: 0; }

/* Visually hidden but read by search engines and screen readers (fallback h1). */
.df-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.df-hero__title { font-size: clamp(30px, 7vw, 54px); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }

/* Embeds in blog posts (YouTube, maps, video) never overflow on phones. */
.df-prose iframe, .df-prose video, .df-prose embed { max-width: 100%; }
.df-prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
