/* Shared interior layouts. Palette and navigation come from rumevia_home.css. */
.interior { --blue: #718263; --coral: #bd795a; --coral-ink: #88553e; --white: #fffefa; }
.interior { min-height: 100svh; display: flex; flex-direction: column; }
.interior > main { flex: 1; }
.interior h1 { font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -1.8px; overflow-wrap: anywhere; }
.interior h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -1px; }
.interior h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 400; line-height: 1.2; letter-spacing: -.5px; }
.interior .topbar { position: relative; z-index: 5; }
.interior p, .interior li { overflow-wrap: anywhere; }
.interior footer { width: 100%; }
.interior footer nav { max-width: 770px; }
.interior .store-availability { color: inherit; }
.interior .closing .store-availability span { color: #d4ddd2; }

/* Editorial feature pages */
.feature-page .hero { grid-template-columns: 1.15fr .85fr; gap: 60px; margin-top: 40px; margin-bottom: 48px; }
.feature-page .hero-content { padding: 26px 0; }
.feature-page .hero-visual { min-height: 440px; border-top-left-radius: 110px; }
.feature-page .hero h1 { font-size: clamp(38px, 4vw, 58px); }
.feature-page .hero-copy { max-width: 560px; margin-top: 24px; }
.feature-page .button.ghost { background: transparent; color: var(--green); border-color: #bdc7bb; }
.feature-page .closing .button.ghost { color: #fffefa; border-color: #9aafa1; }
.feature-page .band { padding: 80px 0; }
.feature-page .section-head { gap: 60px; }
.feature-page .section-head h2 { font-size: clamp(32px, 3.3vw, 46px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--line); padding: 22px 0; }
.step-number, .role-label { font-size: 10px; color: #718263; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.step h3 { margin: 28px 0 12px; }
.step p, .info-card p, .status-grid p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.split-copy > p { color: var(--muted); font-size: 16px; line-height: 1.85; }
.split-copy h2 { margin-bottom: 24px; }
.fact-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.fact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.flow { padding: 30px; background: #edf0e6; border: 1px solid var(--line); border-radius: 8px; }
.flow-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid #ced5c5; }
.flow-row:first-child { padding-top: 0; }
.flow-row:last-child { padding-bottom: 0; border: 0; }
.flow-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #bac6af; border-radius: 50%; font-size: 12px; }
.flow-row strong, .flow-row div span { display: block; }
.flow-row div span { margin-top: 4px; font-size: 13px; color: var(--muted); }
.info-grid, .status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-card, .status-grid .status { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; }
.info-card h3, .status-grid h3 { margin: 8px 0 12px; }
.status-grid .status { border-left: 3px solid #718263; }
.status-grid .absent { border-left-color: #af6551; }
.status-grid .late { border-left-color: #b69a50; }
.status-grid .excused { border-left-color: #698891; }
.feature-page .role h3 { margin-top: 24px; }
.boundary { background: #edf0e6; border-block: 1px solid var(--line); }
.boundary .shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; padding-block: 54px; }
.boundary p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.85; }
.boundary p + p { margin-top: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.related-link { padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; }
.related-link strong { display: block; font-size: 17px; font-weight: 550; margin-bottom: 7px; }
.related-link span { color: var(--muted); font-size: 13px; }
.related-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.closing-conversion { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.feature-page .closing h2 { max-width: 600px; }

/* Documents and account forms */
.document-main { width: min(100% - 96px, 840px); margin: 0 auto; padding: 65px 0 85px; }
.document-main.wide-document { width: min(100% - 96px, 1120px); }
.document-main h1 { margin: 0 0 24px; }
.document-main h2 { margin: 38px 0 14px; font-size: 29px; }
.document-main h3 { margin: 26px 0 10px; }
.document-main p, .document-main li, .document-main td { color: var(--muted); line-height: 1.85; }
.document-main a:not(.button) { text-underline-offset: 4px; }
.document-main table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 26px 0; font-size: 13px; }
.document-main th, .document-main td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.document-main th { background: #edf0e6; color: var(--ink); font-weight: 600; }
.document-main input:not([type='checkbox']):not([type='hidden']), .document-main select, .document-main textarea {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
  border: 1px solid #bdc7bb; border-radius: 4px; background: #fffefa; color: var(--ink); font: inherit; font-size: 16px;
}
.document-main textarea { resize: vertical; min-height: 135px; }
.document-main input[type='checkbox'] { width: 19px; height: 19px; min-height: 19px; flex: 0 0 19px; accent-color: var(--green); }
.document-main input:focus-visible, .document-main textarea:focus-visible, .document-main select:focus-visible, .document-main button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.document-main button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 23px; border: 1px solid var(--green); border-radius: 5px; background: var(--green); color: white; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.document-main button:hover { background: #254e46; }
.document-main button.secondary, .document-main .button.secondary { border: 1px solid #bdc7bb; background: transparent; color: var(--ink); }
.document-main button.danger { background: #9d3d2e; border-color: #9d3d2e; }
.document-main .meta { margin: 0 0 23px; padding: 12px 16px; background: #edf0e6; border: 1px solid var(--line); border-radius: 4px; color: var(--green); font-size: 12px; line-height: 1.7; }
.document-main .notice { padding: 18px 20px; margin: 20px 0; border: 1px solid var(--line); border-radius: 5px; background: #edf0e6; }
.document-main .notice.error { color: #873d2c; background: #fff2e9; border-color: #dcb99f; }
.document-main .notice.error p, .document-main .notice.error li { color: inherit; }
.document-main .intro { padding-top: 0; }
.document-main .intro > img { display: none; }
.document-main .intro .meta { display: inline-block; padding: 0; border: 0; background: none; text-transform: uppercase; letter-spacing: 1.6px; font-size: 10px; color: var(--muted); }
.document-main .intro li { font-size: 14px; }
.document-main .intro li::before { color: #718263; }
.document-main .signup-form, .document-main .demo-form, .document-main .support-form { padding: 32px; border-color: var(--line); background: #fffefa; }
.document-main .signup-form h2, .document-main .demo-form h2 { margin: 0 0 26px; }
.document-main .field { margin-bottom: 22px; }
.document-main .field label, .document-main .support-form label { font-weight: 550; font-size: 13px; }
.document-main .checks label, .document-main .privacy, .document-main .support-form .checkbox { font-size: 12px; line-height: 1.7; color: var(--muted); }
.document-main .access { max-width: 590px; margin: 15px auto; padding: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; }
.document-main .access form { display: grid; gap: 14px; margin-top: 25px; }
.document-main .access label { font-size: 13px; }
.document-main .access h1 { font-size: 44px; }
.document-main .billing-head { align-items: center; }
.document-main .billing-head .meta { background: none; padding: 0; border: 0; color: var(--muted); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; }
.document-main .billing-head h1 { margin: 16px 0; }
.document-main .plan { background: #fffefa; border-color: var(--line); padding: 28px; }
.document-main .plan.current { border: 2px solid var(--green); padding: 27px; background: #edf0e6; }
.document-main .plan h2 { font-family: inherit; font-size: 21px; letter-spacing: 0; margin-top: 15px; }
.document-main .price { font: 36px/1.3 Georgia,serif; margin: 20px 0; }
.document-main .current-label { position: static; font-size: 10px; letter-spacing: 1px; color: var(--green); }
.document-main .manage, .document-main .pending { background: #fffefa; border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.document-main .pending { background: #edf0e6; }
.document-main .contract-check { font-size: 12px; }
.account-page { max-width: 640px; }
.account-page form { display: grid; gap: 16px; margin-top: 26px; }
.error-page { text-align: center; max-width: 740px; padding-block: 95px; }
.error-page > img { width: 54px; height: 54px; border-radius: 10px; margin-bottom: 22px; }
.error-page > p:first-of-type { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; }
.error-page .button { margin-top: 20px; }

/* Invitation content retains the academy's logo and brand accent. */
body.invitation-page { display: flex; padding: 0; background: var(--paper); color: var(--ink); }
.invitation-page::before { display: none; }
.invitation-page .invitation-main { width: min(100% - 56px, 900px); margin: 60px auto 80px; padding: 0; }
.invitation-page .panel { box-shadow: none; border: 1px solid var(--line); background: #fffefa; }
.invitation-page .academy-brand { background: #edf0e6; }
.invitation-page .brand-name { font-size: 20px; letter-spacing: 0; }
.invitation-page .invite h1 { font-size: 38px; }
.invitation-page .lead { line-height: 1.85; }
.invitation-page .topbar .brand { padding: 0; border: 0; }
.invitation-page .topbar .brand img { padding: 0; background: none; border: 0; }
.invitation-page footer p { color: inherit; }
.download-page .invitation-main { width: min(100% - 56px, 570px); flex: 0; padding: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; box-shadow: none; }
.download-page .invitation-main h1 { font-size: 42px; color: var(--green); }
.download-page > footer { margin-top: auto; }

@media (max-width: 1000px) {
  .document-main, .document-main.wide-document { width: calc(100% - 56px); }
  .feature-page .hero { gap: 32px; }
  .feature-page .hero-visual { min-height: 420px; }
  .feature-page .hero h1 { font-size: 43px; }
  .split, .boundary .shell { gap: 35px; }
  .document-main .signup-layout, .document-main .demo-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .feature-page .hero { grid-template-columns: 1fr; margin-top: 26px; gap: 26px; }
  .feature-page .hero-content { padding-top: 0; }
  .feature-page .hero-visual { min-height: 270px; }
  .feature-page .hero h1 { font-size: 40px; }
  .feature-page .hero-copy { font-size: 16px; }
  .feature-page .band { padding: 58px 0; }
  .feature-page .section-head, .split, .boundary .shell, .steps, .related-grid { grid-template-columns: 1fr; gap: 24px; }
  .step h3 { margin-top: 18px; }
  .step { padding-bottom: 0; }
  .info-grid, .status-grid { grid-template-columns: 1fr; }
  .closing-conversion, .closing-actions { align-items: flex-start; justify-content: flex-start; }
  .document-main { padding-top: 38px; padding-bottom: 55px; }
  .document-main .signup-layout, .document-main .demo-layout { grid-template-columns: 1fr; }
  .document-main .signup-form, .document-main .demo-form, .document-main .support-form, .document-main .access { padding: 24px; }
  .document-main .plans { grid-template-columns: 1fr; }
  .document-main .billing-head, .document-main .manage { flex-direction: column; align-items: flex-start; }
  .document-main .access h1 { font-size: 37px; }
  .invitation-page .invitation-main { margin-block: 35px 50px; }
  .download-page .invitation-main { padding: 26px; }
  .download-page .invitation-main h1 { font-size: 37px; }
}
@media (max-width: 380px) {
  .document-main, .document-main.wide-document, .invitation-page .invitation-main { width: calc(100% - 36px); }
  .interior h1, .feature-page .hero h1 { font-size: 35px; }
  .document-main .signup-form, .document-main .demo-form, .document-main .support-form, .document-main .access { padding: 18px; }
}
.feature-page .security { background: #edf0e6; border-block: 1px solid var(--line); padding: 35px 0; }
.feature-page .security .shell { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.feature-page .security strong { font-family: Georgia, serif; font-size: 26px; font-weight: 400; line-height: 1.3; }
.feature-page .security p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
@media(max-width:760px) { .feature-page .security .shell { grid-template-columns: 1fr; gap: 20px; } }
.document-main .current-label { position: absolute; top: 18px; right: 18px; }
.document-main .plan h2 { margin-top: 20px; }
.invitation-page .download h2 { font-size: 28px; margin-bottom: 12px; }

/* A relevant, complete app screen on each illustrated feature page. */
.feature-page .hero-visual.feature-screenshot { margin: 0; min-height: 0; align-self: center; justify-self: center; width: 100%; max-width: 380px; padding: 26px 26px 22px; border-radius: 12px; background: #e7efe9; text-align: center; overflow: visible; }
.feature-page .feature-screenshot:after { display: none; }
.feature-screenshot > a { display: block; width: min(100%, 260px); margin: 0 auto; border-radius: 18px; }
.feature-screenshot img { display: block; width: 100%; height: auto; border: 4px solid #fffefa; border-radius: 18px; box-shadow: 0 14px 28px #173a3726; }
.feature-screenshot figcaption { margin-top: 20px; line-height: 1.6; }
.feature-screenshot figcaption strong { display: block; font-size: 13px; font-weight: 600; }
.feature-screenshot figcaption span { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
@media(max-width:760px) { .feature-page .hero-visual.feature-screenshot { max-width: 340px; padding: 22px; } .feature-screenshot > a { max-width: 230px; } }
