@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

:root {
  --base-font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  --page-max-width: 960px;
  --page-gutter: clamp(1rem, 2vw, 2rem);
  --surface: #000;
  --surface-elevated: rgb(115, 20, 240);
  --border-soft: rgba(255, 255, 255, 0.14);
  --border-faint: rgba(255, 255, 255, 0.08);
}

html,
body {
  height: 100%;
}

html {
  color-scheme: dark;
}

body {
  font-family: var(--base-font);
  color: rgb(115, 20, 240);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  background: var(--surface);
}

/* Paragraphs */
p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: #fff;
}
ul,
li,
a {
  color: #fff;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--base-font);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

h1 {
  font-weight: 700;
  font-size: 2rem;
}

/* Homepage container only: use full-viewport centering for the landing page */
body > main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  width: min(100%, var(--page-max-width));
  margin: 0 auto;
  padding: var(--page-gutter);
  box-sizing: border-box;
}

faq-comp,
contact-form,
app-store-link,
logo-comp {
  display: block;
  width: 100%;
  text-align: center;
}

.language-prompt {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  box-sizing: border-box;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 1rem var(--page-gutter);
  border-radius: 0;
  border-block: 1px solid var(--border-soft);
  border-inline: 0;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #fff;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.language-prompt__content {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.language-prompt__eyebrow {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.language-prompt__title {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
  text-align: left;
}

.language-prompt__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.language-prompt__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.language-prompt__button,
.language-prompt__link {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    background 160ms ease;
}

.language-prompt__button:hover,
.language-prompt__link:hover {
  transform: translateY(-1px);
}

.language-prompt__button:focus,
.language-prompt__link:focus {
  outline: 2px solid rgb(115, 20, 240);
  outline-offset: 2px;
}

.language-prompt__button {
  color: #fff;
}

.language-prompt__link {
  background: var(--surface-elevated);
  color: #fff;
}

@media (max-width: 640px) {
  .language-prompt {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-inline: calc(50% - 50vw);
  }

  .language-prompt__actions {
    justify-content: space-between;
  }

  .language-prompt__button,
  .language-prompt__link {
    width: 100%;
    text-align: center;
  }
}

/* Shared section styles */
.faq,
.contact {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  color: #fff;
}

.iphone-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.02em;
}

.app-store-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: #111;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.app-store-link:hover {
  transform: translateY(-2px);
}

.app-store-link:focus {
  outline: 2px solid rgb(115, 20, 240);
  outline-offset: 2px;
}

/* FAQ styles */
.faq details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin: 0.5rem 0;
  padding: 0.6rem 0.75rem;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary:focus {
  outline: 2px solid rgb(115, 20, 240);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq summary::marker {
  content: none;
}

.faq details[open] {
  background: rgba(255, 255, 255, 0.06);
}

.faq p {
  margin: 0.5rem 0 0 0;
}

/* Contact form styles */
.contact form {
  display: grid;
  gap: 0.6rem;
}

.contact label {
  display: block;
  font-size: 0.95rem;
}

.contact-note {
  color: #dcdcdc;
  font-size: 0.95rem;
  margin: 0;
  font-style: italic;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: 2px solid rgb(115, 20, 240);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.04);
}

button[type="submit"] {
  padding: 0.55rem 0.9rem;
  background: linear-gradient(135deg, #37d67a, #1db954);
  color: #042;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

button[type="submit"]:focus {
  outline: 2px solid rgb(115, 20, 240);
  outline-offset: 2px;
}

button[disabled] {
  opacity: 0.7;
  cursor: default;
}

.contact #cf-status {
  margin: 0;
  font-size: 0.95rem;
}
