@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Global
   -------------------------------------------------------------------------- */

:root {
  --ink: #2b0a2a;
  --ink-soft: #5d4b5d;
  --muted: #816d7d;
  --pink: #ff3f87;
  --pink-strong: #d9045b;
  --pink-deep: #a80045;
  --pink-soft: #ffe4ef;
  --pink-pale: #fff2f7;
  --lilac: #eadbff;
  --border: #ffc7da;
  --white: #ffffff;
  --gold: #ffc42e;
  --cream: #fffaf5;
  --shadow: 0 22px 60px rgba(127, 0, 58, 0.12);
  --shadow-soft: 0 12px 32px rgba(127, 0, 58, 0.08);
  --font: "Nunito", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  min-width: 360px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff6fa;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-style: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #fff2f8 url("../images/clouds.svg") center top / cover no-repeat;
}

body.is-open-menu {
  overflow: hidden;
  height: 100vh;
}

::selection {
  background: var(--pink);
  color: #fff;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 63, 135, 0.55);
  outline-offset: 3px;
}

input {
  border: 0;
  outline: 0;
  background: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5000;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1120px;
  min-height: 100dvh;
  margin-inline: auto;
  padding: 12px;
}

/* --------------------------------------------------------------------------
   Age banner
   -------------------------------------------------------------------------- */

.age-banner {
  position: relative;
  z-index: 1100;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 23% -70%, rgba(255, 63, 135, 0.6), transparent 48%),
    linear-gradient(90deg, #230019 0%, #3b062b 50%, #230019 100%);
  border-bottom: 1px solid rgba(255, 164, 201, 0.35);
}

.age-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 117, 172, 0.75), transparent);
}

.age-banner.is-hidden {
  display: none;
}

.age-banner__link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 58px 9px 22px;
}

.age-banner__link:hover {
  color: #fff;
}

.age-banner__link p {
  color: #f0cfdf;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-wrap: balance;
}

.age-banner__link p strong {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.025em;
}

.age-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 63, 135, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 6px 8px;
}

.age-banner__close {
  position: absolute;
  top: 50%;
  right: 11px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.age-banner__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header {
  flex: 1 0 auto;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(117, 0, 52, 0.08);
}

.header__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  padding: 7px 7px 7px 20px;
}

.header__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-width: 136px;
  color: var(--ink);
}

.header__logo:hover {
  color: var(--ink);
}

.header__logo-text {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1;
}

.header__logo-text span {
  color: var(--pink);
}

.header__logo-badge {
  align-self: flex-start;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 3px 4px;
  transform: rotate(5deg);
}

.header__nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.header__nav ul {
  display: flex;
  flex-direction: row;
  gap: 3px;
}

