/* Planit Guides Store — shared styles */
:root {
  --ink:#183942;
  --deep:#0d2931;
  --sand:#f4f0e8;
  --cream:#fbf9f4;
  --gold:#bd8e50;
  --gold-light:#dec199;
  --line:rgba(24,57,66,.16);
  --white:#fff;
  --danger:#b74a4a;
  --success:#3c7a5c;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  color:var(--ink);
  background:var(--cream);
  font-family:"DM Sans",sans-serif;
  font-size:16px;
  line-height:1.55;
}
a { color:inherit; text-decoration:none; }
button { font:inherit; cursor:pointer; }
img { display:block; max-width:100%; }

.container { width:min(1180px,calc(100% - 64px)); margin:0 auto; }
.eyebrow {
  margin:0 0 14px;
  color:var(--gold);
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.site-header {
  position:sticky;
  top:0;
  z-index:10;
  background:var(--white);
  border-bottom:1px solid var(--line);
}
.nav-wrap {
  display:flex;
  align-items:center;
  width:min(1180px,calc(100% - 64px));
  min-height:70px;
  margin:0 auto;
}
.brand {
  display:inline-flex;
  align-items:baseline;
  font-family:"Montserrat",sans-serif;
  font-size:22px;
  font-weight:800;
  letter-spacing:-.1em;
  color:var(--ink);
}
.brand b { color:var(--gold); font-size:15px; }
.brand img { width:auto; height:25px; object-fit:contain; }

.nav-links {
  display:flex;
  align-items:center;
  height:70px;
  margin-left:auto;
}
.nav-links a {
  display:flex;
  align-items:center;
  height:100%;
  padding:0 20px;
  border-left:1px solid #e1e6e4;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.nav-links a.is-active { color:var(--gold); }
.nav-links .nav-contact {
  height:auto;
  margin-left:15px;
  padding:10px 14px;
  border:1px solid var(--ink);
}
.menu-toggle {
  display:none;
  margin-left:auto;
  padding:7px 0 7px 14px;
  border:0;
  background:transparent;
}
.menu-toggle span {
  display:block;
  width:25px;
  height:1px;
  margin:5px 0;
  background:var(--ink);
}
.mobile-menu {
  display:none;
  position:fixed;
  inset:0;
  z-index:9;
  flex-direction:column;
  justify-content:center;
  padding:100px 32px 32px;
  color:var(--white);
  background:var(--deep);
  opacity:0;
  pointer-events:none;
  transform:translateY(-12px);
  transition:.28s ease;
}
.mobile-menu.open { opacity:1; pointer-events:auto; transform:none; }
.mobile-menu a {
  display:block;
  padding:15px 0;
  border-bottom:1px solid rgba(255,255,255,.15);
  font-size:28px;
  font-weight:700;
}

.intro {
  padding:104px 0 92px;
  text-align:center;
  background:var(--cream);
}
.intro h1 {
  max-width:850px;
  margin:0 auto;
  font-family:"Montserrat",sans-serif;
  font-size:clamp(43px,6.1vw,78px);
  font-weight:400;
  letter-spacing:-.065em;
  line-height:.98;
}
.intro h1 strong { font-weight:700; }
.intro-copy {
  max-width:570px;
  margin:26px auto 0;
  color:#5d7075;
  font-size:17px;
  line-height:1.65;
}

.section { padding:90px 0; }
.section--sand { background:var(--sand); }
.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:36px;
  margin-bottom:46px;
}
.section-head h2 {
  margin:0;
  font-family:"Montserrat",sans-serif;
  font-size:clamp(34px,4vw,56px);
  font-weight:400;
  letter-spacing:-.06em;
  line-height:1;
}
.section-head h2 strong { font-weight:700; }
.section-head > p { max-width:340px; margin:0 0 4px; color:#607176; font-size:15px; line-height:1.6; }

.guide-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:38px 18px;
}
.guide-card {
  position:relative;
  min-height:370px;
  overflow:hidden;
  color:var(--white);
  background:var(--deep);
}
.guide-card[hidden] { display:none; }
.guide-card__media {
  position:absolute;
  inset:0;
  overflow:hidden;
}
.guide-card__media img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease,filter .35s ease;
}
.guide-card:hover .guide-card__media img { transform:scale(1.05); filter:brightness(.9); }
.guide-card::after {
  position:absolute;
  inset:0;
  content:"";
  background:linear-gradient(0deg,rgba(5,23,29,.9),rgba(5,23,29,.12) 66%);
  transition:background .3s ease;
}
.guide-card:hover::after { background:rgba(5,23,29,.72); }
.guide-card__content {
  position:absolute;
  z-index:1;
  right:20px;
  bottom:20px;
  left:20px;
}
.guide-card__price {
  margin:0 0 7px;
  color:var(--gold-light);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.guide-card__price-original {
  display:inline-block;
  margin-right:8px;
  text-decoration:line-through;
  opacity:.7;
}
.guide-card__price-sale { color:var(--gold-light); }
.guide-card__badge {
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  padding:5px 10px;
  background:var(--gold);
  color:var(--white);
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.guide-card__title {
  margin:0 0 6px;
  font-family:"Montserrat",sans-serif;
  font-size:19px;
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1.13;
}
.guide-card__desc {
  display:block;
  max-height:0;
  margin:0;
  overflow:hidden;
  opacity:0;
  font-size:13px;
  line-height:1.5;
  transition:.3s ease;
}
.guide-card:hover .guide-card__desc { max-height:48px; margin-top:10px; opacity:1; }
.guide-card__actions {
  display:flex;
  max-height:0;
  gap:8px;
  margin:0;
  overflow:hidden;
  opacity:0;
  transition:.3s ease;
}
.guide-card:hover .guide-card__actions { max-height:48px; margin-top:15px; opacity:1; }
.guide-card__actions a,
.guide-card__actions button {
  display:inline-flex;
  min-height:40px;
  flex:1;
  align-items:center;
  justify-content:center;
  border:1px solid var(--white);
  font-size:11px;
  font-weight:700;
  color:var(--white);
  background:transparent;
}
.guide-card__actions a:last-child,
.guide-card__actions button:last-child { color:var(--deep); background:var(--white); }

.empty-state {
  padding:32px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:#5d7075;
}

.cta {
  padding:112px 0;
  color:var(--white);
  text-align:center;
  background:linear-gradient(rgba(9,36,44,.82),rgba(9,36,44,.82)), url("https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1900&q=85") center/cover;
}
.cta .eyebrow { color:var(--gold-light); }
.cta h2 {
  margin:0;
  font-family:"Montserrat",sans-serif;
  font-size:clamp(35px,4.7vw,62px);
  font-weight:400;
  letter-spacing:-.06em;
  line-height:1.04;
}
.cta h2 strong { color:var(--gold-light); font-weight:700; }
.cta p:not(.eyebrow) { max-width:540px; margin:24px auto 31px; color:rgba(255,255,255,.84); font-size:16px; line-height:1.65; }
.cta a {
  display:inline-flex;
  min-height:48px;
  align-items:center;
  gap:13px;
  padding:0 21px;
  border:1px solid var(--white);
  font-size:11px;
  font-weight:700;
}
.cta a:hover { color:var(--deep); background:var(--white); }

.footer {
  padding:47px 0 28px;
  color:#bdcdce;
  background:#0a2229;
}
.footer-inner {
  display:grid;
  grid-template-columns:1fr 1.7fr auto;
  align-items:center;
  gap:26px;
  width:min(1180px,calc(100% - 64px));
  margin:0 auto;
}
.footer .brand { color:var(--white); }
.footer p,.footer span { margin:0; font-size:12px; }
.footer span { color:#80989b; }

/* Guide detail */
.guide-hero {
  position:relative;
  min-height:520px;
  display:flex;
  align-items:center;
  color:var(--white);
  background:var(--deep);
  overflow:hidden;
}
.guide-hero__image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.55;
}
.guide-hero__content {
  position:relative;
  z-index:1;
  width:min(1180px,calc(100% - 64px));
  margin:0 auto;
  padding:120px 0 90px;
}
.guide-hero__content .eyebrow { color:var(--gold-light); }
.guide-hero__content h1 {
  max-width:760px;
  margin:0;
  font-family:"Montserrat",sans-serif;
  font-size:clamp(38px,5vw,68px);
  font-weight:400;
  letter-spacing:-.06em;
  line-height:1.02;
}
.guide-hero__content h1 strong { font-weight:700; color:var(--gold-light); }
.guide-hero__subtitle {
  max-width:560px;
  margin:18px 0 0;
  font-size:18px;
  line-height:1.6;
  color:rgba(255,255,255,.9);
}
.guide-hero__meta {
  display:flex;
  align-items:center;
  gap:24px;
  margin-top:32px;
}
.guide-hero__price {
  font-family:"Montserrat",sans-serif;
  font-size:clamp(28px,3vw,42px);
  font-weight:700;
  letter-spacing:-.04em;
}

.editorial-section {
  padding:90px 0;
  background:var(--cream);
}
.editorial-section--sand { background:var(--sand); }
.editorial-grid {
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:60px;
  align-items:start;
}
.editorial-visual { position:relative; }
.editorial-visual img { width:100%; height:auto; object-fit:cover; }
.editorial-copy h2 {
  margin:0 0 22px;
  font-family:"Montserrat",sans-serif;
  font-size:clamp(30px,3.6vw,48px);
  font-weight:400;
  letter-spacing:-.05em;
  line-height:1.08;
}
.editorial-copy h2 strong { font-weight:700; }
.editorial-copy p {
  max-width:620px;
  margin:0 0 18px;
  color:#466068;
  font-size:17px;
  line-height:1.75;
}
.editorial-list {
  list-style:none;
  padding:0;
  margin:26px 0 0;
}
.editorial-list li {
  position:relative;
  padding-left:28px;
  margin-bottom:14px;
  color:#466068;
  font-size:16px;
  line-height:1.55;
}
.editorial-list li::before {
  position:absolute;
  left:0;
  top:6px;
  width:10px;
  height:10px;
  content:"";
  background:var(--gold);
  border-radius:50%;
}

.faq-section { padding:80px 0; background:var(--sand); }
.faq-item { border-bottom:1px solid var(--line); }
.faq-question {
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 0;
  border:0;
  background:transparent;
  color:var(--ink);
  font-size:17px;
  font-weight:700;
  text-align:left;
}
.faq-answer {
  max-height:0;
  overflow:hidden;
  color:#466068;
  font-size:15px;
  line-height:1.65;
  transition:max-height .25s ease, padding .25s ease;
}
.faq-item.is-open .faq-answer { max-height:400px; padding-bottom:22px; }

/* Forms / checkout */
.form-section { padding:90px 0; background:var(--cream); }
.form-card {
  max-width:560px;
  margin:0 auto;
  padding:38px;
  background:var(--white);
  border:1px solid var(--line);
}
.form-card h2 {
  margin:0 0 8px;
  font-family:"Montserrat",sans-serif;
  font-size:28px;
  font-weight:700;
  letter-spacing:-.04em;
}
.form-card p { margin:0 0 26px; color:#607176; font-size:15px; }
.field { margin-bottom:18px; }
.field label {
  display:block;
  margin-bottom:7px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.field input,
.field textarea,
.field select {
  width:100%;
  padding:12px 14px;
  border:1px solid #d9e0de;
  border-radius:0;
  font-size:15px;
  color:var(--ink);
  background:var(--white);
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline:none; border-color:var(--gold); }
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:49px;
  padding:0 23px;
  border:1px solid transparent;
  border-radius:2px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.03em;
  transition:.25s ease;
}
.btn--gold { color:var(--white); background:var(--gold); border-color:var(--gold); }
.btn--gold:hover { background:#a9793d; border-color:#a9793d; }
.btn--ink { color:var(--ink); border-color:var(--ink); background:var(--white); }
.btn--ink:hover { color:var(--white); background:var(--ink); }
.btn--full { width:100%; }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.verify-note {
  margin:14px 0 0;
  color:#607176;
  font-size:13px;
  line-height:1.5;
}

.alert {
  padding:14px 18px;
  margin-bottom:20px;
  border-left:3px solid var(--gold);
  background:rgba(189,142,80,.1);
  color:var(--ink);
  font-size:14px;
  line-height:1.55;
}
.alert--error { border-left-color:var(--danger); background:rgba(183,74,74,.08); }
.alert--success { border-left-color:var(--success); background:rgba(60,122,92,.08); }
.alert--info { border-left-color:#4a7a9b; background:rgba(74,122,155,.08); }
.alert[hidden] { display:none; }

/* Payment success */
.status-card {
  max-width:620px;
  margin:0 auto;
  padding:54px 40px;
  text-align:center;
  background:var(--white);
  border:1px solid var(--line);
}
.status-card h1 {
  margin:0 0 12px;
  font-family:"Montserrat",sans-serif;
  font-size:34px;
  font-weight:700;
  letter-spacing:-.04em;
}
.status-card p { color:#607176; font-size:16px; line-height:1.65; margin:0 0 28px; }
.status-icon { font-size:52px; margin-bottom:14px; }
.status-order {
  display:inline-flex;
  flex-direction:column;
  gap:4px;
  margin:0 0 26px;
  padding:16px 22px;
  background:var(--cream);
  border:1px solid var(--line);
  text-align:center;
}
.status-order[hidden] { display:none; }
.status-order span {
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}
.status-order strong {
  font-family:"Montserrat",sans-serif;
  font-size:20px;
  color:var(--ink);
}
.status-order small {
  font-size:12px;
  color:var(--muted);
}

/* My guides / reader */
.library-section { padding:90px 0; min-height:60vh; }
.library-list { display:grid; gap:18px; }
.library-card {
  display:grid;
  grid-template-columns:220px 1fr;
  gap:28px;
  padding:24px;
  background:var(--white);
  border:1px solid var(--line);
}
.library-card img { width:100%; height:160px; object-fit:cover; }
.library-card__content h3 {
  margin:0 0 8px;
  font-family:"Montserrat",sans-serif;
  font-size:22px;
  font-weight:700;
  letter-spacing:-.04em;
}
.library-card__content p { margin:0 0 18px; color:#607176; font-size:15px; line-height:1.6; }

/* Backoffice */
.bo-header {
  padding:18px 0;
  background:var(--deep);
  color:var(--white);
}
.bo-header .container {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.bo-header .brand { color:var(--white); }
.bo-nav { display:flex; gap:22px; }
.bo-nav a { font-size:13px; font-weight:700; opacity:.85; }
.bo-nav a.is-active { color:var(--gold-light); opacity:1; }

.bo-section { padding:40px 0 80px; }
.bo-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}
.bo-title {
  margin:0;
  font-family:"Montserrat",sans-serif;
  font-size:28px;
  font-weight:700;
  letter-spacing:-.04em;
}
.table-wrap { overflow:auto; border:1px solid var(--line); }
.bo-table {
  width:100%;
  border-collapse:collapse;
  background:var(--white);
  font-size:14px;
}
.bo-table th,
.bo-table td {
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
.bo-table th {
  background:var(--sand);
  font-weight:700;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.bo-table tr:last-child td { border-bottom:0; }
.bo-table td { color:#466068; }
.badge {
  display:inline-block;
  padding:4px 8px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.badge--published { color:#2d5a2d; background:#d9f0d9; }
.badge--draft { color:#6b6b6b; background:#ececec; }
.badge--paid { color:#2d5a2d; background:#d9f0d9; }
.badge--pending { color:#7a5a2d; background:#f5ecd9; }
.badge--cancelled { color:#7a2d2d; background:#f5d9d9; }

.bo-form { max-width:780px; }
.bo-form .field { margin-bottom:20px; }
.bo-form .row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.bo-form label { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.bo-form input,
.bo-form textarea,
.bo-form select {
  width:100%;
  padding:12px 14px;
  border:1px solid #d9e0de;
  font-size:15px;
  color:var(--ink);
}
.bo-form textarea { min-height:120px; resize:vertical; }
.bo-form input:focus,
.bo-form textarea:focus,
.bo-form select:focus { outline:none; border-color:var(--gold); }
.bo-form .hint { margin:6px 0 0; color:#7a8b90; font-size:12px; }

.versions-list { margin:24px 0; }
.version-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.version-row.is-current { background:rgba(189,142,80,.08); }
.version-row .actions { display:flex; gap:10px; }
.btn--sm { min-height:34px; padding:0 14px; font-size:12px; }

/* Reader modal */
.reader-backdrop {
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(13,41,49,.9);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.reader-backdrop.is-open { opacity:1; pointer-events:auto; }
.reader-modal {
  width:min(1180px,calc(100% - 40px));
  height:min(90vh,calc(100% - 40px));
  background:var(--white);
  display:flex;
  flex-direction:column;
}
.reader-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 22px;
  border-bottom:1px solid var(--line);
}
.reader-header h3 { margin:0; font-family:"Montserrat",sans-serif; font-size:18px; }
.reader-header button { padding:8px 14px; border:1px solid var(--ink); background:var(--white); font-size:12px; font-weight:700; }
.reader-toolbar {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 16px;
  color:var(--white);
  background:#323738;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.reader-toolbar button {
  min-width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.26);
  color:var(--white);
  background:transparent;
  font-size:16px;
  font-weight:700;
}
.reader-toolbar span {
  min-width:86px;
  text-align:center;
  font-size:12px;
  font-weight:700;
}
.reader-body {
  position:relative;
  flex:1;
  overflow:auto;
  padding:26px;
  text-align:center;
  background:#242829;
  user-select:none;
}
.reader-body canvas {
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
  background:var(--white);
  box-shadow:0 10px 26px rgba(0,0,0,.28);
}
.reader-loading {
  position:absolute;
  top:22px;
  left:50%;
  z-index:1;
  transform:translateX(-50%);
  padding:10px 14px;
  color:var(--white);
  background:rgba(13,41,49,.92);
  font-size:13px;
  font-weight:700;
}
.reader-frame { flex:1; border:0; width:100%; }

@media (max-width:900px) {
  .guide-grid { grid-template-columns:repeat(3,1fr); }
  .editorial-grid { grid-template-columns:1fr; }
  .library-card { grid-template-columns:1fr; }
  .bo-form .row { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  .container,.nav-wrap,.footer-inner { width:min(100% - 40px,1180px); }
  .nav-links { display:none; }
  .menu-toggle { display:block; }
  .mobile-menu { display:flex; }
  .intro { padding:76px 0 68px; }
  .section { padding:72px 0; }
  .guide-grid { grid-template-columns:repeat(2,1fr); gap:15px; }
  .guide-card { min-height:330px; }
  .guide-card__content { right:16px; bottom:16px; left:16px; }
  .guide-card__title { font-size:17px; }
  .guide-card::after { background:linear-gradient(0deg,rgba(5,23,29,.92),rgba(5,23,29,.18) 66%); }
  .guide-card__desc {
    max-height:54px;
    margin-top:10px;
    opacity:1;
  }
  .guide-card__actions {
    max-height:none;
    margin-top:15px;
    opacity:1;
    overflow:visible;
  }
  .guide-card__actions a,
  .guide-card__actions button {
    min-height:44px;
    touch-action:manipulation;
  }
  .section-head { flex-direction:column; align-items:start; }
  .guide-hero__meta { flex-direction:column; align-items:start; gap:14px; }
  .footer-inner { grid-template-columns:1fr; }
  .form-card { padding:24px; }
  .status-card { padding:36px 24px; }
  .library-card { padding:18px; }
}
@media (max-width:440px) {
  .guide-grid { grid-template-columns:1fr; }
  .guide-card { min-height:400px; }
}
