/* Soonjar's pages. Colors, type and radii are the app's (lib/theme). */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0309, U+0323, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0309, U+0323, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0309, U+0323, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0309, U+0323, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0309, U+0323, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f2f5f1;
  --surface: #ffffff;
  --surface-2: #eaefe9;
  --line: #e2e8e1;
  --text-1: #0f1a14;
  --text-2: #4d5a52;
  --text-3: #5e6a62;
  --primary: #17603f;
  --on-primary: #ffffff;
  --primary-soft: #dcefe3;
  --on-primary-soft: #17603f;
  --lime: #c8f169;
  --lime-soft: #eef9d6;
  --lime-ink: #3d5a00;
  --ink: #0f1a14;
  --hero-top: #1f6b46;
  --hero-bottom: #0b3221;
  --shadow: 0 1px 2px rgb(15 26 20 / 6%), 0 12px 32px rgb(15 26 20 / 7%);
  --title: "Bricolage Grotesque", "Figtree", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b110d;
    --surface: #141c17;
    --surface-2: #1d2721;
    --line: #27322b;
    --text-1: #edf2ee;
    --text-2: #b3bfb7;
    --text-3: #97a49b;
    --primary: #c8f169;
    --on-primary: #0f1a14;
    --primary-soft: #12301f;
    --on-primary-soft: #79d9a3;
    --lime-soft: #1f2b12;
    --lime-ink: #c8f169;
    --hero-top: #17603f;
    --hero-bottom: #0b241a;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

/* While another language's words go in, so English doesn't flash first.
   If the script never runs, the page shows anyway. */
html.t-wait body {
  opacity: 0;
  animation: t-show 0s 1.2s forwards;
}
@keyframes t-show {
  to {
    opacity: 1;
  }
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}
@media (prefers-color-scheme: dark) {
  a {
    color: var(--on-primary-soft);
  }
}

h1,
h2,
h3 {
  font-family: var(--title);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 17px;
  font-weight: 700;
}
p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Top bar */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  text-decoration: none;
  font: 800 20px/1 var(--title);
  letter-spacing: -0.01em;
  min-height: 44px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.lang-picker {
  appearance: none;
  -webkit-appearance: none;
  font: 600 15px/1 var(--text);
  color: var(--text-1);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235e6a62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center / 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 36px 0 16px;
  max-width: 52vw;
  cursor: pointer;
}
[dir="rtl"] .lang-picker {
  background-position: left 10px center;
  padding: 0 16px 0 36px;
}
.lang-picker:focus-visible,
.button:focus-visible,
.store:focus-visible,
.copy:focus-visible,
a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

/* Home */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 40px 24px 36px;
  border-radius: 32px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(255 200 87 / 22%), transparent 60%),
    linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
}
.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 35%);
}
.hero h1 {
  margin-top: 24px;
  color: #ffffff;
}
.hero .lead {
  margin: 12px auto 0;
  max-width: 34em;
  color: #dcefe3;
}
.hero .store {
  margin-top: 28px;
}

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: 700 17px/1.2 var(--text);
  text-decoration: none;
}
.store svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.store.soon {
  background: rgb(255 255 255 / 12%);
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 28%);
}
.card .store.soon {
  background: var(--surface-2);
  color: var(--text-2);
  border-color: var(--line);
}
a.store:hover {
  filter: brightness(1.05);
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.feature h2 {
  font-size: 20px;
  margin-top: 14px;
}
.feature p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 16px;
}
.badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}
.badge svg {
  width: 22px;
  height: 22px;
}
.badge.lime {
  background: var(--lime-soft);
  color: var(--lime-ink);
}

/* Pages with one card */