.header__nav a {
  display: block;
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.header__nav a:hover,
.header__nav a.active {
  background: var(--pink-pale);
  color: var(--pink-deep);
}

.header__nav-note {
  display: none;
}

.btn-default {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 40px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.32), transparent 38%),
    linear-gradient(135deg, #ff4b94 0%, #e50062 60%, #a70043 100%);
  box-shadow: 0 9px 20px rgba(203, 0, 84, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  padding: 6px 6px 6px 17px;
  white-space: nowrap;
}

.btn-default:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(203, 0, 84, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-default:active {
  transform: translateY(0) scale(0.97);
}

.btn-default svg {
  box-sizing: content-box;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-strong);
  padding: 6px;
}

/* Mobile menu toggle */

.navbar-toggle {
  position: relative;
  z-index: 1200;
  display: none;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 100%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(117, 0, 52, 0.07);
}

.toggle-line {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2.5px;
  margin-left: -12px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.2s ease, margin 0.28s ease;
}

.toggle-line.part-1 {
  margin-top: -8px;
}

.toggle-line.horizontal {
  margin-top: 0;
}

.toggle-line.part-2 {
  margin-top: 8px;
}

.navbar-toggle.is-active .part-1 {
  margin-top: 0;
  transform: rotate(45deg);
}

.navbar-toggle.is-active .horizontal {
  opacity: 0;
}

.navbar-toggle.is-active .part-2 {
  margin-top: 0;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero heading
   -------------------------------------------------------------------------- */

.heading {
  padding-block: 30px 10px;
}

.tagline {
  color: var(--pink-strong);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.tagline-descr {
  max-width: 690px;
  margin: 8px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 25px;
  text-align: center;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Generator
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.hero__image {
  position: relative;
  flex: 0 0 47.6%;
  width: 100%;
  padding-block-start: 47.6%;
}

.hero__image img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 22px rgba(123, 7, 58, 0.1));
  animation: mascotFloat 6.5s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 9;
  flex: 0 0 43%;
  border: 3px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  padding: 32px 24px 22px;
}

.hero__content::after {
  content: "";
  position: absolute;
  inset: 10px -9px -9px 10px;
  z-index: -1;
  border-radius: 24px;
  background: rgba(255, 63, 135, 0.07);
  pointer-events: none;
}

.hero__tongue-svg {
  position: absolute;
  top: 49%;
  left: -59px;
  display: block;
  z-index: 10;
  transform: translateY(-50%);
  filter: drop-shadow(0 -3px 0 rgba(255, 199, 218, 0.2));
}

#password-panel-message {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  margin-block-end: 22px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 34px;
  text-align: center;
  text-wrap: balance;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#password-panel-message.is-changing {
  opacity: 0;
  transform: translateY(9px);
}

.password__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 8px;
}

.password__label {
  color: #4d394d;
  font-size: 13px;
  font-weight: 700;
}

.password__copy-hint {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.password-input__wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #f1b52b;
  border-radius: 13px;
  background: #fffdf7;
  box-shadow: inset 0 0 0 3px rgba(255, 196, 46, 0.075);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-input__wrapper:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 63, 135, 0.12);
}

.password-input {
  width: 100%;
  min-width: 0;
  padding: 13px 4px 14px 16px;
  color: #000;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-align: center;
}

.password-input.is-medium {
  font-size: 27px;
}

.password-input.is-long {
  font-size: 22px;
}

.password-copy {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  margin-right: 7px;
  border-radius: 9px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.password-copy:hover {
  background: var(--pink);
  color: #fff;
  transform: translateY(-1px);
}

.password-copy:active {
  transform: scale(0.92);
}

.password-copy.is-copied {
  background: #1eaa68;
  color: #fff;
}

.password__hint {
  margin-block-start: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* Password mood animation */

.password-input.is-popping {
  animation: passwordPop 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

@keyframes passwordPop {
  0% { opacity: 0.2; transform: scale(0.98); }
  60% { transform: scale(1.01); }
  100% { opacity: 1; transform: scale(1); }
}

/* Buttons */

.hero__btns-group {
  display: flex;
  gap: 12px;
  margin-block-start: 20px;
}

.hero__btns-group li {
  display: flex;
  flex: 1 1 0;
}

.btn-primary,
.btn-secondary {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 7px 15px rgba(91, 13, 54, 0.13);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 19px;
  padding: 10px 25px 10px 12px;
  text-align: center;
  text-transform: capitalize;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.36), transparent 38%),
    linear-gradient(180deg, #ffb53a 0%, #f57b00 52%, #c44000 100%);
}

.btn-secondary {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.25), transparent 38%),
    linear-gradient(180deg, #a067ff 0%, #6b2bd4 52%, #3d1177 100%);
}

.btn-primary:hover,
.btn-secondary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 21px rgba(91, 13, 54, 0.18);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-custom:disabled {
  cursor: wait;
  filter: saturate(0.72);
  opacity: 0.82;
  transform: none;
}

.hero__content.is-loading .password-input {
  color: rgba(43, 10, 42, 0.42);
}

.btn-primary strong,
.btn-secondary strong,
.btn-custom strong {
  font-weight: 900;
}

/* Info tooltips */

.disclaimer {
  position: absolute;
  top: 6px;
  right: 6px;
  display: block;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.72);
  cursor: help;
  transition: color 0.2s ease;
}

