/* The marketing site in Direction A (#1027): phone first, square, flat, no Bootstrap. The tokens are a copy of the ones
   this site uses from Web/App's app.css, which stays the source of truth, in both themes; the kit classes keep that
   file's names. The one addition is Neue Haas for headings, as agreed for the marketing site. */
:root {
    color-scheme: light dark;

    --hwc-action: #157080;
    --hwc-action-hover: #0E525E;
    --hwc-accent: #157080;
    --hwc-text: #010101;
    --hwc-text-2: #333333;
    --hwc-text-muted: #444444;
    --hwc-page: #FFFFFF;
    --hwc-surface: #F4F4F4;
    --hwc-hairline: #E4E4E4;
    --hwc-info-tint: #E3F1F3;
    --hwc-info-text: #0E525E;
    --hwc-selection: #EF5B33;
    --hwc-selection-tint: #FDE3DA;
    --hwc-cta: #EF5B33;
    --hwc-cta-pressed: #C4421A;
    --hwc-cta-link: #C4421A;
    --hwc-field-line: #6E6E6E;
    --hwc-success-tint: #E6F2E7;
    --hwc-success-text: #1E5A22;
    --hwc-alert-text: #8A2A0B;

    --hwc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --hwc-font-heading: neue-haas-grotesk-display, var(--hwc-font);
    --hwc-fs-heading: 20px;
    --hwc-fs-meta: 13px;
    --hwc-fs-eyebrow: 12px;
    --hwc-control-height: 44px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --hwc-action: #1C8A9E;
        --hwc-action-hover: #2E9FB4;
        --hwc-accent: #2E9FB4;
        --hwc-text: #FFFFFF;
        --hwc-text-2: #E5E5EA;
        --hwc-text-muted: #9A9A9E;
        --hwc-page: #000000;
        --hwc-surface: #1C1C1E;
        --hwc-hairline: #2C2C2E;
        --hwc-info-tint: #0E4A55;
        --hwc-info-text: #CDEFF5;
        --hwc-selection-tint: #5A2414;
        --hwc-cta-link: #EF5B33;
        --hwc-field-line: #8E8E93;
        --hwc-success-tint: #0F2E16;
        --hwc-success-text: #7EE29A;
        --hwc-alert-text: #FFB59E;
    }
}

/* ---- Base ------------------------------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--hwc-page);
    color: var(--hwc-text);
    font-family: var(--hwc-font);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--hwc-action);
}

a:hover {
    color: var(--hwc-action-hover);
}

a:focus-visible {
    outline: 2px solid var(--hwc-accent);
    outline-offset: 2px;
}

h1,
h2,
h3 {
    font-family: var(--hwc-font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ---- The frame: one left edge for the logo, the page and the footer ---------------------------------------- */

.site-header__inner,
.site-main,
.site-footer__inner,
.band__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.site-header {
    border-bottom: 1px solid var(--hwc-hairline);
}

.site-header__inner {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header__logo {
    display: inline-block;
}

.site-header__logo img {
    display: block;
    height: 30px;
    width: auto;
}

/* A phone has only Sign in up here: the footer has the rest. */
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
}

.site-nav a {
    min-height: var(--hwc-control-height);
    display: flex;
    align-items: center;
    color: var(--hwc-text-2);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--hwc-text);
}

.site-nav a.site-nav__sign-in {
    color: var(--hwc-action);
}

.site-nav a.site-nav__sign-in:hover {
    color: var(--hwc-action-hover);
}

.site-nav a.site-nav__wide {
    display: none;
}

.site-nav a[aria-current='page'],
.site-footer__links a[aria-current='page'] {
    color: var(--hwc-text);
    font-weight: 700;
}

.site-main {
    flex: 1 0 auto;
    padding-top: 32px;
    padding-bottom: 56px;
}

/* A page of full-width bands: each one brings its own frame (band__inner). */
.site-main.site-main--bands {
    max-width: none;
    padding: 0;
}

.site-footer {
    background: var(--hwc-surface);
}

.site-footer__inner {
    padding-top: 16px;
    padding-bottom: 24px;
}

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

.site-footer__links a {
    min-height: var(--hwc-control-height);
    display: flex;
    align-items: center;
    color: var(--hwc-text-2);
    font-size: 14px;
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--hwc-text);
    text-decoration: underline;
}

