/* Iskelesi: white paper, Turkish red headlines, ink for everything else.
   Mirrors the app's design notes (ios/Sources/Iskelesi/Views/Theme.swift). */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --red: #E30A17;          /* the flag's red: marks, headlines, fills */
  --red-text: #E30A17;     /* red when it's small text */
  --page: #FFFFFF;
  --ink: #16161A;
  --muted: #5E5E66;
  --card: #F6F5F3;         /* the app's faint warm grey */
  --line: #E6E4E0;
  --frame: #16161A;
  --gutter: 16px;
  --measure: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red-text: #FF5A63;
    --page: #0D0D0F;
    --ink: #F3F2F0;
    --muted: #A3A2A8;
    --card: #18181B;
    --line: #2A2A2F;
    --frame: #2E2E34;
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--red-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--page); padding: 8px 12px; z-index: 2; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo img { width: 133px; height: 24px; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--red-text); }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero h1 { color: var(--red-text); font-size: clamp(40px, 9.5vw, 76px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero .lede { margin-top: 24px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34em; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px 13px 18px; border-radius: 999px;
  background: var(--ink); color: var(--page);
  font-weight: 600; font-size: 16px; line-height: 1.2;
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.cta .note { font-size: 15px; color: var(--muted); }
.estimate-note { margin-top: 28px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 32em; }
.estimate-note svg { flex: none; width: 22px; height: 22px; color: var(--red-text); margin-top: 1px; }
.hero .phone { justify-self: center; }
@media (min-width: 880px) {
  .hero { padding: 64px 0 112px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; }
  .hero .phone { justify-self: end; margin-right: 24px; }
}

/* A simple phone: an ink frame around the shot. */
.phone {
  width: min(100%, 300px);
  padding: 9px; border-radius: 46px;
  background: var(--frame);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .35);
}
.phone img { width: 100%; border-radius: 37px; background: #fff; }

/* Operators */
.operators { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.operators .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.operators ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-weight: 600; font-size: 18px; }

/* Features */
.features { padding: 88px 0 24px; }
.feature { display: grid; gap: 40px; align-items: center; padding: 40px 0; }
.feature .phone { justify-self: center; width: min(100%, 280px); }
.feature h2, .honest h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; color: var(--red-text); letter-spacing: -0.03em; }
.feature p, .honest p { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 30em; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; margin-bottom: 24px; }
.icon-tile svg { width: 30px; height: 30px; }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
  .feature.flip .copy { order: 2; }
  .feature .copy { max-width: 460px; justify-self: center; }
}

.cards { display: grid; gap: 16px; padding: 40px 0 88px; }
.card { background: var(--card); border-radius: 20px; padding: 32px 28px; }
.card h2 { font-size: 26px; font-weight: 700; color: var(--red-text); }
.card p { margin-top: 12px; color: var(--muted); font-size: 17px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; gap: 24px; } .card { padding: 40px; } }

/* The honest bit */
.honest { padding: 0 0 104px; }
.honest .inner { border: 2px dashed var(--red); border-radius: 28px; padding: 40px 28px; }
.honest p { max-width: 38em; }
.honest p strong { color: var(--ink); font-weight: 600; }
@media (min-width: 720px) { .honest .inner { padding: 64px; } }