.disclaimer:hover,
.disclaimer:focus {
  color: #fff;
}

.tooltip {
  position: absolute;
  bottom: 138%;
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 244px;
  transform: translateX(-50%) translateY(3px);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 28px -7px rgba(43, 10, 42, 0.28);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  padding: 9px 12px;
  text-align: center;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.disclaimer:hover .tooltip,
.disclaimer:focus .tooltip {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.tooltip__triangle {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Advanced settings
   -------------------------------------------------------------------------- */

.advanced-settings__opener {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-block-start: 19px;
}

.advanced-settings__tip {
  position: relative;
  top: auto;
  right: auto;
  width: 17px;
  height: 17px;
  color: #bb5b86;
}

.advanced-settings__tip .tooltip {
  color: var(--ink-soft);
}

.advanced-settings__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--pink-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.advanced-settings__btn:hover {
  color: var(--ink);
}

.advanced-settings__btn svg {
  transition: transform 0.3s ease;
}

.advanced-settings {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.32s ease;
}

.hero__content.hidden-settings .advanced-settings {
  grid-template-rows: 0fr;
}

.hero__content.hidden-settings .advanced-settings__btn svg {
  transform: rotate(0deg);
}

.hero__content:not(.hidden-settings) .advanced-settings__btn svg {
  transform: rotate(180deg);
}

.advanced-settings__inner {
  overflow: hidden;
}

.advanced-settings__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 15px;
  border-bottom: 1px solid #f0dbe5;
}

.advanced-settings__length-group {
  gap: 13px;
  margin-block-start: 17px;
  border-top: 1px solid #f0dbe5;
}

.advanced-settings__label {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: #4d394d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.advanced-settings__label span {
  margin-block-start: 2px;
  color: #a58d9e;
  font-size: 9px;
  font-weight: 700;
}

.advanced-settings__range {
  flex: 0 1 34%;
  min-width: 70px;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.advanced-settings__range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: #e5d0dc;
}

.advanced-settings__range::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  margin-top: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 1px 5px rgba(105, 0, 48, 0.25);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.advanced-settings__range::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: #e5d0dc;
}

.advanced-settings__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 1px 5px rgba(105, 0, 48, 0.25);
  cursor: pointer;
}

.advanced-settings__range:focus-visible {
  outline: 2px solid rgba(255, 63, 135, 0.5);
  outline-offset: 6px;
}

.advanced-settings__number {
  width: 52px;
  flex: 0 0 52px;
  border: 1px solid #e8ccd9;
  border-radius: 10px;
  background: #fffafd;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 6px;
  text-align: center;
}

.advanced-settings__toggles {
  gap: 8px;
}

.advanced-settings__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4d394d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.advanced-settings__toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.advanced-settings__toggle-slider {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 20px;
  flex: 0 0 32px;
  border-radius: 20px;
  background: #d3bfcc;
  transition: background-color 0.2s ease;
}

.advanced-settings__toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(43, 10, 42, 0.22);
  transition: transform 0.2s ease;
}

.advanced-settings__toggle input:checked + .advanced-settings__toggle-slider {
  background: var(--pink);
}

.advanced-settings__toggle input:checked + .advanced-settings__toggle-slider::before {
  transform: translateX(12px);
}

.advanced-settings__toggle input:focus-visible + .advanced-settings__toggle-slider {
  outline: 3px solid rgba(255, 63, 135, 0.35);
  outline-offset: 2px;
}

