/* Maaş Metre — the app's own espresso and gold, its own two typefaces. */

@font-face {
  font-family: "Headline";
  src: url("fonts/BricolageGrotesque-CondensedExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #15110d;
  --bg-deep: #0f0c09;
  --card: #211a14;
  --raised: #2c231b;
  --border: #3a2e23;
  --text: #f5ead8;
  --muted: #b9a88f;
  --gold: #e9b64c;
  --loss: #ee8463;
  --gain: #a5cf86;
  --page: 1120px;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--gold);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The masthead: the app's own, gold rule under it. */
.masthead {
  padding: 22px 0 0;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.brand span {
  font-family: "Headline", sans-serif;
  font-size: 28px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.masthead nav a {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Headline", sans-serif;
  font-weight: 800;
  /* Room for Turkish capitals: a cedilla above a dotted İ must not touch. */
  line-height: 1.1;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(52px, 9vw, 96px);
}
h2 {
  font-size: clamp(38px, 6vw, 60px);
}
h1 em,
h2 em {
  color: var(--gold);
  font-style: normal;
  display: block;
}

.rule {
  width: 64px;
  height: 4px;
  margin: 22px 0;
  background: var(--gold);
  border: 0;
}

.lead {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 20% -20% -40% 30%;
  background: radial-gradient(closest-side, rgba(233, 182, 76, 0.16), transparent);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

/* The 3D scene (js/hero.js) fades in once its image loads. The screenshot in
   its plain phone is the fallback: at once without scripts, after a wait if
   the scene has not come, and never on top of the scene. */
.hero .art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}
.hero .scene {
  position: absolute;
  inset: -40px -60px;
  width: calc(100% + 120px);
  height: calc(100% + 80px);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.js .hero .art .phone {
  animation: fallback 0.4s ease 2.5s both;
}
.hero .art.is-3d .scene {
  opacity: 1;
}
.js .hero .art.is-3d .phone {
  animation: none;
  opacity: 0;
}
@keyframes fallback {
  from {
    opacity: 0;
  }
}

/* What the salary buys this month, floating over the phone. */
.live-card {
  position: absolute;
  left: -48px;
  bottom: 64px;
  z-index: 2;
  width: 236px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(33, 26, 20, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}
.live-card p {
  margin: 0;
}
.live-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-top span:first-child::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 1px;
  animation: pulse 2s ease-in-out infinite;
}
.live-rows {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.live-rows li {
  display: grid;
  grid-template-columns: 1fr auto 1.6em;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
}
.live-rows span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.live-rows b {
  font-family: "Headline", sans-serif;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-align: right;
}
.live-rows i {
  color: var(--gold);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}
.live-note {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.loss {
  color: var(--loss);
  font-weight: 700;
}
.gain {
  color: var(--gain);
  font-weight: 700;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* A slow band of what the app measures, between the hero and the features. */
.ticker {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  animation: ticker 44s linear infinite;
  font-family: "Headline", sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-track i {
  color: var(--gold);
  font-size: 0.55em;
  font-style: normal;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.badges a {
  display: block;
  line-height: 0;
}
.badges .apple img {
  height: 52px;
  width: auto;
}
.badges .google img {
  height: 52px;
  width: auto;
}

.facts-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.facts-inline li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

/* A screenshot in a plain dark phone. */
.phone {
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 46px;
  background: #0b0907;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.phone img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  border-radius: 37px;
}

/* Features: text and phone, sides swapping row to row. */
.feature {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.feature:nth-of-type(even) {
  background: var(--bg-deep);
}
.feature .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.feature:nth-of-type(even) .copy {
  order: 2;
}
.feature p {
  max-width: 30em;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.feature p + p {
  margin-top: 12px;
}
.feature strong {
  color: var(--text);
  font-weight: 600;
}

/* The small print of why the numbers can be trusted. */
.facts {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
}
.facts h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.facts li p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.cta {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta .rule {
  margin: 22px auto;
}
.cta .badges {
  justify-content: center;
}
.cta p {
  margin: 0;
  color: var(--muted);
}

/* The raise to try out: a card with a slider and what it does. */
.demo {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.demo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(233, 182, 76, 0.12), transparent 60%),
    var(--card);
}
.demo-copy p:not(.kicker) {
  max-width: 30em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.demo-copy strong {
  color: var(--text);
}
.demo-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.demo-label output {
  color: var(--gold);
  font-family: "Headline", sans-serif;
  font-size: 44px;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.demo-range {
  position: relative;
  margin: 18px 0 34px;
}
.demo-range input {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.demo-range input::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(var(--gold), var(--gold)) 0 / var(--fill, 25%) 100% no-repeat, #4a3b2c;
}
.demo-range input::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: #4a3b2c;
}
.demo-range input::-moz-range-progress {
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
}
.demo-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--gold);
}
.demo-range input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--gold);
}
.demo-range input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 8px;
}
/* Where the raise needed sits on the slider. */
.demo-range .need {
  position: absolute;
  top: 4px;
  left: calc(14px + (100% - 28px) * 0.36);
  width: 2px;
  height: 20px;
  background: var(--loss);
  pointer-events: none;
}
.demo-range .need span {
  position: absolute;
  top: 24px;
  left: 50%;
  translate: -50% 0;
  color: var(--loss);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.demo-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.demo-out div {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--raised);
}
.demo-out dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.demo-out dd {
  margin: 2px 0 0;
  font-family: "Headline", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.demo-verdict {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

/* Rising in on arrival, only when scripts run. */
.js .reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}
.facts li.reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.facts li.reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.facts li.reveal:nth-child(4) {
  transition-delay: 0.24s;
}
.feature .phone {
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@media (prefers-reduced-motion: reduce) {
  .live-card,
  .live-top span:first-child::before,
  .ticker-track {
    animation: none;
  }
}

footer {
  padding: 36px 0 48px;
  border-top: 2px solid var(--gold);
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
footer p {
  margin: 0;
}

/* The legal pages: one readable column in the same voice. */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--gutter) 72px;
}
.doc h1 {
  font-size: clamp(40px, 7vw, 60px);
  margin-bottom: 8px;
}
.doc h2 {
  margin: 44px 0 12px;
  font-size: 30px;
  line-height: 1.05;
}
.doc p,
.doc li {
  color: #e6d9c4;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th,
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

@media (max-width: 860px) {
  .hero {
    padding: 36px 0 56px;
  }
  .hero .wrap,
  .feature .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature:nth-of-type(even) .copy {
    order: 0;
  }
  .feature {
    padding: 56px 0;
  }
  .phone {
    width: min(100%, 280px);
  }
  .facts ul {
    grid-template-columns: 1fr 1fr;
  }
  .hero .art {
    min-height: 560px;
  }
  .live-card {
    left: 0;
    bottom: 24px;
    width: 210px;
  }
  .live-rows b {
    font-size: 24px;
  }
  .demo-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .lead {
    font-size: 17px;
  }
  .facts ul {
    grid-template-columns: 1fr;
  }
  .masthead nav {
    display: none;
  }
  .hero .art {
    min-height: 470px;
  }
  .hero .wrap {
    gap: 24px;
  }
  .hero .scene {
    inset: -20px -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
  }
  .demo {
    padding: 48px 0;
  }
  .demo-out dd {
    font-size: 24px;
  }
}
