/* Sale 2026: pages made of the Pinegrow interface.
 * Light or dark follows the system setting unless the visitor picks one in the toolbar (theme.js sets
 * html[data-theme]). Dark uses the colours of Pinegrow's dark (gray) theme. The dark rules are written twice:
 * for the system setting and for an explicit choice; keep both copies the same.
 */

:root {
    --blue: #0198cd;
    --blue-text: #0079ae;
    --blue-deep: #00566a;
    --teal: #57b1b8;
    --orange: #fda050;
    --ink: #2e2f30;
    --text: #3f3f40;
    --muted: #63666a;
    --line: #d9dee1;
    --line-soft: #e8ecee;
    --page: #f4f6f7;
    --panel: #ffffff;
    --field: #f1f3f4;
    --surface: #ffffff;
    --btn: #0079ae;
    --btn-hover: #00566a;
    --on-btn: #ffffff;
    --control-line: #9aa3a8;
    --chevron: #8a9095;
    --dash: #aeb6bb;
    --file: #187a5c;
    --shadow-soft: rgba(20, 40, 50, 0.06);
    --shadow-deep: rgba(20, 40, 50, 0.22);
    color-scheme: light dark;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --radius: 6px;
    --gutter: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue-text);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.25;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 17px;
    font-weight: 700;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--blue-text);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Sale switch (sale.js adds body.sale-over after the end date) */

body:not(.sale-over) .after-sale {
    display: none !important;
}

body.sale-over .sale-only {
    display: none !important;
}

/* Shared interface pieces */

.panel-label {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-badge {
    padding: 2px 8px;
    border: 1px solid var(--blue);
    border-radius: 3px;
    color: var(--blue-text);
    letter-spacing: 0.04em;
}

/* The new-license discount, in the same orange as in the hero text. */
.panel-badge-deal {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
    font-weight: 700;
}

.panel-body {
    padding: 36px 40px;
}

/* Selected element, as Pinegrow draws it on the canvas */

.selected {
    position: relative;
    display: inline-block;
    padding: 4px 12px;
    margin-left: -13px;
    outline: 1px solid var(--blue);
}

.sel-tag {
    position: absolute;
    left: -1px;
    bottom: 100%;
    padding: 2px 7px;
    background: var(--btn);
    color: var(--on-btn);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5;
    white-space: nowrap;
    text-transform: none;
}

/* Buttons, shaped like the buttons in the app */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-blue {
    background: var(--btn);
    color: var(--on-btn);
}

.btn-blue:hover {
    background: var(--btn-hover);
}

.btn-line {
    border-color: var(--control-line);
    background: var(--surface);
    color: var(--ink);
}

.btn-line:hover {
    border-color: var(--blue-text);
    color: var(--blue-text);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* Toolbar */

.toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.toolbar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 56px;
}

.toolbar-logo {
    display: flex;
    color: var(--text);
}

.logo {
    width: 128px;
    height: auto;
}

.logo-cone {
    color: var(--blue);
}

.toolbar-nav {
    display: flex;
    gap: 4px;
}

.toolbar-nav a {
    padding: 6px 10px;
    border-radius: 4px;
    color: var(--text);
    font-size: 15px;
    text-decoration: none;
}

.toolbar-nav a:hover {
    background: var(--field);
    color: var(--ink);
}

.toolbar-end {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.toolbar-ends {
    color: var(--muted);
    font-size: 14px;
}

/* Theme switch: Auto, Light, Dark, like a Pinegrow segmented control */

.theme-switch {
    display: flex;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--field);
}

.theme-switch button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.theme-switch button:hover {
    color: var(--ink);
}

.theme-switch button[aria-pressed="true"] {
    background: var(--surface);
    color: var(--blue-text);
    box-shadow: 0 1px 2px var(--shadow-soft);
}

.theme-switch button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}

.theme-switch svg {
    width: 15px;
    height: 15px;
}

.toolbar-ends strong {
    color: var(--ink);
}

/* Hero */

.hero {
    overflow-x: clip;
    padding: 72px 0 72px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
        "text window"
        "offer window";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 40px;
}

.hero-text {
    grid-area: text;
    padding-top: 8px;
}