.site-footer__legal {
    margin: 8px 0 0;
    color: var(--hwc-text-muted);
    font-size: var(--hwc-fs-meta);
}

/* ---- Text pages -------------------------------------------------------------------------------------------- */

.prose {
    max-width: 720px;
    overflow-wrap: break-word;
}

.prose h2 {
    margin: 32px 0 8px;
    font-size: var(--hwc-fs-heading);
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 16px;
}

.prose ul,
.prose ol {
    padding-left: 20px;
}

.prose li {
    margin-bottom: 6px;
}

.page-title {
    margin: 0 0 16px;
    font-size: 30px;
    letter-spacing: -0.3px;
}

.page-meta {
    margin: 16px 0 0;
    color: var(--hwc-text-muted);
    font-size: var(--hwc-fs-meta);
}

.hwc-eyebrow {
    margin: 0;
    color: var(--hwc-text-muted);
    font-size: var(--hwc-fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hwc-message {
    padding: 12px 16px;
    background: var(--hwc-info-tint);
    color: var(--hwc-info-text);
    font-size: 14px;
    line-height: 1.45;
}

.prose p.hwc-message {
    margin: 24px 0;
}

.hwc-message a {
    color: inherit;
    font-weight: 700;
}

.hwc-message a:hover {
    color: inherit;
}

/* One per view: the action the page is for. Full width on a phone, as on the apps. */
.btn-hwc-primary {
    width: 100%;
    min-height: var(--hwc-control-height);
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hwc-action);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.btn-hwc-primary:hover {
    background: var(--hwc-action-hover);
    color: #FFFFFF;
}

/* Orange where every other primary button is blue. 19px bold makes white on #EF5B33 large text, which needs 3:1. */
.btn-hwc-primary.btn-hwc-cta {
    min-height: 50px;
    background: var(--hwc-cta);
    font-size: 19px;
}

.btn-hwc-primary.btn-hwc-cta:hover {
    background: var(--hwc-cta-pressed);
}

.btn-hwc-secondary {
    width: 100%;
    min-height: var(--hwc-control-height);
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hwc-text);
    border-radius: 0;
    background: var(--hwc-page);
    color: var(--hwc-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-hwc-secondary:hover {
    background: var(--hwc-surface);
    color: var(--hwc-text);
}

.btn-hwc-secondary:focus-visible {
    outline: 2px solid var(--hwc-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-hwc-primary {
        transition: none;
    }
}

.hwc-chip {
    align-self: flex-start;
    padding: 3px 8px;
    background: var(--hwc-hairline);
    color: var(--hwc-text-2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.hwc-chip--success {
    background: var(--hwc-success-tint);
    color: var(--hwc-success-text);
}

.hwc-chip--info {
    background: var(--hwc-info-tint);
    color: var(--hwc-info-text);
}

.hwc-chip--current {
    background: var(--hwc-selection-tint);
    color: var(--hwc-alert-text);
}

/* ---- Big headings ------------------------------------------------------------------------------------------ */

.display-title {
    margin: 0;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* ---- Home -------------------------------------------------------------------------------------------------- */

.home-hero {
    padding: 32px 0 24px;
}

.home-hero .band__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-hero__title {
    max-width: 980px;
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.home-hero .btn-hwc-primary.btn-hwc-cta {
    min-height: 54px;
    padding-left: 32px;
    padding-right: 32px;
}

.sport-strip {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--hwc-field-line);
}

.sport-strip img {
    display: block;
    width: 32%;
    max-width: 220px;
    height: auto;
}

.sport-strip img.sport-strip__wide {
    display: none;
}

.home-steps {
    padding: 28px 0;
    background: var(--hwc-surface);
}

.home-steps__list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.home-steps__list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.home-steps__number {
    min-width: 20px;
    color: var(--hwc-selection);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.home-steps__label {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.home-section {
    padding: 32px 0 8px;
}

.home-section--last {
    padding-bottom: 32px;
}

.home-heading {
    margin: 0 0 16px;
    font-size: 30px;
    letter-spacing: -0.3px;
}

.why-grid {
    display: grid;
    gap: 12px;
}

.why-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--hwc-surface);
}

.why-card p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.phases {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--hwc-text);
}

.phases li {
    padding: 14px 0;
    border-bottom: 1px solid var(--hwc-hairline);
}

.phases li:last-child {
    border-bottom: 0;
}

.phases__when {
    margin: 0 0 4px;
    color: var(--hwc-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.phases__when--now {
    color: var(--hwc-cta-link);
    font-weight: 700;
}

.phases__what {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* ---- Pricing ----------------------------------------------------------------------------------------------- */

.pricing-title {
    font-size: clamp(42px, 4.4vw, 56px);
}

.pricing-intro {
    margin: 8px 0 0;
    color: var(--hwc-text-muted);
}

.plans {
    margin-top: 24px;
}

.plans + .plans {
    margin-top: 40px;
}

.plans__region {
    margin: 2px 0 0;
    color: var(--hwc-text-muted);
    font-size: var(--hwc-fs-meta);
}

.plan-grid {
    margin-top: 12px;
    display: grid;
    gap: 16px;
}

.plan-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--hwc-surface);
}

.plan-card--trial {
    border: 2px solid var(--hwc-selection);
    background: var(--hwc-page);
}

.plan-card__name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.plan-card__price {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.plan-card__price span {
    color: var(--hwc-text-muted);
    font-size: 16px;
    font-weight: 500;
}

.plan-card__annual {
    margin: -6px 0 0;
    color: var(--hwc-text-muted);
    font-size: 14px;
}

.plan-card__description {
    margin: 0;
    color: var(--hwc-text-muted);
    font-size: 15px;
    line-height: 1.45;
}

.plan-card .btn-hwc-primary,
.plan-card .btn-hwc-secondary {
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    font-size: 17px;
}

/* ---- /app and /workshop ------------------------------------------------------------------------------------ */

.install-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.install-block {
    display: grid;
    gap: 20px;
}

.install-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--hwc-surface);
}

.install-card__phone {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.install-card__steps {
    margin: 0;
    padding: 0;
    list-style-position: inside;
    display: grid;
    gap: 6px;
}

.install-card__note,
.install-card__pending {
    margin: 0;
}

.install-card__pending {
    margin-top: auto;
    color: var(--hwc-text-muted);
}

.install-card .btn-hwc-primary,
.install-card .btn-hwc-secondary {
    width: 100%;
    min-height: 50px;
    margin-top: auto;
}

.install-other {
    font-size: 15px;
    font-weight: 500;
}

.install-qr {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--hwc-hairline);
}

.install-qr img {
    display: block;
    width: 180px;
    height: 180px;
}

.install-qr p {
    margin: 0;
    color: var(--hwc-text-muted);
    font-size: 15px;
    text-align: center;
}

.code-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 2px solid var(--hwc-selection);
}

.code-box__label {
    margin: 0;
    font-weight: 500;
}

.code-box__code {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.code-box .btn-hwc-secondary {
    min-height: 50px;
    font-size: 17px;
}

.event-next {
    display: grid;
    gap: 12px;
}

.event-next p {
    margin: 0;
}

.event-next__first {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.event-next__colleague {
    color: var(--hwc-text-muted);
}

/* ---- Support ----------------------------------------------------------------------------------------------- */

.prose .support-answers-title {
    margin: 40px 0 12px;
}

.support-answer {
    padding: 24px 0;
    border-top: 1px solid var(--hwc-hairline);
}

.prose .support-answer h2 {
    margin-top: 0;
}

.support-answer > :last-child {
    margin-bottom: 0;
}

/* ---- Privacy notice ------------------------------------------------------------------------------------------
   Its markup is a generated document with colours and table borders written inline on nearly every element. The
   rules below beat those without touching a line of it, so the published wording cannot change. */

[data-custom-class='body'] {
    max-width: 720px;
    color: var(--hwc-text-2);
    overflow-wrap: break-word;
}

[data-custom-class='body'] [style*='color'] {
    color: inherit !important;
}

[data-custom-class='title'] {
    color: var(--hwc-text);
    font-family: var(--hwc-font-heading);
    font-size: 30px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

[data-custom-class='subtitle'] {
    color: var(--hwc-text-muted);
    font-size: var(--hwc-fs-meta);
}

[data-custom-class='heading_1'],
[data-custom-class='heading_2'] {
    color: var(--hwc-text);
    font-family: var(--hwc-font-heading);
    line-height: 1.25;
}

[data-custom-class='heading_1'] {
    font-size: var(--hwc-fs-heading);
}

[data-custom-class='heading_2'] {
    font-size: 17px;
}

[data-custom-class='body'] a,
[data-custom-class='body'] a span {
    color: var(--hwc-action) !important;
}

[data-custom-class='body'] ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: square;
}

[data-custom-class='body'] ul ul {
    list-style-type: circle;
}

[data-custom-class='body'] table {
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

[data-custom-class='body'] td {
    padding: 8px;
    vertical-align: top;
    border-color: var(--hwc-hairline) !important;
}

/* ---- Wider than a phone (the web app's breakpoint) ---------------------------------------------------------- */

@media (min-width: 615px) {
    .site-header__inner,
    .site-main,
    .site-footer__inner,
    .band__inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    .site-header__inner {
        min-height: 72px;
    }

    .site-header__logo img {
        height: 40px;
    }

    .site-nav {
        font-size: 16px;
    }

    .site-nav a.site-nav__wide {
        display: flex;
    }

    .home-hero {
        padding: 56px 0;
    }

    .home-hero .band__inner {
        align-items: flex-start;
        gap: 28px;
    }

    .home-hero__title {
        line-height: 1.02;
    }

    .sport-strip {
        align-self: stretch;
    }

    .sport-strip img {
        width: 23%;
    }

    .sport-strip img.sport-strip__wide {
        display: block;
    }

    .site-main {
        padding-top: 40px;
        padding-bottom: 72px;
    }

    .site-footer__links {
        display: flex;
        flex-wrap: wrap;
        gap: 0 24px;
    }

    .page-title,
    [data-custom-class='title'] {
        font-size: 36px;
    }

    .btn-hwc-primary,
    .btn-hwc-secondary {
        width: auto;
    }
}

/* The Tennis picture has a solid white background, so it can't sit on the dark page. */
@media (min-width: 615px) and (prefers-color-scheme: dark) {
    .sport-strip img.sport-strip__wide {
        display: none;
    }
}

/* ---- Room for columns --------------------------------------------------------------------------------------- */

@media (min-width: 768px) {
    .home-steps {
        padding: 40px 0;
    }

    .home-steps__list {
        margin-top: 20px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }

    .home-steps__list li {
        flex-direction: column;
        gap: 8px;
    }

    .home-steps__number {
        font-size: 40px;
    }

    .home-steps__label {
        font-size: 22px;
    }

    .home-heading {
        margin-bottom: 24px;
        font-size: 40px;
        letter-spacing: -0.5px;
    }

    .why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .why-card {
        padding: 24px;
        gap: 12px;
    }

    .why-card p,
    .phases__what {
        font-size: 20px;
    }

    .phases {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .phases li {
        padding: 20px;
        border-bottom: 0;
        border-right: 1px solid var(--hwc-hairline);
    }

    .phases li:first-child {
        padding-left: 0;
    }

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

    .pricing-intro {
        font-size: 18px;
    }

    .plans {
        margin-top: 32px;
    }

    .plan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .plan-card {
        padding: 24px;
        gap: 14px;
    }

    /* Lines the names up with the Trial's, which sits under its chip. */
    .plan-grid:has(.plan-card--trial) .plan-card:not(.plan-card--trial) .plan-card__name {
        margin-top: 22px;
    }

    .plan-card__name {
        font-size: 22px;
    }

    .plan-card__price {
        font-size: 34px;
    }

    .plan-card .btn-hwc-primary,
    .plan-card .btn-hwc-secondary {
        min-height: var(--hwc-control-height);
        font-size: 16px;
    }

    .install-page {
        gap: 32px;
    }

    .install-block--computer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .install-block--with-qr {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .install-card {
        padding: 24px;
        gap: 16px;
    }

    .install-card__phone {
        font-size: 20px;
    }

    .install-card__steps {
        gap: 8px;
    }

    .code-box {
        padding: 24px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .code-box__label {
        font-size: 18px;
    }

    .code-box__code {
        font-size: 44px;
    }

    .code-box .btn-hwc-secondary {
        min-height: var(--hwc-control-height);
        padding-left: 24px;
        padding-right: 24px;
        font-size: 16px;
    }

    .event-next {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .event-next__first {
        font-size: 22px;
    }

    .event-next__colleague {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .site-header__inner,
    .site-main,
    .site-footer__inner,
    .band__inner {
        padding-left: 56px;
        padding-right: 56px;
    }

    .site-main {
        padding-top: 56px;
    }

    .home-hero {
        padding: 72px 0 56px;
    }

    .home-section {
        padding: 56px 0;
    }

    .home-section--last {
        padding-top: 16px;
    }
}
