/**
 * Accounta — marketing site
 * Palette and UI language are taken from the products themselves: the logo's
 * blues, and the green that backs the Takada launcher icon.
 */

/* ---------------------------------------------------------------- tokens */
:root {
  --ink:      #0A1730;   /* deepest navy: headings, dark sections */
  --brand:    #1E3A8A;   /* logo deep blue */
  --brand-2:  #2E7FD0;   /* logo mid blue */
  --sky:      #5CB6DB;   /* the light blue the apps use */
  --green:    #5F8F3C;   /* Takada launcher background = collected / synced */
  --slate:    #5A6B85;   /* secondary text */
  --line:     #DCE5F2;
  --mist:     #EDF2FA;   /* app background tint */
  --paper:    #FFFFFF;

  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1200px;
  --shelf: clamp(64px, 8vw, 118px);
  --r: 14px;   /* card radius */
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--brand-2); }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------ type scale */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; margin: 0; }

.h-xl { font-size: clamp(38px, 5.2vw, 66px); }
.h-lg { font-size: clamp(30px, 3.7vw, 46px); }
.h-md { font-size: clamp(21px, 2vw, 27px); letter-spacing: -0.018em; }

.lede { font-size: clamp(16.5px, 1.2vw, 19.5px); line-height: 1.58; color: var(--slate); max-width: 58ch; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--brand-2); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--sky); }

.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px; border-radius: 10px;
  font-family: var(--ui); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(.92); transform: translateY(-1px); }

/* store badge */
.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 17px 10px 14px; border-radius: 11px;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .16s ease, background .16s ease;
}
.store:hover { background: var(--brand); transform: translateY(-1px); }
.store svg { width: 22px; height: 22px; flex: none; }
.store b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.store span { display: block; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; opacity: .72; line-height: 1.3; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- header */
.masthead { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.brand span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); border-left: 1px solid var(--line); padding-left: 10px; }

