/* FinckTech landing page — "winter light" theme, see docs/DESIGN.md */

:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --line: #dfe5ea;
  --text: #18222a;
  --text2: #56636e;
  --accent: #2f6e99;
  --accent-hover: #1f5276;
  --accent-text: #2f6e99;
  --accent-soft: #e4eef5;
  --on-accent: #ffffff;
  --live: #2e9e5b;
  --z1: #d3e1ea;
  --z2: #b4cddd;
  --z3: #8db1c9;
  --z4: #5f92b3;
  --z5: #2f6e99;
  --z6: #1b4566;
  --radius: 14px;
  --font: "Jost", system-ui, sans-serif;
}

/* Dark: only when the visitor picks it; light is the default regardless of the device */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1317;
  --surface: #161d22;
  --line: #26313a;
  --text: #e6edf2;
  --text2: #98a7b2;
  --accent: #8cc3e6;
  --accent-hover: #b5daf0;
  --accent-text: #8cc3e6;
  --accent-soft: #1c2e3a;
  --on-accent: #0e1317;
  --live: #4fd08a;
  --z1: #2a3a45;
  --z2: #34505f;
  --z3: #46708a;
  --z4: #5e8faf;
  --z5: #8cc3e6;
  --z6: #c4e1f3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
p,
figure,
ul {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.wordmark:hover {
  color: var(--text);
}

.wordmark--small {
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  flex-wrap: wrap;
  font-size: 15px;
  white-space: nowrap;
}

.site-nav a:not(.btn) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text2);
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Show the icon for the theme a click switches to */
.theme-toggle .icon-sun { display: none; }

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Buttons and chips */

.btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  font-weight: 400;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}


.chip {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 1px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text2);
}

/* Blinking green dot: something is live */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--live);
  animation: live-blink 2s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Type helpers */

.eyebrow,
.label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
}

/* Hero */

.hero {
  padding-top: 72px;
  padding-bottom: 24px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.hero h1 {
  font-weight: 400;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead {
  max-width: 34ch;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 300;
  color: var(--text2);
}

.actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__sub {
  max-width: 44ch;
  color: var(--text2);
}

/* Sections */

.section {
  padding-top: 64px;
  padding-bottom: 8px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.statement {
  max-width: 34ch;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 300;
  line-height: 1.2;
}

/* About */

#about {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* About spans the full column, like the figures and software rows below */
#about .statement,
#about .body-text {
  max-width: none;
}

#about .statement {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.body-text {
  max-width: 76ch;
  font-size: 17px;
  color: var(--text2);
}

.stats {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat + .stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.stat dt {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
}

.stat dd {
  margin: 0;
  font-size: 15px;
  color: var(--text2);
}

.stat__num,
.stat__word {
  font-size: 32px;
  font-weight: 300;
  color: var(--text);
}

/* App rows */

.rows {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.rows li {
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  color: var(--text);
  text-decoration: none;
}

.row:hover {
  color: var(--text);
}

.row__meta {
  width: 44px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text2);
}

.row__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row__title {
  font-size: 20px;
  font-weight: 500;
}

.row__desc {
  font-size: 15px;
  color: var(--text2);
}

.row__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-text);
  white-space: nowrap;
}

.row:hover .row__go svg {
  transform: translateX(3px);
}

.row__go svg {
  transition: transform 0.15s;
}

/* Placeholder row for an app that isn't live yet: not a link */
.row--soon .row__go {
  font-weight: 400;
  color: var(--text2);
}

/* Contact */

#contact {
  padding-top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.email {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
}

.email:hover {
  color: var(--accent-text);
}

/* Footer */

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text2);
}

.site-footer__inner {
  min-height: 64px;
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}

/* Footer links (Privacy, Terms) */

.site-footer__links {
  display: flex;
  gap: 20px;
}

.site-footer__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text2);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--text);
}

/* Legal pages (Privacy, Terms): same column and line length as the landing page sections */

.legal {
  padding-top: 72px;
}

.legal h1 {
  margin: 8px 0 0;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal .lead {
  margin-top: 16px;
}

.legal h2 {
  margin: 40px 0 8px;
  font-size: 20px;
  font-weight: 500;
}

.legal p:not(.label),
.legal li {
  max-width: 76ch;
  font-size: 17px;
  line-height: 1.6;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal ul + p {
  margin-top: 12px;
}

.legal code {
  font-size: 0.92em;
}

/* Phone */

@media (max-width: 720px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal {
    padding-top: 48px;
  }

  .hero {
    padding-top: 48px;
  }

  .stat + .stat {
    padding-left: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat__num,
  .stat__word {
    font-size: 26px;
  }

  .stat--wide {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .stat.stat--wide {
    padding-left: 0;
    border-left: 0;
  }

  .row {
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .row__body {
    flex-basis: calc(100% - 60px);
  }

  .row__go {
    margin-left: 60px;
    min-height: 44px;
  }

  #contact {
    padding-top: 72px;
  }
}

/* Small phones: keep the header on one line */

@media (max-width: 480px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
