/* Fintrella — the site looks like the product: a dense, dark trading-style terminal. */

:root {
  --bg: #0a0b0d;
  --panel: #131418;
  --panel-2: #1a1c21;
  --line: #24262c;
  --text: #eceef2;
  --muted: #8b909a;
  --dim: #5c616b;
  --green: #2ebd85;
  --red: #f6465d;
  --blue: #3d7cff;
  --violet: #9b8cff;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: .95rem; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: min(1280px, 100% - 2.5rem); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.g { color: var(--green); } .r { color: var(--red); } .v { color: var(--violet); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; }

.logo-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--bg); font: 800 1rem/1 var(--sans); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 11, 13, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -.03em; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9rem; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.2rem; font: 600 .9rem var(--sans); text-decoration: none; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.btn:hover { border-color: #3a3d45; }
.btn--buy { background: var(--green); border-color: var(--green); color: #04130c; }
.btn--buy:hover { background: #3fd497; border-color: #3fd497; }
.btn--small { padding: .45rem .9rem; font-size: .85rem; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Hero */
.hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 0; overflow: hidden; }
.hero__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__head h1 { margin: 0; }
.hero__head p { margin: 0 0 1rem; }

/* Stats strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.strip div { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip small { display: block; color: var(--muted); font-size: .78rem; }
.strip b { font: 500 clamp(1.5rem, 2.6vw, 2.1rem) var(--mono); letter-spacing: -.03em; }

/* Module tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tile { background: var(--panel); padding: 1.5rem; text-decoration: none; display: block; transition: background .2s; }
.tile:hover { background: var(--panel-2); }
.tile small { font-family: var(--mono); color: var(--green); font-size: .72rem; }
.tile h3 { margin: 2.2rem 0 .3rem; }
.tile p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Generic panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card__head { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.card__body { padding: 1.2rem; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.module { padding: 3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chip { font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; background: var(--panel-2); color: #c3c7cf; }

.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.price-table th, .price-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.price-table th { color: var(--muted); font-weight: 500; font-size: .78rem; }
.price-table td.n { font-family: var(--mono); }
.price-table tr.hi td { background: rgba(46, 189, 133, .06); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }

.rows .tr { grid-template-columns: 2fr 1fr 1.2fr auto; align-items: center; padding: .9rem 1rem; font-size: .88rem; text-decoration: none; }
.rows .tr:hover { background: var(--panel); }

/* Forms */
.form { display: grid; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .85rem; font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { min-height: 110px; resize: vertical; }
.field-error { display: block; color: var(--red); font-size: .8rem; margin-top: .25rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid rgba(46, 189, 133, .4); background: rgba(46, 189, 133, .08); }
.notice--error { border-color: rgba(246, 70, 93, .4); background: rgba(246, 70, 93, .08); }

/* Photo slots */
.photo { width: 100%; object-fit: cover; border-radius: 12px; }
.photo-slot { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; padding: 1rem; border-radius: 12px; border: 1px dashed #33363e; background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.photo-slot__label { font-size: .85rem; color: var(--text); }
.photo-slot__label::before { content: '▢ photo  '; color: var(--green); font-family: var(--mono); font-size: .72rem; }
.photo-slot__file { font-family: var(--mono); font-size: .7rem; color: var(--dim); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .82rem; color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.fine { margin-top: 1.2rem; font-size: .72rem; color: var(--dim); }

@media (max-width: 1000px) {
  .tiles, .strip { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 1.2rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .tiles, .strip, .form-row { grid-template-columns: 1fr; }
  .rows .tr { grid-template-columns: 1fr; gap: .2rem; }
}

.logo-mark { width: 26px; height: 26px; color: var(--text); flex: none; }

/* Product fragments */
.pill { display: inline-block; font: 500 .72rem var(--mono); padding: .2rem .55rem; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.pill--g { background: rgba(46, 189, 133, .14); color: var(--green); }
.pill--a { background: rgba(240, 185, 11, .14); color: #f0b90b; }

.flow { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: center; padding: clamp(1.2rem, 3vw, 2.2rem); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.flow__card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; }
.flow__card--done { border-color: rgba(46, 189, 133, .5); }
.flow__top { display: flex; justify-content: space-between; align-items: center; }
.flow__step { color: var(--muted); font-size: .82rem; }
.flow__amt { display: block; font: 500 1.6rem var(--mono); letter-spacing: -.03em; margin: .9rem 0 .4rem; }
.flow__meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.flow__lines { display: flex; justify-content: space-between; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .82rem; }
.flow__checks { display: flex; gap: .35rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.flow__checks i { flex: 1; height: 6px; border-radius: 3px; background: var(--green); }
.flow__arrow { height: 2px; background: var(--line); position: relative; margin: 0 6px; }
.flow__arrow::after { content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--line); }

.list__row { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 1rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.list__row:last-child { border-bottom: 0; }

.pay { padding: 1rem; display: grid; gap: .6rem; }
.pay__row { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.pay__row b { color: var(--text); font-weight: 500; }
.pay__rails { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; text-align: center; font-size: .82rem; font-weight: 600; }
.pay__rails span { padding: .45rem; border-radius: 8px; background: var(--panel-2); color: var(--muted); }
.pay__rails .on { background: var(--text); color: var(--bg); }
.pay__btn { margin-top: .3rem; text-align: center; padding: .7rem; border-radius: 8px; background: var(--green); color: #04130c; font-weight: 700; }

.steps { padding: 1rem 1.2rem; }
.steps__row { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; font-size: .92rem; }
.steps__row i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--dim); flex: none; }
.steps__row.is-done i { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2304130c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.steps__row.is-next span { color: var(--muted); }
.steps__foot { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--dim); }

.bars { display: flex; align-items: flex-end; gap: .7rem; height: 200px; padding: 1.2rem 1.2rem .6rem; }
.bars__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .4rem; }
.bars__col span { width: 100%; border-radius: 6px 6px 2px 2px; background: var(--panel-2); }
.bars__col.is-hi span { background: var(--green); }
.bars__col small { font: .68rem var(--mono); color: var(--dim); }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: .8rem; }
  .flow__arrow { display: none; }
}
.flow { align-items: stretch; }
.flow__arrow { align-self: center; }

/* Wide city photo at its native shape */
.wide-photo { max-width: 2500px; margin: 0 auto; }
.wide-photo .photo { border-radius: 0; display: block; }
.module .lead { margin-bottom: 0; }

/* Job rows */
.rows .tr { display: grid; grid-template-columns: 2fr 1fr 1.2fr auto; gap: 1rem; align-items: center; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .9rem; text-decoration: none; }
.rows .tr:last-child { border-bottom: 0; }
@media (max-width: 720px) { .rows .tr { grid-template-columns: 1fr; gap: .2rem; } }
