/* Gaya halaman publik Winvoice (landing dan login). */
@font-face { font-family: "Archivo"; src: url("/static/fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/static/fonts/space-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/static/fonts/space-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --lime: #c6f24e; --pink: #ff7a9c; --blue: #1f3bff; --orange: #ff4a17; --yellow: #f5c000;
  --paper: #f2f2ee; --ink: #000; --surface: #fff; --muted: #55554f;
  --line: 3px solid var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Space Mono", ui-monospace, monospace; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); }
a { color: inherit; }
.d, h1, h2, h3 { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 19px; }
.label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.card { background: var(--surface); border: var(--line); box-shadow: 6px 6px 0 var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* bar atas */
.top { background: var(--surface); border-bottom: var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; display: inline-flex; align-items: center; text-decoration: none; }
.brand i { font-style: normal; color: var(--orange); }
.chip { display: inline-flex; margin-left: 10px; border: 2.5px solid var(--ink); }
.chip b { width: 12px; height: 10px; }
.chip b:nth-child(1) { background: var(--blue); } .chip b:nth-child(2) { background: var(--orange); } .chip b:nth-child(3) { background: var(--yellow); }
.by { margin-left: 12px; font-family: "Space Mono"; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; text-decoration: none; padding: 12px 18px; border: var(--line); background: var(--surface); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
.btn.lime { background: var(--lime); }
.btn.blue { background: var(--blue); color: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* hero */
.hero { padding: 54px 0 60px; background-image: linear-gradient(#0000001a 1px, transparent 1px), linear-gradient(90deg, #0000001a 1px, transparent 1px); background-size: 24px 24px; background-color: var(--surface); border-bottom: var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.pill { display: inline-block; background: var(--blue); color: #fff; padding: 5px 10px; margin-bottom: 22px; }
.hero p.lead { font-size: 18px; margin: 22px 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.closed { margin-top: 22px; font-size: 14px; border-left: 6px solid var(--ink); padding-left: 12px; max-width: 34em; }
.shot { position: relative; }
.shot .frame { overflow: hidden; background: #fff; }
.shot iframe { display: block; border: 0; width: 794px; height: 1123px; transform-origin: 0 0; pointer-events: none; }
.shot .tag { position: absolute; left: -10px; top: 18px; background: var(--pink); border: var(--line); padding: 4px 10px; transform: rotate(-3deg); z-index: 1; }

/* bagian */
section.block { padding: 58px 0; }
section.block > .wrap > h2 { margin-bottom: 30px; max-width: 18em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat { padding: 20px 20px 22px; }
.feat .label { display: inline-block; padding: 3px 8px; border: 2px solid var(--ink); margin-bottom: 14px; }
.feat p { margin: 10px 0 0; font-size: 15px; }
.feat:nth-child(3n+1) .label { background: var(--lime); }
.feat:nth-child(3n+2) .label { background: var(--pink); }
.feat:nth-child(3n) .label { background: var(--yellow); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); box-shadow: 6px 6px 0 var(--ink); background: var(--surface); }
.steps > div { padding: 22px; border-right: var(--line); counter-increment: s; }
.steps > div:last-child { border-right: 0; }
.steps > div::before { content: counter(s); font-family: "Archivo"; font-stretch: 125%; font-weight: 800; font-size: 56px; line-height: 1; display: block; margin-bottom: 10px; }
.steps > div:nth-child(2) { background: var(--lime); }
.steps > div:nth-child(3) { background: var(--blue); color: #fff; }
.steps p { margin: 8px 0 0; font-size: 15px; }
.band { background: var(--blue); color: #fff; border-top: var(--line); border-bottom: var(--line); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.band p { margin: 10px 0 0; max-width: 36em; }
footer.site { padding: 22px 0 30px; font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* login */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-main { flex: 1; display: grid; place-items: center; padding: 34px 18px; }
.login-card { width: 100%; max-width: 420px; padding: 26px 26px 28px; }
.login-card h1 { font-size: 30px; margin-bottom: 6px; }
.login-card p { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.field input { font: inherit; font-size: 16px; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; background: #fff; width: 100%; }
.login-card .btn { width: 100%; }
.error { background: var(--pink); border: 2px solid var(--ink); padding: 8px 12px; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.login-foot { margin-top: 18px !important; font-size: 13px !important; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .hero { padding: 34px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .steps > div { border-right: 0; border-bottom: var(--line); }
  .steps > div:last-child { border-bottom: 0; }
  section.block { padding: 40px 0; }
  .by { display: none; }
}

/* contoh invoice: iframe 794px diperkecil, jadi tidak boleh ikut menentukan lebar kolom */
.hero .wrap > * { min-width: 0; }
.shot { max-width: 470px; width: 100%; justify-self: center; }
.shot .frame { position: relative; }
.shot iframe { position: absolute; left: 0; top: 0; }
.shot .tag { left: -14px; top: -16px; }
