/* Ayazint — a clear, cold morning: frost paper, deep ink, one ice-blue accent.
   Esnafım pages borrow the app's own green. */
:root {
  --paper: #f4f7fb;
  --surface: #ffffff;
  --ink: #0c1424;
  --muted: #55627a;
  --line: #dde4ee;
  --ice: #1f63d8;
  --ice-soft: #e3ecfb;
  --app: #0e7a4b;
  --app-soft: #dff4e7;
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a111e;
    --surface: #111b2c;
    --ink: #e8eef7;
    --muted: #9aa8bd;
    --line: #22304a;
    --ice: #7fb0ff;
    --ice-soft: #16253f;
    --app: #3fcf8a;
    --app-soft: #12291f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ice); color: var(--surface); }
a { color: var(--ice); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 38ch; }

/* Header */
.top { padding-block: 22px; }
.top .wrap { display: flex; align-items: center; gap: 28px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.3rem/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.03em; }
.mark svg { width: 28px; height: 28px; color: var(--ice); }
.top nav { margin-left: auto; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ice); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-line { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-app { background: var(--app); color: #fff; }
/* Not a link yet: a quiet label, not a button that does nothing. */
.soon { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1.5px dashed var(--app); color: var(--app); font-weight: 600; }
@media (prefers-color-scheme: dark) { .btn-app { color: #06140d; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 96px; }
.hero::before {
  /* Frost: two cold glows behind the type. */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--ice-soft), transparent 70%);
  z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--ice); }
.hero .lead { margin-top: 24px; }

/* Phones */
.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 36px; padding: 9px;
  background: var(--ink); box-shadow: 0 30px 60px -20px rgba(12, 20, 36, .45), 0 8px 18px -8px rgba(12, 20, 36, .3);
}
.phone img { border-radius: 28px; width: 100%; }
.phones .phone:nth-child(1) { right: 150px; top: 40px; transform: rotate(-6deg); }
.phones .phone:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); }
@media (prefers-color-scheme: dark) { .phone { background: #000; outline: 1px solid var(--line); } }

/* Sections */
section { padding-block: 88px; }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 46rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.rule { border-top: 1px solid var(--line); }

/* The app feature */
.app {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--app-soft); border-radius: calc(var(--radius) * 1.5); padding: 56px;
}
.app .badge { display: inline-flex; align-items: center; gap: 8px; color: var(--app); font-weight: 600; margin-bottom: 18px; }
.app .badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--app); }
.app h2 { color: var(--ink); }
.app p { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.app .shots { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.app .shots .phone { position: static; width: 46%; max-width: 230px; }
.app .shots .phone:nth-child(2) { margin-top: 48px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principles li { list-style: none; border-top: 2px solid var(--ink); padding-top: 20px; }
.principles h3 { margin-bottom: 10px; }
.principles p { color: var(--muted); }
ul.principles { padding: 0; margin: 0; }

/* Contact */
.contact { text-align: left; }
.contact .mail {
  display: inline-block; margin-top: 20px;
  font: 700 clamp(2rem, 6vw, 4.4rem)/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -0.03em;
  color: var(--ink); text-decoration-thickness: 3px; text-decoration-color: var(--ice);
}
.contact .mail:hover { color: var(--ice); }

/* App page */
.note-lang { margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery .phone { position: static; width: 100%; }
.gallery figcaption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card h3 { margin-bottom: 16px; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card li { margin: 8px 0; }
.card li strong { color: var(--ink); font-weight: 600; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.links a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); text-decoration: none; transition: border-color .18s; }
.links a:hover { border-color: var(--app); }
.links strong { display: block; font: 650 1.15rem/1.3 "Bricolage Grotesque", sans-serif; margin-bottom: 6px; }
.links span { color: var(--muted); font-size: 0.95rem; }
.app-page .hero::before { background: radial-gradient(closest-side, var(--app-soft), transparent 70%); }
.app-page .hero h1 em { color: var(--app); }
.app-page a { color: var(--app); }
.app-page .top nav a, .app-page .mark { color: var(--ink); }

/* Long-form documents (privacy, help, account deletion) */
.doc { padding-block: 32px 96px; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc .meta { color: var(--muted); margin-top: 12px; }
.doc h2 { font-size: 1.6rem; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 32px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; max-width: 68ch; }
.doc li { margin: 6px 0; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.doc .note { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-top: 24px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
footer a { color: var(--muted); }

/* Narrow screens */
@media (max-width: 900px) {
  .hero .wrap, .app, .split { grid-template-columns: 1fr; }
  .phones { height: 460px; max-width: 420px; }
  .phones .phone { width: 210px; }
  .phones .phone:nth-child(1) { right: auto; left: 0; }
  .app { padding: 32px 24px; }
  .principles, .links { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  section { padding-block: 64px; }
}
@media (max-width: 560px) {
  .top nav a:not(.lang) { display: none; }
  .phones { height: 400px; }
  .phones .phone { width: 180px; }
  .phones .phone:nth-child(2) { right: 0; }
}