main {
  padding-bottom: 8px;
}
.page-head {
  margin-top: 16px;
}
.page-head .badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.page-head .badge svg {
  width: 26px;
  height: 26px;
}
.page-head .lead {
  margin-top: 10px;
  color: var(--text-2);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.card > * + * {
  margin-top: 12px;
}
.card h2 + p,
.card h2 + ul,
.card h2 + ol {
  margin-top: 8px;
}
.muted {
  color: var(--text-2);
  font-size: 16px;
}
.small {
  color: var(--text-3);
  font-size: 15px;
}

.chip {
  display: inline-block;
  padding: 1px 8px;
  margin: 1px 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-1);
  font-weight: 600;
  white-space: nowrap;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 44px;
  min-height: 32px;
}
.steps li + li {
  margin-top: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font: 800 15px/1 var(--title);
}

.list {
  padding-inline-start: 1.2em;
  margin: 0;
}
.list li + li {
  margin-top: 6px;
}

/* Invite code */

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 16px 16px 20px;
  border-radius: 16px;
  background: var(--lime-soft);
}
[dir="rtl"] .code-box {
  padding: 16px 20px 16px 16px;
}
.code-label {
  display: block;
  color: var(--lime-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.code {
  display: block;
  direction: ltr;
  font: 800 34px/1.1 var(--title);
  letter-spacing: 0.06em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
.copy {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font: 700 15px/1 var(--text);
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  .copy {
    background: var(--lime);
    color: var(--ink);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: 700 17px/1.2 var(--text);
  text-decoration: none;
}
.button svg {
  width: 22px;
  height: 22px;
}

.faq h3 {
  margin-top: 20px;
}
.faq h2 + h3 {
  margin-top: 16px;
}
.faq p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 16px;
}

/* Legal texts */

.legal-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 15px;
}
html.lang-en .legal-note,
html.lang-tr .legal-note {
  display: none;
}
/* The KVKK notice is only in Turkish, so English readers get the note too. */
html.lang-en .legal-note.tr-only {
  display: block;
}
/* Legal texts are in English and Turkish: Turkish readers get theirs, and
   everyone else the English. */
html:not(.lang-tr) [data-legal="tr"],
html.lang-tr [data-legal="en"] {
  display: none;
}
.legal {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.legal h1 {
  font-size: 28px;
}
.legal .updated {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 15px;
}
.legal h2 {
  font-size: 20px;
  margin-top: 32px;
}
.legal h3 {
  margin-top: 20px;
}
.legal p,
.legal ul,
.legal table {
  margin-top: 10px;
}
.legal ul {
  padding-inline-start: 1.2em;
}
.legal li + li {
  margin-top: 6px;
}
.legal .table {
  overflow-x: auto;
  margin-top: 12px;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.legal td:first-child {
  width: 32%;
}
.legal th,
.legal td {
  text-align: start;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.legal th {
  font-weight: 700;
  background: var(--surface-2);
}
.legal .fill {
  background: #ffe7a3;
  color: #0f1a14;
  padding: 0 4px;
  border-radius: 4px;
}

/* Bottom */

.foot {
  margin-top: 40px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 15px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.foot a {
  color: var(--text-2);
  text-decoration: none;
  display: inline-block;
  padding-block: 6px;
}
.foot a:hover {
  color: var(--text-1);
  text-decoration: underline;
}
.foot .kvkk {
  display: none;
}
html.lang-tr .foot .kvkk {
  display: inline-block;
}
.foot p {
  margin-top: 12px;
}

@media (min-width: 640px) {
  h1 {
    font-size: 64px;
    letter-spacing: -0.03em;
  }
  .page-head h1,
  .legal h1 {
    font-size: 34px;
  }
  .hero {
    padding: 64px 48px 56px;
  }
  .card {
    padding: 28px 28px;
  }
  .legal {
    padding: 40px 36px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .feature,
  .card {
    animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .features .feature:nth-child(2) {
    animation-delay: 60ms;
  }
  .features .feature:nth-child(3) {
    animation-delay: 120ms;
  }
  .features .feature:nth-child(4) {
    animation-delay: 180ms;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}
