/* turkscompass.com — the app's look (lib/theme/app_palette.dart): paper,
   ink, the brand red; Fraunces for headings, Inter for text. */
@font-face { font-family: Inter; src: url(/assets/fonts/Inter-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/fonts/Inter-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Fraunces; src: url(/assets/fonts/Fraunces-Variable.ttf) format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --paper: #f8f5ee; --card: #fcfaf5; --ink: #262220; --muted: #625c55; --faint: #8a8278;
  --line: #dcd6cc; --sand: #ede7dc; --accent: #c73b29; --brand: #d74532; --brand-dark: #b9372a;
  --clay: #b85c2a; --teal: #2b7a74; --plum: #8a4a7c; --mustard: #b07d16; --olive: #5b7d2c; --blue: #2f64ad;
  --radius: 18px; --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 18px; }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.wrap.narrow { margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.kicker.red { color: var(--accent); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
svg { width: 20px; height: 20px; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(248, 245, 238, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 22px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.lang { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.lang:hover { border-color: var(--ink); color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; padding: 9px 18px; font-size: 15px; }
.btn-red { background: var(--accent); color: #fff; }
.btn-red:hover { background: var(--brand-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 14px; padding: 10px 18px 10px 14px; line-height: 1.1; font-weight: 600; font-size: 19px; min-width: 176px; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; }
.store small { display: block; font-size: 11px; font-weight: 400; opacity: .85; letter-spacing: .02em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { background: var(--brand); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; }
.hero-copy { padding-bottom: 64px; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { color: #fde7e3; max-width: 30em; margin-bottom: 30px; }
.hero .store { background: #fff; color: var(--ink); }
.stats { display: flex; gap: 34px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .35); }
.stats b { display: block; font-family: Fraunces, Georgia, serif; font-size: 34px; font-weight: 600; line-height: 1; }
.stats span { font-size: 14px; color: #fde7e3; }
.hero-shot { align-self: end; display: flex; justify-content: center; }
/* the store image's lower part: the phone on the red, without its own headline */
.phone { width: min(420px, 100%); aspect-ratio: 1320 / 2030; overflow: hidden; }
.phone img { width: 100%; margin-top: -63.5%; }

/* sections */
.section { padding: 88px 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature h3 { margin: 16px 0 8px; }
.feature p { color: var(--muted); font-size: 16px; margin: 0; }
.badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--accent); background: rgba(199, 59, 41, .12); }
.badge svg { width: 24px; height: 24px; }
.b0 { color: var(--clay); background: rgba(184, 92, 42, .13); }
.b1 { color: var(--blue); background: rgba(47, 100, 173, .13); }
.b2 { color: var(--teal); background: rgba(43, 122, 116, .13); }
.b3 { color: var(--plum); background: rgba(138, 74, 124, .13); }
.b4 { color: var(--mustard); background: rgba(176, 125, 22, .14); }
.b5 { color: var(--olive); background: rgba(91, 125, 44, .14); }
.b6 { color: var(--accent); background: rgba(199, 59, 41, .12); }
.b7 { color: var(--teal); background: rgba(43, 122, 116, .13); }
.b8 { color: var(--plum); background: rgba(138, 74, 124, .13); }

.gallery-section { padding-bottom: 72px; background: var(--sand); }
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 18px; scrollbar-width: thin; }
.gallery img { height: min(560px, 70vh); width: auto; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 10px 30px rgba(38, 34, 32, .12); }
.gallery:focus { outline: 2px solid var(--accent); outline-offset: 4px; }

.countries { text-align: center; padding: 72px 0; }
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 15px; }

.biz { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 34px 0 14px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); }
.plan header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-premium { border: 2px solid var(--accent); background: #fff; }
.price { font-family: Fraunces, Georgia, serif; font-size: 26px; margin: 10px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.plan li svg { color: var(--accent); margin-top: 3px; }
.pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.insta { padding: 64px 0; }
.insta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--ink); color: #fff; border-radius: 28px; padding: 46px; }
.insta-box p { color: #d9d2c8; margin: 0; max-width: 34em; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; padding: 16px 36px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 26px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 30px; }
.faq-en { margin-top: 56px; }

.final { padding: 0 0 88px; }
.final-box { background: var(--brand); color: #fff; border-radius: 28px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final .store { background: #fff; color: var(--ink); }

/* plain pages */
.page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 28px; }
.legal h3 { font-size: 22px; margin: 34px 0 10px; }
.legal h4 { font-size: 17px; margin: 22px 0 8px; font-family: Inter, sans-serif; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.back { margin-top: 48px; }
.back a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; transition: border-color .15s; }
.contact-card:hover { border-color: var(--accent); }
.contact-card b { display: block; }
.contact-card span span { color: var(--muted); font-size: 15px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 30px; align-items: start; }
.foot-grid .brand { font-size: 20px; margin-bottom: 8px; }
.foot-links { display: grid; gap: 8px; }
.foot-links a, .fine a { text-decoration: none; color: var(--muted); }
.foot-links a:hover, .fine a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.fine { font-size: 14px; margin-top: 30px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-copy { padding-bottom: 8px; }
  .phone { width: min(330px, 86vw); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .bar { gap: 10px; }
  .brand span { font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  .lang { padding: 5px 10px; }
  .features, .plans, .contact-grid { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .stats b { font-size: 28px; }
  .store { min-width: 0; flex: 1 1 150px; }
  .insta-box, .final-box { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .gallery img { height: 440px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .store { transition: none; } }

/* /davet/: an invite code shared from the app */
.invite h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.invite-code { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 8px 0 22px; padding: 16px 20px; background: var(--card); border: 1.5px dashed var(--accent); border-radius: var(--radius); }
.invite-code span { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(34px, 6vw, 44px); letter-spacing: .12em; }
.invite-code[hidden] { display: none; }
.invite-steps { margin: 0 0 22px; padding-left: 22px; }
.invite-steps li { margin-bottom: 6px; }
.invite .stores { margin-bottom: 14px; }
.invite-rule { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.invite-code button { background: transparent; font: inherit; font-weight: 600; cursor: pointer; padding: 9px 18px; }
