/*
 * The base look of a Blank.
 *
 * Plain CSS on purpose. There is no build step, no framework and no component
 * abstraction to learn, so Shield can restyle this application by editing this
 * one file and the Blade templates.
 *
 * Everything visual is driven by the custom properties below.
 */

:root {
    --font-sans: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    --color-page: #fafaf9;
    --color-surface: #ffffff;
    --color-surface-muted: #f5f5f4;
    --color-text: #1c1917;
    --color-muted: #78716c;
    --color-muted-strong: #57534e;
    --color-border: #e7e5e4;
    --color-border-strong: #d6d3d1;
    --color-accent: #0f766e;
    --color-accent-text: #ffffff;
    --color-accent-soft: #ccfbf1;
    --color-accent-ring: rgba(15, 118, 110, 0.2);
    --color-accent-focus: rgba(15, 118, 110, 0.15);
    --color-ink: #1c1917;
    --color-danger: #e11d48;
    --color-danger-soft: #fff1f2;
    --color-success: #059669;
    --color-success-soft: #ecfdf5;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
    --shadow-md: 0 1px 3px rgba(28, 25, 23, 0.08);
    --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.08);

    --space: 1rem;
    --container: 48rem;

    --type-title-mobile: 2.25rem;
    --type-title-desktop: 3rem;
    --type-section: 1.75rem;
    --type-card: 1.25rem;
    --type-body: 1rem;
    --type-label: 0.8125rem;
    --type-prominent: 1.125rem;
}

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-page);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
    line-height: 1.25;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}

h2 {
    font-size: 1.25rem;
}

h3 {
    font-size: 1.05rem;
}

p {
    margin: 0 0 var(--space);
}

a {
    color: var(--color-accent);
    text-underline-offset: 2px;
}

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

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-surface);
    padding: 0.75rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

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

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

.lead {
    font-size: 1.125rem;
    color: var(--color-muted);
}

.stack > * + * {
    margin-top: var(--space);
}

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

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4rem;
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 650;
    font-size: 1.05rem;
    color: var(--color-text);
    text-decoration: none;
}

.brand img {
    max-height: 2rem;
    width: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
}

.site-nav a,
.site-nav button {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

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

.site-nav a[aria-current="page"] {
    color: var(--color-text);
    font-weight: 600;
}

.site-nav__rule {
    display: block;
    width: 1px;
    height: 1.15em;
    flex: 0 0 1px;
    background: var(--color-muted);
}

/* ---------------------------------------------------------------- content */

main {
    flex: 1 0 auto;
    padding-block: 2.5rem 3.5rem;
}

.call4-main {
    padding-block: 0;
}

.c4-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 2rem;
}

.c4-screen.c4-panel,
.c4-screen.c4-section {
    margin-bottom: 0;
}

.c4-screen.c4-hero {
    margin-bottom: 0;
    justify-content: flex-start;
    padding-block: 25dvh 2rem;
}

.c4-screen.c4-hero::before {
    content: "";
    flex: 0 0 20%;
    min-height: 0;
}

.call4-container {
    max-width: var(--container);
}

.page-header {
    margin-bottom: 1.75rem;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    padding-block: 1.5rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
}

/* ---------------------------------------------------------------- panels */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.card + .card,
.grid + .card {
    margin-top: 1.25rem;
}

