/* ============================================================
   Amiplay — Shared Theme Stylesheet
   Matches the redesigned amiplay.com (2026)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:root {
  --purple:       #3D1570;
  --purple-dark:  #2D0F55;
  --purple-mid:   #6B3FA0;
  --purple-soft:  #F0EAFF;
  --purple-line:  rgba(61,21,112,0.15);
  --black:        #111111;
  --grey-1:       #3D3D3D;
  --grey-2:       #6B6B6B;
  --grey-3:       #F6F6F8;
  --line:         #E5E5E5;
  --max:          1000px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg:    0 16px 48px rgba(17,17,17,0.08);
}

.wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 600; font-size: 0.9375rem;
  padding: 0.8125rem 1.625rem; border-radius: 999px; border: none;
  cursor: pointer; transition: all 0.22s var(--ease); white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 4px 18px rgba(61,21,112,0.28); }
.btn-primary:hover { background: var(--purple-dark); box-shadow: 0 6px 24px rgba(61,21,112,0.38); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--black); border: 1.75px solid var(--line); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-1px); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }

/* ─── Nav ─── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200; padding: 1rem 0;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
/* Pixel-precise logo crop (333×333 image, text bbox y:143–189) */
.nav-logo { display: block; height: 30px; overflow: hidden; flex-shrink: 0; }
.nav-logo img { display: block; height: 220px; width: auto; margin-top: -94px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a:not(.nav-cta) { font-size: 0.9rem; font-weight: 500; color: var(--grey-2); transition: color 0.18s; }
.nav-links a:not(.nav-cta):hover { color: var(--black); }
.nav-links a.active { color: var(--purple); font-weight: 700; }
.nav-cta {
  font-family: inherit; font-weight: 600; font-size: 0.875rem;
  padding: 0.6rem 1.375rem; border-radius: 999px; cursor: pointer;
  transition: all 0.22s var(--ease); text-decoration: none;
  display: inline-flex; align-items: center;
  color: #fff; background: var(--purple); border: none;
  box-shadow: 0 4px 16px rgba(61,21,112,0.28);
}
.nav-cta:hover { background: var(--purple-dark); }
.nav-toggle {
  display: none; background: none; border: none; width: 44px; height: 44px;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 24px; border-radius: 2px; background: var(--black); transition: transform 0.28s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--line); padding: 0.5rem 0 1rem; }
.nav-drawer a { display: block; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 500; color: var(--grey-1); border-bottom: 1px solid var(--line); }
.nav-drawer a:last-child { border: none; color: var(--purple); font-weight: 700; }
.nav-drawer.open { display: flex; }

/* ─── Page header ─── */
.page-header {
  padding: 9rem 0 3.5rem;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  position: relative; overflow: hidden; text-align: center;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.page-header-inner { position: relative; z-index: 1; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.page-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #A78BFA; }
.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.25rem); font-weight: 800;
  letter-spacing: -0.03em; color: #fff; line-height: 1.1;
}
.page-header p { font-size: 1.0625rem; color: rgba(255,255,255,0.6); margin-top: 1rem; max-width: 36rem; margin-inline: auto; }

/* ─── Main content ─── */
.page-main { padding: 4rem 0 5rem; }

/* Prose (policy text) */
.prose { max-width: 46rem; margin-inline: auto; }
.prose > p { font-size: 1rem; color: var(--grey-1); margin-bottom: 1.25rem; line-height: 1.8; }
.prose h2, .prose h3 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--black); margin: 2.25rem 0 0.875rem;
}
.prose h4 {
  font-size: 1rem; font-weight: 700; color: var(--purple);
  margin: 1.5rem 0 0.5rem;
}
.prose ul { margin: 0 0 1.25rem 1.25rem; }
.prose li { font-size: 1rem; color: var(--grey-1); margin-bottom: 0.5rem; }
.prose a { color: var(--purple); font-weight: 600; border-bottom: 1.5px solid var(--purple-line); }
.prose a:hover { border-color: var(--purple); }
.prose .effective { font-size: 0.875rem; color: var(--grey-2); font-style: italic; }