.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 9px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav a:hover { background: var(--mist); color: var(--brand); }
.nav .cta { background: var(--brand); color: #fff; margin-left: 8px; padding: 10px 17px; font-weight: 600; }
.nav .cta:hover { background: var(--ink); color: #fff; }

.navtoggle { display: none; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; font: 600 14px var(--ui); color: var(--ink); cursor: pointer; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 78% 8%, rgba(92,182,219,.22), transparent 62%),
    radial-gradient(700px 420px at 8% 0%, rgba(46,127,208,.13), transparent 60%),
    linear-gradient(180deg, var(--mist), var(--paper) 78%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(42px, 5.5vw, 78px) clamp(52px, 6vw, 88px);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(34px, 4.5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero .lede { margin-bottom: 28px; }
.hero .store-row { margin-bottom: 22px; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--slate); margin: 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* ------------------------------------------------- signature: the phones */
.rig { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 1.4vw, 18px); }

.phone {
  position: relative; flex: none;
  width: clamp(150px, 15.5vw, 214px);
  aspect-ratio: 9 / 19.3;
  background: #0C1526;
  border-radius: 26px;
  padding: 6px;
  box-shadow: 0 26px 50px -24px rgba(10,23,48,.5), 0 2px 6px rgba(10,23,48,.18);
}
.phone.side { width: clamp(122px, 12.4vw, 172px); margin-bottom: clamp(16px, 2.6vw, 40px); opacity: .97; }
.phone .screen { width: 100%; height: 100%; border-radius: 21px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }

/* the phone screens are scaled down, so their own type scale is in em */
.screen { font-size: clamp(5.4px, .56vw, 7.6px); }
.phone.side .screen { font-size: clamp(4.6px, .47vw, 6.3px); }

.appbar { padding: 1.5em 1.5em 1.2em; color: #fff; display: flex; align-items: center; gap: .7em; }
.appbar.blue { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.appbar.green { background: linear-gradient(135deg, #4C7530, var(--green)); }
.appbar .dot { width: 1.9em; height: 1.9em; border-radius: .5em; background: rgba(255,255,255,.22); flex: none; }
.appbar b { font-family: var(--display); font-size: 1.65em; font-weight: 700; letter-spacing: -.02em; }
.appbar small { display: block; font-size: 1.05em; opacity: .78; letter-spacing: .04em; }

.appbody { flex: 1; padding: 1.3em; background: var(--mist); display: flex; flex-direction: column; gap: .95em; overflow: hidden; }
.appbody > .foot-chip { margin-top: auto; }

.srow { display: flex; align-items: center; justify-content: space-between; gap: .7em; }
.stitle { font-size: 1.32em; font-weight: 700; letter-spacing: -.01em; }
.smeta { font-size: 1.08em; color: var(--slate); }

/* data table, mirroring the apps' alternating rows */
.stable { background: var(--paper); border-radius: .9em; overflow: hidden; box-shadow: 0 1px 3px rgba(10,23,48,.07); }
.stable .th, .stable .tr {
  display: grid; grid-template-columns: minmax(0, 1fr) 2.4em 5em; gap: .5em;
  padding: .75em .9em; font-size: 1.12em; align-items: center;
}
.stable .th { background: var(--brand); color: #fff; font-weight: 600; font-size: .88em; letter-spacing: 0; }
.stable .tr:nth-child(even) { background: #F5F8FD; }
.stable .tr span:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.stable .th > *, .stable .tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stable .tr b { font-weight: 600; }
.stable .due { color: #C2410C; font-weight: 600; }

/* home-screen tile grid */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .75em; }
.tile { background: var(--paper); border-radius: .9em; padding: .95em .85em; box-shadow: 0 1px 3px rgba(10,23,48,.07); }
.tile i { display: block; width: 2.3em; height: 2.3em; border-radius: .6em; background: var(--mist); margin-bottom: .6em; }
.tile.b i { background: #E2EDFB; } .tile.g i { background: #E9F2E1; } .tile.s i { background: #E4F4FA; }
.tile b { display: block; font-size: 1.18em; font-weight: 600; letter-spacing: -.01em; }
.tile span { font-size: 1em; color: var(--slate); }

/* receipt form on the Takada phone */
.field-m { background: var(--paper); border-radius: .8em; padding: .75em .9em; box-shadow: 0 1px 3px rgba(10,23,48,.07); }
.field-m span { display: block; font-size: .98em; color: var(--slate); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .25em; }
.field-m b { font-size: 1.35em; font-weight: 600; letter-spacing: -.01em; }
.field-m.amt b { font-size: 2.1em; font-weight: 800; font-family: var(--display); color: var(--ink); }

.chip { display: inline-flex; align-items: center; gap: .5em; padding: .45em .8em; border-radius: 2em; font-size: 1.05em; font-weight: 600; }
.chip svg { width: 1.15em; height: 1.15em; }
.chip.grey { background: #E6EAF1; color: var(--slate); }
.chip.green { background: #E6F2DC; color: #3F6626; }
.chip.sky { background: #E0F1F8; color: #17627E; }

.sbtn { margin-top: auto; text-align: center; padding: .95em; border-radius: .8em; background: var(--green); color: #fff; font-size: 1.25em; font-weight: 700; letter-spacing: -.01em; }
.sbtn.blue { background: var(--brand); }

/* the one animated moment: the receipt saving and syncing */
.stack { position: relative; flex: 1; }
.stack > .step {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: .95em;
  transition: opacity .4s ease, transform .4s ease;
}
.stack > .step-2 { opacity: 0; transform: translateY(6px); pointer-events: none; }
.is-live.done .step-1 { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.is-live.done .step-2 { opacity: 1; transform: none; pointer-events: auto; }

/* ------------------------------------------------------------ app blocks */
.apps { padding-block: var(--shelf); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 52px); }
h2 + .lede, h3 + .lede { margin-top: 14px; }

.app {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 68px); align-items: center;
  padding-block: clamp(34px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.app:nth-child(even) .app-art { order: -1; }

.app-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.app-badge i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.app-badge i svg { width: 19px; height: 19px; color: #fff; }
.app-badge.blue i { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.app-badge.green i { background: linear-gradient(135deg, #4C7530, var(--green)); }
.app-badge b { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.app-badge .role { display: block; font-size: 12px; font-weight: 600; color: var(--slate); letter-spacing: .05em; text-transform: uppercase; }

.app h3 { margin-bottom: 12px; }
.app > div > .lede { margin-bottom: 22px; }

.feats { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.feats li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; font-size: 15.5px; }
.feats svg { width: 17px; height: 17px; margin-top: 4px; color: var(--brand-2); }
.feats.g svg { color: var(--green); }
.feats b { font-weight: 600; }

.app-art { display: flex; justify-content: center; }
.app-art .phone { width: clamp(198px, 21vw, 262px); }
.app-art .screen { font-size: clamp(6.6px, .7vw, 9px); }

/* ---------------------------------------------------------- desktop band */
.desk { background: var(--ink); color: rgba(255,255,255,.8); padding-block: var(--shelf); }
.desk h2 { color: #fff; }
.desk .lede { color: rgba(255,255,255,.66); }
.desk .eyebrow { color: var(--sky); }
.desk .eyebrow::before { background: var(--sky); }

.grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vert {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 22px 20px; display: flex; flex-direction: column; gap: 9px;
}
.vert h3 { font-size: 18px; color: #fff; letter-spacing: -.02em; }
.vert p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.62); line-height: 1.55; }
.vert .tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.vert .tags li { font-size: 11.5px; font-weight: 500; letter-spacing: .03em; color: var(--sky); border: 1px solid rgba(92,182,219,.3); border-radius: 20px; padding: 3px 9px; }
.vert a { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--sky); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.vert a:hover { color: #fff; }
.vert a svg { width: 15px; height: 15px; }

/* ----------------------------------------------------------------- firm */
.firm { padding-block: var(--shelf); background: var(--mist); }
.firm .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(30px, 4.5vw, 66px); align-items: center; }
.founder { background: var(--paper); border-radius: var(--r-lg); padding: 12px; box-shadow: 0 16px 40px -26px rgba(10,23,48,.4); max-width: 360px; }
.founder img { border-radius: 14px; width: 100%; }
.founder div { padding: 14px 8px 6px; }
.founder b { display: block; font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.founder span { font-size: 13.5px; color: var(--slate); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.stat span { font-size: 13px; color: var(--slate); }

/* -------------------------------------------------------------- contact */
.contact { padding-block: var(--shelf); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 56px); align-items: start; }

.callout { display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--ink); color: #fff; border-radius: var(--r); padding: 20px 22px; margin-bottom: 14px; }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--sky); }
.callout span { display: block; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; opacity: .6; }
.callout b { display: block; font-family: var(--display); font-size: clamp(20px, 2.2vw, 27px); font-weight: 800; letter-spacing: -.02em; }
.callout:hover { background: var(--brand); }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dfn { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); padding-top: 4px; }
.facts a { color: var(--ink); text-decoration: none; }
.facts a:hover { color: var(--brand-2); }

.form { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.form h3 { margin-bottom: 6px; }
.form > p { margin: 0 0 20px; font-size: 15px; color: var(--slate); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 15.5px var(--ui); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 13px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--brand-2); outline: none; }
.form button { width: 100%; }
.form .loading, .form .error-message, .form .sent-message { display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.form .d-block { display: block; }
.form .error-message { background: #FEECEC; color: #B42318; }
.form .sent-message { background: #E6F2DC; color: #3F6626; }

/* --------------------------------------------------------------- footer */
.foot { background: var(--ink); color: rgba(255,255,255,.62); padding-block: clamp(46px, 5vw, 68px) 26px; font-size: 14.5px; }
.foot a { color: rgba(255,255,255,.62); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 44px); padding-bottom: 32px; }
.foot .brand b { color: #fff; }
.foot .brand span { color: rgba(255,255,255,.5); border-left-color: rgba(255,255,255,.2); }
.foot address { font-style: normal; margin-top: 14px; line-height: 1.7; }
.foot h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 12px; font-family: var(--ui); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; }
.colophon { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.45); }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .rig { margin-top: 8px; }
  .app, .contact-grid, .firm .wrap { grid-template-columns: minmax(0, 1fr); }
  .app:nth-child(even) .app-art { order: 0; }
  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder { max-width: 320px; }
}

@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px -20px rgba(10,23,48,.4); padding: 10px var(--gutter) 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 13px 10px; border-radius: 8px; }
  .nav .cta { margin: 10px 0 0; text-align: center; }
  .navtoggle { display: block; }
  .masthead .wrap { position: relative; }
  .phone.side { display: none; }
  .phone { width: min(60vw, 250px); }
  .screen { font-size: clamp(6.4px, 1.7vw, 8.6px); }
}

@media (max-width: 560px) {
  .grid6, .stats, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .store-row .store { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step, .btn, .store { transition: none !important; }
}