.card__title {
    margin-bottom: 0.25rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.stat__value {
    font-size: 1.75rem;
    font-weight: 650;
}

.stat__label {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.stat__hint {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0.15rem 0 0;
}

.stat__label a {
    color: inherit;
}

/* ---------------------------------------------------------------- hero */

.hero {
    display: grid;
    align-content: center;
    max-width: 34rem;
    /* Fills the space between header and footer so the message sits centred. */
    min-height: max(16rem, calc(100svh - 20rem));
    margin-inline: auto;
    padding-block: clamp(1.5rem, 1rem + 3vw, 3rem);
    text-align: center;
}

.hero__title {
    font-size: clamp(1.8rem, 1.35rem + 1.8vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
}

.hero__lead {
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--color-muted);
    margin-bottom: 0;
}

.hero__note {
    margin: 2rem 0 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* ---------------------------------------------------------------- forms */

form {
    margin: 0;
}

.field {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-weight: 550;
    font-size: 0.925rem;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    font: inherit;
    color: inherit;
    padding: 0.6rem 0.7rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 450;
}

.checkbox input {
    margin-top: 0.3rem;
}

.hint {
    display: block;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.error {
    display: block;
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ---------------------------------------------------------------- buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font: inherit;
    font-weight: 550;
    line-height: 1.2;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: var(--color-accent);
    color: var(--color-accent-text);
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    filter: brightness(1.08);
}

.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.button--secondary {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text);
    border-radius: 0.75rem;
}

.button--quiet {
    background: none;
    color: var(--color-muted);
    padding-inline: 0.25rem;
}

.button--danger {
    background: var(--color-danger);
}

.button--small {
    padding: 0.4rem 0.7rem;
    font-size: 0.875rem;
}

/* ---------------------------------------------------------------- messages */

.alert {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--color-surface);
}

.alert--success {
    background: var(--color-success-soft);
    border-color: rgba(20, 108, 67, 0.25);
    color: var(--color-success);
}

.alert--error {
    background: var(--color-danger-soft);
    border-color: rgba(180, 35, 44, 0.25);
    color: var(--color-danger);
}

.alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.badge--muted {
    background: #eef0f4;
    color: var(--color-muted);
}

.badge--danger {
    background: var(--color-danger-soft);
    color: var(--color-danger);
}

/* ---------------------------------------------------------------- tables */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    text-align: left;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin-top: 1.25rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    text-decoration: none;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- admin */

.admin-shell {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
    .admin-shell {
        grid-template-columns: 14rem 1fr;
    }
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-nav a {
    display: block;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.admin-nav a:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.admin-nav a[aria-current="page"] {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-weight: 600;
}

.admin-nav__heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    margin: 1rem 0 0.35rem 0.7rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.toolbar form {
    display: flex;
    gap: 0.5rem;
}

.toolbar input[type="search"] {
    min-width: 12rem;
}

/* ---------------------------------------------------------------- seo + analytics */

.search-preview {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    max-width: 40rem;
}

.search-preview__title {
    color: #1a0dab;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 0.15rem;
}

.search-preview__url {
    color: #006621;
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
}

.search-preview__snippet {
    color: #4d5156;
    font-size: 0.9rem;
    margin: 0;
}

.search-preview__snippet--empty {
    color: var(--color-muted);
    font-style: italic;
}

.seo-image-preview {
    max-height: 8rem;
    width: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.analytics-chart {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    height: 9rem;
    margin: 1rem 0 1.5rem;
}

.analytics-chart__col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}

.analytics-chart__bar-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Height is set in rem on each bar. Percentage heights (and flex-grow
   via a CSS variable in the flex shorthand) do not resolve on these
   flex children, so the graph was a flat line. */
.analytics-chart__bar {
    width: 100%;
    min-height: 2px;
    background: var(--color-accent);
    border-radius: 3px 3px 0 0;
}

.analytics-chart__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: var(--color-muted);
}

/* ---------------------------------------------------------------- centred auth pages */

.narrow {
    max-width: 26rem;
    margin-inline: auto;
}

.narrow--hint {
    max-width: 42rem;
}

.narrow .card {
    padding: 1.75rem;
}

.login-credentials {
    margin-bottom: 0;
}

.login-credentials--hint {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.login-credentials__fields .field:last-child {
    margin-bottom: 0;
}

.login-hint-bubble {
    position: relative;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.875rem;
    line-height: 1.45;
}

.login-hint-bubble p {
    margin: 0;
}

.login-hint-bubble strong {
    font-weight: 650;
}

.login-hint-bubble::before {
    content: "";
    position: absolute;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--color-accent-soft);
    transform: rotate(45deg);
}

@media (min-width: 40rem) {
    .login-credentials--hint {
        grid-template-columns: minmax(0, 1fr) minmax(11rem, 13rem);
    }

    .login-hint-bubble {
        margin-top: 1.65rem;
    }

    .login-hint-bubble::before {
        top: 1.1rem;
        left: -0.3rem;
    }
}

@media (max-width: 39.99rem) {
    .login-hint-bubble::before {
        top: -0.3rem;
        left: 1.25rem;
    }
}

.form-footer {
    margin-top: 1.25rem;
    font-size: 0.925rem;
    color: var(--color-muted);
}

/* ---------------------------------------------------------------- error pages */

.centred {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.error-reference {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    background: #eef0f4;
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
}

/* ---------------------------------------------------------------- call4 */

.call4-site .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(250 250 249 / 0.82);
    border-bottom: 1px solid rgb(231 229 228 / 0.6);
    backdrop-filter: blur(8px);
}

.call4-site .brand {
    gap: 0.75rem;
}

.call4-site .brand img {
    max-height: 3.25rem;
}

.brand__mark {
    color: var(--color-ink);
    display: flex;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.brand__domain {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: #a8a29e;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.call4-site .site-nav a,
.call4-site .site-nav button {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted-strong);
}

.call4-site .site-nav a:hover,
.call4-site .site-nav button:hover {
    color: var(--color-text);
}

.site-nav__quiet {
    opacity: 1;
    font-size: 0.8125rem !important;
    color: var(--color-muted) !important;
}

.c4-label {
    font-size: var(--type-label);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a8a29e;
    margin: 0 0 0.35rem;
}

.c4-hero {
    text-align: center;
    justify-content: flex-start;
    padding-top: clamp(2rem, 8vh, 4rem);
}

.c4-hero__icon {
    margin-bottom: 1.25rem;
}

.c4-hero__icon img {
    display: block;
    width: auto;
    height: 5rem;
    margin-inline: auto;
}

.c4-hero__title {
    font-size: var(--type-title-mobile);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
    color: var(--color-text);
    text-wrap: balance;
}

@media (min-width: 48rem) {
    .c4-hero__title {
        font-size: var(--type-title-desktop);
    }
}

.c4-hero__lead {
    font-size: var(--type-prominent);
    color: var(--color-muted-strong);
    max-width: 28rem;
    margin: 0 auto 1.75rem;
    line-height: 1.625;
}

.c4-hero__example {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 2rem;
}

.c4-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.c4-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--type-prominent);
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    box-shadow: none;
    color: var(--color-text);
}

.c4-token--filled {
    background: var(--color-accent-soft);
    border-color: var(--color-accent-ring);
    color: var(--color-accent);
}

.c4-token--small {
    font-size: 0.875rem;
    padding: 0.3rem 0.65rem;
}

.c4-panel {
    background: var(--color-surface);
    border: 1px solid rgb(231 229 228 / 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 36rem) {
    .c4-panel {
        padding: 2rem 2.25rem;
    }
}

.c4-panel--lookup {
    border-top: 1px solid rgb(231 229 228 / 0.8);
    box-shadow: var(--shadow-sm), inset 0 3px 0 var(--color-accent);
}

.c4-panel--create {
    border-top: 1px solid rgb(231 229 228 / 0.8);
    box-shadow: var(--shadow-sm), inset 0 3px 0 var(--color-ink);
}

.c4-screen--report {
    align-items: center;
}

.c4-screen--report .c4-panel--report {
    width: 100%;
    max-width: 34rem;
    margin-bottom: 0;
}

.c4-panel--report {
    border-top: 1px solid rgb(231 229 228 / 0.8);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm), inset 0 3px 0 var(--color-danger);
    padding: 2rem 1.5rem;
}

@media (min-width: 36rem) {
    .c4-panel--report {
        padding: 2.5rem 2rem;
    }
}

.c4-panel--report .c4-panel__header {
    margin-bottom: 1rem;
}

.c4-panel__header {
    margin-bottom: 1.5rem;
}

.c4-panel__title {
    font-size: var(--type-section);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem;
}

.c4-panel__intro {
    color: var(--color-muted-strong);
    margin: 0;
    font-size: var(--type-body);
    line-height: 1.625;
}

.c4-word-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 36rem) {
    .c4-word-inputs {
        grid-template-columns: repeat(4, 1fr);
    }
}

.c4-word-inputs--compact {
    margin-top: 0.5rem;
}

.c4-word-input {
    width: 100%;
    font-size: var(--type-prominent);
    font-weight: 500;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface-muted);
    color: var(--color-text);
}

