@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --cream: #f4e3c8;
  --cream-light: #fff6e8;
  --ink: #3a1f14;
  --ink-soft: #5a3418;
  --muted: #8a6a4a;
  --red: #c8412b;
  --red-dark: #8a2f1e;
  --orange: #e8912a;
  --orange-dark: #b56d1a;
  --green: #3a7d4f;
  --green-dark: #285a38;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Space Grotesk", -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
.brand {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
}

a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.tb:active {
  transform: translateY(2px);
}

@keyframes wfade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wfloat {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

main {
  flex: 1;
  animation: wfade 0.32s ease both;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== HEADER ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

header.site-header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  overflow: hidden;
  flex: none;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 21px;
  line-height: 1;
}

.nav-spacer {
  flex: 1;
  min-width: 12px;
}

.nav-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.nav-pills a {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13.5px;
  background: transparent;
  color: var(--ink);
  border: 2px solid transparent;
  text-decoration: none;
}

.nav-pills a:hover {
  text-decoration: none;
  background: rgba(58, 31, 20, 0.08);
}

.nav-pills a.active {
  background: var(--red);
  color: var(--cream);
  border-color: var(--ink);
}

.lang-switch {
  display: flex;
  gap: 5px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 3px;
  background: var(--cream-light);
}

.lang-switch button {
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  background: transparent;
  color: var(--muted);
  border: none;
  font-family: "Space Grotesk", sans-serif;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--cream);
}

/* ===== HERO ===== */
.hero-band {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 32%, #e9cfa0 0deg 11deg, transparent 11deg 22deg);
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  padding: 66px 0 74px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  background: var(--red-dark);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.hero-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 74px;
  line-height: 0.86;
  margin-top: 16px;
  color: var(--red);
}

.hero-title.line2 {
  line-height: 0.92;
  color: var(--red-dark);
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  margin-top: 20px;
  max-width: 520px;
}

.store-buttons {
  display: flex;
  gap: 13px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 20px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 18px;
  border: 2.5px solid var(--ink);
}

.store-btn svg {
  width: 19px;
  height: 19px;
  margin-right: 7px;
}

.store-btn.apple {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 6px 0 var(--red-dark);
}

.store-btn.google {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--orange-dark);
}

.qr-note {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 10px 15px;
  font-size: 13.5px;
  font-weight: 500;
  max-width: 520px;
}

.hero-badge-wrap {
  display: flex;
  justify-content: center;
}

.hero-badge {
  width: 250px;
  height: 250px;
  border-radius: 56px;
  background: var(--cream);
  border: 5px solid var(--ink);
  box-shadow: 0 12px 0 var(--ink);
  position: relative;
  overflow: hidden;
  animation: wfloat 5s ease-in-out infinite;
}

.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 44%, #e9cfa0 0deg 11deg, transparent 11deg 22deg);
  opacity: 0.6;
}

.hero-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== FEATURES ===== */
.features-section {
  padding: 58px 0 20px;
}

.features-section h2 {
  font-size: 34px;
  margin: 0 0 8px;
}

.features-sub {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--cream-light);
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
}

.feature-emoji {
  height: 120px;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.feature-body {
  padding: 18px 20px 22px;
}

.feature-body h3 {
  font-size: 21px;
  margin: 0 0 7px;
}

.feature-body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
}

/* ===== CTA BANNER ===== */
.cta-section {
  padding: 38px 0 64px;
}

.cta-banner {
  background: var(--red-dark);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: 0 8px 0 var(--ink);
  padding: 38px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(232, 145, 42, 0.22) 0deg 11deg, transparent 11deg 22deg);
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.cta-inner h2 {
  font-size: 30px;
  margin: 0 0 10px;
}

.cta-inner p {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: #f0d4b6;
  margin: 0;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cta-buttons .store-btn {
  justify-content: center;
  padding: 15px;
  border-radius: 18px;
  border: none;
}

.cta-buttons .apple {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--orange-dark);
}

.cta-buttons .google {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 5px 0 #c9b28a;
}

/* ===== DOC PAGES ===== */
.doc-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 0 70px;
}

.doc-badge {
  display: inline-block;
  background: var(--orange);
  border: 2px solid var(--ink);
  padding: 5px 13px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 12.5px;
}

.doc-title {
  font-size: 42px;
  line-height: 1.05;
  margin: 14px 0 6px;
}

.doc-updated {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.doc-intro {
  margin-top: 18px;
  background: var(--cream-light);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

.doc-sections {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc-section-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.doc-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--red);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--ink);
}

