/* MoneyMind — light, calm landing page. White ground, deep ink, one accent: the brand teal from the logo. */

/* Hanken Grotesk, self-hosted (SIL Open Font License, see assets/fonts/OFL.txt) so no visitor data goes to a font CDN */
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(assets/fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(assets/fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --surface: #f1f5f5;
  --ink: #0f1a1c;
  --muted: #536164;
  --accent: #154b55;
  --accent-strong: #0e3840;
  --accent-ink: #ffffff;
  --field: #154b55;
  --field-ink: #ffffff;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.875rem);
  --step-head: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --step-display: clamp(2.75rem, 1rem + 6.4vw, 7rem);

  --margin: clamp(20px, 3vw, 48px);
  --gutter: clamp(16px, 1.8vw, 28px);
  --section: clamp(112px, 13vw, 200px);
  --measure: 1240px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Links and buttons */
.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
  transition: text-decoration-color var(--t-hover) ease;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.button--light { background: var(--field-ink); color: var(--field); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .button:hover { background: var(--accent-strong); }
  .button--light:hover { background: var(--surface); color: var(--accent-strong); }
}

/* Bar */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--margin);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.03em; font-size: var(--step-body); }
.wordmark__mark { width: 32px; height: 32px; }
.bar__nav { display: flex; gap: 32px; font-size: var(--step-small); }
.bar__end { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 4px; }
.lang__btn {
  min-width: 44px; min-height: 44px; padding: 0 8px;
  background: none; border: 0; cursor: pointer;
  font-size: var(--step-small); font-weight: 500; color: var(--muted);
  transition: color var(--t-hover) ease;
}
.lang__btn[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 0.1em; }
@media (hover: hover) and (pointer: fine) { .lang__btn:hover { color: var(--ink); } }

/* Hero: the app film behind a centred stack, masked inward so it dissolves into the white page */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px var(--margin) 96px;
  text-align: center;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  -webkit-mask-image:
    radial-gradient(ellipse 64% 60% at 50% 50%, #000 32%, rgba(0,0,0,0.5) 64%, transparent 100%), /* taste-skill-ignore */
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 74%, transparent 100%); /* taste-skill-ignore */
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 64% 60% at 50% 50%, #000 32%, rgba(0,0,0,0.5) 64%, transparent 100%), /* taste-skill-ignore */
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 74%, transparent 100%); /* taste-skill-ignore */
  mask-composite: intersect;
}
.hero__video { width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* iOS draws a large play button when it blocks autoplay; the poster is enough */
.hero__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero__video::-webkit-media-controls { display: none !important; }
/* a flat white veil keeps the film quiet behind the dark headline */
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.52); }

