/* daecha.io landing. Brand: brand.daecha.io (Pine / Deep pine / Ink / Frost / Jade, Onest).
   Standalone stylesheet, not part of app.min.css. Everything is scoped under .dl. */

.dl {
    --pine: #0e5a52;
    --deep: #0c3b36;
    --ink: #10201e;
    --frost: #e9f2ef;
    --jade: #3fa98f;
    --muted: #5d6b69;
    --paper: #f6faf8;
    --line: #cfdcd8;

    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;

    margin: 0;
    background: var(--frost);
    color: var(--ink);
    font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.dl *, .dl *::before, .dl *::after { box-sizing: border-box; }
/* :where() keeps the reset at zero specificity so component classes always win. */
:where(.dl) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.dl) :where(ul, ol) { list-style: none; }
:where(.dl) :where(a) { color: inherit; }
.dl :focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 4px; }

.dl-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--s3); }

/* Nav */
.dl-nav { padding: var(--s3) 0; }
.dl-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.dl-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.dl-logo span { font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.dl-logo-mark { width: 30px; height: 30px; color: var(--pine); flex: none; }
.dl-logo-light { color: #fff; }
.dl-logo-light .dl-logo-mark { color: #fff; --dl-mark-ink: var(--deep); }
.dl-nav-links { display: flex; gap: var(--s3); font-size: 15px; font-weight: 500; }
.dl-nav-links a { text-decoration: none; color: var(--muted); }
.dl-nav-links a:hover { color: var(--ink); }
.dl-nav-links { align-items: center; }
.dl-nav-links .dl-nav-cta { color: var(--pine); font-weight: 600; padding: 8px 14px; border: 1.5px solid var(--pine); border-radius: 10px; }
.dl-nav-links .dl-nav-cta:hover { background: var(--pine); color: #fff; }

/* Hero */
.dl-hero { padding: var(--s5) 0 var(--s6); }
.dl-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--s5); align-items: center; }
.dl-hero-title {
    font-weight: 800;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--deep);
    text-wrap: balance;
}
.dl-hero-sub { margin-top: var(--s3); max-width: 34em; font-size: 19px; color: var(--muted); }
.dl-btn {
    display: inline-block; margin-top: var(--s4);
    padding: 14px 22px; border-radius: 12px;
    background: var(--pine); color: #fff; text-decoration: none;
    font-weight: 600; font-size: 16px;
}
.dl-btn:hover { background: var(--deep); }

.dl-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.dl-hero-actions .dl-btn { margin-top: 0; }
.dl-link { font-weight: 600; color: var(--pine); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.dl-link:hover { color: var(--deep); }
.dl-for { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); max-width: 34em; font-size: 15px; color: var(--muted); }

/* Valuation meter: the one loud thing on the page */
.dl-meter {
    background: var(--deep);
    color: var(--frost);
    border-radius: 24px;
    padding: var(--s3) var(--s3) var(--s2);
}
.dl-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,0.06); border-radius: 12px; }
.dl-tab {
    flex: 1; border: 0; background: transparent; color: rgba(233,242,239,0.7);
    font: inherit; font-size: 14px; font-weight: 500;
    padding: 8px 10px; border-radius: 9px; cursor: pointer;
}
.dl-tab:hover { color: #fff; }
.dl-tab[aria-selected="true"] { background: var(--frost); color: var(--deep); }
.dl-meter .dl-tab:focus-visible, .dl-meter input:focus-visible { outline-color: var(--jade); }

.dl-meter-head { margin-top: var(--s3); }
.dl-meter-object { font-size: 14px; color: rgba(233,242,239,0.7); }
.dl-meter-big {
    margin-top: 6px;
    font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums; color: #fff;
}
.dl-meter-big-label { margin-top: 6px; font-size: 14px; color: var(--jade); }

.dl-chart { display: block; width: 100%; height: auto; margin-top: var(--s2); overflow: visible; }
.dl-chart-curve { fill: none; stroke: var(--jade); stroke-width: 2.5; stroke-linejoin: round; }
.dl-chart-curve.is-drawing { transition: stroke-dashoffset 1.1s cubic-bezier(.3,.1,.2,1); }
.dl-chart-band { fill: var(--jade); opacity: 0.22; }
.dl-chart-base { stroke: rgba(233,242,239,0.25); stroke-width: 1; }
.dl-chart-marker { stroke: #fff; stroke-width: 1.5; }
.dl-chart-dot { fill: #fff; }
.dl-chart-tick { fill: rgba(233,242,239,0.55); font-size: 12px; font-family: inherit; font-variant-numeric: tabular-nums; }

.dl-meter-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid rgba(233,242,239,0.14); }
.dl-meter-facts dt { font-size: 13px; color: rgba(233,242,239,0.65); }
.dl-meter-facts dd { margin-top: 2px; white-space: nowrap; font-size: 18px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

.dl-slider { display: block; margin-top: var(--s3); }
.dl-slider-row { display: flex; justify-content: space-between; font-size: 14px; color: rgba(233,242,239,0.8); }
.dl-slider-row output { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.dl-slider input { width: 100%; margin: 10px 0 0; accent-color: var(--jade); cursor: pointer; }
.dl-meter-caption { margin-top: var(--s2); font-size: 12px; color: rgba(233,242,239,0.5); }

/* Section headings */
.dl-h2 {
    font-weight: 800;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--deep);
    max-width: 18ch;
}

.dl-h2-light { color: #fff; }
.dl-lead { margin-top: var(--s2); max-width: 36em; font-size: 18px; color: var(--muted); }

/* Products: one block per product, features as a two-column list */
.dl-products { background: var(--paper); padding: var(--s6) 0; }
.dl-product {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: var(--s5);
    padding: var(--s5) 0;
    border-top: 1px solid var(--line);
}
.dl-products .dl-lead + .dl-product { margin-top: var(--s5); }
.dl-product-head h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--deep); }
.dl-product-head p { margin-top: var(--s2); color: var(--muted); }
.dl-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s4); }
.dl-feats li { color: var(--muted); font-size: 16px; padding-left: var(--s2); border-left: 2px solid var(--jade); }
.dl-feats strong { display: block; color: var(--ink); font-weight: 600; font-size: 17px; margin-bottom: 4px; }

