/* Landing de planejamento semanal — complementa o design system da página inicial. */
.weekly-page { overflow: hidden; }
.weekly-page h1 { max-width: 720px; }
.weekly-page .section-heading > p { max-width: 680px; }

.weekly-hero { padding: 78px 0 86px; }
.weekly-hero__grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 58px; }
.weekly-hero__copy { position: relative; z-index: 2; }
.weekly-hero__visual { position: relative; min-height: 520px; }
.weekly-hero__visual figure { margin: 0; }
.screen { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.screen img { display: block; width: 100%; }
.screen--desktop { position: absolute; top: 18px; left: 0; width: 780px; transform: rotate(.5deg); }
.screen--phone { position: absolute; z-index: 2; right: -72px; bottom: -22px; width: 188px; border: 7px solid var(--paper); border-radius: 27px; box-shadow: 0 25px 60px rgba(48,42,38,.2); transform: rotate(1.8deg); }
.screen--phone img { border-radius: 19px; }

.routine-section { padding-top: 100px; }
.routine-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.routine-grid article { min-height: 255px; padding: 29px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.45); }
.routine-grid article > span { color: var(--brand); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.routine-grid h3 { margin: 42px 0 11px; font-size: 1.1rem; }
.routine-grid p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.weekly-how .steps p { margin-bottom: 0; }

.device-grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 80px; }
.device-copy h2 { max-width: 580px; }
.device-copy > p { color: var(--muted); font-size: 1.05rem; }
.check-list { display: grid; gap: 15px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { padding-left: 25px; position: relative; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.check-list strong { color: var(--ink); }
.device-visuals { position: relative; min-height: 535px; }
.screen--wide { position: absolute; top: 0; left: 0; width: 790px; }
.screen--wide figcaption { padding: 12px 16px; color: var(--muted); font-size: .84rem; }
.device-phone { position: absolute; z-index: 2; right: -15px; bottom: -5px; width: 182px; margin: 0; overflow: hidden; border: 7px solid var(--paper); border-radius: 27px; background: var(--paper); box-shadow: 0 25px 60px rgba(48,42,38,.22); }
.device-phone img { display: block; width: 100%; border-radius: 19px; }

.story-section { padding-block: 90px; background: var(--brand-dark); color: #fff; }
.story-grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 90px; }
.story-section .eyebrow { color: #dfc7b6; }
.story-section h2 { max-width: 650px; }
.story-section p { max-width: 720px; color: #e5dcd5; font-size: 1.04rem; }
.story-mark { padding: 40px; border: 1px solid rgba(255,255,255,.2); }
.story-mark span { display: block; height: 62px; color: #dfc7b6; font-family: Georgia,serif; font-size: 6rem; line-height: 1; }
.story-mark strong { display: block; margin-top: 24px; font-size: 1.15rem; line-height: 1.55; }
.text-link--light { color: #fff; }

.evolution-section { background: var(--bg); }
.evolution-section .section-heading { max-width: 790px; }
.module-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.module-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.module-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); object-fit: cover; object-position: top; }
.module-card > div { padding: 25px; }
.module-card > div > span { color: var(--brand); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.module-card h3 { margin: 13px 0 9px; font-size: 1.16rem; }
.module-card p { min-height: 78px; margin-bottom: 16px; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.module-card a { color: var(--brand-dark); font-size: .84rem; font-weight: 800; text-decoration: none; }
.module-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

.benefits-section { border-block: 1px solid var(--line); background: var(--paper-warm); }
.benefits-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 90px; }
.benefit-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid #d9cec5; }
.benefit-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 23px 18px 23px 0; border-bottom: 1px solid #d9cec5; }
.benefit-list li:nth-child(odd) { margin-right: 23px; }
.benefit-list li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--brand); font-weight: 900; }
.benefit-list strong { display: block; margin-bottom: 3px; }
.benefit-list p { margin: 0; color: var(--muted); font-size: .85rem; }

.gallery-section { background: var(--paper); }
.gallery-section .section-heading { max-width: 760px; }
.screen-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); cursor: zoom-in; text-align: left; transition: transform .18s, border-color .18s, box-shadow .18s; }
.gallery-card:hover { transform: translateY(-2px); border-color: #cdbbab; box-shadow: 0 16px 36px rgba(81,54,36,.1); }
.gallery-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery-card > img { display: block; width: 100%; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); object-fit: cover; object-position: top; }
.gallery-card--wide { grid-column: span 2; }
.gallery-card--phone { grid-row: span 2; }
.gallery-card--phone > img { aspect-ratio: 9 / 12.4; }
.gallery-card > span { display: block; padding: 18px; }
.gallery-card strong, .gallery-card small { display: block; }
.gallery-card small { margin-top: 4px; color: var(--muted); line-height: 1.5; }
.gallery-dialog { width: min(1120px,calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 0; border-radius: 12px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.gallery-dialog::backdrop { background: rgba(30,24,20,.72); }
.gallery-dialog__bar { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.gallery-dialog__bar p { margin: 0; font-weight: 750; }
.gallery-dialog__bar button { min-height: 42px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--brand-dark); cursor: pointer; font-weight: 750; }
.gallery-dialog > img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 90px); margin: auto; object-fit: contain; }

.faq-section { background: var(--bg); }
.faq-layout { grid-template-columns: .7fr 1.3fr; }
.faq-list summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.weekly-final-cta h2 { max-width: 700px; }
.weekly-final-cta p { margin-bottom: 22px; }
.related-section { padding: 45px 0; border-bottom: 1px solid var(--line); background: var(--paper-warm); }
.related-grid { display: grid; grid-template-columns: .45fr 1.55fr; align-items: start; gap: 55px; }
.related-grid h2 { margin: 0; font-size: 1rem; letter-spacing: 0; }
.related-grid nav { display: flex; flex-wrap: wrap; gap: 9px 23px; }
.related-grid a { color: var(--brand-dark); font-size: .86rem; font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 1120px) {
  .weekly-hero__grid { grid-template-columns: 1fr; }
  .weekly-hero__copy { max-width: 760px; }
  .weekly-hero__visual { min-height: 590px; }
  .screen--desktop { width: 92%; }
  .screen--phone { right: 0; }
  .routine-grid { grid-template-columns: repeat(2,1fr); }
  .device-grid { grid-template-columns: 1fr; }
  .device-copy { max-width: 760px; }
  .device-visuals { min-height: 620px; }
  .screen--wide { width: 90%; }
  .module-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .weekly-hero { padding: 52px 0 62px; }
  .weekly-hero__grid { gap: 35px; }
  .weekly-page h1 { font-size: clamp(2.45rem,12vw,3.3rem); }
  .weekly-hero__visual { min-height: 325px; }
  .screen--desktop { position: relative; top: 0; width: 112%; }
  .screen--phone { right: -7px; bottom: -5px; width: 118px; border-width: 4px; border-radius: 19px; }
  .screen--phone img { border-radius: 14px; }
  .routine-section { padding-top: 70px; }
  .routine-grid { grid-template-columns: 1fr; border-left: 0; }
  .routine-grid article { min-height: auto; border-left: 1px solid var(--line); }
  .routine-grid h3 { margin-top: 23px; }
  .device-grid, .story-grid, .benefits-grid, .related-grid { grid-template-columns: 1fr; gap: 42px; }
  .device-visuals { min-height: 355px; }
  .screen--wide { position: relative; width: 108%; }
  .device-phone { right: -4px; bottom: -10px; width: 115px; border-width: 4px; border-radius: 19px; }
  .device-phone img { border-radius: 14px; }
  .story-mark { padding: 28px; }
  .module-grid, .benefit-list, .screen-gallery { grid-template-columns: 1fr; }
  .module-card p { min-height: 0; }
  .benefit-list li:nth-child(odd) { margin-right: 0; }
  .gallery-card--wide { grid-column: auto; }
  .gallery-card--phone { grid-row: auto; }
  .gallery-card--phone > img { aspect-ratio: 16 / 10; object-position: center 15%; }
  .related-grid nav { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card:hover { transform: none; }
}
