.pf-page {
  --pf-line: #dcded4;
  --pf-muted: #586560;
  --pf-blue: #173ea5;
  --pf-bg: #fffefa;
  color: #182921;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 54px) 0 38px;
  font-family: Inter, Arial, sans-serif;
}
.pf-page * {
  box-sizing: border-box;
}
.pf-page h1,
.pf-page h2,
.pf-page p,
.pf-page dl,
.pf-page dd,
.pf-page form {
  margin: 0;
}
.pf-page button,
.pf-page input {
  font: inherit;
}
.pf-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(22px, 3.5vw, 36px);
}
.pf-header h1 {
  font:
    400 clamp(40px, 5.6vw, 68px) / 1.05 "PT Serif",
    Georgia,
    serif;
  letter-spacing: -0.055em;
  color: var(--pf-blue);
}
.pf-account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 0;
  font-size: 14px;
}
.pf-account strong,
.pf-account small {
  display: block;
  overflow-wrap: anywhere;
}
.pf-account small {
  font-size: 12px;
  color: var(--pf-muted);
  margin-top: 3px;
}
.pf-avatar {
  display: grid;
  place-items: center;
  height: 42px;
  width: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  color: var(--pf-blue);
  background: #f5e7aa;
  font:
    700 23px "PT Serif",
    Georgia,
    serif;
}
.pf-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(16px, 2.6vw, 28px);
}
.pf-card {
  background: var(--pf-bg);
  border: 1px solid var(--pf-line);
  border-radius: 20px;
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 18px;
}
.pf-auth,
.pf-family,
.pf-inner {
  padding: clamp(20px, 3.1vw, 34px);
}
.pf-card h2 {
  font:
    400 clamp(26px, 3.6vw, 37px) / 1.13 "PT Serif",
    Georgia,
    serif;
  letter-spacing: -0.045em;
  color: #182921;
}
.pf-page .pf-summary {
  font-size: 15px;
  line-height: 1.55;
}
.pf-family > .pf-summary {
  margin: 12px 0 20px;
}
.pf-mode {
  display: inline-flex;
  padding: 3px;
  margin: 22px 0 24px;
  background: #eeefe8;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  max-width: 100%;
}
.pf-mode button {
  background: transparent;
  border: 0;
  color: var(--pf-muted);
  border-radius: 9px;
  min-height: 41px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.pf-mode button[aria-pressed="true"] {
  background: white;
  color: var(--pf-blue);
  box-shadow: 0 1px 4px #19261a1a;
}
.pf-stack {
  display: grid;
  gap: 15px;
}
.pf-page label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}
.pf-page input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  background: white;
  color: #182921;
  border: 1px solid #aeb6ad;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.pf-password-field {
  display: grid;
  gap: 7px;
}
.pf-password {
  display: flex;
  position: relative;
  align-items: center;
}
.pf-password input {
  padding-right: 96px !important;
}
.pf-password button,
.pf-page .pf-textbtn {
  border: 0;
  background: none;
  color: var(--pf-blue);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.pf-password button {
  position: absolute;
  right: 4px;
  padding: 8px;
  min-height: 44px;
}
.pf-page .pf-textbtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  text-align: left;
}
.pf-page .pf-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--pf-blue);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 11px 18px;
  cursor: pointer;
}
.pf-page .pf-blue {
  background: var(--pf-blue);
  color: white;
}
.pf-page .pf-outline {
  background: transparent;
  color: var(--pf-blue);
}
.pf-page button:hover:not(:disabled),
.pf-page a:hover {
  filter: brightness(0.92);
}
.pf-page button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.pf-page :is(button, a, input, summary):focus-visible,
.pf-page [tabindex="-1"]:focus-visible {
  outline: 3px solid #0c51b5;
  outline-offset: 3px;
}
.pf-page .pf-help,
.pf-page .pf-foot,
.pf-invite p,
.pf-page .pf-mode-note,
.pf-pending p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--pf-muted);
}
.pf-stack .pf-help {
  margin-top: -8px;
}
.pf-page .pf-foot {
  margin-top: 16px;
}
.pf-offer {
  background: #f6eab5;
  isolation: isolate;
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: flex-start;
}
.pf-offer-copy {
  padding: clamp(20px, 3.1vw, 34px);
  width: 65%;
  position: relative;
  z-index: 1;
}
.pf-offer-copy h2 {
  color: #202f26;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.1;
}
.pf-price {
  margin-top: 10px;
  font:
    700 clamp(33px, 3.8vw, 48px) / 1.05 "PT Serif",
    Georgia,
    serif;
  letter-spacing: -0.055em;
  color: var(--pf-blue);
  white-space: nowrap;
}
.pf-price small {
  font:
    400 14px/1.4 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.02em;
}
.pf-offer img {
  position: absolute;
  right: 0;
  top: 0;
  width: 42%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 50%;
  clip-path: ellipse(98% 98% at 100% 50%);
}
.pf-inner {
  display: grid;
  gap: 18px;
}
.pf-inner .pf-summary:only-child {
  margin: 0;
}
.pf-page .pf-mode-note,
.pf-page .pf-pending {
  padding: 11px 13px;
  background: #f0f2ed;
  color: #34453b;
  border-radius: 8px;
}
.pf-page .pf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
}
.pf-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--pf-blue);
}
.pf-check strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--pf-muted);
  font-weight: 400;
  margin-top: 3px;
}
.pf-terms div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--pf-line);
  font-size: 14px;
  line-height: 1.4;
}
.pf-terms div:first-child {
  padding-top: 0;
}
.pf-terms dt {
  color: var(--pf-muted);
}
.pf-terms dd {
  font-weight: 700;
  text-align: right;
}
.pf-details {
  border-top: 1px solid var(--pf-line);
  margin-top: 20px;
  padding-top: 3px;
}
.pf-details summary {
  padding: 12px 0;
  min-height: 44px;
  color: var(--pf-blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.pf-details .pf-help {
  margin: 0 0 4px;
}
.pf-details[open] .pf-stack {
  padding-top: 4px;
}
.pf-details[open] > form:not(.pf-stack) {
  margin-top: 12px;
}
.pf-invite {
  margin-top: 18px;
  padding: 15px;
  background: #eff1e8;
  border-radius: 10px;
}
.pf-invite input {
  font-family: monospace !important;
  letter-spacing: 0.03em;
}
.pf-page .pf-error {
  font-size: 14px;
  line-height: 1.5;
  color: #842d25;
  background: #fff1eb;
  border-left: 3px solid #a63c31;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.pf-page .pf-error[hidden] {
  display: none;
}
.pf-page .pf-logout {
  margin-top: 20px;
}
.pf-security {
  margin-top: 20px;
  padding: 0 clamp(20px, 3.1vw, 34px);
  max-width: calc(50% - 10px);
}
.pf-security summary {
  cursor: pointer;
  padding: 18px 0;
  color: var(--pf-blue);
  font-weight: 700;
  font-size: 15px;
}
.pf-security-inner {
  display: grid;
  gap: 15px;
  padding: 0 0 22px;
}
.pf-security .pf-invite {
  margin-top: 0;
}
.pf-security .pf-invite input {
  letter-spacing: 0;
}
@media (max-width: 730px) {
  .pf-security {
    max-width: none;
  }
}
@media (max-width: 730px) {
  .pf-layout {
    grid-template-columns: 1fr;
  }
  .pf-header {
    flex-wrap: wrap;
    gap: 14px;
  }
  .pf-header h1 {
    width: 100%;
  }
  .pf-page {
    max-width: 550px;
    padding-top: 12px;
  }
  .pf-card {
    border-radius: 17px;
  }
  .pf-offer {
    min-height: 130px;
  }
  .pf-offer-copy {
    width: 65%;
  }
  .pf-family > .pf-summary {
    margin-bottom: 14px;
  }
  .pf-inner form > .pf-btn,
  .pf-family form > .pf-btn {
    width: 100%;
  }
}
@media (max-width: 380px) {
  .pf-price {
    font-size: 31px;
  }
  .pf-price small {
    font-size: 12px;
  }
  .pf-auth,
  .pf-family,
  .pf-inner,
  .pf-offer-copy {
    padding: 17px;
  }
  .pf-offer img {
    width: 36%;
  }
  .pf-terms div {
    font-size: 13px;
  }
  .pf-account {
    font-size: 13px;
  }
}
