/* Signup, in the marketing site's visual language rather than the CRM's.
 *
 * Someone arriving here has just come from realtorglide.com, so the page they
 * land on should look like the page they left. The CRM's own Tailwind styling
 * starts after they are inside.
 *
 * The tokens and component shapes below are copied from the website's
 * site.css, not imported from it. The site is a separate codebase on a
 * separate domain, and a signup page that breaks when the marketing site is
 * redeployed would be a bad trade for saving a few hundred lines. If the site
 * is restyled, these tokens are what to bring across.
 */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #070707;
    --body: #606b75;
    --canvas: #f6f5f0;
    --card: #fff;
    --line: #e8e5dc;
    --yellow: #ffc60a;
    --yellow-dark: #eab500;
    --dark: #1c1c1c;
    --cream: #fffad9;
    --cream-line: #f1e3a6;
    --mint: #ecf9f1;
    --green-ink: #2f5a41;
    --red: #b42318;
    --red-bg: #fef3f2;
    --red-line: #fecdca;
    --wrap: 1170px;
    --gutter: 24px;
    --r-lg: 28px;
    --r-md: 20px;
    --r-sm: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 24px 48px -28px rgba(16, 24, 40, 0.22);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

* {
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--body);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

/* ------------------------------------------------------------- header */

.su-header {
    padding: 22px 0;
    background: var(--canvas);
}

.su-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.su-header__logo img {
    width: 171px;
    height: 60px;
    object-fit: contain;
}

.su-header__aside {
    font-size: 15px;
}

.su-header__aside a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid var(--yellow);
}

.su-header__aside a:hover {
    border-bottom-color: var(--ink);
}

/* --------------------------------------------------------------- page */

.su-main {
    flex: 1;
    padding: 20px 0 72px;
}

.su-intro {
    max-width: 760px;
    margin-bottom: 34px;
}

.su-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.su-eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--yellow);
}

.su-intro h1 {
    font-size: clamp(32px, 4.4vw, 50px);
}

.su-intro p {
    margin-top: 14px;
    font-size: 18px;
}

/* Form on the left, the chosen plan's detail on the right. One column on
   narrow screens, with the plan detail following the form rather than
   pushing it below the fold. */
.su-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

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

.su-panel {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: var(--shadow);
}

@media (max-width: 560px) {
    .su-panel {
        padding: 24px;
        border-radius: var(--r-md);
    }
}

.su-panel__head {
    margin-bottom: 24px;
}

.su-panel__head h2 {
    font-size: 22px;
}

.su-panel__head p {
    margin-top: 6px;
    font-size: 15px;
}

/* --------------------------------------------------------------- form */

.su-fields {
    display: grid;
    gap: 18px;
}

.su-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 560px) {
    .su-row {
        grid-template-columns: 1fr;
    }
}

.su-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.su-field__optional {
    color: var(--body);
    font-weight: 400;
}

.su-field input[type="text"],
.su-field input[type="email"],
.su-field input[type="tel"],
.su-field input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink);
    font: 400 16px/1.4 var(--font);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.su-field input:focus {
    outline: 0;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 198, 10, 0.28);
}

.su-field__hint {
    margin-top: 6px;
    font-size: 13px;
}

/* The honeypot. Hidden without display:none, which some bots check for, and
   out of the tab order and the accessibility tree so no person reaches it. */
.su-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ----------------------------------------------------------- plan picker */

.su-picker {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.su-pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.su-pick__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.su-pick__card:hover {
    border-color: #d8d3c4;
}

.su-pick input:checked + .su-pick__card {
    border-color: var(--yellow);
    background: var(--cream);
}

/* Keyboard users get the same ring the inputs do: the real radio is
   invisible, so without this there is no focus indicator at all. */
.su-pick input:focus-visible + .su-pick__card {
    box-shadow: 0 0 0 3px rgba(255, 198, 10, 0.28);
}

.su-pick__name {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.su-pick__meta {
    font-size: 14px;
    line-height: 1.4;
}

.su-pick__price {
    color: var(--ink);
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
}

.su-pick__price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
}

.su-pick__tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--yellow);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ---------------------------------------------------------- terms, button */

