/* ==========================================================================
   goxeltheesl.com — landing page styles
   Design system per CLAUDE.md §14. Hand-written, no build step.
   ========================================================================== */

@import url("../fonts/fonts.css");

/* ----- design tokens (§14) ------------------------------------------------ */
:root {
  /* colour */
  --ink:      #0F1F2A;
  --aegean:   #14666F;
  --aegean-d: #0F5058; /* hover, derived — darker aegean, keeps 4.5:1 on chalk */
  --chalk:    #F1F3EF;
  --marker:   #B5342A;
  --graphite: #5C6B72;
  --slate:    #DCE2DE;
  --white:    #FFFFFF;

  /* type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* modular scale, 1.25 */
  --t-12: 0.75rem;   --t-14: 0.875rem; --t-16: 1rem;    --t-20: 1.25rem;
  --t-25: 1.5625rem; --t-31: 1.9375rem;--t-39: 2.4375rem;--t-49: 3.0625rem;

  /* space — 8px grid */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px;

  --radius: 4px;
  --shell: 1140px;
  --prose: 68ch;
  --shadow: 0 1px 2px rgba(15, 31, 42, .08);
  --ease: 150ms ease-out;
}

/* ----- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: var(--t-16);
  line-height: 1.6;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--aegean); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--aegean-d); }
button, input, textarea, select { font: inherit; color: inherit; }

/* ----- typography --------------------------------------------------------- */
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(var(--t-39), 5vw, var(--t-49)); }
h2 { font-size: clamp(var(--t-25), 3.5vw, var(--t-31)); }
h3 { font-family: var(--body); font-weight: 700; font-size: var(--t-20); line-height: 1.25; }
h4 { font-family: var(--body); font-weight: 600; font-size: var(--t-16); }
p  { max-width: var(--prose); }
small { font-size: var(--t-14); color: var(--graphite); }

/* mono for identifiers — codes, bands, dates, figures (§14) */
.mono, time, .band-label, .price-figure { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* ----- layout ------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--s-3); }
.section { padding-block: var(--s-10); }
.section--tight { padding-block: var(--s-6); }
.stack > * + * { margin-top: var(--s-2); }
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aegean);
}

/* ----- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(241, 243, 239, .9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--slate);
}
.site-header .shell { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--display); font-weight: 600; font-size: var(--t-20); color: var(--ink); text-decoration: none; }
.brand span { color: var(--aegean); }
.nav { display: flex; gap: var(--s-3); align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--t-14); font-weight: 600; }
.nav a:hover { color: var(--aegean); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: var(--s-1); }

/* ----- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: var(--t-16); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn--primary { background: var(--aegean); color: var(--white); }
.btn--primary:hover { background: var(--aegean-d); color: var(--white); }
.btn--ghost { background: transparent; color: var(--aegean); border-color: var(--slate); }
.btn--ghost:hover { border-color: var(--aegean); color: var(--aegean-d); }

/* ----- band ruler (§14 signature element) --------------------------------- */
/* A1 → C2 mono-set scale. Unmarked on the landing hero (an invitation). */
.band-ruler { --marker-pos: none; }
.band-ruler__track {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
}
.band-ruler__step {
  padding: var(--s-2) var(--s-1);
  text-align: center;
  font-family: var(--mono); font-weight: 500; font-size: var(--t-16);
  color: var(--ink);
  border-right: 1px solid var(--slate);
  position: relative;
}
.band-ruler__step:last-child { border-right: 0; }
.band-ruler__step[aria-current="true"] { background: var(--aegean); color: var(--white); }
/* fill up to the current band */
.band-ruler__step.is-below { background: color-mix(in srgb, var(--aegean) 14%, var(--white)); }
.band-ruler__caption {
  display: flex; justify-content: space-between;
  margin-top: var(--s-1);
  font-family: var(--mono); font-size: var(--t-12); color: var(--graphite);
}

/* ----- hero --------------------------------------------------------------- */
.hero { padding-block: var(--s-12) var(--s-10); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; }
.hero h1 { margin-block: var(--s-2); }
.hero__sub { font-size: var(--t-20); color: var(--graphite); max-width: 40ch; }
.hero__cta { display: flex; gap: var(--s-2); margin-top: var(--s-4); flex-wrap: wrap; }
.hero__portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--slate); box-shadow: var(--shadow); object-fit: cover; width: 100%;
}

/* ----- cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: var(--s-3); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--slate);
  border-radius: var(--radius); padding: var(--s-3);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.card:hover { border-color: var(--aegean); box-shadow: var(--shadow); }
.card__tag {
  display: inline-block; font-family: var(--mono); font-size: var(--t-12);
  color: var(--aegean); border: 1px solid var(--slate); border-radius: var(--radius);
  padding: 2px 8px; margin-right: 4px;
}

/* ----- pricing ------------------------------------------------------------ */
.price-figure { font-size: var(--t-31); font-weight: 500; }
.price-card[data-featured="true"] { border-color: var(--aegean); border-width: 2px; }

/* ----- forms -------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-2); }
.field label { font-size: var(--t-14); font-weight: 600; }
.field input, .field textarea, .field select {
  padding: 10px 12px; border: 1px solid var(--slate); border-radius: var(--radius);
  background: var(--white); transition: border-color var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--aegean); outline-offset: 1px; border-color: var(--aegean);
}
.form-note { font-size: var(--t-14); color: var(--graphite); }
.form-status { margin-top: var(--s-2); font-weight: 600; }
.form-status[data-state="error"] { color: var(--marker); }
.form-status[data-state="ok"] { color: var(--aegean); }

/* ----- prose (bio, KVKK pages) -------------------------------------------- */
.prose { max-width: var(--prose); }
.prose > * + * { margin-top: var(--s-2); }
.prose h2 { margin-top: var(--s-5); }
.prose ul { padding-left: var(--s-3); }

/* placeholder marker — must be impossible to miss (§17.8) */
.placeholder {
  background: repeating-linear-gradient(45deg, #FBE9E7, #FBE9E7 10px, #F6DAD6 10px, #F6DAD6 20px);
  border: 1px dashed var(--marker); border-radius: var(--radius);
  padding: var(--s-1) var(--s-2); color: var(--marker); font-weight: 600;
  font-size: var(--t-14);
}

/* ----- footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--slate); background: var(--ink); color: var(--chalk);
  padding-block: var(--s-8) var(--s-6);
}
.site-footer a { color: var(--chalk); }
.site-footer .shell { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-6); }
.site-footer h4 { color: var(--white); margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 6px; font-size: var(--t-14); }
.footer-legal { margin-top: var(--s-5); font-size: var(--t-12); color: var(--slate); }

/* ----- 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;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--ink); color: var(--white); padding: var(--s-1) var(--s-2);
}
.skip-link:focus { left: var(--s-1); }
.marker-underline { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 2px; }

/* ----- responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 320px; }
  .grid--3, .grid--2, .site-footer .shell { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--chalk);
    border-bottom: 1px solid var(--slate); padding: var(--s-2) var(--s-3);
    gap: var(--s-2);
  }
  .nav-toggle { display: block; }
}

/* ----- motion (§14) ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