/* Custom software */
.dl-custom { background: var(--paper); padding: var(--s6) 0; }
.dl-custom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s5); align-items: start; }
.dl-custom-list li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.dl-custom-list li:first-child { border-top: 1px solid var(--line); }
.dl-custom-list h3 { font-size: 18px; font-weight: 600; color: var(--deep); }
.dl-custom-list p { color: var(--muted); }

/* Cases: the proof, on the brand's dark ground */
.dl-case { background: var(--deep); color: rgba(233,242,239,0.8); padding: var(--s6) 0; }
.dl-case-item { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid rgba(233,242,239,0.2); }
.dl-case-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.dl-case-text { margin-top: var(--s2); max-width: 44em; font-size: 18px; }
.dl-case-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.dl-case-figs dt { font-weight: 800; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.035em; color: #fff; font-variant-numeric: tabular-nums; }
.dl-case-figs dd { margin-top: var(--s1); max-width: 24ch; }

/* Widgets: text + a mock of a part card with our widget docked on it */
.dl-widgets { padding: var(--s6) 0; }
.dl-widgets-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: var(--s5); align-items: center; }
.dl-widget-list { margin-top: var(--s4); }
.dl-widget-list li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.dl-widget-list h3 { font-size: 18px; font-weight: 600; color: var(--deep); }
.dl-widget-list p { margin-top: 4px; color: var(--muted); font-size: 16px; }

