/* Homepage and About page styles. Spec: docs/redesign/README.md */

:root {
    --teal-text: #0f766e;
    --ink: #212529;
    --muted: #495057;
    --subtle: #6c757d;
    --band: #f8f9fa;
    --line: #e5e7eb;
}

/* Sections */

.section,
.section-band {
    padding: clamp(56px, 7vw, 104px) clamp(16px, 4vw, 80px);
    color: var(--ink);
}

.section-band {
    background: var(--band);
}

.section-purple {
    padding: clamp(56px, 7vw, 100px) clamp(16px, 4vw, 80px);
    background: var(--purple);
    color: #fff;
    text-align: center;
}

/* Content fills the screen up to the width of the nav's Bootstrap container
   (1320px less its 12px padding), so both line up on wide monitors. */
.section-inner,
.section-inner-wide {
    max-width: 1296px;
    margin: 0 auto;
}

.section h1,
.section h2,
.section-band h2,
.section-purple h2 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    margin: 0;
}

.section h1 {
    font-size: clamp(48px, 5.5vw, 92px);
    line-height: 0.95;
}

.section h2,
.section-band h2,
.section-purple h2 {
    font-size: clamp(40px, 4.8vw, 80px);
    line-height: 1;
}

.lead-text {
    font-size: clamp(17px, 0.6vw + 13px, 21px);
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.text-subtle {
    color: var(--subtle);
}

.link-purple {
    color: var(--purple);
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.link-purple:hover {
    color: var(--purple);
    text-decoration: underline;
}

/* Two columns that stack under 992px, text first */

.split {
    display: flex;
    flex-wrap: wrap;
    gap: 56px 64px;
    align-items: center;
}

.split > * {
    flex: 1 1 420px;
    min-width: 0;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

@media (max-width: 991.98px) {
    .split > * {
        flex-basis: 100%;
    }
}

/* Shared components */

.eyebrow {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal-text);
    margin: 0;
}

.note {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: var(--purple);
    line-height: 1.05;
    transform: rotate(-2deg);
    margin: 0;
}

.note-light {
    font-weight: 500;
}

.squiggle {
    display: block;
    width: 220px;
    height: 14px;
    overflow: visible;
}

.squiggle path {
    stroke: var(--teal);
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
}

.btn-pill,
.btn-pill-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.btn-pill {
    background: var(--purple);
    border: 1.5px solid var(--purple);
    color: #fff;
}

.btn-pill:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.btn-pill-outline {
    background: transparent;
    border: 1.5px solid var(--ink);
    color: var(--ink);
}

.btn-pill-outline:hover {
    background: var(--ink);
    color: #fff;
}

.btn-pill-outline.is-purple {
    min-height: 48px;
    font-size: 16px;
    border-color: var(--purple);
    color: var(--purple);
}

.btn-pill-outline.is-purple:hover {
    background: var(--purple);
    color: #fff;
}

.btn-pill.is-white {
    background: #fff;
    border-color: #fff;
    color: var(--purple);
    font-weight: 600;
}

.btn-pill.is-white:hover {
    background: #f3e8ff;
    border-color: #f3e8ff;
}

.card-soft {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.check-list,
.cross-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li,
.cross-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.check-list .tick,
.cross-list .tick {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    top: 2px;
    fill: none;
    stroke: var(--purple);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Timeline (homepage and About) */

.timeline {
    list-style: none;
    margin: 0;
    padding: 28px 0 0;
    border-top: 3px solid var(--purple);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.timeline li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    margin-top: -39.5px;
    border-radius: 999px;
    background: #fff;
    border: 4px solid var(--purple);
}

.timeline-year {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    color: var(--teal);
    margin: 10px 0 0;
}

.timeline-text {
    font-size: 16px;
    line-height: 1.5;
    color: #343a40;
    margin: 0;
}

/* On phones the stops stack, so the rule runs down the left instead */
@media (max-width: 575.98px) {
    .timeline {
        border-top: 0;
        border-left: 3px solid var(--purple);
        padding: 0 0 0 24px;
        gap: 24px;
    }

    .timeline-dot {
        margin: 6px 0 0 -34.5px;
        position: absolute;
    }

    .timeline li {
        position: relative;
    }

    .timeline-year {
        margin-top: 0;
    }
}

/* Headline with a purple ending and a squiggle under it */

.headline-accent {
    color: var(--purple);
}

/* Home: hero */

.hero-lead {
    font-size: clamp(18px, 0.6vw + 14px, 22px);
    line-height: 1.6;
    color: var(--muted);
    max-width: 34em;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.message-card {
    padding: 28px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.10);
}

.message-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #ede9fe;
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.message-who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.message-who strong {
    font-size: 15px;
    font-weight: 600;
}

.message-who span {
    font-size: 13px;
    color: var(--subtle);
}

.message-body {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.message-body s {
    text-decoration-color: var(--purple);
    text-decoration-thickness: 3px;
}

.reply {
    margin-left: 48px;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: rotate(-2deg);
}

.reply .note {
    transform: none;
}

.reply-head {
    font-size: 44px;
}

.reply-body {
    font-size: 32px;
    line-height: 1.15;
    max-width: 440px;
    margin-top: 6px;
}

.reply-sign {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 28px;
    margin: 6px 0 0;
}

.example-caption {
    font-size: 13px;
    color: var(--subtle);
    margin: 14px 0 0 48px;
}

@media (max-width: 575.98px) {
    .reply,
    .example-caption {
        margin-left: 12px;
    }

    .reply-head {
        font-size: 38px;
    }

    .reply-body {
        font-size: 28px;
    }
}

/* Home: straight answers */

.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    margin-bottom: 40px;
}

.section-head .lead-text {
    max-width: 36em;
}

/* Three across on wide screens, two on tablets, one on phones */
.answers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1099.98px) {
    .answers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639.98px) {
    .answers-grid {
        grid-template-columns: 1fr;
    }
}

.answer-card {
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-q {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.answer-a {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--purple);
    margin: 0;
}

.answer-why {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
}

.answers-foot {
    text-align: center;
    font-size: 15px;
    color: var(--subtle);
    margin: 40px 0 0;
}

/* Home: board */

.board {
    background: var(--band);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.board-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.board-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 4px;
}

.board-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.35;
}

.board-empty {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    height: 150px;
}

.board-note {
    transform: rotate(-4deg);
    margin-top: 14px;
}

.board-note svg {
    margin-left: 30px;
    display: block;
}

.board-note .note {
    transform: none;
}

.board-note-head {
    font-size: 32px;
    line-height: 1;
}

.board-note-body {
    font-size: 24px;
    line-height: 1.1;
    margin-top: 6px;
}

@media (max-width: 575.98px) {
    .board {
        padding: 12px;
        gap: 8px;
    }

    .board-title {
        font-size: 11px;
        letter-spacing: 0.03em;
    }

    .board-card {
        font-size: 11px;
        padding: 6px 7px;
    }

    .board-empty {
        height: 110px;
    }

    .board-note svg {
        margin-left: 4px;
    }

    .board-note-head {
        font-size: 26px;
    }
}

/* Home: marked-up architecture */

.help-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 24px;
}

.help-list li {
    font-size: 16px;
    line-height: 1.45;
}

/* The diagram is drawn on a 540x540 grid. Positions are percentages of that
   grid and text uses container units, so it scales down on narrow screens. */
.diagram {
    position: relative;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 1;
    margin: 0 auto;
    container-type: inline-size;
}

.diagram > * {
    position: absolute;
    margin: 0;
}

.diagram-lines {
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
}

.diagram-lines g {
    stroke: #ced4da;
    stroke-width: 1.5;
    fill: none;
}

.node {
    width: 21.3%;
    height: 7.41%;
    border: 1.5px solid var(--subtle);
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: max(10.5px, 2.41cqw);
    line-height: 1.2;
    white-space: nowrap;
}

.node-main {
    left: 35.19%;
    width: 29.63%;
    border-color: #343a40;
    font-size: max(12px, 2.59cqw);
    font-weight: 600;
}

.node-web { top: 0; height: 8.89%; }
.node-api { top: 15.56%; }
.node-r1 { top: 32.59%; }
.node-r2 { top: 42.59%; }
.node-c1 { left: 0; }
.node-c2 { left: 25%; }
.node-c3 { left: 50%; }
.node-c4 { left: 75%; }
.node-c5 { left: 12.41%; }
.node-c6 { left: 37.41%; }
.node-c7 { left: 62.41%; }

.node-db {
    white-space: normal;
    text-align: center;
    padding: 0 6px;
    left: 29.63%;
    top: 62.96%;
    width: 40.74%;
    height: 10.37%;
}

.diagram-circle {
    left: 25.19%;
    top: 59.26%;
    width: 49.63%;
    height: 17.78%;
    border: 3px solid var(--teal);
    border-radius: 50%;
    transform: rotate(-3deg);
}

.diagram-note-top {
    left: 68.52%;
    top: 12.96%;
    width: 31.48%;
    font-size: max(24px, 5.56cqw);
    line-height: 1;
    transform: rotate(4deg);
}

.diagram-arrow {
    left: 87.04%;
    top: 24.44%;
    width: 7.41%;
    height: auto;
}

.diagram-note-bottom {
    left: 3.7%;
    top: 80.74%;
    width: 92.59%;
    font-size: max(24px, 5.93cqw);
    text-align: center;
}

@media (max-width: 575.98px) {
    .diagram-note-top {
        top: 8%;
    }
}

/* Home: timeline and testimonials */

.receipts-head {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    align-items: flex-end;
    margin-bottom: 56px;
}

.receipts-head > :first-child {
    flex: 1 1 440px;
    min-width: 0;
}

.receipts-head > :last-child {
    flex: 1 1 360px;
    min-width: 0;
    padding-bottom: 12px;
}

.receipts-head .squiggle {
    margin-top: 6px;
}

.quote-card {
    margin: 0;
    background: var(--band);
    border-radius: 14px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-mark {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 56px;
    line-height: 0.5;
    color: var(--purple);
    padding-top: 16px;
    margin: 0;
}

.quote-card blockquote {
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
}

.quote-card figcaption {
    font-size: 14px;
    color: var(--subtle);
    margin-top: auto;
}

.quote-card figcaption strong {
    color: var(--ink);
}

.quote-card figcaption a {
    color: var(--ink);
    text-decoration: none;
}

/* Home: pricing */

.tier-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: none;
}

.tier-name {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    color: var(--purple);
    margin: 0;
}

.tier-price {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.tier-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--subtle);
}

.tier-desc {
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
    flex-grow: 1;
    margin: 0;
}

/* Advisory stands out in purple, the same as on the pricing page */
.tier-card.is-featured {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.tier-card.is-featured .tier-name {
    color: var(--teal);
}

.tier-card.is-featured .tier-desc,
.tier-card.is-featured .tier-price span {
    color: #fff;
}

.tier-card.is-featured .tier-price span {
    opacity: 0.8;
}

/* Theme teal, matching .btn-teal on the pricing page */
.btn-pill.is-teal {
    background: var(--teal);
    border-color: var(--teal);
    font-weight: 600;
}

.btn-pill.is-teal:hover {
    background: #0d9488;
    border-color: #0d9488;
}

.tier-card .btn-pill.is-teal {
    min-height: 48px;
    font-size: 16px;
    font-weight: 500;
}

/* Home: articles */

.articles-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px 32px;
    margin-bottom: 32px;
}

.article-tile {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.article-tile:hover {
    color: var(--ink);
    border-color: #c4b5fd;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.article-date {
    font-size: 13px;
    color: var(--subtle);
}

.article-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.05;
    color: var(--purple);
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

/* Purple closing band */

.section-purple .section-inner {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.section-purple p {
    font-size: 19px;
    line-height: 1.6;
    color: #f3e8ff;
    margin: 0;
}

.section-purple a:not(.btn-pill) {
    color: #f3e8ff;
    font-size: 15px;
}

.section-purple a:not(.btn-pill):hover {
    color: #fff;
}

/* About */

.place-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: none;
}

.place-name {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    color: var(--purple);
    margin: 0;
}

.place-line {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.place-more {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
    margin: 4px 0 0;
}

.cross-list li {
    font-size: 21px;
    line-height: 1.4;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.cross-list li:first-child {
    padding-top: 0;
}

.cross-list .tick {
    width: 20px;
    height: 20px;
    top: 3px;
}

.quick-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quick-list li {
    font-size: 17px;
    line-height: 1.55;
}

.quick-list .tick {
    stroke: var(--teal-text);
}

.quick-list a {
    color: var(--purple);
    font-weight: 600;
}

.quote-card.is-white {
    background: #fff;
    border: 1px solid var(--line);
}

.split-top {
    align-items: flex-start;
}

.grid-cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (max-width: 575.98px) {
    .grid-cards-3 {
        grid-template-columns: 1fr;
    }
}

/* Site footer: link columns and a small newsletter box */

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--subtle);
    margin: 0 0 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    display: inline-block;
    padding: 4px 0;
    color: var(--ink);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--purple);
    text-decoration: underline;
}

.newsletter-footer {
    background: #fff;
    border: 2px solid var(--purple);
    border-radius: 14px;
    padding: 22px;
}

.newsletter-footer-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.1;
    color: var(--purple);
    margin: 0;
}

.newsletter-footer-text {
    font-size: 15px;
    color: var(--muted);
    margin: 4px 0 14px;
}

.newsletter-footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.newsletter-footer-row .form-control {
    flex: 1 1 180px;
    min-width: 0;
}