.c4-word-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-focus);
    background: var(--color-surface);
}

.c4-word-input--compact {
    font-size: 0.875rem;
    padding: 0.55rem 0.4rem;
}

.button--primary {
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 500;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.button--primary:hover {
    filter: brightness(1.06);
}

.button--create {
    background: var(--color-ink);
    color: var(--color-surface);
    font-weight: 500;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.button--create:hover {
    background: #292524;
    filter: none;
}

.button--large {
    padding: 0.85rem 1.75rem;
    font-size: var(--type-prominent);
    border-radius: 0.75rem;
}

.button--danger {
    background: var(--color-danger);
    color: #fff;
}

.c4-result {
    margin-top: 2rem;
    padding: 1.75rem 1.25rem;
    background: var(--color-success-soft);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--radius);
    text-align: center;
}

.c4-result__words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.c4-result__label {
    font-size: var(--type-prominent);
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--color-success);
}

.c4-result__phone {
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 1.25rem;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.c4-result__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.c4-alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    margin-top: 1.25rem;
}

.c4-alert--warning {
    background: var(--color-danger-soft);
    border: 1px solid rgba(225, 29, 72, 0.2);
    color: var(--color-danger);
}

.c4-alert--success {
    background: var(--color-success-soft);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: var(--color-success);
}