/* Closing band */
.band { background: var(--red); color: #fff; padding: 88px 0; text-align: center; }
.band img { width: min(60vw, 300px); height: auto; margin: 0 auto; }
.band h2 { margin-top: 36px; font-size: clamp(28px, 5vw, 40px); font-weight: 700; }
.band p { margin: 14px auto 0; font-size: 18px; max-width: 30em; opacity: .95; }
.band a { color: #fff; font-weight: 600; }

/* Footer */
.site-footer { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.site-footer li + li::before { content: "·"; margin: 0 10px; color: var(--muted); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--red-text); text-decoration: underline; }

/* Prose pages: privacy, terms, support */
.prose { max-width: 712px; margin: 0 auto; padding: 48px var(--gutter) 104px; }
.prose h1 { color: var(--red-text); font-size: clamp(38px, 7vw, 56px); font-weight: 700; letter-spacing: -0.03em; }
.prose .meta { margin-top: 14px; color: var(--muted); font-size: 15px; }
.prose .intro { margin-top: 28px; font-size: 20px; line-height: 1.5; }
.prose h2 { margin-top: 56px; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.prose h3 { margin-top: 32px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.prose p, .prose ul, .prose table { margin-top: 16px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--red-text); }
.prose strong { font-weight: 600; }
.summary { margin-top: 32px; background: var(--card); border-radius: 20px; padding: 24px 24px 24px 20px; }
.summary ul { margin-top: 0; }
.table-scroll { margin-top: 20px; overflow-x: auto; }
.prose table { margin-top: 0; width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mail { margin-top: 32px; display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; }
.mail:hover { background: #C40813; }
.faq h3 { margin-top: 36px; }

.notfound { text-align: center; padding-top: 96px; padding-bottom: 136px; }
.notfound img { width: 72px; height: 72px; margin: 0 auto 28px; }
.notfound p { margin-top: 18px; color: var(--muted); }

@media (min-width: 720px) { .card.wide { grid-column: 1 / -1; } }
.card.wide p { max-width: 40em; }
.prose code { font: 500 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

/* Language switch: EN / TR, the current one in red. */
.lang { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang a { color: var(--muted); text-decoration: none; padding: 2px 0; }
.lang a + a::before { content: "/"; margin: 0 6px; color: var(--line); font-weight: 400; }
.lang a[aria-current="true"] { color: var(--red-text); }
.lang a:hover { color: var(--red-text); }
.site-header nav { align-items: center; }
.site-header nav .lang a { font-size: 13px; font-weight: 600; }
@media (max-width: 479px) { .site-header nav { gap: 16px; } }

/* Developers page: code blocks and a wider column for the tables. */
.prose.dev { max-width: 800px; }
.prose.dev .intro, .prose.dev > p, .prose.dev h1 { max-width: 680px; }
.prose pre.code {
  margin: 16px 0 0; padding: 16px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  font: 500 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose pre.code code { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-wrap { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.code-wrap pre.code { margin-top: 0; flex: 1; min-width: 0; }
button.copy {
  flex: none; margin-top: 9px;
  font: 600 13px/1 "Figtree", sans-serif; color: var(--ink);
  background: var(--page); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 13px; cursor: pointer;
}
button.copy:hover { color: var(--red-text); border-color: var(--red-text); }
.prose.dev td code { white-space: nowrap; }
.prose.dev td:first-child { padding-right: 20px; }
@media (max-width: 479px) { .code-wrap { flex-direction: column; align-items: flex-end; } .code-wrap pre.code { width: 100%; flex: none; } button.copy { margin-top: 0; } }

/* ---------- Landing page: the city carries it ---------- */

.credit { font-size: 12px; line-height: 1.3; color: var(--muted); }
.credit a { color: inherit; text-decoration: none; }
.credit a:hover { text-decoration: underline; }

/* Hero: the headline on the page, the ferry deck rising out of it. The photo's
   pale sky runs into the page colour through a gradient, so the type never
   sits on the picture. */
.hero { padding: 32px 0 0; position: relative; }
.hero .wrap.hero-copy { display: block; text-align: center; position: relative; z-index: 1; }
.hero h1 { max-width: 12.5em; margin: 0 auto; }
.hero .lede { margin: 24px auto 0; max-width: 36em; }
.cta { justify-content: center; }
.hero-photo { margin: 36px 0 0; position: relative; }
.hero-photo img { width: 100%; height: clamp(340px, 52vw, 760px); object-fit: cover; object-position: 72% 100%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 34%;
  background: linear-gradient(var(--page) 0%, color-mix(in srgb, var(--page) 72%, transparent) 36%, transparent 100%);
  pointer-events: none; z-index: 1;
}
.hero-photo .credit, .closing .credit {
  position: absolute; right: 12px; bottom: 10px; color: #fff;
  text-shadow: 0 1px 6px rgb(0 0 0 / .6); opacity: .92;
}
@media (min-width: 880px) {
  .hero { padding-top: 56px; }
  .hero-photo { margin-top: 8px; }
  .hero-photo::before { height: 46%; }
  .hero-photo .credit, .closing .credit { right: 24px; bottom: 16px; }
}
@media (prefers-color-scheme: dark) {
  .hero-photo img { filter: brightness(.82); }
  .hero-photo::before { height: 56%; }
}

/* Operators: two groups */
.operators { border-top: 0; }
.operators .wrap { gap: 20px 56px; align-items: flex-start; }
.operators .wrap > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }

/* The honest bit, straight after the hero */
.honest { padding: 72px 0 0; }
.honest .inner { display: grid; gap: 20px; }
.icon-ring { color: var(--red-text); width: 44px; height: 44px; }
.icon-ring svg { width: 44px; height: 44px; }
.honest .label { margin-bottom: 8px; }
@media (min-width: 720px) { .honest .inner { grid-template-columns: auto 1fr; gap: 32px; padding: 56px 64px; } }

/* Features: the phone stands on a photograph of the city */
.features { padding-top: 56px; }
.stage { margin: 0; display: grid; justify-items: center; width: 100%; max-width: 520px; justify-self: center; }
.stage > picture, .stage > .phone { grid-area: 1 / 1; }
.stage > picture { width: 100%; align-self: stretch; }
.stage > picture img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.stage > .phone, .feature .stage > .phone { width: min(62%, 270px); margin: 44px 0; align-self: center; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); }
.stage .credit { grid-area: 2 / 1; justify-self: end; margin-top: 10px; }
@media (min-width: 880px) { .feature .copy { justify-self: start; } .feature.flip .copy { justify-self: end; } }
.cards { padding-bottom: 104px; }

/* Closing: golden hour */
.closing { position: relative; color: #fff; text-align: center; display: grid; isolation: isolate; }
.closing figure { margin: 0; grid-area: 1 / 1; position: relative; z-index: -1; min-height: 100%; }
.closing figure picture, .closing figure img { display: block; width: 100%; height: 100%; }
.closing figure img { position: absolute; inset: 0; object-fit: cover; object-position: 62% 40%; }
.closing figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(14 10 6 / .44), rgb(14 10 6 / .60)); }
.closing .credit { z-index: 1; }
.closing .wrap { grid-area: 1 / 1; padding-top: clamp(96px, 12vw, 176px); padding-bottom: clamp(104px, 13vw, 190px); text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
.closing .wrap img { width: min(60vw, 300px); height: auto; margin: 0 auto; }
.closing h2 { margin-top: 36px; font-size: clamp(28px, 5vw, 40px); font-weight: 700; }
.closing p { margin: 14px auto 0; font-size: 18px; max-width: 30em; }
.closing .wrap a { color: #fff; font-weight: 600; }
.site-footer { padding-top: 36px; }
