/* Frigia pitch site
   Brand colour: #06A0BA
   Headings: Barlow Semi Condensed (Bahnschrift stand-in)
   Body: Inter
*/

:root {
  --brand: #06A0BA;
  --brand-dark: #045a6b;
  --brand-hover: #057a8e;
  --ink: #1a1a1a;
  --muted: #4a4f55;
  --line: #e4e7e9;
  --wash: #f3f6f7;
  --white: #fff;
  --danger: #b42318;
  --radius: 6px;
  --header-h: 4.5rem;
  --max: 68rem;
  --font-display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, "Helvetica Neue", Arial, sans-serif;
  --shadow-focus: 0 0 0 3px rgba(6, 160, 186, 0.28);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.8em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 0.45em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-dark);
  text-underline-offset: 0.12em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
  outline: 3px solid var(--brand);
  color: var(--white);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow { max-width: 40rem; }
.measure { max-width: 40rem; }

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--brand);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.logo img {
  display: block;
  height: 2.35rem;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.15rem;
}

.lang a:hover { color: var(--brand-dark); }

.lang a[aria-current="page"] {
  color: var(--brand-dark);
  font-weight: 700;
}

.lang .sep { color: #c5c9cc; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  background: var(--brand);
  color: var(--white);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--brand-hover);
  color: var(--white);
}

.btn:active { transform: translateY(1px); }

.btn-sm {
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
}

.btn-block { width: 100%; }

@media (max-width: 720px) {
  .btn-header { display: none; }
  .logo img { height: 1.85rem; }
  .wrap { width: min(var(--max), calc(100% - 2rem)); }
}

/* ----- Hero ----- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 4rem;
}

.hero-mark {
  position: absolute;
  right: max(-2rem, calc(50vw - 40rem));
  top: 50%;
  transform: translateY(-50%);
  width: min(22rem, 38vw);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.hero h1 { max-width: 16ch; }
html[lang="tr"] .hero h1 { max-width: 24ch; }

.hero .lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .hero { padding: 2.75rem 0 3rem; }
  .hero .lede { font-size: 1.0625rem; }
  .hero-mark { display: none; }
  .hero h1 { max-width: none; }
}

/* ----- Sections ----- */

.section { padding: 3.25rem 0; }
.section-wash { background: var(--wash); }

.section-intro {
  margin-bottom: 1.5rem;
  max-width: 42rem;
  color: var(--ink);
}

.section-intro p,
.prose p { color: var(--ink); }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45em;
}

.card p { color: var(--muted); }

@media (max-width: 800px) {
  .cards-3 { grid-template-columns: 1fr; gap: 1.5rem; }
  .section { padding: 2.5rem 0; }
}

/* Invest-in list */

.areas {
  list-style: none;
  margin: 1.75rem 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 2.75rem;
}

.areas li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  padding: 0.45rem 0;
  font-weight: 500;
}

.areas li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.45em;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.areas-note {
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 640px) {
  .areas { grid-template-columns: 1fr; gap: 0; }
}

/* How we help */

.help-lead {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.help-list { display: flex; flex-direction: column; }

.help-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.25rem 1.25rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.help-item:last-child { border-bottom: 1px solid var(--line); }

.help-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-top: 0.1rem;
}

.help-item h3 { margin-bottom: 0.35em; }
.help-item p { color: var(--muted); }

@media (max-width: 540px) {
  .help-item { grid-template-columns: 2.25rem 1fr; gap: 0.15rem 0.85rem; }
}

/* Pitch steps */

.steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
  counter-reset: step;
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 500;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.pitch-aside {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ----- Form ----- */

#pitch { scroll-margin-top: calc(var(--header-h) + 1rem); }

.form-wrap { max-width: 42rem; }

.form-title { margin-bottom: 1.75rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.35rem;
}

.full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }

.field label,
.deck-fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.req {
  color: var(--brand-dark);
  font-weight: 700;
}

.hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.char-count {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cdd2d4;
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  appearance: none;
  -webkit-appearance: none;
}