.hero__inner { width: min(100%, 980px); display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.045em; }
.lines .line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.12em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.hero__lead { max-width: 46ch; margin-top: 32px; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.hero__actions { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__note { font-size: var(--step-small); color: var(--muted); }

/* Shared section type */
.section-title { font-size: var(--step-head); line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; }
.statement { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; max-width: 34ch; }

section { scroll-margin-top: 24px; }

/* The problem: statement left, picture right */
.problem {
  width: min(100% - 2 * var(--margin), var(--measure)); margin: var(--section) auto 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center;
}
.problem__words { grid-column: 1 / span 6; }
.problem__pic { grid-column: 8 / span 5; overflow: hidden; border-radius: 20px; }
.problem__pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* How it works: three steps, each lower than the last so the order reads by position */
.how { width: min(100% - 2 * var(--margin), var(--measure)); margin: var(--section) auto 0; }
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); align-items: start; }
.step { max-width: 32ch; }
.step:nth-child(2) { margin-top: 72px; }
.step:nth-child(3) { margin-top: 144px; }
.step__title { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.step p { color: var(--ink); }

/* Benefits: one tinted field, four plain lines */
.benefits {
  margin-top: var(--section);
  background: var(--surface);
  padding: clamp(80px, 10vw, 144px) var(--margin);
}
.benefits > * { width: min(100%, var(--measure)); max-width: none; margin-inline: auto; }
.benefits__list { margin-top: 48px; display: grid; gap: 22px; }
.benefits__list li { font-size: var(--step-head); line-height: 1.08; letter-spacing: -0.035em; max-width: 24ch; }

/* Security: picture left, words right */
.security {
  width: min(100% - 2 * var(--margin), var(--measure)); margin: var(--section) auto 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center;
}
.security__pic { grid-column: 1 / span 6; overflow: hidden; border-radius: 20px; background: #1e1e1e; }
.security__pic img { width: 100%; height: auto; }
.security__words { grid-column: 7 / span 6; }
.facts { margin-top: 40px; display: grid; gap: 22px; max-width: 46ch; }
.facts strong { font-weight: 600; }

/* About: words left, picture right (mirrors the security section above it) */
.about {
  width: min(100% - 2 * var(--margin), var(--measure)); margin: var(--section) auto 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center;
}
.about__words { grid-column: 1 / span 6; }
.about__text { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; max-width: 34ch; }
.about__pic { grid-column: 8 / span 5; overflow: hidden; border-radius: 20px; }
.about__pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Waitlist: the one coloured field */
.waitlist {
  margin-top: var(--section);
  background: var(--field); color: var(--field-ink);
  padding: clamp(88px, 11vw, 160px) var(--margin);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
}
.waitlist > * { min-width: 0; }
.waitlist__title { grid-column: 1 / span 6; font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.045em; max-width: 10ch; }
.waitlist__body { grid-column: 8 / span 5; align-self: end; }
.waitlist__lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.form { margin-top: 32px; display: flex; gap: 10px; }
.form__input {
  flex: 1; min-width: 0; min-height: 56px; padding: 0 22px;
  background: var(--field-ink); color: var(--ink);
  border: 0; border-radius: 999px;
}
.form__input::placeholder { color: var(--muted); }
.form__input:focus-visible { outline: 3px solid var(--field-ink); outline-offset: 3px; }
.form { flex-wrap: wrap; }
.consent { flex-basis: 100%; display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; font-size: var(--step-small); line-height: 1.45; cursor: pointer; }
.consent__box { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--field-ink); cursor: pointer; }
.waitlist__small a { color: inherit; text-underline-offset: 0.2em; }
.form__msg { min-height: 1.5em; margin-top: 14px; font-weight: 500; }
.form__msg.is-error { color: #ffe1a8; }
.waitlist__small { margin-top: 8px; font-size: var(--step-small); color: var(--field-ink); opacity: 0.9; }
.waitlist__contact { margin-top: 28px; }

/* Footer */
.foot { padding: 64px var(--margin) 40px; display: grid; gap: 40px; }
.foot__row { width: min(100%, var(--measure)); margin-inline: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.foot__name { display: inline-flex; align-items: center; gap: 0.3em; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.foot__mark { width: 0.9em; height: 0.9em; }
.foot__links { display: flex; gap: 28px; }
.foot__row--small { font-size: var(--step-small); color: var(--muted); }

/* Legal pages (Künye, Gizlilik): plain reading layout */
[hidden] { display: none !important; }
.bar--static { position: static; }
.legal { width: min(100% - 2 * var(--margin), 760px); margin: 48px auto 0; padding-bottom: 96px; }
.legal__title { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 16px; }
.legal__meta, .legal__note { color: var(--muted); font-size: var(--step-small); margin-bottom: 28px; }
.legal__note { margin-top: -12px; }
.legal h2 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; margin: 56px 0 16px; }
.legal p { margin-bottom: 16px; max-width: 68ch; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 1.3em; max-width: 68ch; }
.legal ul { list-style: disc; }
.legal ol { list-style: lower-alpha; }
.legal li { margin-bottom: 8px; padding-left: 4px; }
.legal strong { font-weight: 600; }
.legal__facts { margin: 0; display: grid; gap: 4px; }
.legal__facts div { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 16px; padding: 12px 16px; background: var(--surface); border-radius: 10px; }
.legal__facts dt { color: var(--muted); }
.legal__facts dd { margin: 0; }
.legal a:not(.link) { color: var(--accent); }
.link--inline { text-decoration-color: currentColor; color: var(--accent); }
.legal__back { font-size: var(--step-small); }
/* placeholders the company must fill in before publishing */
.ph { background: #fff1b8; color: #5c4400; padding: 0 4px; border-radius: 4px; }
.ph-block { padding: 16px; background: var(--surface); border-radius: 10px; }
.foot--legal { padding-top: 32px; }
@media (max-width: 680px) {
  .legal__facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* Tablet */
@media (max-width: 960px) {
  .bar__nav { display: none; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step:nth-child(n) { margin-top: 0; }
  .step:nth-child(2) { margin-left: 12%; }
  .step:nth-child(3) { margin-left: 24%; }
  .waitlist__title, .waitlist__body { grid-column: 1 / -1; }
  .waitlist__body { margin-top: 40px; max-width: 560px; }
}

/* Phone */
@media (max-width: 680px) {
  .bar { padding-top: 14px; }
  .bar__end { gap: 6px; }
  .bar .button--small { display: none; }
  .hero { padding-top: 104px; min-height: 92svh; }
  .hero__media {
    -webkit-mask-image: radial-gradient(ellipse 100% 56% at 50% 46%, #000 25%, transparent 100%); /* taste-skill-ignore */
    mask-image: radial-gradient(ellipse 100% 56% at 50% 46%, #000 25%, transparent 100%); /* taste-skill-ignore */
  }
  .hero__lead { margin-top: 24px; }
  .hero__actions { width: 100%; }
  .hero__actions .button { width: 100%; }

  .problem__words, .problem__pic, .security__pic, .security__words { grid-column: 1 / -1; }
  .problem__pic { margin-top: 40px; }
  .security__words { margin-top: 40px; }
  .step:nth-child(n) { margin-left: 0; }
  .about__words, .about__pic { grid-column: 1 / -1; }
  .about__pic { margin-top: 40px; }
  .form { flex-direction: column; }
  .form .button { width: 100%; }
  .foot__row { flex-direction: column; align-items: flex-start; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 650ms); }
  .js .hero__media { opacity: 0; animation: fade-in 1400ms var(--ease-soft) 100ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  @supports (animation-timeline: view()) {
    .drift { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