.c4-alert p {
    margin: 0;
}

.c4-success {
    text-align: center;
}

.c4-success__heading {
    font-size: var(--type-card);
    font-weight: 600;
    color: var(--color-success);
    margin: 0 0 1rem;
}

.c4-success__label {
    font-size: var(--type-prominent);
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.c4-manage-link {
    text-align: left;
    background: var(--color-page);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.c4-manage-link__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.c4-manage-link__input {
    flex: 1 1 12rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
}

.c4-phone-input {
    display: flex;
    gap: 0.5rem;
}

.c4-phone-input__code {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    text-align: center;
}

.c4-phone-input__number {
    flex: 1 1 12rem;
}

.c4-suggestions {
    margin-bottom: 1.25rem;
}

.c4-suggestions__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.c4-suggestion {
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px dashed var(--color-border);
    background: var(--color-page);
    color: var(--color-muted);
    cursor: pointer;
}

.c4-suggestion:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.c4-modal[hidden] {
    display: none;
}

.c4-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.c4-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.c4-modal__panel {
    position: relative;
    width: min(100%, 34rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.18);
    padding: 2rem 1.75rem 1.75rem;
}

.c4-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.c4-modal__close:hover,
.c4-modal__close:focus-visible {
    background: var(--color-page);
    color: var(--color-text);
}

.c4-modal__content .c4-result,
.c4-modal__content .c4-success,
.c4-modal__content .c4-alert {
    margin-top: 0;
}

body.c4-modal-open {
    overflow: hidden;
}

.c4-section {
    margin-bottom: 3rem;
    padding-top: 0.5rem;
}

.c4-section__header {
    margin-bottom: 1.75rem;
}

.c4-section__title {
    font-size: var(--type-section);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem;
}

.c4-section__intro {
    color: var(--color-muted);
    margin: 0;
}

.c4-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

.c4-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.c4-step__num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-radius: 50%;
}

.c4-step__title {
    font-size: var(--type-card);
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.c4-step p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.c4-muted-example {
    color: var(--color-muted);
    text-decoration: line-through;
}

.c4-accent-example {
    color: var(--color-text);
    font-weight: 600;
}

.c4-examples {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 36rem) {
    .c4-examples {
        grid-template-columns: 1fr 1fr;
    }
}

.c4-example-card {
    background: var(--color-surface);
    border: 1px solid rgb(231 229 228 / 0.8);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.c4-example-card__words {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.c4-example-card__type {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0;
}

.c4-trust-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 36rem) {
    .c4-trust-grid {
        grid-template-columns: 1fr;
    }
}

.c4-trust-card {
    background: var(--color-surface-muted);
    border: 1px solid rgb(231 229 228 / 0.8);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.c4-trust-card__title {
    font-size: var(--type-card);
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.c4-trust-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.c4-positioning {
    text-align: center;
    font-size: var(--type-prominent);
    color: var(--color-muted);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}

.c4-positioning strong {
    color: var(--color-text);
    font-weight: 600;
}

.c4-report-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 0.75rem;
}

.c4-report-form .c4-word-inputs {
    margin-bottom: 0;
}

.c4-report-form .field {
    margin-bottom: 0.85rem;
}

.c4-report-form textarea {
    min-height: 5rem;
}

.c4-report-form .form-actions {
    margin-top: 0.75rem;
}

.c4-delete-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.c4-manage-hint {
    margin-top: 1.5rem;
}

.call4-site .site-footer {
    background: rgb(250 250 249 / 0.82);
    border-top: 1px solid rgb(231 229 228 / 0.6);
    text-align: center;
}

.call4-site .site-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.site-footer__tagline {
    margin: 0;
    font-size: var(--type-prominent);
    font-weight: 600;
    color: var(--color-text);
}

.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    font-size: 0.85rem;
}
