@import "/core/book-loading.css";
@import "/core/interface-icons.css";
@import "/account/account-dashboard.css";
@font-face {
  font-family: Fredoka;
  src: url("/studio/vendor/fredoka-regular.woff");
}
@font-face {
  font-family: Noto;
  src: url("/studio/vendor/regular.woff");
}
:root {
  font-family: Noto, system-ui, sans-serif;
  color: #29473f;
  background: #f7f5ef;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: auto;
  padding: 22px 24px;
}
.brand {
  font:
    600 30px Fredoka,
    sans-serif;
  text-decoration: none;
}
.brand span {
  color: #b77e43;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-header nav > a {
  text-decoration: none;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid #cdd7cd;
  padding: 11px 16px;
  text-decoration: none;
  text-align: center;
}
.primary {
  background: #315e52;
  color: white;
  border-color: #315e52;
}
.secondary {
  background: white;
  color: #315e52;
}
.button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #aa8a43;
  outline-offset: 3px;
}
.pricing-main {
  max-width: 1120px;
  padding: 35px 24px;
  margin: auto;
}
.page-intro {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #7c7a60;
}
h1,
h2 {
  font-family: Fredoka, sans-serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  margin: 14px 0;
}
p {
  line-height: 1.7;
  color: #64756a;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #d9ded1;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 0 #e6e4da;
}
.plan.featured {
  border: 2px solid #b99b60;
  background: #fffcf2;
  padding: 23px;
}
.plan h2 {
  font-size: 27px;
  margin: 15px 0 5px;
}
.price {
  font-family: Fredoka, sans-serif;
  font-size: 35px;
  color: #29473f;
  margin: 5px 0;
}
.price small {
  font:
    12px Noto,
    sans-serif;
}
.plan-description {
  min-height: 48px;
  font-size: 13px;
}
.plan ul {
  padding-left: 19px;
  line-height: 1.7;
  font-size: 13px;
  flex: 1;
}
.plan li {
  margin: 8px 0;
}
.plan .button {
  margin-top: 16px;
}
.pricing-note,
.faq {
  margin: 32px auto 0;
  max-width: 850px;
}
.pricing-note {
  background: #e9eee2;
  padding: 20px 24px;
  border-radius: 16px;
}
.pricing-note h2,
.faq h2 {
  margin-top: 0;
}
.faq details {
  border-bottom: 1px solid #d8ded0;
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  min-height: 34px;
  font-weight: 700;
  line-height: 1.5;
}
.site-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 20px;
  font-size: 12px;
}
.account-main {
  max-width: 650px;
  margin: 35px auto;
  padding: 0 16px;
}
.account-card {
  background: white;
  border: 1px solid #d9ded1;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 0 #e6e4da;
}
.account-card h1 {
  font-size: 32px;
}
.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.auth-tabs button {
  min-height: 44px;
  padding: 9px 16px;
  background: #f4f5ef;
  border: 1px solid #d5dccf;
  border-radius: 10px;
}
.auth-tabs [aria-pressed="true"] {
  border-color: #315e52;
  background: #e8efe3;
}
.account-card form {
  display: grid;
  gap: 16px;
}
.account-card label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.account-card input {
  min-height: 48px;
  padding: 10px;
  border: 1px solid #c8d4c4;
  border-radius: 9px;
  font-size: 16px;
}
.text-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  color: #315e52;
  min-height: 44px;
  padding: 8px 0;
}
.return-link {
  display: block;
  margin-top: 18px;
  font-size: 12px;
}
.message {
  border-radius: 10px;
  background: #eaf0e4;
  color: #29473f;
  padding: 12px;
}
.message[data-error="true"] {
  background: #fff0ef;
  color: #953c3c;
}
.account-summary,
.selected-plan,
.notice {
  padding: 18px;
  background: #f3f5ec;
  border-radius: 12px;
  margin: 20px 0;
}
.notice {
  border: 1px solid #d9c394;
  background: #fff9e9;
}
.notice button {
  margin: 4px 0;
}
.selected-plan h2 {
  margin-top: 0;
}
.account-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.account-loading {
  max-width: 600px;
  margin: 10vh auto;
  padding: 24px;
  text-align: center;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-header {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .site-header nav {
    gap: 12px;
    font-size: 12px;
  }
  .pricing-main {
    padding: 18px 16px;
  }
  .page-intro {
    text-align: left;
  }
  .plan-description {
    min-height: 0;
  }
  .account-card {
    padding: 22px;
  }
  .account-actions > .button {
    width: 100%;
  }
}
.account-card select {
  width: 100%; min-width: 0; padding: 12px; border: 1px solid #b7c4b7;
  border-radius: 10px; background: #fffdf7; color: inherit; font: inherit;
}
.account-card .legal-check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; font-weight: 400; }
.account-card .legal-check input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 3px 0 0; }
.child-entry { display: grid; gap: 10px; margin: 20px 0; padding: 16px; border: 1px solid #d9c394; border-radius: 12px; overflow-wrap: anywhere; }
.child-entry strong { display: block; }
.child-entry form { border-top: 1px solid #d9c394; padding-top: 12px; }
.child-credentials { white-space: pre-wrap; padding: 16px; border: 2px solid #244e43; border-radius: 10px; background: #fffdf7; overflow-wrap: anywhere; }
.cloud-book-list { display: grid; gap: 14px; margin-top: 20px; }
.cloud-book-card { padding: 18px; border: 1px solid #cbd9cd; border-radius: 14px; background: #fffef9; min-width: 0; }
.cloud-book-card h3 { margin: 0 0 7px; font-size: 18px; overflow-wrap: anywhere; }
.cloud-book-card p { font-size: 13px; color: #5b7164; overflow-wrap: anywhere; }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-card #profile-name-form { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #d8dfd2; }
.account-section-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 24px 0; }
.account-section-nav a { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 12px; border: 1px solid #d4dfd2; border-radius: 13px; background: #f5f7ef; text-decoration: none; color: #244e43; font-size: 12px; font-weight: 600; line-height: 1.5; }
.account-section-nav a:hover { background: #eaf0e3; border-color: #aabcaa; }
.account-section-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 9px; background: #fffdf7; }
.account-section-icon svg { width: 20px; height: 20px; }
.account-section-nav a > svg { margin-left: auto; width: 14px; height: 14px; flex-shrink: 0; color: #8b9c89; }
.account-section-nav a:focus-visible { outline: 3px solid #bd9449; outline-offset: 3px; }
#cloud-panel, #billing-panel, #profile-name-form { scroll-margin-top: 140px; }
@media(max-width: 420px) { .account-section-nav { gap: 8px; } .account-section-nav a { min-height: 70px; gap: 7px; padding: 10px 8px; font-size: 11px; } .account-section-icon { flex-basis: 25px; height: 28px; } .account-section-nav a > svg { display: none; } }
.account-deletion { margin-top: 28px; border-top: 1px solid #d8dfd2; padding-top: 20px; }
.billing-panel { margin: 24px 0; padding: 20px; border: 1px solid #cbd9cd; border-radius: 14px; background: #fffdf7; }
.billing-panel h2 { margin-top: 0; }
.billing-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.billing-panel details { margin-top: 18px; border-top: 1px solid #d8dfd2; padding-top: 8px; }
.billing-panel summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.billing-document { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid #e1e5dc; min-width: 0; }
.billing-document > div { min-width: 0; overflow-wrap: anywhere; }
.billing-document p { margin: 6px 0 0; font-size: 13px; }
.billing-confirmation { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 24px; border: 1px solid #cbd9cd; border-radius: 16px; background: #fffdf7; color: #263e39; }
.billing-confirmation::backdrop { background: #173b3399; }
.billing-confirmation p { line-height: 1.7; }
@media(max-width: 480px) { .billing-panel { padding: 14px; } .billing-actions { display: grid; grid-template-columns: minmax(0,1fr); } .billing-document > .button { width: 100%; } }
.account-deletion summary { min-height: 44px; cursor: pointer; color: #8b3430; }
.account-deletion p { font-size: 13px; line-height: 1.7; }
.checkout-address { display: grid; gap: 12px; margin: 18px 0; padding: 16px; border: 1px solid #cbd9cd; border-radius: 12px; min-width: 0; }
.checkout-address legend { font-weight: 600; padding: 0 6px; }
.checkout-address label:not(.legal-check) { display: grid; gap: 6px; }
.checkout-address input:not([type=checkbox]), .checkout-address select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #a8bcb0; border-radius: 8px; font: inherit; background: #fffef9; color: #263e39; }
.checkout-address p { margin: 0; font-size: 13px; line-height: 1.6; }
.danger { color: #a4332c; }
.button.danger { background: #9f3831; border-color: #9f3831; color: #fff; }
@media(max-width: 480px) { .cloud-actions { display: grid; grid-template-columns: minmax(0,1fr); } .cloud-actions .button { width: 100%; } .cloud-book-card { padding: 14px; } }
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