.hero-text .panel-label {
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-sub {
    max-width: 30em;
    margin-top: 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.hero-sub a {
    color: var(--blue-text);
}

.hero-more {
    margin-top: 18px;
    font-size: 15px;
    font-weight: 700;
}

.hero-more a {
    color: var(--blue-text);
    text-decoration: none;
}

.hero-more a:hover {
    text-decoration: underline;
}

.hero-window {
    grid-area: window;
    align-self: start;
    width: calc(100% + 220px);
    margin-top: 6px;
}

.window {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px var(--shadow-soft), 0 18px 40px -18px var(--shadow-deep);
}

/* Team page: a hint of more Pinegrow windows behind the main one, just their top edges, fading out. */
.window-stack {
    position: relative;
    /* Keeps the stack's own layers inside it, under the Properties panel (z-index 2) like the other heroes. */
    z-index: 1;
    margin-top: 30px;
}

.window-stack .window {
    position: relative;
    z-index: 3;
}

.window-stack .window-back {
    position: absolute;
    inset: 0;
    z-index: 2;
    box-shadow: none;
    transform-origin: center top;
}

.window-stack .window-back-1 {
    opacity: 0.6;
    transform: translateY(-13px) scale(0.965);
}

.window-stack .window-back-2 {
    z-index: 1;
    opacity: 0.3;
    transform: translateY(-26px) scale(0.93);
}

.window-stack .window-back .window-title {
    visibility: hidden;
}

/* A Mac app window: traffic lights on the left, the app name centred */
.window-bar {
    position: relative;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    background: var(--page);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
}

.window-lights {
    display: flex;
    gap: 7px;
}

.window-lights i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.window-lights i:nth-child(2) {
    background: #febc2e;
}

.window-lights i:nth-child(3) {
    background: #28c840;
}

.window-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

/* The sale, as a panel in the app */

.offer-panel {
    grid-area: offer;
    position: relative;
    z-index: 2;
    align-self: end;
    width: calc(100% + 120px);
    max-width: 560px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px var(--shadow-soft), 0 12px 28px -14px var(--shadow-deep);
}

.offer-panel .panel-head {
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 16px;
}

.offer-panel .panel-head code {
    padding: 1px 7px;
    background: var(--field);
    border-radius: 3px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.offer-panel-body {
    padding: 14px 16px 16px;
}

.panel-section {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.props li + li {
    margin-top: 6px;
}

.props a,
.prop-static {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.prop-name {
    color: var(--text);
    font-size: 14px;
}

.prop-value {
    position: relative;
    padding: 7px 30px 7px 10px;
    background: var(--field);
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.prop-value strong {
    margin-right: 4px;
}

.prop-value strong {
    color: var(--blue-text);
}

.tab-num {
    color: var(--blue-text);
    font-weight: 700;
}

/* The new-license discount in the hero text and the New to Pinegrow tab, in the orange of the sale's end date. */
.deal,
.tab-num.deal {
    padding: 1px 6px;
    background: var(--orange);
    border-radius: 3px;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.props a .prop-value::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--chevron);
    border-bottom: 1.5px solid var(--chevron);
    transform: translateY(-70%) rotate(-45deg);
}

.props a:hover .prop-value {
    border-color: var(--blue);
    background: var(--surface);
}

.prop-static .prop-value {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
    box-shadow: inset 3px 0 0 var(--orange);
}

/* Paths, as a tab strip */

.paths {
    background: var(--page);
    border-bottom: 1px solid var(--line);
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.tabs li {
    border-left: 1px solid var(--line);
}

/* The outer borders line the tabs up with the status bar and the panels below. */
.tabs li:last-child {
    border-right: 1px solid var(--line);
}

.tabs a {
    display: block;
    height: 100%;
    padding: 18px 24px 20px;
    border-top: 2px solid transparent;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.tabs a:hover {
    background: var(--surface);
    border-top-color: var(--blue);
}

.tabs strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 16px;
}



/* Status bar */

.statusbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.statusbar .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 9px;
    padding-bottom: 9px;
}

.statusbar span {
    padding: 0 16px;
    border-left: 1px solid var(--line);
}

.statusbar span:first-child {
    padding-left: 0;
    border-left: 0;
}

/* No padding after the last item either, so the centred row sits in the middle. */
.statusbar span:last-child {
    padding-right: 0;
}

/* Sections */

.section {
    padding: 96px 0 0;
}

.section-tight {
    padding-top: 40px;
}

.section-head {
    max-width: 760px;
    margin-bottom: 48px;
}

.lede {
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
}

/* Real job */

.job {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: start;
}

.job-video {
    position: sticky;
    top: 88px;
}

.video {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: #000;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.video img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 5px;
}

.video .sel-tag {
    opacity: 0;
    transition: opacity 0.15s;
}

.video:hover,
.video:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.video:hover .sel-tag,
.video:focus-visible .sel-tag {
    opacity: 1;
    left: -5px;
    bottom: calc(100% + 5px);
}

.video-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border-radius: 4px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.video-play svg {
    color: var(--blue-text);
}

.video-caption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    border-top: 1px solid var(--line);
}

.steps li {
    position: relative;
    padding: 16px 0 16px 44px;
    border-bottom: 1px solid var(--line);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 17px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--blue-text);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

.steps p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 15px;
}

/* Pinegrow 10 points: the video beside the list follows the point scrolled to (sale.js, initJob) */

.job-stage {
    position: relative;
    aspect-ratio: 16 / 9;
}

.job-stage > .sel-tag {
    z-index: 3;
}

.job-poster {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}

.job-poster.is-active {
    opacity: 1;
    visibility: visible;
}

/* The silent loops of the "Why Pinegrow" section */
.job-poster,
.step-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.job-poster {
    height: 100%;
}

.job .steps li {
    padding: 26px 0 26px 48px;
}

.job .steps li::before {
    top: 27px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.step-title {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.step-title:hover {
    color: var(--blue-text);
}

.step-title:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.step-video {
    display: none;
    margin-top: 16px;
}

@media (min-width: 1081px) {
    .job .steps li {
        transition: opacity 0.2s;
    }

    .job .steps li:not(.is-active) {
        opacity: 0.62;
    }

    .job .steps li.is-active::before {
        background: var(--blue);
        border-color: var(--blue);
        color: var(--on-btn);
    }

    .job .steps li.is-active::after {
        content: "";
        position: absolute;
        left: -16px;
        top: 16px;
        bottom: 16px;
        width: 2px;
        background: var(--blue);
    }
}

.job-stage,
.step-video {
    cursor: pointer;
}

@media (max-width: 1080px) {
    .job-video {
        display: none;
    }

    .step-video {
        display: block;
    }

    .job .steps li {
        padding: 20px 0 24px 44px;
    }

    .job .steps li::before {
        top: 21px;
    }
}

/* Offer panels */

.offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
}

.offer-intro .actions {
    margin-top: 28px;
}

.offer-intro-wide {
    max-width: 720px;
}

.note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.facts {
    margin: 0;
    border-top: 1px solid var(--line-soft);
}

.facts div {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

.facts dt {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.facts dd {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* Renewal cases */

.cases {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1px solid var(--line-soft);
}

.case {
    display: flex;
    flex-direction: column;
    padding: 32px 40px 36px;
}

.case + .case {
    border-left: 1px solid var(--line-soft);
}

.case h3 {
    font-size: 20px;
}

.case > p {
    margin-top: 8px;
    color: var(--muted);
}

.ticks {
    margin: 20px 0 28px;
    padding: 0;
    list-style: none;
}

.ticks li {
    position: relative;
    padding: 7px 0 7px 26px;
    border-top: 1px solid var(--line-soft);
    font-size: 15px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 13px;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
}

.case .actions {
    margin-top: auto;
}

.whatsnew {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 40px;
    background: var(--page);
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    color: var(--text);
    text-decoration: none;
}

.whatsnew-count {
    min-width: 2.6em;
    color: var(--blue-text);
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

.whatsnew-text {
    flex: 1;
}

.whatsnew-text strong {
    display: block;
    color: var(--ink);
}

.whatsnew-text span {
    color: var(--muted);
    font-size: 15px;
}

.whatsnew:hover .btn-line {
    border-color: var(--blue-text);
    color: var(--blue-text);
}

/* Add-ons */

.addons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-soft);
}

.addons li {
    display: flex;
    flex-direction: column;
    padding: 28px 40px 30px;
}

.addons li:nth-child(even) {
    border-left: 1px solid var(--line-soft);
}

.addons li:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
}

.addons h3 {
    font-size: 19px;
}

.addons h3 small {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.addons p {
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 15px;
}

.addons a {
    align-self: flex-start;
    margin-top: auto;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.addons a::after {
    content: " \2192";
}

.addons a:hover {
    text-decoration: underline;
}

/* Team band */

.band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 28px 40px;
    background: var(--surface);
    border: 1px dashed var(--dash);
    border-radius: var(--radius);
}

.band h2 {
    font-size: 20px;
}

.band p {
    max-width: 680px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
}

/* FAQ, as collapsible panel sections */

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 56px;
    align-items: start;
}

.faq details + details {
    border-top: 1px solid var(--line-soft);
}

.faq summary {
    position: relative;
    padding: 16px 24px 16px 46px;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 24px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--chevron);
    border-bottom: 1.5px solid var(--chevron);
    transform: rotate(-45deg);
    transition: transform 0.15s;
}

.faq details[open] summary::before {
    transform: rotate(45deg);
}

.faq summary:hover {
    color: var(--blue-text);
}

.faq summary:focus-visible {
    outline-offset: -2px;
}

.faq details p {
    padding: 0 24px 18px 46px;
    color: var(--muted);
    font-size: 15px;
}

/* Closing */

.closing {
    margin-top: 96px;
    padding: 88px 0 96px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    text-align: center;
}

.closing h2 {
    margin-left: 0;
    font-size: 36px;
    font-weight: 300;
}

.closing p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
}

.closing .actions {
    justify-content: center;
    margin-top: 28px;
}

/* Footer */

.footer {
    padding: 22px 0;
    background: var(--page);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
}

.footer a {
    color: var(--muted);
}

.footer a:hover {
    color: var(--blue-text);
}

/* Video dialog */

.video-dialog {
    width: min(1100px, 92vw);
    padding: 0;
    background: #000;
    border: 0;
    border-radius: var(--radius);
    overflow: visible;
}

.video-dialog::backdrop {
    background: rgba(20, 28, 32, 0.82);
}

.video-dialog .frame {
    aspect-ratio: 16 / 9;
}

.video-dialog iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius);
}

.video-dialog .close {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--surface);
    border: 0;
    border-radius: 4px;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

/* Medium screens */

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "text"
            "window"
            "offer";
        grid-template-rows: auto;
    }

    .hero-text {
        max-width: 640px;
    }

    .hero-window {
        width: 100%;
        margin-top: 0;
    }

    .offer-panel {
        align-self: start;
        max-width: 520px;
        width: auto;
        margin-top: -120px;
        margin-left: 24px;
    }

    .job-video {
        position: static;
    }

    .job,
    .offer,
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .faq-grid .section-head {
        margin-bottom: 0;
    }
}