.btn-custom {
  width: 100%;
  margin-block-start: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(180deg, #ff4e96 0%, #e4005e 55%, #96003e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 7px 15px rgba(132, 0, 55, 0.16);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px;
  text-transform: capitalize;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-custom:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-custom:active {
  transform: translateY(1px) scale(0.99);
}

.hero__vocab-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-block-start: 13px;
  color: #9f8797;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.hero__vocab-note strong {
  color: var(--pink-deep);
  font-weight: 900;
}

.hero__vocab-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 63, 135, 0.11);
  animation: tinyPulse 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Shared section styling
   -------------------------------------------------------------------------- */

.section-kicker {
  margin-block-end: 7px;
  color: var(--pink-strong);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-passwords {
  position: relative;
  padding-block: 68px 24px;
}

.about-passwords__wrapper {
  position: relative;
  z-index: 2;
}

.about-passwords h2 {
  color: var(--pink-strong);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
}

.about-passwords__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-block-start: 27px;
}

.about-passwords-item {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  padding: 22px 20px;
  overflow: hidden;
}

.about-passwords-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 54px;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--pink), #b25cff);
  opacity: 0.9;
}

.about-passwords-item__title {
  margin-block-end: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.about-passwords-item__text {
  max-width: 90%;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 25px;
}

.inline-password {
  border: 1px solid #ffd0e2;
  border-radius: 5px;
  background: var(--pink-pale);
  color: var(--pink-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  font-weight: 700;
  padding: 1px 5px;
  white-space: nowrap;
}

.about-passwords__note {
  margin-block-start: 20px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.about-passwords__note strong {
  color: var(--pink-deep);
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   API
   -------------------------------------------------------------------------- */

.info-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  margin-block: 44px 0;
  border: 1px solid rgba(255, 177, 207, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 63, 135, 0.24), transparent 34%),
    radial-gradient(circle at 96% 100%, rgba(158, 85, 255, 0.24), transparent 36%),
    linear-gradient(145deg, #26081f 0%, #390b2d 52%, #24071e 100%);
  box-shadow: 0 26px 70px rgba(64, 0, 31, 0.24);
  color: #fff;
  padding: 34px;
  overflow: hidden;
}

.info-section::before {
  content: "18+";
  position: absolute;
  top: -28px;
  right: 20px;
  color: rgba(255, 255, 255, 0.03);
  font-size: 180px;
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 1;
  pointer-events: none;
}

.info-section__intro {
  position: relative;
  z-index: 1;
  align-self: center;
}

.info-section .section-kicker {
  color: #ff8fba;
  text-align: left;
}

.info-section h2 {
  margin-block-end: 13px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.info-section__lead {
  color: #e8c7d8;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 24px;
}

.api-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-block-start: 20px;
}

.api-chip {
  border: 1px solid rgba(255, 168, 202, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #ffc9df;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
}

.api-chip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
}

.code-window {
  position: relative;
  z-index: 1;
  align-self: center;
  border: 1px solid #633049;
  border-radius: 14px;
  background: #170612;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #3d172e;
  background: #220b1b;
  padding: 9px 12px;
}

.code-window__lights {
  display: flex;
  gap: 5px;
}

.code-window__lights i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6b9f;
}

.code-window__lights i:nth-child(2) {
  background: #ffc42e;
}

.code-window__lights i:nth-child(3) {
  background: #69d49c;
}

.code-window__name {
  flex: 1;
  color: #a87d92;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.code-window__copy {
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  color: #e8c7d8;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 7px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.code-window__copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.code-window__code {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #f7dce9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.85;
  tab-size: 2;
}

.code-comment {
  color: #996e83;
}

.code-keyword {
  color: #ff8fba;
}

.code-fn {
  color: #ffd36d;
}

.code-string {
  color: #9fe8c5;
}

.info-section__footnote {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block-start: 17px;
  color: #b98fa4;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
}

.info-section__footnote a {
  color: #ffb6d3;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-section__footnote a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-section {
  margin-block: 26px 0;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 20px 36px;
  border: 2px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 171, 205, 0.29), transparent 30%),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.contact-card .section-kicker {
  text-align: left;
}

.contact-card h2 {
  margin-block-end: 8px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.contact-card > div > p:not(.section-kicker) {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 23px;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(127, 0, 58, 0.08);
  color: var(--pink-deep);
  font-size: 13.5px;
  font-weight: 800;
  padding: 13px 17px;
  white-space: nowrap;
}

.contact-email:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  transform: translateY(-1px);
}

.contact-card__fine {
  grid-column: 1 / -1;
  border-top: 1px solid #f2d9e4;
  padding-block-start: 15px;
  color: #a58b99;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  margin-block-start: auto;
  padding-block: 42px 14px;
  border-top: 1px solid rgba(211, 146, 176, 0.28);
  margin-top: 64px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__logo {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1.3px;
  line-height: 1;
}

.footer__logo span {
  color: var(--pink);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer__nav a {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.footer__nav a:hover {
  color: var(--pink-deep);
}

.footer__legal {
  margin-block-start: 17px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.footer__fine {
  margin-block-start: 5px;
  color: #a48b99;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Toast / noscript
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 4000;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 18px);
  border: 1.5px solid rgba(255, 143, 186, 0.6);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(43, 10, 42, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  padding: 11px 18px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 5000;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 700;
  padding: 16px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-0.7deg); }
  50% { transform: translateY(-8px) rotate(0.7deg); }
}

@keyframes tinyPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 63, 135, 0.11); }
  50% { box-shadow: 0 0 0 6px rgba(255, 63, 135, 0.04); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 993px) {
  .container {
    padding: 24px 20px 40px;
  }

  header {
    top: 16px;
  }

  .heading {
    padding-block: 56px 33px;
  }

  .tagline {
    font-size: 42px;
    line-height: 1.15;
  }

  .tagline-descr {
    margin-block-start: 10px;
    font-size: 16px;
    line-height: 26px;
  }

  .about-passwords {
    padding-block: 104px 20px;
  }

  .about-passwords h2 {
    font-size: 37px;
    line-height: 1.15;
  }

  .about-passwords__list {
    gap: 16px;
    margin-block-start: 32px;
  }

  .about-passwords-item {
    padding: 25px 28px;
  }

  .about-passwords-item__title {
    margin-block-end: 12px;
    font-size: 23px;
    line-height: 1.3;
  }

  .about-passwords-item__text {
    max-width: 82%;
    font-size: 15.5px;
    line-height: 27px;
  }

  .about-passwords__note {
    margin-block-start: 24px;
    font-size: 12.5px;
  }
}

@media (max-width: 1100px) {
  .header__nav a {
    padding-inline: 11px;
    font-size: 15px;
  }

  .header__logo {
    min-width: 125px;
  }

  .header__logo-text {
    font-size: 27px;
  }

  .btn-default {
    padding-inline: 14px 6px;
    font-size: 14px;
  }
}

@media (max-width: 992px) {
  html {
    scroll-padding-top: 92px;
  }

  .container {
    padding: 12px;
  }

  header {
    top: 8px;
  }

  .header__content {
    padding: 6px 6px 6px 15px;
  }

  .header__logo {
    min-width: 0;
  }

  .header__logo-text {
    font-size: 27px;
  }

  .header__nav-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 30;
    display: flex;
    width: 100vw;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at 16% 12%, rgba(255, 63, 135, 0.13), transparent 32%),
      radial-gradient(circle at 90% 90%, rgba(174, 108, 255, 0.16), transparent 36%),
      linear-gradient(160deg, #ffffff 0%, #fff4f9 58%, #ffe5f0 100%);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.3, 1), visibility 0s linear 0.32s;
  }

  body.is-open-menu .header__nav-wrapper {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.3, 1), visibility 0s linear 0s;
  }

  .header__nav {
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 92px 24px 40px;
  }

  .header__nav ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    text-align: center;
  }

  .header__nav a {
    border-radius: 16px;
    color: var(--ink);
    font-size: 30px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    padding: 13px 24px;
  }

  .header__nav a:hover,
  .header__nav a.active {
    background: rgba(255, 63, 135, 0.1);
    color: var(--pink-deep);
  }

  .header__nav-note {
    display: block;
    margin-block-start: 24px;
    color: #9b7b8e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
  }

  .navbar-toggle {
    display: flex;
  }

  .btn-default {
    margin-left: auto;
  }

  .heading {
    padding-block: 27px 12px;
  }

  .tagline {
    font-size: 34px;
  }

  .hero {
    flex-direction: column;
  }

  .hero__image {
    flex: 0 0 auto;
    padding-block-start: 90%;
  }

  .hero__image img {
    top: -4%;
    left: 50%;
    width: 96%;
    height: 104%;
    transform: translateX(-50%);
    animation: none;
  }

  .hero__content {
    flex: 0 0 auto;
    width: 100%;
    margin-block-start: -36%;
    padding: 25px 16px 18px;
    border-width: 2.5px;
  }

  .hero__content::after {
    display: none;
  }

  .hero__tongue-svg {
    display: none;
  }

  #password-panel-message {
    min-height: 56px;
    margin-block-end: 16px;
    font-size: 21px;
    line-height: 28px;
  }

  .password__label-row {
    padding-inline: 2px;
  }

  .password-input {
    font-size: 30px;
    padding-block: 12px 13px;
  }

  .password-input.is-medium {
    font-size: 25px;
  }

  .password-input.is-long {
    font-size: 21px;
  }

  .hero__btns-group {
    margin-block-start: 17px;
  }

  .advanced-settings__opener {
    margin-block-start: 17px;
  }

  .about-passwords {
    padding-block: 60px 14px;
  }

  .about-passwords h2 {
    font-size: 30px;
  }

  .about-passwords__list {
    margin-block-start: 22px;
  }

  .about-passwords-item__text {
    max-width: 100%;
  }

  .info-section {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-block-start: 32px;
    border-radius: 24px;
    padding: 26px 20px;
  }

  .info-section .section-kicker,
  .contact-card .section-kicker {
    text-align: center;
  }

  .info-section h2,
  .contact-card h2 {
    text-align: center;
  }

  .info-section__lead {
    text-align: center;
  }

  .api-options {
    justify-content: center;
  }

  .info-section__footnote {
    text-align: center;
  }

  .contact-section {
    margin-block-start: 20px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    padding: 24px 18px;
  }

  .contact-card > div > p:not(.section-kicker) {
    max-width: 100%;
  }

  .contact-email {
    justify-self: center;
  }

  .contact-card__fine {
    text-align: center;
  }

  .footer {
    margin-block-start: 44px;
    padding-block-start: 28px;
  }
}