.su-terms {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15px;
}

.su-terms input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--yellow);
    flex: none;
}

.su-terms a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.su-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 34px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--yellow);
    color: #000;
    font: 700 15px/1 var(--font);
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.su-submit:hover:not(:disabled) {
    background: var(--yellow-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(234, 181, 0, 0.9);
}

.su-submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.su-reassure {
    margin-top: 14px;
    font-size: 14px;
    text-align: center;
}

/* Without JavaScript the radios cannot swap panels, so show every plan's
   detail rather than stranding the visitor on whichever one the server
   preselected. signup.js removes .no-js the moment it runs. */
.no-js [data-plan-detail][hidden] {
    display: block;
}

.no-js .su-detail__label {
    display: none;
}

/* ----------------------------------------------------------- plan detail */

.su-detail {
    position: sticky;
    top: 24px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

@media (max-width: 940px) {
    .su-detail {
        position: static;
    }
}

.su-detail--featured {
    border: 2px solid var(--yellow);
    background: linear-gradient(180deg, var(--cream) 0%, #fff 62%);
}

.su-detail__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.su-detail__name {
    margin-top: 6px;
    font-size: 28px;
}

.su-detail__desc {
    margin-top: 8px;
    font-size: 16px;
}

.su-detail__price {
    margin-top: 18px;
    line-height: 1;
}

.su-detail__amount {
    color: var(--ink);
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.su-detail__per {
    font-size: 16px;
}

.su-detail__after {
    margin-top: 10px;
    font-size: 14px;
}

.su-ticks {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #2b3137;
    font-size: 15px;
    line-height: 1.5;
}

.su-detail--featured .su-ticks {
    border-top-color: var(--cream-line);
}

.su-ticks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.su-ticks li + li {
    margin-top: 11px;
}

.su-ticks svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    padding: 4px;
    border-radius: 50%;
    background: var(--yellow);
    color: #000;
}

.su-detail__foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.su-detail--featured .su-detail__foot {
    border-top-color: var(--cream-line);
}

/* Everything in every plan, listed once rather than repeated per card. */
.su-common {
    margin-top: 24px;
    padding: 26px 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--mint);
}

.su-common h3 {
    font-size: 17px;
    color: var(--green-ink);
}

.su-common ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px 24px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.45;
}

.su-common li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #2b3137;
}

.su-common svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--green-ink);
}

/* -------------------------------------------------------------- notices */

.su-alert {
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: var(--r-sm);
    font-size: 15px;
}

.su-alert--error {
    border: 1px solid var(--red-line);
    background: var(--red-bg);
    color: var(--red);
}

.su-alert--ok {
    border: 1px solid #c7ddcf;
    background: var(--mint);
    color: var(--green-ink);
}

/* ---------------------------------------------------- single-card pages */

.su-centre {
    max-width: 560px;
    margin: 40px auto 0;
    text-align: center;
}

.su-centre .su-panel {
    padding: 44px 38px;
}

.su-centre h1 {
    font-size: 28px;
}

.su-centre p {
    margin-top: 12px;
}

.su-centre__icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
}

.su-centre__icon svg {
    width: 28px;
    height: 28px;
}

.su-linkbtn {
    margin-top: 22px;
    background: none;
    border: 0;
    padding: 0;
    color: var(--ink);
    font: 600 15px/1.4 var(--font);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.su-centre__foot {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 15px;
}

/* --------------------------------------------------------------- footer */

.su-footer {
    position: relative;
    padding: 30px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.su-footer__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 22px;
}

.su-footer a {
    text-decoration: none;
}

.su-footer a:hover {
    color: var(--ink);
}

.su-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