/* Phones */

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
    }

    h2 {
        font-size: 26px;
    }

    .toolbar-inner {
        flex-wrap: wrap;
        gap: 0 16px;
        min-height: 0;
        padding-top: 10px;
    }

    .toolbar-nav {
        order: 3;
        width: calc(100% + 2 * var(--gutter));
        margin: 10px calc(-1 * var(--gutter)) 0;
        padding: 0 var(--gutter);
        border-top: 1px solid var(--line-soft);
        justify-content: space-between;
    }

    .toolbar-nav a {
        padding: 9px 4px;
        font-size: 14px;
    }

    .toolbar-ends {
        font-size: 13px;
    }

    .toolbar-end {
        gap: 12px;
    }

    .hero {
        padding: 44px 0 40px;
    }

    .hero-grid {
        row-gap: 28px;
    }

    .hero-text .panel-label {
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .selected {
        margin-left: -8px;
        padding: 2px 8px;
    }

    .hero-sub {
        margin-top: 20px;
        font-size: 17px;
    }

    .offer-panel {
        max-width: none;
        margin: 0;
    }

    .props a,
    .prop-static {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 8px;
    }

    .offer-panel-body {
        padding: 12px 12px 14px;
    }

    .prop-name,
    .prop-value {
        font-size: 13px;
    }

    .tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .tabs li {
        border-left: 0;
    }

    .tabs li:last-child {
        border-right: 0;
    }

    .tabs li + li {
        border-top: 1px solid var(--line);
    }

    .tabs a {
        padding: 14px 0;
        border-top: 0;
    }

    .tabs a:hover {
        background: transparent;
    }

    .statusbar .wrap {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
    }

    .statusbar span {
        padding: 0;
        border-left: 0;
    }

    .section {
        padding-top: 64px;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .lede {
        font-size: 17px;
    }

    .panel-head {
        padding: 8px 16px;
    }

    .panel-body {
        padding: 24px 16px;
    }

    .facts div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .cases,
    .addons {
        grid-template-columns: minmax(0, 1fr);
    }

    .case {
        padding: 24px 16px 28px;
    }

    .case + .case {
        border-left: 0;
        border-top: 1px solid var(--line-soft);
    }

    .addons li {
        padding: 22px 16px 24px;
    }

    .addons li:nth-child(even) {
        border-left: 0;
    }

    .addons li + li {
        border-top: 1px solid var(--line-soft);
    }

    .whatsnew {
        flex-wrap: wrap;
        gap: 12px 16px;
        padding: 20px 16px;
    }

    .whatsnew-count {
        font-size: 30px;
    }

    .whatsnew-text {
        flex-basis: 60%;
    }

    .band {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 16px;
    }

    .faq summary {
        padding: 14px 16px 14px 38px;
    }

    .faq summary::before {
        left: 16px;
        top: 22px;
    }

    .faq details p {
        padding: 0 16px 16px 38px;
    }

    .closing {
        margin-top: 64px;
        padding: 64px 0 72px;
    }

    .closing h2 {
        font-size: 28px;
    }

    .actions .btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* Included bonus row in the offer panel */

.prop-bonus .prop-value {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
    box-shadow: inset 3px 0 0 var(--teal);
}

.prop-bonus .prop-value strong {
    color: var(--ink);
}

/* Team plans: one panel, three columns */

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-soft);
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 32px 40px 36px;
}