/* ─── Cards grid (payment options) ─── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.75rem; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
  position: relative; overflow: hidden;
}
.info-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-mid));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(61,21,112,0.1); border-color: var(--purple-line); }
.info-card:hover::after { transform: scaleX(1); }
.info-card-head { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.25rem; }
.info-card-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--purple-soft); border-radius: 12px;
  display: grid; place-items: center;
}
.info-card-ico svg { width: 22px; height: 22px; stroke: var(--purple); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--black); letter-spacing: -0.01em; }
.info-card .sub { font-size: 0.78rem; color: var(--grey-2); }
.bank-rows { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.bank-rows li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.bank-rows li:last-child { border: none; }
.bank-rows .k { color: var(--grey-2); }
.bank-rows .v { color: var(--black); font-weight: 600; text-align: right; }

/* ─── Online payment callout ─── */
.callout {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  justify-content: space-between;
  background: var(--purple-soft); border: 1px solid var(--purple-line);
  border-radius: 18px; padding: 1.75rem 2rem; margin-bottom: 2.5rem;
}
.callout-text h3 { font-size: 1.1875rem; font-weight: 700; color: var(--black); margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.callout-text p { font-size: 0.9375rem; color: var(--grey-2); }

/* ─── Forms ─── */
.form-card {
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 2.5rem; box-shadow: var(--shadow-lg);
}
.form-secure {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; color: #1a7a3a;
  background: #e7f8ed; border-radius: 999px; padding: 0.4rem 0.9rem;
  margin-bottom: 1.75rem;
}
.form-secure svg { width: 14px; height: 14px; stroke: #1a7a3a; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-row { margin-bottom: 1.125rem; }
.form-row label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--grey-1); margin-bottom: 0.4rem; letter-spacing: 0.01em;
}
.form-row label .req { color: #d11; margin-left: 2px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
  width: 100%; font-family: inherit; font-size: 0.9375rem; color: var(--black);
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; transition: border-color 0.18s, box-shadow 0.18s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(61,21,112,0.1);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 0.875rem; margin-top: 1.75rem; }
.form-actions .btn { flex: 1; }
.form-note { font-size: 0.8rem; color: var(--grey-2); margin-top: 1rem; text-align: center; }

/* ─── Summary review table ─── */
.summary-card {
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 2.25rem 2.5rem; box-shadow: var(--shadow-lg);
}
.summary-card h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; color: var(--black); }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td { padding: 0.65rem 0; font-size: 0.9375rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.summary-table tr:last-child td { border-bottom: none; }
.summary-table .k { color: var(--grey-2); width: 38%; }
.summary-table .v { color: var(--black); font-weight: 600; }
.summary-divider td { border-bottom: 2px solid var(--purple-line) !important; padding: 0.25rem 0 !important; }

/* ─── Payment gateways ─── */
.gateway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.gateway-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem;
}
.gateway-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--purple); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.gateway-card p { font-size: 0.9rem; color: var(--grey-2); line-height: 1.7; margin-bottom: 1.5rem; }
.notice-box {
  background: var(--grey-3); border-radius: 14px; padding: 1.5rem 1.75rem;
  max-width: 46rem; margin: 0 auto 2rem; border-left: 3px solid var(--purple);
}
.notice-box p { font-size: 0.95rem; color: var(--grey-1); margin-bottom: 0.5rem; }
.notice-box p:last-child { margin-bottom: 0; }

/* ─── App badges ─── */
.app-badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 3rem 0 0; }
.app-badges a { transition: transform 0.2s var(--ease), opacity 0.2s; }
.app-badges a:hover { transform: translateY(-2px); opacity: 0.85; }
.app-store-btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: var(--black); color: #fff; border-radius: 12px;
  padding: 0.7rem 1.25rem;
}
.app-store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.app-store-btn .lbl { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.app-store-btn .lbl small { font-size: 0.6rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.app-store-btn .lbl b { font-size: 0.95rem; font-weight: 700; }

/* ─── Footer ─── */
footer { background: #F8F7FB; border-top: 1px solid #E5E0F0; padding: 4rem 0 2.5rem; color: var(--grey-1); }
.footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid #E5E0F0; margin-bottom: 2rem; }
.footer-logo { display: block; height: 36px; overflow: hidden; margin-bottom: 1.25rem; }
.footer-logo img { display: block; height: 261px; width: auto; margin-top: -112px; }
.footer-brand p { font-size: 0.875rem; color: var(--grey-2); line-height: 1.75; max-width: 22rem; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.625rem; }
.soc-link { width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid #E5E0F0; display: grid; place-items: center; transition: border-color 0.18s, background 0.18s; color: var(--grey-2); }
.soc-link:hover { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); }
.soc-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--black); margin-bottom: 1.125rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.875rem; color: var(--grey-2); transition: color 0.18s; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.8rem; color: var(--grey-2); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: var(--grey-2); transition: color 0.18s; }
.footer-legal a:hover { color: var(--purple); }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-card, .summary-card { padding: 1.75rem 1.5rem; }
}