.dl-mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(12,59,54,0.45); font-size: 14px; }
.dl-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef3f1; border-bottom: 1px solid var(--line); }
.dl-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfdcd8; }
.dl-mock-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--muted); }
.dl-mock-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s2); padding: var(--s2); }
.dl-mock-photo { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, #dfe8e5, #cad8d4); display: grid; place-items: center; }
.dl-mock-photo svg { width: 78%; height: auto; }
.dl-mock-title { margin-top: 10px; font-weight: 600; color: var(--ink); }
.dl-mock-sub { margin-top: 2px; color: var(--muted); font-size: 12px; }
.dl-mock-sub b { color: var(--ink); }
.dl-mock-widget { border: 1.5px solid var(--pine); border-radius: 12px; padding: 12px; background: var(--paper); }
.dl-mock-w-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--pine); }
.dl-mock-w-head svg { width: 16px; height: 16px; color: var(--pine); }
.dl-mock-w-price { margin-top: 6px; font-weight: 800; font-size: 28px; letter-spacing: -0.03em; color: var(--deep); font-variant-numeric: tabular-nums; }
.dl-mock-w-note { font-size: 12px; color: #a3352b; }
.dl-mock-bars { margin-top: 10px; display: grid; gap: 6px; }
.dl-mock-bars li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.dl-mock-bars i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--jade) var(--w), #e1e9e6 var(--w)); }
.dl-mock-bars b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-mock-actions { display: flex; gap: 6px; margin-top: 12px; }
.dl-mock-actions span { flex: 1; text-align: center; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; color: var(--ink); }
.dl-mock-actions .is-main { background: var(--pine); border-color: var(--pine); color: #fff; }

/* Contact: a short note with the address */
.dl-contact { background: var(--paper); padding: var(--s5) 0; }
.dl-contact-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--deep); }
.dl-contact-text { margin-top: var(--s1); color: var(--muted); }
.dl-contact-text a { color: var(--pine); font-weight: 600; }
.dl-contact-text a:hover { color: var(--deep); }

/* How it works: a real sequence, drawn as a pipeline */
.dl-how { padding: var(--s6) 0; }
.dl-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.dl-step { counter-increment: step; position: relative; padding-top: var(--s4); text-align: center; }
.dl-step::before {
    content: counter(step);
    position: absolute; top: 0; left: 50%;
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--pine); color: #fff; font-size: 14px; font-weight: 600;
    transform: translate(-50%, -50%);
}
/* Connector runs from this circle's centre to the next one's, across the gap. */
.dl-step::after {
    content: ''; position: absolute; top: 0;
    left: calc(50% + 22px); right: calc(-50% - var(--s4) + 22px);
    height: 2px; background: var(--line); transform: translateY(-1px);
}
.dl-step:last-child::after { display: none; }
.dl-step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--deep); }
.dl-step p { margin-top: var(--s1); color: var(--muted); max-width: 32ch; margin-left: auto; margin-right: auto; }