.doc-section-head h2 {
  font-size: 23px;
  margin: 0;
}

.doc-section-body {
  margin: 10px 0 0 46px;
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 500;
  color: #4a2a18;
}

.doc-links {
  margin: 12px 0 0 46px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

.doc-link .arrow {
  color: var(--muted);
}

.doc-list {
  margin: 12px 0 0 46px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.doc-list-item {
  display: flex;
  gap: 11px;
  background: var(--cream-light);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 13px 15px;
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 500;
}

.doc-list-item .diamond {
  flex: none;
  color: var(--red);
  font-weight: 700;
}

.doc-contact {
  margin-top: 34px;
  background: var(--red-dark);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 22px 24px;
}

.doc-contact-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 19px;
}

.doc-contact-body {
  font-size: 15px;
  font-weight: 500;
  margin-top: 6px;
  color: #f0d4b6;
}

.doc-contact-body a {
  color: var(--orange);
}

[dir="rtl"] .doc-section-body,
[dir="rtl"] .doc-links,
[dir="rtl"] .doc-list {
  margin-left: 0;
  margin-right: 46px;
}

/* ===== ACCOUNT DELETION ===== */
.delete-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.delete-head {
  text-align: center;
}

.delete-emoji {
  font-size: 54px;
}

.delete-title {
  font-size: 38px;
  margin: 8px 0 8px;
}

.delete-sub {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink-soft);
}

.delete-fast {
  margin-top: 26px;
  background: var(--orange);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--orange-dark);
  padding: 18px 20px;
  display: flex;
  gap: 13px;
}

.delete-fast .icon {
  font-size: 24px;
  flex: none;
}

.delete-fast p {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
}

.delete-success {
  margin-top: 22px;
  background: var(--green);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 7px 0 var(--green-dark);
  padding: 30px;
  text-align: center;
}

.delete-success .icon {
  font-size: 48px;
}

.delete-success h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin: 8px 0 0;
}

.delete-success p {
  font-size: 15px;
  font-weight: 500;
  margin-top: 8px;
  color: #dff0e4;
}

.delete-form {
  margin-top: 22px;
  background: var(--cream-light);
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  box-shadow: 0 7px 0 var(--ink);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.delete-field label {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 7px;
}

.delete-field .required {
  color: var(--red);
}

.delete-field input,
.delete-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--cream);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.delete-field textarea {
  font-weight: 500;
  font-size: 15px;
  resize: vertical;
}

.delete-field .hint {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 6px;
}

.delete-ack {
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 15px;
}

.delete-ack .box {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 9px;
  border: 2.5px solid var(--ink);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.delete-ack .box.checked {
  background: var(--green);
}

.delete-ack p {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

.delete-submit {
  cursor: pointer;
  background: var(--red);
  color: var(--cream);
  padding: 17px;
  border-radius: 20px;
  text-align: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 19px;
  box-shadow: 0 6px 0 var(--red-dark);
  border: 2.5px solid var(--ink);
}

.delete-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.delete-error {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 14px;
}

.delete-footer {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

/* ===== FOOTER ===== */
footer.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 3px solid var(--ink);
}

footer.site-footer .container {
  padding: 34px 24px 30px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--cream);
  border: 2px solid var(--cream);
  overflow: hidden;
  flex: none;
}

.footer-logo svg {
  width: 100%;
  height: 100%;
}

.footer-brand-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
}

.footer-nav a {
  color: #e8b98a;
  text-decoration: none;
}

.footer-copy {
  font-size: 13px;
  color: #c9a077;
  font-weight: 500;
  width: 100%;
}

.footer-copy a {
  color: var(--orange);
}

/* ===== LANG CONTENT TOGGLE ===== */
[data-lang-content] {
  display: none;
}

[data-lang-content].active {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  header.site-header .container {
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 10px;
  }
  .brand {
    order: 1;
  }
  .brand-name {
    font-size: 18px;
  }
  .nav-spacer {
    display: none;
  }
  .lang-switch {
    order: 2;
    margin-left: auto;
  }
  .nav-pills {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  .nav-pills::-webkit-scrollbar {
    display: none;
  }
  .nav-pills a {
    flex: none;
    white-space: nowrap;
    font-size: 12.5px;
    padding: 7px 12px;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-badge-wrap {
    order: -1;
  }
  .hero-title {
    font-size: 54px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    grid-template-columns: 1fr;
  }
}
