/* Public pages (about, privacy, contact) and the index.html summary: plain HTML, readable without JavaScript. */
:root {
  --site-primary: #f2701d;
  --site-navy: #0b2b4a;
  --site-bg: #f7f8fb;
  --site-surface: #ffffff;
  --site-text: #1c2430;
  --site-muted: #5b6573;
  --site-border: #e6e9ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --site-bg: #10151d;
    --site-surface: #18202b;
    --site-text: #e8ecf2;
    --site-muted: #a3adbb;
    --site-border: #263141;
  }
}

.site {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-text);
  font: 16px/1.65 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.site a {
  color: var(--site-primary);
}

.site-header,
.site-main,
.site-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-text) !important;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}

.site-main {
  padding-bottom: 32px;
}

.site-card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 20px;
  padding: 28px 28px 20px;
}

.payment-card {
  text-align: center;
}

.payment-card #payment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
}

.payment-card #payment-actions[hidden] {
  display: none;
}

.payment-button {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #f7b733 0%, #f2701d 55%, #e5484d 100%);
}

.payment-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.payment-note {
  font-size: 13px;
}

/* iyzico's phone field for card storage: say what it is and that the code comes to that number. */
.iyz-input-holder:has(input[name="gsmNumber"]) {
  position: relative;
  margin-top: 52px !important;
}

.iyz-input-holder:has(input[name="gsmNumber"])::before {
  content: "Cep telefonun (doğrulama kodu bu numaraya SMS ile gelir)";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2a44;
  text-align: left;
}

.payment-card .payment-band img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 12px auto 0;
}

.site h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.25;
}

.site h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.site h3 {
  margin: 18px 0 6px;
  font-size: 16px;
}

.site p,
.site li {
  color: var(--site-text);
}

.site .lead {
  color: var(--site-muted);
  font-size: 17px;
}

.site .meta {
  color: var(--site-muted);
  font-size: 13px;
}

.site-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.site-features li {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 16px;
  padding: 14px 16px;
}

.site-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.site-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--site-primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.site-button.secondary {
  background: transparent;
  color: var(--site-primary) !important;
  border: 1px solid var(--site-primary);
}

.site-footer {
  padding-top: 8px;
  padding-bottom: 32px;
  color: var(--site-muted);
  font-size: 13px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 8px;
}

.site-table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
  font-size: 15px;
}

.site-table th,
.site-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}

.site-table th {
  font-weight: 600;
}

/* Signed-in visitors (site-session.js): no sign-in or sign-up links, a way back to the app instead. */
[data-member],
.signed-in [data-guest] {
  display: none !important;
}

.signed-in [data-member] {
  display: inline-flex !important;
}

/* Start-up loader for a signed-in user (theme-init.js adds .booting, the app removes it once the first page is ready):
   the public summary and the half-built shell stay hidden, the logo pulses in the middle. */
html.booting app-root > * {
  opacity: 0;
  pointer-events: none;
  /* If the app never starts, show the page anyway after 10 s. */
  animation: booting-reveal 0s 10s forwards;
}

html.booting body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: url('/foxy-logo.svg') center / 96px no-repeat;
  animation:
    booting-pulse 1.2s ease-in-out infinite alternate,
    booting-hide 0s 10s forwards;
}

@keyframes booting-reveal {
  to {
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes booting-hide {
  to {
    visibility: hidden;
  }
}

@keyframes booting-pulse {
  from {
    opacity: 0.45;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.booting body::after {
    animation: booting-hide 0s 10s forwards;
  }
}
