/* Teleshka public web pages (privacy, terms, download).
   Served by the Serverpod web server from web/static/css/pages.css.
   Brand: single bold pink (#FF1E8A) on clean white surfaces, Inter type. */

:root {
  --pink: #ff1e8a;
  --pink-dark: #e60073;
  --ink: #1c1c1e;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --border: #ececef;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Language selector (top of every page) ──────────────────── */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  max-width: 768px;
  margin: 0 auto;
  padding: 10px 20px 0;
}

.lang-switch button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--gray-600);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lang-switch button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.lang-switch button.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

/* ── Sticky header with back button ─────────────────────────── */
.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.page-header .inner {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}

.page-header .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 999px;
  color: var(--gray-600);
  transition: background 0.15s ease;
}

.page-header .back:hover {
  background: var(--gray-100);
}

.page-header h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ── Article body ───────────────────────────────────────────── */
.article {
  max-width: 768px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 13px;
  margin-bottom: 24px;
}

.lead {
  font-size: 18px;
  color: var(--gray-700);
  margin: 0 0 32px;
}

.article section {
  margin-bottom: 32px;
}

.article h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.article p {
  color: var(--gray-700);
  margin: 0 0 16px;
}

.article p:last-child {
  margin-bottom: 0;
}

.article strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Bulleted lists ─────────────────────────────────────────── */
ul.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--gray-700);
}

ul.list li + li {
  margin-top: 12px;
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-top: 9px;
  background: var(--gray-400);
}

.dot.pink {
  background: var(--pink);
}

.dot.green {
  background: #22c55e;
}

/* ── Contacts card ──────────────────────────────────────────── */
.contacts {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
}

.contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact + .contact {
  margin-top: 16px;
}

.contact .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

.contact .label {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
}

.contact .value {
  display: block;
  font-weight: 600;
}

.contact a.value {
  transition: color 0.15s ease;
}

.contact a.value:hover {
  color: var(--pink);
}

/* ── Download page ──────────────────────────────────────────── */
.download {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
  padding: 48px 24px;
}

.download .logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}

.download h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.download .subtitle {
  max-width: 28rem;
  color: var(--gray-500);
  margin: 0;
}

.download .head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.download .stores {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .download .stores {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  transition: background 0.15s ease;
}

.store-btn.apple {
  background: #000;
}

.store-btn.apple:hover {
  background: #1f2937;
}

.store-btn.play {
  background: var(--pink);
}

.store-btn.play:hover {
  background: var(--pink-dark);
}

.download .loader {
  color: var(--gray-500);
  margin: 0;
}

/* ── Forms (become-supplier) ────────────────────────────────── */
.form {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.form .intro {
  color: var(--gray-700);
  margin: 0 0 24px;
}

.form-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-error:empty {
  display: none;
}

.form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 20px;
  min-width: 0;
}

.form legend {
  font-weight: 600;
  font-size: 16px;
  padding: 0 8px;
}

.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field > label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.field .hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

.req {
  color: var(--pink);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .row {
    grid-template-columns: 1fr;
  }
}

input[type='text'],
input[type='tel'],
input[type='email'],
input[type='url'],
input[type='number'],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
}

textarea {
  resize: vertical;
  min-height: 72px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.check:last-child {
  margin-bottom: 0;
}

.check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
  flex: none;
}

.check label {
  font-size: 14px;
  color: var(--gray-700);
}

.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .type-grid {
    grid-template-columns: 1fr;
  }
}

.type-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.type-option input {
  accent-color: var(--pink);
  width: 18px;
  height: 18px;
}

.type-detail[hidden] {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--pink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

button.btn-primary:hover {
  background: var(--pink-dark);
}

/* Success confirmation */
.success {
  max-width: 520px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.success .check-circle {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.success p {
  color: var(--gray-600);
  margin: 0 0 8px;
}

.success .code {
  display: inline-block;
  margin: 16px 0 24px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--gray-100);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Home landing ───────────────────────────────────────────── */
.store-btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.store-btn.ghost:hover {
  background: var(--gray-50);
}

.home-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  color: var(--gray-500);
  font-size: 14px;
}

.home-footer a {
  transition: color 0.15s ease;
}

.home-footer a:hover {
  color: var(--pink);
}

[hidden] {
  display: none !important;
}