@media (max-width: 640px) {
  .age-banner__link {
    align-items: flex-start;
    gap: 9px;
    padding: 9px 43px 9px 12px;
  }

  .age-banner__link p {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 17px;
    text-align: left;
  }

  .age-badge {
    font-size: 9px;
    padding: 5px 7px;
  }

  .age-banner__close {
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 23px;
  }

  .header__content {
    gap: 8px;
    padding-inline: 13px 5px;
  }

  .header__logo-text {
    font-size: 25px;
    letter-spacing: -1.5px;
  }

  .header__logo-badge {
    font-size: 7px;
    padding: 2px 3px;
  }

  .btn-default {
    gap: 5px;
    padding: 5px 5px 5px 11px;
    font-size: 12.5px;
  }

  .btn-default svg {
    width: 12px;
    height: 12px;
    padding: 5px;
  }

  .navbar-toggle {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .header__nav a {
    font-size: 27px;
  }

  .heading {
    padding-block-start: 25px;
  }

  .tagline {
    font-size: 29px;
    line-height: 1.13;
  }

  .tagline-descr {
    max-width: 360px;
    margin-block-start: 9px;
    font-size: 13.5px;
    line-height: 22px;
  }

  .hero__image {
    padding-block-start: 91%;
  }

  .hero__content {
    margin-block-start: -36%;
    padding: 21px 14px 17px;
    border-radius: 21px;
  }

  #password-panel-message {
    min-height: 52px;
    margin-block-end: 14px;
    font-size: 19px;
    line-height: 26px;
  }

  .password__label {
    font-size: 12.5px;
  }

  .password__copy-hint {
    font-size: 9px;
  }

  .password-input {
    font-size: 27px;
    padding-inline-start: 12px;
    padding-block: 11px 12px;
  }

  .password-input.is-medium {
    font-size: 23px;
  }

  .password-input.is-long {
    font-size: 19px;
  }

  .password-copy {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    margin-right: 5px;
  }

  .password__hint {
    font-size: 10px;
  }

  .hero__btns-group {
    gap: 9px;
    margin-block-start: 15px;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 61px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 17px;
    padding: 9px 20px 9px 8px;
  }

  .btn-primary strong,
  .btn-secondary strong {
    font-size: 13.5px;
  }

  .disclaimer {
    top: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
  }

  .disclaimer svg {
    width: 14px;
    height: 14px;
  }

  .tooltip {
    max-width: 210px;
    font-size: 11px;
    line-height: 16px;
    padding: 8px 10px;
  }

  .advanced-settings__label {
    font-size: 11px;
  }

  .advanced-settings__range {
    min-width: 52px;
  }

  .advanced-settings__toggle {
    gap: 5px;
    font-size: 10px;
  }

  .advanced-settings__toggle-slider {
    width: 29px;
    height: 18px;
    flex-basis: 29px;
  }

  .advanced-settings__toggle-slider::before {
    width: 14px;
    height: 14px;
  }

  .advanced-settings__toggle input:checked + .advanced-settings__toggle-slider::before {
    transform: translateX(11px);
  }

  .btn-custom {
    font-size: 14px;
  }

  .hero__vocab-note {
    max-width: 300px;
    margin-inline: auto;
    font-size: 9.5px;
  }

  .section-kicker {
    font-size: 9.5px;
  }

  .about-passwords h2 {
    font-size: 28px;
  }

  .about-passwords-item {
    padding: 20px 17px;
    border-radius: 20px;
  }

  .about-passwords-item::before {
    left: 20px;
    width: 45px;
    height: 3px;
  }

  .about-passwords-item__title {
    font-size: 18px;
  }

  .about-passwords-item__text {
    font-size: 13.5px;
    line-height: 23px;
  }

  .about-passwords__note {
    font-size: 10.5px;
  }

  .info-section {
    padding: 23px 16px;
  }

  .info-section h2 {
    font-size: 26px;
  }

  .info-section__lead {
    font-size: 13.5px;
    line-height: 22px;
  }

  .code-window__code {
    font-size: 11px;
    padding: 14px;
  }

  .code-window__copy {
    font-size: 9px;
  }

  .contact-card h2 {
    font-size: 25px;
  }

  .contact-card > div > p:not(.section-kicker) {
    font-size: 13px;
    line-height: 21px;
  }

  .contact-email {
    width: 100%;
    max-width: 310px;
    font-size: 12.5px;
    padding: 12px 14px;
  }

  .footer__top {
    justify-content: center;
  }

  .footer__nav {
    justify-content: center;
  }

  .footer__legal,
  .footer__fine {
    max-width: 330px;
    margin-inline: auto;
  }
}

@media (max-width: 400px) {
  .header__logo-text {
    font-size: 23px;
    letter-spacing: -1.3px;
  }

  .header__logo-badge {
    display: none;
  }

  .btn-default {
    padding-left: 9px;
    font-size: 12px;
  }

  .btn-default svg {
    width: 10px;
    height: 10px;
    padding: 5px;
  }

  .navbar-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .toggle-line {
    width: 21px;
    margin-left: -10.5px;
  }

  .hero__content {
    margin-block-start: -33%;
  }

  .hero__btns-group {
    position: relative;
  }

  .tooltip {
    max-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