.plan + .plan {
    border-left: 1px solid var(--line-soft);
}

.plan-name {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan h3 {
    margin-top: 6px;
    font-size: 22px;
}

.plan-price {
    margin-top: 18px;
    color: var(--ink);
    font-size: 40px;
    font-weight: 300;
    line-height: 1.1;
}

.plan-price small {
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
}

.plan-per {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.plan .actions {
    margin-top: 28px;
}

.plan.is-popular {
    box-shadow: inset 0 2px 0 var(--blue);
}

.plans-foot {
    padding: 18px 40px;
    background: var(--page);
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    color: var(--muted);
    font-size: 14px;
}

/* Feature rows with a video, used on the Tailwind page */

.features {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-soft);
}

.features li {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 28px 40px;
}

.features li + li {
    border-top: 1px solid var(--line-soft);
}

.feature-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: left top;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.features .video img {
    border-radius: 5px;
}

.features .video-play {
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
    font-size: 13px;
}

.features h3 {
    font-size: 19px;
}

.features p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
}

.features .feature-from {
    display: inline-block;
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

@media (max-width: 1080px) {
    .plans {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan + .plan {
        border-left: 0;
        border-top: 1px solid var(--line-soft);
    }
}

@media (max-width: 720px) {
    .plan,
    .plans-foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .features li {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 22px 16px;
    }
}

/* Dark: Pinegrow's dark (gray) theme */

/* Buy configurator (index.html)
 * The main site's configurator, the Pinegrow component pg4.buy.config, copied in by build.py. Its main site styles
 * are in buy-embed.css, scoped to #buy. These rules fit it into the sale page: small uppercase labels, the app's
 * segmented control, the order summary and the button, in the page's colour tokens. The product and add-on boxes
 * keep their Pinegrow look. The #buy id makes these rules win over the scoped ones; !important only beats inline
 * styles in the component's markup. */

.buy-embed .panel {
    overflow: hidden;
}

#buy {
    padding: 28px 0 8px;
    /* The main site gives the configurator a 6px top border; the panel head's line is enough here. */
    border-top: 0;
    background: var(--panel);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

/* Links in the texts around the boxes; the boxes keep their own link colours. */
#buy .smaller a,
#buy .smallest a,
#buy .pgcb-terms-label a {
    color: var(--blue-text);
}

/* The sale banner and the title repeat the sale page; the panel head names the step. */
#buy .buy-top,
#buy .pg-flash-sale-banner,
#buy .buy-special-message,
#buy h2.section-top-headline {
    display: none !important;
}