.field textarea { min-height: 6rem; resize: vertical; }

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='none' stroke='%231a1a1a' stroke-width='1.6' d='M3.5 6 L8 10.5 L12.5 6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #a8b0b4; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: var(--shadow-focus);
}

.field input[type="file"] {
  padding: 0.55rem 0.75rem;
  background: var(--white);
}

.field input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.85rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 4px;
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
}

.deck-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.deck-fieldset legend {
  padding: 0;
  margin-bottom: 0.35rem;
}

.deck-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 0.7rem;
}

.deck-or {
  align-self: center;
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-error {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--danger);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--brand);
  cursor: pointer;
}

.consent label {
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-actions { margin-top: 0.25rem; }

.confidentiality {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .deck-fields { grid-template-columns: 1fr; gap: 0.5rem; }
  .deck-or { margin: 0.15rem 0; text-align: center; }
}

/* ----- Footer ----- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.site-footer a { color: var(--brand-dark); }

.footer-legal {
  max-width: 36rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer-meta { color: var(--muted); }

/* ----- Simple pages (thanks, kvkk) ----- */

.simple {
  padding: 6rem 0 7rem;
  min-height: calc(100vh - 12rem);
}

.simple h1 { max-width: 22rem; }

.draft-banner {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a3e00;
  background: #fff3d6;
  border: 1px solid #efd6a3;
  border-radius: 4px;
  padding: 0.3rem 0.55rem;
  margin-bottom: 1.25rem;
}

.simple .lede { color: var(--muted); font-size: 1.15rem; margin-bottom: 1.5rem; }

/* ----- Utilities ----- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Home: large logo in hero, small header logo appears on scroll ----- */
.hero-logo {
  display: block;
  width: min(36rem, 100%);
  height: auto;
  margin: 0 0 2.25rem -0.6rem;
}
.home .site-header .logo {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.home.scrolled .site-header .logo {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 800px) {
  .hero-logo { width: min(24rem, 100%); margin-bottom: 1.75rem; }
}

.manifesto{max-width:46rem;font-size:clamp(1.15rem,2vw,1.4rem);line-height:1.55;margin:0 0 1.75rem;color:inherit}

/* ---------- Dark theme ---------- */
:root {
  color-scheme: dark;
  --bg: #0a1014;
  --ink: #e6edf0;
  --muted: #9babb3;
  --line: #21303a;
  --wash: #0f181e;
  --brand-dark: #3cc3d8;
  --brand-hover: #0bb8d4;
  --field-bg: #0d151a;
  --field-border: #2c3c46;
}
body { background: var(--bg); }
.skip-link, a.skip-link { background: var(--brand); color: #fff; }
.site-header { background: rgba(10, 16, 20, 0.88); }
.lang .sep { color: #3a4a54; }
.field input,
.field input[type="file"],
.field select,
.field textarea { background-color: var(--field-bg); border-color: var(--field-border); color: var(--ink); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #46606e; }
.field input[type="file"]::file-selector-button { background: #1a2730; color: var(--ink); }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='none' stroke='%239babb3' stroke-width='1.6' d='M3.5 6 L8 10.5 L12.5 6'/></svg>"); }
.field select option { background: var(--field-bg); color: var(--ink); }
::placeholder { color: #5f707a; }
.draft-banner { color: #f5c46b; background: rgba(245, 196, 107, 0.08); border-color: rgba(245, 196, 107, 0.35); }
.card, .section-wash { border-color: var(--line); }
.field input:not([type="checkbox"]):not([type="radio"]) { background-color: var(--field-bg); border-color: var(--field-border); color: var(--ink); }
.field input:not([type="checkbox"]):not([type="radio"]):hover { border-color: #46606e; }
.field input:not([type="checkbox"]):not([type="radio"]):focus { border-color: var(--brand); }

/* Email-only pitch (form parked until KVKK notice exists) */
.pitch-cta { margin: 1.5rem 0 1.25rem; }
.steps a { color: var(--brand-dark); font-weight: 600; }
