/* House of Kakis: shared styles for every page (landing, /start, /app, /trust).
   White and clean: Geist, soft grey panels, one coral accent for the main action. Large type and tap targets: many
   owners are on a phone, some are older. */
:root {
  --bg: #FFFFFF; --bg-2: #F6F7F9; --fill: #F1F2F5; --card: #FFFFFF; --ink: #0E0F12; --ink-2: #4B4F5A; --ink-3: #5B5F6B; --line: #E8E9ED;
  --coral: #C8431D; --coral-2: #FDF0EB; --leaf: #15803D; --leaf-2: #EAF6EE; --sun: #E8890C; --sun-2: #FFF4DE; --red: #B42318;
  --shadow: 0 1px 2px rgba(14,15,18,.04), 0 8px 24px -12px rgba(14,15,18,.14);
  --serif: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, monospace; --r: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; letter-spacing: -.005em; }
[hidden] { display: none !important; }
a { color: var(--leaf); }
:focus-visible { outline: 3px solid #F5B79F; outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(32px, 6vw, 48px); }
h2 { font-size: clamp(26px, 5vw, 36px); }
h3 { font-size: 20px; letter-spacing: -.02em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lead { color: var(--ink-2); font-size: 19px; }
.hint { color: var(--ink-3); font-size: 16px; }
.ok { color: var(--leaf); font-weight: 600; }
.err { color: var(--red); font-weight: 600; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px var(--sans); letter-spacing: -.02em; }
.mark { width: 32px; height: 32px; border-radius: 10px; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.toplinks { display: flex; gap: 16px; align-items: center; }
.toplinks a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 10px 2px; }
.toplinks a:hover { color: var(--ink); }
.demo-note { background: var(--bg-2); color: var(--ink-2); font-size: 14px; text-align: center; padding: 7px 16px; }

/* stage tracker */
.stages { display: flex; gap: 6px; max-width: 1180px; margin: 0 auto; padding: 10px 16px; overflow: hidden; }
.stages li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-3); white-space: nowrap; padding: 6px 12px 6px 6px; border-radius: 999px; }
.stages li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 14px; }
.stages li[aria-current="step"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.stages li[aria-current="step"] b { background: var(--ink); color: #fff; }
.stages li.done { color: var(--leaf); }
.stages li.done b { background: var(--leaf); color: #fff; }
.stages ol { display: contents; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 14px; font: 600 17px var(--sans);
  border: 0; background: var(--fill); color: var(--ink); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--coral); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.green { background: var(--leaf); color: #fff; }
.btn.quiet { background: var(--fill); }
.btn.small { min-height: 46px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
.btn.link { background: none; padding: 0 8px; text-decoration: underline; color: var(--ink-2); min-height: 48px; }
.btn.danger { background: #FDECEA; color: var(--red); }
.row2 { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* cards, chips, fields */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel { background: var(--bg-2); border-radius: var(--r); padding: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 48px; padding: 8px 18px; border-radius: 999px; border: 2px solid transparent; background: var(--fill); font: 500 16.5px/1.3 var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: 18px; }
input[type=text], input[type=email], input[type=number], input[type=tel], input[type=password], textarea, select {
  width: 100%; min-height: 54px; padding: 12px 16px; font: 18px var(--sans); color: var(--ink); background: var(--bg-2); border: 2px solid transparent; border-radius: 14px; }
textarea { min-height: 56px; resize: none; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); background: var(--card); outline: none; box-shadow: none; }
.tag { white-space: nowrap; display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--coral-2); color: #9A3412; }
.tag.green { background: var(--leaf-2); color: var(--leaf); }
.tag.grey { background: var(--fill); color: var(--ink-2); }
.safe { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); background: var(--bg-2); border-radius: 14px; padding: 12px 14px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(30,107,82,.25); border-top-color: var(--leaf); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.switch { position: relative; width: 64px; height: 36px; flex: none; border-radius: 999px; border: 0; background: #D3D5DB; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: #22A447; }
.switch[aria-checked="true"]::after { transform: translateX(28px); }
.dots { display: flex; gap: 4px; padding: 12px 14px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); opacity: .4; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* app logos (website/icons, simple-icons): the brand mark in its own colour */
.lg { display: inline-block; width: 22px; height: 22px; flex: none; background: var(--c, var(--ink)); -webkit-mask: var(--u) center / contain no-repeat; mask: var(--u) center / contain no-repeat; }
.lg.gmail { --c: #EA4335; --u: url(/icons/gmail.svg); } .lg.sheets { --c: #1E8E3E; --u: url(/icons/googlesheets.svg); }
.lg.slack { --c: #4A154B; --u: url(/icons/slack.svg); } .lg.telegram { --c: #229ED9; --u: url(/icons/telegram.svg); }
.lg.calendar { --c: #1A73E8; --u: url(/icons/googlecalendar.svg); } .lg.whatsapp { --c: #1DA851; --u: url(/icons/whatsapp.svg); }
.lg.xero { --c: #0E8FC0; --u: url(/icons/xero.svg); } .lg.shopee { --c: #EE4D2D; --u: url(/icons/shopee.svg); }
.lg.drive { --c: #1A73E8; --u: url(/icons/googledrive.svg); } .lg.instagram { --c: #D62F5B; --u: url(/icons/instagram.svg); }
.tile-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--card); display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 1px var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
