/* The client portal's Guides (feos:portal-guides, feos:portal-free-will; docs/modules/client-guides.md).
   Colours per guide: --g (the guide's colour), --g-soft (its tint). */
.feos-g-column, .feos-g-page, .feos-fw { --g: #1f6fa8; --g-soft: #e1eef9; --g-ink: #0f2a44; --g-muted: #4a5d70; --g-line: #d5e2ee;
    --g-gold: #f2b544; --g-warm: #8a4b08; --g-warm-soft: #fcebd3; }
[data-colour="green"] { --g: #1e7a5e; --g-soft: #ddf1ea; }
[data-colour="purple"] { --g: #5b3fa8; --g-soft: #ece6f8; }
[data-colour="orange"] { --g: #a4520f; --g-soft: #fbe7d6; }

/* the column under the menu */
.feos-g-column { display: flex; flex-direction: column; gap: 9px; }
.feos-g-column h2 { margin: 2px 4px 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #33485c; }
.feos-g-tile { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 11px 13px; border-radius: 12px;
    background: #fff; border: 1px solid var(--g-line); color: var(--g-ink); cursor: pointer; font: inherit; }
.feos-g-tile:hover, .feos-g-tile:focus-visible { border-color: var(--g); box-shadow: 0 2px 8px rgba(15, 42, 68, .08); }
.feos-g-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--g-soft); color: var(--g);
    display: flex; align-items: center; justify-content: center; }
.feos-g-tiletext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feos-g-tiletext strong { font-size: 15px; }
.feos-g-tiletext small { font-size: 13px; color: var(--g-muted); line-height: 1.35; }
.feos-g-badge { align-self: flex-start; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--g); background: var(--g-soft);
    padding: 2px 8px; border-radius: 99px; }
.feos-g-badge.is-warm { color: var(--g-warm); background: var(--g-warm-soft); }

/* the code */
.feos-g-code { background: #0f2a44; color: #fff; border-radius: 14px; padding: 15px; display: flex; flex-direction: column; gap: 9px; }
.feos-g-code.is-locked { background: #fff; color: var(--g-ink, #0f2a44); border: 2px solid #f2b544; }
.feos-g-code-head { display: flex; gap: 8px; align-items: center; color: #f2b544; }
.feos-g-code.is-locked .feos-g-code-head { color: #b7791f; }
.feos-g-code-head strong { color: inherit; font-size: 14px; }
.feos-g-code:not(.is-locked) .feos-g-code-head strong { color: #fff; }
.feos-g-code p { margin: 0; font-size: 13px; line-height: 1.45; color: inherit; opacity: .9; }
.feos-g-code-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #1b3b5c;
    border: 1px dashed #f2b544; border-radius: 10px; padding: 9px 11px; }
.feos-g-code-box code { background: none; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px; padding: 0; }
.feos-g-code-box button { font: inherit; font-size: 13px; font-weight: 700; color: #0f2a44; background: #f2b544; border: 0; border-radius: 8px; padding: 6px 11px; }
.feos-g-codeform { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; margin: 0; }
.feos-g-codeform span { display: flex; gap: 6px; }
.feos-g-codeform input { flex: 1; min-width: 0; font: inherit; font-weight: 700; letter-spacing: 1px; padding: 8px 10px;
    border: 1px solid #b9cadb; border-radius: 8px; text-transform: uppercase; }
.feos-g-codeform button { font: inherit; font-weight: 800; color: #fff; background: #1f6fa8; border: 0; border-radius: 8px; padding: 0 12px; }

/* buttons */
.feos-g-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 6px; font: inherit; font-weight: 800;
    font-size: 15px; color: #fff; background: var(--g, #1f6fa8); border: 2px solid var(--g, #1f6fa8); border-radius: 10px;
    padding: 11px 18px; cursor: pointer; text-decoration: none; }
.feos-g-btn:hover { color: #fff; filter: brightness(1.08); text-decoration: none; }
.feos-g-btn.is-line { color: var(--g); background: #fff; }
.feos-g-btn.is-gold { color: #0f2a44; background: #f2b544; border-color: #f2b544; }
.feos-g-btn.is-orange { background: #c46a1e; border-color: #c46a1e; }
.feos-g-btn.is-big { font-size: 16px; padding: 13px 22px; }
.feos-g-btn[disabled] { opacity: .5; cursor: default; }
.feos-g-linkbtn { align-self: flex-start; font: inherit; font-size: 14px; font-weight: 700; color: var(--g, #1f6fa8); background: none;
    border: 0; padding: 4px 0; cursor: pointer; text-align: left; }
.feos-g-code .feos-g-linkbtn { color: #f2b544; font-size: 13px; }
.feos-g-code .feos-g-linkbtn.is-dark { color: #1f6fa8; }

/* a guide's page */
.feos-g-page { display: flex; flex-direction: column; gap: 18px; color: var(--g-ink); }
.feos-g-hero { background: #fff; border-radius: 16px; padding: 26px 28px; border-top: 6px solid var(--g); display: flex;
    flex-wrap: wrap; align-items: center; gap: 18px; }
.feos-g-hero > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.feos-g-hero img { flex: 0 1 260px; width: 260px; max-width: 100%; height: auto; }
.feos-g-hero h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; text-wrap: balance; color: var(--g-ink); }
.feos-g-hero p { margin: 0; font-size: 16px; line-height: 1.6; color: #33485c; max-width: 65ch; }
.feos-g-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--g); }
.feos-g-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feos-g-chips span { font-size: 13px; font-weight: 700; background: var(--g-soft); color: var(--g); padding: 4px 10px; border-radius: 99px; }
.feos-g-card { background: #fff; border-radius: 16px; padding: 22px 28px; display: flex; flex-direction: column; gap: 12px; }
.feos-g-card h2, .feos-g-packs h2, .feos-g-quiz h2, .feos-g-note h2 { margin: 0; font-size: 20px; font-weight: 800; color: inherit; }
.feos-g-card > p { margin: 0; font-size: 15px; line-height: 1.55; color: #33485c; max-width: 70ch; }
.feos-g-grid { display: grid; gap: 12px; }
.feos-g-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feos-g-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feos-g-cell { border-radius: 12px; padding: 15px; display: flex; flex-direction: column; gap: 6px; }
.feos-g-cell strong { font-size: 15.5px; }
.feos-g-cell span { font-size: 14px; line-height: 1.5; color: #33485c; }
.feos-g-cell.is-tint { background: var(--g-soft); }
.feos-g-cell.is-warn { background: #fff8ef; border: 1px solid #f0d2ae; }
.feos-g-cell.is-story { background: #fff; border: 1px solid var(--g-line); border-top: 4px solid var(--g); }
.feos-g-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; font-size: 15.5px; line-height: 1.55; max-width: 70ch; }
.feos-g-note { border-radius: 16px; padding: 22px 28px; display: flex; flex-direction: column; gap: 10px; }
.feos-g-note p { margin: 0; font-size: 15.5px; line-height: 1.6; max-width: 66ch; }
.feos-g-note.is-green { background: #ddf1ea; }
.feos-g-note.is-dark { background: #0f2a44; color: #fff; }
.feos-g-note.is-dark h2, .feos-g-note.is-dark h3 { color: #fff; }
.feos-g-note.is-dark p { color: #d6e4f0; }
.feos-g-note.is-dark .feos-g-was { color: #a9c3db; }
.feos-g-note.is-dark strong { color: #fff; }
.feos-g-note.is-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.feos-g-note.is-row > div { flex: 1 1 340px; min-width: 0; }
.feos-g-note.is-row h3 { margin: 0 0 6px; font-size: 16.5px; }
.feos-g-note .feos-g-btn { align-self: flex-start; }
.feos-g-scroll { overflow-x: auto; }
.feos-g-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.feos-g-table th, .feos-g-table td { text-align: left; padding: 10px; border-bottom: 1px solid #dce5ee; vertical-align: top; }
.feos-g-table thead th { border-bottom: 2px solid #0f2a44; font-size: 15px; }
.feos-g-table tbody th { font-weight: 600; }
.feos-g-table .is-best { background: #f2f7fc; }
.feos-g-table thead .is-best { background: var(--g-soft); border-radius: 8px 8px 0 0; }
.feos-g-table .is-price th, .feos-g-table .is-price td { border-bottom: 0; font-size: 15px; font-weight: 700; }
.feos-g-was { color: var(--g-muted); font-weight: 400; }
.feos-g-packs { display: flex; flex-direction: column; gap: 12px; }
.feos-g-packs > p { margin: 0 4px; font-size: 14px; line-height: 1.5; color: #33485c; }
.feos-g-packs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px; }
.feos-g-pack { background: #fff; border: 1px solid var(--g-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.feos-g-pack.is-best { border: 2px solid var(--g); }
.feos-g-pack > span { font-size: 14.5px; color: #33485c; }
.feos-g-pack ul { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.55; }
.feos-g-packname { font-size: 18px; }
.feos-g-pill { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
    background: var(--g); padding: 3px 10px; border-radius: 99px; }
.feos-g-price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.feos-g-price strong { font-size: 22px; }
.feos-g-price small { flex-basis: 100%; font-size: 12.5px; color: var(--g-muted); }
.feos-g-quiz { background: #0f2a44; color: #fff; border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.feos-g-quiz h2 { color: #fff; margin-bottom: 6px; }
.feos-g-quiz .feos-g-eyebrow { color: #f2b544; }
.feos-g-q { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #2a4a6b; }
.feos-g-q > span:first-child { flex: 1 1 320px; min-width: 0; font-size: 15.5px; line-height: 1.45; }
.feos-g-yn { display: flex; gap: 8px; }
.feos-g-yn button { font: inherit; font-weight: 700; min-width: 64px; min-height: 44px; padding: 8px 14px; border-radius: 10px;
    border: 2px solid #4c6e91; background: transparent; color: #fff; cursor: pointer; }
.feos-g-yn button.is-on { background: #f2b544; border-color: #f2b544; color: #0f2a44; font-weight: 800; }
.feos-g-quiz .feos-g-small { color: #c9d8e6; }
.feos-g-result { background: #fff; color: #0f2a44; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.feos-g-result strong { font-size: 17px; }
.feos-g-result p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #33485c; }
.feos-g-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.feos-g-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feos-g-steps.is-column { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.feos-g-steps li { display: flex; flex-direction: column; gap: 6px; }
.feos-g-steps.is-column li { flex-direction: row; align-items: flex-start; gap: 12px; }
.feos-g-steps li > span:last-child { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.5; color: #33485c; }
.feos-g-steps li strong { color: var(--g-ink); font-size: 15px; }
.feos-g-num { flex: none; width: 30px; height: 30px; border-radius: 99px; background: var(--g); color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center; }
.feos-g-warn { margin: 0; padding: 13px 15px; border-radius: 12px; background: #fff8ef; border: 1px solid #f0d2ae; font-size: 14.5px; line-height: 1.55; }
.feos-g-dark { margin: 0; padding: 13px 15px; border-radius: 12px; background: #0f2a44; color: #fff; font-size: 14.5px; line-height: 1.55; }
.feos-g-dark strong { color: #f2b544; }
.feos-g-side { border: 1px solid var(--g-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.feos-g-side.is-best { border: 2px solid var(--g); }
.feos-g-side.is-warn { border-color: #f0d2ae; background: #fff8ef; }
.feos-g-side ul, .feos-g-side ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.55; display: flex; flex-direction: column; gap: 4px; }
.feos-g-policy { background: #fff; border: 2px solid #c46a1e; border-radius: 16px; padding: 18px 22px; display: flex; flex-wrap: wrap;
    align-items: center; justify-content: space-between; gap: 14px; }
.feos-g-policy > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; min-width: 0; }
.feos-g-policy strong { font-size: 17px; }
.feos-g-faq { border-top: 1px solid #dce5ee; padding: 11px 0; }
.feos-g-faq summary { font-weight: 700; font-size: 15.5px; cursor: pointer; }
.feos-g-faq p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: #33485c; }
.feos-g-small { margin: 0; font-size: 12.5px; line-height: 1.5; color: #4a5d70; }
.feos-g-small.is-warn { color: #a3361c; font-weight: 700; }

/* the window before the hand-over to WWN */
.feos-g-handoff .feos-g-card h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; color: inherit; }
.feos-g-handoff .feos-g-card h2 { font-size: 16px; }
.feos-g-handoff-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid #dce5ee; }
.feos-g-handoff-head .feos-g-price { margin: 0 0 0 auto; }
.feos-g-codeline { padding: 9px 13px; border-radius: 10px; background: #fff6e3; border: 1px dashed #e0a93a; }
.feos-g-safe { padding: 11px 14px; border-radius: 10px; background: #ddf1ea; color: #14523f !important; font-weight: 600; }
.feos-g-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; font-weight: 400; margin: 0; cursor: pointer; }
.feos-g-agree input { margin-top: 4px; width: 18px; height: 18px; }

/* the free will */
.feos-fw { display: flex; flex-direction: column; gap: 16px; color: var(--g-ink); }
.feos-fw-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.feos-fw-steps { flex: 1 1 200px; max-width: 240px; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 14px;
    display: flex; flex-direction: column; gap: 2px; }
.feos-fw-steps button { font: inherit; width: 100%; text-align: left; padding: 9px 11px; border-radius: 9px; border: 0; background: none;
    color: #4a5d70; cursor: pointer; font-size: 14.5px; }
.feos-fw-steps button.is-on { background: #e3eef8; color: #0f2a44; font-weight: 800; }
.feos-fw-steps button.is-done { color: #1e7a5e; font-weight: 700; }
.feos-fw-body { flex: 999 1 460px; min-width: 0; background: #fff; border-radius: 16px; padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.feos-fw-body h2 { margin: 0; font-size: 21px; font-weight: 800; color: inherit; }
.feos-fw-body p { margin: 0; font-size: 15px; line-height: 1.55; color: #33485c; }
.feos-fw-choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid #c9d7e4; border-radius: 12px; cursor: pointer; }
.feos-fw-choice.is-on { border: 2px solid #1f6fa8; background: #f2f7fc; }
.feos-fw-choice input { margin-top: 4px; }
.feos-fw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feos-fw label.feos-fw-field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 700; margin: 0; }
.feos-fw-field input, .feos-fw-field select, .feos-fw-field textarea { font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #b9cadb; border-radius: 8px; }
.feos-fw-person { border: 1px solid #dce5ee; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.feos-fw-person header { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.feos-fw-fixed { padding: 14px 16px; border-radius: 12px; background: #f2f7fc; border: 1px solid #c9ddf0; font-size: 15.5px; line-height: 1.55; }
.feos-fw-upsell { padding: 12px 14px; border-radius: 12px; background: #fff8ef; border: 1px solid #f0d2ae; font-size: 14px; line-height: 1.5; }
.feos-fw-radio { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.feos-fw-radio label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }
.feos-fw-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #dce5ee; padding-top: 14px; }
.feos-fw-sum { margin: 0; display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 8px 14px; font-size: 15px; }
.feos-fw-sum dt { font-weight: 700; }
.feos-fw-sum dd { margin: 0; }
.feos-fw-tick { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; font-weight: 400; margin: 0; }
.feos-fw-tick input { margin-top: 4px; }
.feos-fw-ready { padding: 16px; border-radius: 12px; background: #f3f8ef; border: 1px solid #cfe3bf; display: flex; flex-direction: column; gap: 10px; }
.feos-fw-err { color: #a3361c; font-weight: 700; font-size: 14px; }

@media (max-width: 900px) {
    .feos-g-column, .feos-g-code { order: 1; }
    .feos-g-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feos-g-column h2 { grid-column: 1 / -1; }
    .feos-g-tile { flex-direction: column; gap: 6px; }
    .feos-g-grid.is-3, .feos-g-grid.is-2, .feos-g-steps, .feos-fw-grid { grid-template-columns: minmax(0, 1fr); }
    .feos-g-hero, .feos-g-card, .feos-g-note, .feos-g-quiz { padding: 18px; }
    .feos-g-hero h1 { font-size: 24px; }
    .feos-g-hero img { width: 200px; }
    .feos-fw-steps { max-width: none; flex-direction: row; overflow-x: auto; }
    .feos-fw-steps button { white-space: nowrap; }
    .feos-fw-sum { grid-template-columns: minmax(0, 1fr); }
}