#buy .container {
    width: auto;
    max-width: none;
    padding: 0 40px;
}

#buy .lead,
#buy .lead a {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

/* Small labels, like the sale page's panel labels */
#buy .buy-choose-payment-model,
#buy .pgcb-select-addons,
#buy .pgcb-order-subtotal .pgcb-order-subtotal-label {
    color: var(--muted);
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

#buy .buy-choose-payment-model {
    margin-top: 8px;
    margin-bottom: 10px;
}

/* Space between the rows of framework tags in the product box */
#buy .pgcb-includes li {
    margin-bottom: 6px;
}

/* Payment plan: the app's segmented control */
#buy .buy-model-selector.pgcb-plan-selector {
    display: inline-flex;
    flex-wrap: nowrap;
    margin: 4px auto 18px;
    overflow: hidden;
    border: 1px solid var(--control-line);
    border-radius: 4px;
}

#buy .buy-model-selector.pgcb-plan-selector > a {
    height: auto;
    padding: 9px 18px !important;
    border: 0;
    border-right: 1px solid var(--control-line);
    border-radius: 0;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

#buy .buy-model-selector.pgcb-plan-selector > a:last-child {
    border-right: 0;
}

#buy .buy-model-selector.pgcb-plan-selector > a:hover {
    background: var(--field);
}

