:root {
  --navy: #0b1f33;
  --teal: #0d7c72;
  --teal-bright: #2dd4bf;
  --mint: #f2faf8;
  --mint-2: #e3f4f1;
  --line: #cfe3df;
  --text: #0b1f33;
  --muted: #4a5d6e;
  --white: #ffffff;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --radius: 18px;
  --max: 1120px;
  --sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, 'PingFang TC', 'PingFang SC', 'Microsoft JhengHei', 'Microsoft YaHei', sans-serif;
  --display: 'Sora', var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mint); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.ti { line-height: 1; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(242, 250, 248, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--teal); }
.lang { display: flex; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang a.on { background: var(--navy); color: var(--white); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--teal); color: var(--white); font-weight: 700; text-decoration: none; border: 0; font-size: 16px; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn.small { padding: 9px 16px; font-size: 14px; }
@media (max-width: 860px) { .nav .hide-sm { display: none; } }
@media (max-width: 560px) { .nav > .btn { display: none; } .top .wrap { gap: 10px; } .logo img { height: 28px; } }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.points li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.points .ti { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--mint-2); color: var(--teal); flex: none; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero .small-note { font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero .small-note span { display: inline-flex; gap: 6px; align-items: center; }
.tag { display: inline-flex; gap: 8px; align-items: center; background: var(--white); border: 1px solid var(--line); color: var(--teal); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Phone mock */
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: var(--navy); border-radius: 44px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(11, 31, 51, 0.45); }
.screen { background: var(--mint); border-radius: 32px; padding: 20px 16px 0; height: 600px; display: flex; flex-direction: column; overflow: hidden; }
.screen .content { flex: 1; overflow: hidden; }
.tabbar { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 -16px; padding: 8px 10px 14px; background: var(--white); border-top: 1px solid var(--line); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.tab .ti { font-size: 22px; }
.tab.on { color: var(--teal); }
.tab.scan { color: var(--teal); }
.scan-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; margin-top: -26px; box-shadow: 0 6px 14px -4px rgba(13, 124, 114, 0.6); border: 4px solid var(--white); }
.scan-btn .ti { font-size: 26px; }
.screen .bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.card .label { font-size: 12px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.card .big { font-family: var(--display); font-size: 28px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.chip.green { background: #dcfce7; color: #15803d; }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.teal { background: var(--mint-2); color: var(--teal); }
.rrow { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 8px; }
.rrow .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; }
.rrow .t { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; }
.rrow .t small { display: block; color: var(--muted); font-weight: 500; }
.rrow .amt { font-weight: 800; font-size: 13px; }

/* Sections */
section { padding: 72px 0; }
.center { text-align: center; }
.section-lead { max-width: 40em; margin: 0 auto 40px; color: var(--muted); font-size: 18px; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .feature { background: var(--mint); }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }
.c-teal { background: #e3f4f1; color: #0d7c72; }
.c-blue { background: #dbeafe; color: #2563eb; }
.c-purple { background: #ede9fe; color: #7c3aed; }
.c-amber { background: #fef3c7; color: #b45309; }
.c-pink { background: #fce7f3; color: #db2777; }
.c-green { background: #dcfce7; color: #16a34a; }
.c-sky { background: #e0f2fe; color: #0284c7; }
.c-slate { background: #e2e8f0; color: #475569; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step .num { position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.step .ic { font-size: 34px; color: var(--teal); margin: 6px 0 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Market example */
.market { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.compare { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.compare .row { display: flex; gap: 12px; margin: 14px 0; }
.compare .box { flex: 1; background: var(--mint); border-radius: 14px; padding: 14px; }
.compare .box b { display: block; font-family: var(--display); font-size: 26px; }
.prices { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prices span { background: var(--mint); padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.prices .avg { background: var(--teal); color: var(--white); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { display: flex; gap: 10px; margin-bottom: 10px; }
.checks .ti { color: var(--teal); font-size: 22px; flex: none; }
@media (max-width: 860px) { .market { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.free { border-color: #94a3b8; }
.plan.plus { border-color: var(--teal); }
.plan.business { border-color: #7c3aed; }
.plan .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.plan .head .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; }
.plan .price { font-family: var(--display); font-size: 34px; font-weight: 700; }
.plan .price small { font-size: 15px; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 6px 0; font-size: 15.5px; }
.plan li .ti { font-size: 20px; color: var(--teal); flex: none; }
.plan li.also { font-weight: 800; color: var(--text); }
.plan li.also .ti { color: var(--text); }
.badge { margin-left: auto; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--mint-2); color: var(--teal); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th { font-family: var(--display); font-size: 17px; background: var(--mint); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--teal); font-size: 22px; }
.compare-table .no { color: #94a3b8; font-size: 20px; }
.compare-table .group td { background: var(--mint); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Download */
.download { background: var(--navy); color: var(--white); border-radius: 28px; padding: 48px 32px; text-align: center; }
.download h2 { color: var(--white); }
.download p { color: #c7d6e2; }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.store { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #3b5268; border-radius: 14px; padding: 10px 18px; color: var(--white); text-decoration: none; text-align: left; }
.store .ti { font-size: 30px; }
.store small { display: block; font-size: 12px; color: #9fb3c4; }
.store b { font-size: 17px; }

/* Footer */
footer { padding: 40px 0 60px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .disclaimer { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Document pages (privacy, terms, security, delete account) */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 40px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc h3 { font-size: 18px; margin-top: 24px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc .box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }
.doc .box h3 { margin-top: 0; }
.doc .icon-list { list-style: none; padding: 0; }
.doc .icon-list li { display: flex; gap: 12px; margin-bottom: 14px; }
.doc .icon-list .ti { font-size: 26px; color: var(--teal); flex: none; }
.notice { background: var(--amber-soft); color: #78350f; border-radius: 14px; padding: 14px 18px; font-size: 15px; display: flex; gap: 10px; }
.todo { background: #fde68a; padding: 0 4px; border-radius: 4px; }

/* The first screen fits in one view on laptops and desktops: everything above the fold. */
@media (min-width: 861px) {
  .hero { padding: 28px 0 32px; min-height: calc(100vh - 70px); display: flex; align-items: center; }
  .hero .wrap { width: 100%; gap: 40px; }
  .hero h1 { font-size: clamp(34px, 3.6vw, 50px); margin-bottom: 10px; }
  .hero .tag { margin-bottom: 12px; }
  .hero .lead { font-size: 17.5px; margin-bottom: 0; }
  .points { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .points li { font-size: 15px; line-height: 1.35; align-items: flex-start; }
  .points .ti { width: 32px; height: 32px; font-size: 18px; }
  .hero .ctas { margin: 20px 0 10px; }
  .phone { width: auto; height: min(640px, calc(100vh - 132px)); aspect-ratio: 300 / 628; }
  .phone .screen { height: 100%; }
}

/* Shorter windows: shrink the first screen to the window's height so nothing needs scrolling. */
@media (min-width: 861px) and (max-height: 760px) {
  .hero { padding: 14px 0; }
  .hero h1 { font-size: clamp(28px, 6.2vh, 44px); }
  .hero .tag { margin-bottom: 8px; padding: 4px 12px; font-size: 13px; }
  .hero .lead { font-size: 16px; line-height: 1.5; }
  .points { margin-top: 10px; gap: 6px; }
  .points li { font-size: 14px; }
  .points .ti { width: 28px; height: 28px; font-size: 16px; border-radius: 9px; }
  .hero .ctas { margin: 14px 0 8px; }
  .hero .ctas .btn { padding: 11px 18px; font-size: 15px; }
  .hero .small-note { font-size: 13px; }
  .phone { height: calc(100vh - 100px); padding: 10px; border-radius: 36px; }
  .phone .screen { border-radius: 28px; }
}
@media (min-width: 861px) and (max-height: 600px) {
  .hero .tag, .hero .small-note { display: none; }
  .hero h1 { font-size: clamp(26px, 6.6vh, 36px); }
  .hero .lead { font-size: 15px; }
  .phone .screen { padding-top: 12px; }
  .screen .bar { font-size: 18px; margin-bottom: 8px; }
}

/* First screen spacing: generous, but measured against the window height so it still fits. */
@media (min-width: 861px) {
  .hero .tag { margin-bottom: clamp(8px, 2.2vh, 22px); }
  .hero h1 { margin-bottom: clamp(10px, 2.2vh, 22px); }
  .hero .lead { max-width: 30em; color: var(--muted); }
  .points { margin-top: clamp(14px, 3.4vh, 34px); gap: clamp(8px, 1.9vh, 18px); }
  .points li { font-size: clamp(14px, 2vh, 16.5px); font-weight: 700; gap: 14px; align-items: center; }
  .points .ti { width: clamp(28px, 4.6vh, 40px); height: clamp(28px, 4.6vh, 40px); font-size: clamp(16px, 2.6vh, 21px); border-radius: 12px; }
  .hero .ctas { margin: clamp(16px, 4vh, 40px) 0 clamp(10px, 2.2vh, 20px); gap: 14px; }
}

.nowrap { white-space: nowrap; }

/* What is Capplio? */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.about-p { font-size: 18px; color: var(--muted); }
.about-p:first-of-type { color: var(--text); font-size: 19px; }
.who { display: grid; gap: 14px; }
.who-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.who-item .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; flex: none; }
.who-item h3 { margin: 0 0 2px; font-size: 18px; }
.who-item p { margin: 0; font-size: 15.5px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* Features: 9 cards in an even 3 x 3 on laptops; 2 across on tablets (the last card spans both); 1 on phones. */
.grid.features { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid.features { grid-template-columns: repeat(2, 1fr); } .grid.features > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .grid.features { grid-template-columns: 1fr; } }

/* For accountants */
.acct-hero { grid-template-columns: 1fr !important; max-width: 820px; }
.acct-note { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 40px auto 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.acct-note > .ti { font-size: 30px; color: var(--teal); flex: none; }
.acct-note p { margin: 0; }
/* 8 boxes: 4 across, 2 across on tablets, 1 on phones, so no row is left half full */
.grid.features.acct-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.features.acct-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.features.acct-grid { grid-template-columns: 1fr; } }
/* Footer social links */
footer .social { display: flex; gap: 10px; }
footer .social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 21px; }
footer .social a:hover { color: var(--teal); border-color: var(--teal); }