/* Footer */
.dl-footer { background: var(--deep); color: rgba(233,242,239,0.75); padding: var(--s5) 0 var(--s3); font-size: 15px; }
.dl-footer-grid { display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: start; }
.dl-footer-note { margin-top: var(--s2); max-width: 30ch; }
.dl-footer-company { color: #fff; font-weight: 600; }
.dl-footer address { font-style: normal; margin-top: 4px; max-width: 32ch; }
.dl-footer address a { color: #fff; }
.dl-footer-copy { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(233,242,239,0.14); font-size: 13px; color: rgba(233,242,239,0.5); }

/* Responsive */
@media (max-width: 960px) {
    .dl-hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
    .dl-meter { max-width: 560px; }
    .dl-product { grid-template-columns: 1fr; gap: var(--s3); }
    .dl-custom-grid, .dl-widgets-grid { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (max-width: 720px) {
    .dl { font-size: 16px; }
    .dl-wrap { padding: 0 var(--s2); }
    .dl-nav-links { gap: var(--s2); font-size: 14px; }
    .dl-nav-links a:not(.dl-nav-cta) { display: none; }
    .dl-hero { padding: var(--s4) 0 var(--s5); }
    .dl-hero-sub { font-size: 17px; }
    .dl-meter { padding: var(--s2); border-radius: 20px; }
    .dl-meter-big { font-size: 42px; }
    .dl-products, .dl-custom, .dl-case, .dl-how, .dl-widgets { padding: var(--s5) 0; }
    .dl-mock-body { grid-template-columns: 1fr; }
    .dl-mock-photo { aspect-ratio: 16 / 7; }
    .dl-contact { padding: var(--s4) 0; }
    .dl-feats { grid-template-columns: 1fr; gap: var(--s3); }
    .dl-custom-list li { grid-template-columns: 1fr; gap: 4px; }
    .dl-case-figs { grid-template-columns: 1fr; gap: var(--s3); }
    .dl-steps { grid-template-columns: 1fr; gap: var(--s4); }
    .dl-step { text-align: left; }
    .dl-step::before { left: 0; transform: translateY(-50%); }
    .dl-step::after { display: none; }
    .dl-step p { margin-left: 0; }
    .dl-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .dl-chart-curve.is-drawing { transition: none; }
}

/* ---------- SMS Chat pricing + checkout (/sms-chat) ---------- */
.dl-sandbox { background: #fff3cd; color: #6b4e00; text-align: center; font-size: 14px; padding: 8px 16px; }
.dl-pay { padding: var(--s5) 0 var(--s6); }
.dl-pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--s5); align-items: start; }
.dl-pay-feats { margin-top: var(--s3); display: grid; gap: var(--s1); }
.dl-pay-feats li { padding-left: var(--s3); position: relative; color: var(--ink); }
.dl-pay-feats li::before { content: ''; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); }
.dl-pay-trial { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted); max-width: 34em; }
.dl-pay-trial a { color: var(--pine); font-weight: 600; }

.dl-plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: var(--s3); box-shadow: 0 24px 48px -32px rgba(12,59,54,0.45); }
.dl-plan-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.dl-plan-k { font-size: 14px; font-weight: 600; color: var(--deep); }
.dl-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dl-stepper button { width: 40px; height: 40px; border: 0; background: var(--frost); color: var(--deep); font: inherit; font-size: 20px; cursor: pointer; }
.dl-stepper button:hover { background: #dcebe6; }
.dl-stepper input { width: 56px; height: 40px; border: 0; text-align: center; font: inherit; font-weight: 600; font-size: 17px; color: var(--ink); -moz-appearance: textfield; }
.dl-stepper input::-webkit-outer-spin-button, .dl-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.dl-periods { border: 0; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s1); }
.dl-periods legend { padding: 0; margin-bottom: var(--s1); }
.dl-period { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.dl-period input { accent-color: var(--pine); margin: 0; }
.dl-period:has(input:checked) { border-color: var(--pine); background: var(--frost); }
.dl-period-name { font-weight: 500; }
.dl-period-name em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--pine); margin-left: 4px; }
.dl-period-price { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

.dl-plan-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.dl-plan-sum { font-weight: 800; font-size: 36px; letter-spacing: -0.03em; color: var(--deep); font-variant-numeric: tabular-nums; }
.dl-plan-tax { min-height: 1.4em; font-size: 13px; color: var(--muted); text-align: right; }
.dl-plan-buy { width: 100%; margin-top: var(--s2); border: 0; cursor: pointer; font-family: inherit; }
.dl-plan-buy:disabled { opacity: 0.55; cursor: default; }
.dl-plan-error { margin-top: var(--s1); color: #a3352b; font-size: 14px; }
.dl-plan-error[hidden] { display: none; }
.dl-plan-note { margin-top: var(--s2); font-size: 13px; color: var(--muted); }
.dl-welcome { min-height: 50vh; }

@media (max-width: 960px) {
    .dl-pay-grid { grid-template-columns: 1fr; }
    .dl-plan { max-width: 520px; }
}