#buy .buy-model-selector.pgcb-plan-selector > a.active {
    background: var(--btn);
    color: var(--on-btn);
}

#buy .buy-model-selector.pgcb-plan-selector > a.active::after {
    display: none;
}

#buy .pgcb-plan-description {
    max-width: 640px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 15px;
}

#buy .pgcb-plan-description b {
    color: var(--ink);
}

/* The product and add-on boxes keep their main site look, also in dark mode: their text must not take the page's
   text colour, and an unavailable add-on is drawn on white as on the main site. */
#buy .pgcb-addon {
    color: #404041;
}

#buy .pgcb-addon.pgcb-addon-not-available {
    /* The "not available" message is positioned over the box and is taller than the description it covers, so the
       box would cut its last line. */
    padding-bottom: 30px;
    background-color: #f9fafb;
}

#buy input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--btn);
}

/* Order summary */
#buy table.pgcb-order td {
    padding-top: 4px;
    padding-bottom: 4px;
    color: var(--text);
}

#buy .pgcb-order-total td {
    border-top: 1px solid var(--line);
    color: var(--ink);
}

#buy .pgcb-order-total-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

#buy .pgcb-order-total .pgcb-amount {
    font-weight: 700;
}

#buy .pgcb-order-quantity-input {
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--field);
    box-shadow: none;
    color: var(--ink);
}

#buy .pgcb-terms-label {
    color: var(--text);
    font-size: 14px;
}

#buy .pgcb-terms-hl {
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--orange) 22%, transparent);
}

#buy .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px !important;
    min-height: 42px;
    padding: 10px 24px;
    border: 1px solid var(--btn);
    border-radius: 4px;
    background: var(--btn);
    color: var(--on-btn);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

#buy .btn-primary:hover,
#buy .btn-primary:focus {
    border-color: var(--btn-hover);
    background: var(--btn-hover);
}

/* No focus ring after a mouse click; keyboard focus keeps it. */
#buy .btn-primary:focus:not(:focus-visible) {
    outline: none;
}

#buy .smaller,
#buy .smallest {
    color: var(--muted);
    font-size: 14px;
}

#buy .smallest {
    font-size: 12px;
}

