/* İmsak Plus web site. Colours and type follow the app. */
/* The six Phosphor icons the page uses (MIT), cut from the app's font. */
@font-face {
  font-family: "Phosphor";
  src: url("fonts/icons.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Readex Pro";
  src: url("fonts/ReadexPro-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Readex Pro";
  src: url("fonts/ReadexPro-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --olive: #55683a;
  --olive-dark: #2f3b22;
  --sage: #b9cb98;
  --sage-light: #e2ebcf;
  --cream: #f6f4ea;
  --ink: #242b1d;
  --muted: #5f6754;
  --line: #e3e0d0;
  --sky-top: #b4c695;
  --sky-bottom: #edefdd;
  --night-top: #1c2318;
  --night-bottom: #3a4732;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Only the chosen language is shown; without JavaScript, Turkish. */
html:not([lang="tr"]) .l-tr,
html:not([lang="en"]) .l-en,
html:not([lang="ar"]) .l-ar { display: none !important; }

a { color: var(--olive); }

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

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

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 10px; font-size: 15px; }
.top nav a:hover { background: var(--sage-light); color: var(--ink); }
.langs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.langs button {
  font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--muted);
  padding: 4px 10px; border-radius: 9px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--olive); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.eyebrow { letter-spacing: .28em; font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.1; margin: 10px 0 16px; font-weight: 600; }
.lead { font-size: 19px; color: #3f4835; max-width: 34ch; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px;
  background: var(--olive-dark); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
}
.badge small { display: block; font-weight: 400; font-size: 12px; opacity: .75; }
.badge[aria-disabled="true"] { opacity: .9; cursor: default; }
.soon { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Floating island with a shadow, like the app's home screen */
.island { position: relative; aspect-ratio: 1; max-width: 520px; margin-inline: auto; width: 100%; }
.island img { width: 100%; animation: float 5s ease-in-out infinite; position: relative; z-index: 1; }
.island::after {
  content: ""; position: absolute; left: 25%; right: 25%; bottom: 2%; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 26, 16, .28), transparent); animation: shadow 5s ease-in-out infinite;
}
.island .night { position: absolute; inset: 0; opacity: 0; animation: float 5s ease-in-out infinite, dusk 12s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .7; } }
@keyframes dusk { 0%, 35% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .island img, .island::after, .island .night { animation: none; }
}

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; margin: 0 0 12px; font-weight: 600; }
.sub { color: var(--muted); max-width: 60ch; margin: 0 0 36px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.dot {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  font-family: "Phosphor"; font-size: 24px; line-height: 1; color: var(--olive-dark);
}
.mint { background: #c3e6d4; color: #256b4b; } .sky { background: #c4ddea; color: #2c5f7a; }
.lav { background: #dcd5f0; color: #55468f; } .apri { background: #fad7b5; color: #9a5418; }
.butter { background: #f5e4a6; color: #85671a; } .rose { background: #f5cfcb; color: #9b3b35; }

/* Islands gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { margin: 0; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); border-radius: var(--radius); padding: 14px; }
.gallery figcaption { text-align: center; font-weight: 600; font-size: 15px; margin-top: 4px; }

/* Screenshots strip */
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots img { width: 230px; flex: none; scroll-snap-align: start; filter: drop-shadow(0 18px 30px rgba(47, 59, 34, .18)); }

/* Promise band */
.promise { background: linear-gradient(180deg, var(--night-top), var(--night-bottom)); color: #f4f2e6; }
.promise .sub { color: rgba(244, 242, 230, .75); }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px; }
.promise strong { display: block; font-size: 18px; margin-bottom: 4px; }

/* Long-form pages (privacy, support) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc li { margin-bottom: 6px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p, details ul { color: #3f4835; }
.contact { background: var(--sage-light); border-radius: var(--radius); padding: 24px; margin-top: 32px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }
footer .spacer { margin-inline-start: auto; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .badges { justify-content: center; }
  .island { max-width: 380px; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .promise ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top nav a { display: none; }
  .features, .promise ul { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
