/* CardTill website. Colors come from the v4 app palettes (light and Charcoal dark). */
:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-alt: #f1f2f4;
  --border: #d5dce0;
  --hairline: #eceef0;
  --text: #131b24;
  --muted: #55616e;
  --secondary: #3b4652;
  --primary: #007a5a;
  --primary-soft: #e3f1eb;
  --on-primary: #ffffff;
  --green-text: #00634a;
  --warn: #7a4f08;
  --warn-soft: #f5e6c6;
  --ink: #0b1419;
  --on-ink: #ffffff;
  --shadow: 0 1px 2px rgba(11, 20, 25, .06), 0 8px 24px rgba(11, 20, 25, .06);
  --logo-light: block;
  --logo-dark: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151617;
    --surface: #1e1f21;
    --surface-alt: #262829;
    --border: #2a2c2e;
    --hairline: #2a2c2e;
    --text: #eef0f1;
    --muted: #bfc3c7;
    --secondary: #bfc3c7;
    --primary: #2fd0a0;
    --primary-soft: #1c3a32;
    --on-primary: #06130f;
    --green-text: #2fd0a0;
    --warn: #f2b45a;
    --warn-soft: #382c14;
    --ink: #1e1f21;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --logo-light: none;
    --logo-dark: block;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav.main a { color: var(--secondary); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
nav.main a:hover { background: var(--surface-alt); }
nav.main a[aria-current="page"] { color: var(--green-text); background: var(--primary-soft); }
nav.main a.cta { background: var(--primary); color: var(--on-primary); }
nav.main a.cta:hover { filter: brightness(1.06); }
.menu-btn { display: none; margin-left: auto; background: var(--surface-alt); border: 0; color: var(--text); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--hairline); flex-direction: column; align-items: stretch; padding: 8px 20px 16px; margin: 0; }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 14px; font-size: 17px; }
}

/* type */
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--secondary); max-width: 38em; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--green-text); margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 999px; background: var(--primary); color: var(--on-primary); border: 2px solid var(--primary); font-size: 16px; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--green-text); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-alt); filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* sections */
section { padding: 72px 0; }
section.tint { background: var(--surface); border-block: 1px solid var(--hairline); }
section.ink { background: var(--ink); color: var(--on-ink); }
section.ink .lead, section.ink p { color: #d5dce0; }
section.ink .eyebrow { color: #2fd0a0; }
section.ink .btn { background: #2fd0a0; border-color: #2fd0a0; color: #06130f; }
section.ink .btn.ghost { background: transparent; color: #fff; border-color: #55616e; }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* hero */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.tagline { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: 28px; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* illustrative phone */
.phone { width: min(300px, 80vw); margin: 0 auto; background: var(--surface); border: 8px solid var(--ink); border-radius: 40px; box-shadow: var(--shadow); padding: 18px 14px 16px; }
@media (prefers-color-scheme: dark) { .phone { border-color: #3a3c3f; } }
.phone .bar { width: 70px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 14px; }
.phone .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.phone .big { font-size: 34px; font-weight: 800; color: var(--green-text); letter-spacing: -.02em; line-height: 1.1; }
.phone .trend { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.phone .btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 12px; }
.phone .btns span { text-align: center; font-size: 11px; font-weight: 700; padding: 8px 0; border-radius: 12px; background: var(--primary-soft); color: var(--green-text); }
.phone .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hairline); }
.phone .thumb { width: 30px; height: 40px; border-radius: 5px; background: linear-gradient(135deg, var(--primary-soft), var(--surface-alt)); border: 1px solid var(--border); flex: none; }
.phone .row b { display: block; font-size: 12.5px; line-height: 1.25; }
.phone .row i { font-style: normal; font-size: 11px; color: var(--muted); }
.phone .row em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 13px; }
.phone .live { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.phone .live s { text-decoration: none; color: #2fd0a0; }
.phone-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
section.tint .card { background: var(--bg); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--green-text); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }

.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 6px 0 6px 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6' fill='none' stroke='%23007a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (prefers-color-scheme: dark) { .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6' fill='none' stroke='%232fd0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
.ticks li.no { color: var(--muted); }
.ticks li.no::before { background: var(--surface-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' fill='none' stroke='%2355616e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--hairline); }
.feature:first-of-type { border-top: 0; }
.feature .panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.feature.flip .text { order: 2; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: 20px; } .feature.flip .text { order: 0; } }
.stat { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 15px; }
.stat:first-child { border-top: 0; }
.stat b { font-weight: 800; }
.stat .g { color: var(--green-text); }

/* pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.plan.pick { border: 2.5px solid var(--primary); box-shadow: var(--shadow); background: var(--bg); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--primary-soft); color: var(--green-text); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.plan .tag.plain { background: var(--surface-alt); color: var(--muted); }
.plan h3 { font-size: 1.5rem; margin-bottom: .1em; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .yr { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.plan .desc { color: var(--secondary); min-height: 3.2em; }
.plan .ticks { margin-top: 12px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.table-wrap { overflow-x: auto; border-radius: 16px; }
table.compare th, table.compare td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--hairline); vertical-align: top; }
table.compare thead th { background: var(--surface); border-top: 0; font-size: 14px; }
table.compare td:first-child, table.compare th:first-child { font-weight: 600; }
.soon { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--warn-soft); color: var(--warn); padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }

/* faq */
details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 0 20px; margin-bottom: 10px; }
details[open] { background: var(--bg); box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green-text); }
details[open] summary::after { content: "\2212"; }
details p, details ul { color: var(--secondary); }
details > :last-child { margin-bottom: 20px; }

/* legal */
.legal { padding: 8px 0 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-top: 48px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.6em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: .3em 0; }
.legal hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5em 0; }
.legal code { background: var(--surface-alt); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.legal mark.todo { background: var(--warn-soft); color: var(--warn); padding: 1px 5px; border-radius: 5px; font-weight: 600; }
.toc { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 16px 20px; margin: 24px 0; font-size: 15px; }
.toc b { display: block; margin-bottom: 6px; }
.toc a { display: inline-block; margin: 2px 14px 2px 0; }

/* support form-less contact */
.contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.big-mail { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 800; word-break: break-all; }

/* footer */
footer.site { border-top: 1px solid var(--hairline); padding: 48px 0 56px; background: var(--surface); font-size: 15px; }
footer.site .cols { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > :first-child { grid-column: 1 / -1; } }
footer.site h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 6px 0; }
footer.site a { color: var(--secondary); text-decoration: none; }
footer.site a:hover { color: var(--green-text); text-decoration: underline; }
footer.site .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { header.site, footer.site, .menu-btn { display: none; } body { font-size: 12pt; } }