@media (max-width: 720px) {
    #buy .container {
        padding: 0 16px;
    }

    #buy .buy-model-selector.pgcb-plan-selector {
        display: flex;
        flex-direction: column;
    }

    #buy .buy-model-selector.pgcb-plan-selector > a {
        border-right: 0;
        border-bottom: 1px solid var(--control-line);
    }

    #buy .buy-model-selector.pgcb-plan-selector > a:last-child {
        border-bottom: 0;
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --blue: #4396c7;
        --blue-text: #6cb4e0;
        --blue-deep: #3a86b5;
        --teal: #57b1b8;
        --ink: #f0f0f0;
        --text: #d3d3d3;
        --muted: #a2a2a2;
        --line: #444444;
        --line-soft: #383838;
        --page: #1f1f20;
        --panel: #2a2a2a;
        --surface: #2a2a2a;
        --field: #383838;
        --btn: #2f7fb2;
        --btn-hover: #3a90c6;
        --on-btn: #ffffff;
        --control-line: #5a5a5a;
        --chevron: #8a8a8a;
        --dash: #5a5a5a;
        --file: #5cc79a;
        --shadow-soft: rgba(0, 0, 0, 0.3);
        --shadow-deep: rgba(0, 0, 0, 0.6);
    }

    :root:not([data-theme="light"]) .toolbar {
        background: #181819;
    }

    :root:not([data-theme="light"]) .window {
        border-color: #444444;
    }

    :root:not([data-theme="light"]) .video-dialog::backdrop {
        background: rgba(0, 0, 0, 0.85);
    }
}

:root[data-theme="dark"] {
    --blue: #4396c7;
    --blue-text: #6cb4e0;
    --blue-deep: #3a86b5;
    --teal: #57b1b8;
    --ink: #f0f0f0;
    --text: #d3d3d3;
    --muted: #a2a2a2;
    --line: #444444;
    --line-soft: #383838;
    --page: #1f1f20;
    --panel: #2a2a2a;
    --surface: #2a2a2a;
    --field: #383838;
    --btn: #2f7fb2;
    --btn-hover: #3a90c6;
    --on-btn: #ffffff;
    --control-line: #5a5a5a;
    --chevron: #8a8a8a;
    --dash: #5a5a5a;
    --file: #5cc79a;
    --shadow-soft: rgba(0, 0, 0, 0.3);
    --shadow-deep: rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .toolbar {
    background: #181819;
}

:root[data-theme="dark"] .window {
    border-color: #444444;
}

:root[data-theme="dark"] .video-dialog::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

:root[data-theme="light"] {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

/* Regular price struck out next to the sale price (team plans) */
.plan-price s,
.prop-value s {
    color: var(--muted);
    font-weight: 300;
    text-decoration-thickness: 1px;
}

.plan-price s {
    margin-right: 4px;
    font-size: 26px;
}

/* Tailwind Visual Editor: the landing page's hero image at the bottom of its panel. */
.tw-hero {
    display: block;
    width: 100%;
    height: auto;
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
}


/* Refund policy dialog ("with 30 days money-back guarantee" in the plan picker). The main site styles reach it
 * through buy-embed.css as if it were the page body (white background, large type); here it is a sale page panel over
 * a dimmed page, in the page's colour tokens, also in dark mode. */

#buy .lead a[data-target="#refunds"] {
    color: var(--blue-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* "with 30 days..." starts the line on its own here: capital W. ::first-letter needs the block, not the inline link. */
#buy p.lead:has(> a[data-target="#refunds"])::first-letter {
    text-transform: uppercase;
}

#refunds {
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
}

#refunds .modal-dialog {
    width: auto;
    max-width: 620px;
    margin: 72px auto;
    padding: 0 16px;
}

#refunds .modal-content {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px var(--shadow-soft), 0 24px 60px -20px var(--shadow-deep);
    color: var(--text);
}

#refunds .modal-header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--page);
    border-bottom: 1px solid var(--line);
}

#refunds .modal-header::before,
#refunds .modal-header::after {
    display: none;
}

#refunds .modal-title {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#refunds .close {
    float: none;
    margin: 0;
    padding: 0 2px;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
    cursor: pointer;
}

#refunds .close:hover {
    color: var(--ink);
}

#refunds .modal-body {
    padding: 18px 20px 4px;
}

#refunds .modal-body p,
#refunds .modal-body li {
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}

#refunds .modal-body p {
    margin: 0 0 12px;
}

#refunds .modal-body ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

#refunds .modal-body li {
    margin-bottom: 6px;
}

#refunds .modal-body b,
#refunds .modal-body strong {
    color: var(--ink);
}

#refunds .modal-body a {
    color: var(--blue-text);
}

#refunds .modal-footer {
    padding: 8px 20px 18px;
    border-top: 0;
    text-align: right;
}

#refunds .modal-footer .btn {
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--control-line);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

#refunds .modal-footer .btn:hover {
    border-color: var(--ink);
}

.modal-backdrop.in {
    background: #0b1a20;
    opacity: 0.55;
}
