:root {
    --sand: #f7f2e9;
    --paper: rgba(255, 252, 246, 0.94);
    --paper-strong: #fffdf8;
    --ink: #1f2430;
    --muted: #5d6677;
    --green: #165d55;
    --green-deep: #103f3a;
    --orange: #b45b2f;
    --orange-deep: #8a4522;
    --line: rgba(31, 36, 48, 0.1);
    --shadow: 0 20px 50px rgba(20, 30, 38, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(22, 93, 85, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(180, 91, 47, 0.16), transparent 24%),
        linear-gradient(180deg, #fbf7f0 0%, var(--sand) 50%, #efe6d8 100%);
    font: 18px/1.6 "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p,
ul {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Georgia, "Palatino Linotype", serif;
    line-height: 1.1;
}

.shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

code {
    padding: 0.1rem 0.35rem;
    border-radius: 0.45rem;
    background: rgba(31, 36, 48, 0.07);
    font: 0.92em/1.3 Consolas, "Courier New", monospace;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(251, 247, 240, 0.78);
    border-bottom: 1px solid rgba(31, 36, 48, 0.06);
}

.site-header-row,
.site-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(22, 93, 85, 0.16);
}

.brand-name {
    font-weight: 700;
}

.brand-tag,
.footer-copy,
.top-nav a:not(.button) {
    color: var(--muted);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.45rem 0.9rem;
    border-radius: 5px;
    background: rgba(22, 93, 85, 0.08);
    color: var(--green-deep);
    font-size: 0.95rem;
    font-weight: 700;
}

.hero {
    padding: 3.5rem 0 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    gap: 1.25rem;
    align-items: stretch;
}

.hero-copy,
.hero-card,
.banner-frame,
.feature-card,
.pricing-card,
.details-card,
.cta-strip,
.thank-you-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 2rem;
}

.eyebrow,
.card-label,
.pricing-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    margin-bottom: 1rem;
}

.hero-lede {
    max-width: 42rem;
    font-size: 1.18rem;
    color: var(--muted);
}

.hero-actions,
.cta-actions,
.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.hero-points,
.hero-card-list,
.pricing-list,
.plain-list,
.details-columns ul,
.thank-you-notes ul {
    margin-bottom: 0;
    padding-left: 1.15rem;
}

.hero-card {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(249, 244, 234, 0.95));
}

.hero-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.hero-card-note {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.banner-section {
    padding: 0.5rem 0 1rem;
}

.banner-frame {
    overflow: hidden;
    padding: 0.8rem;
}

.banner-frame img {
    border-radius: 5px;
}

.section {
    padding: 1.5rem 0;
}

.section-alt {
    padding: 2rem 0;
}

.section-header {
    max-width: 46rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--muted);
}

.feature-grid,
.pricing-grid {
    display: grid;
    gap: 1rem;
}

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

.feature-card,
.pricing-card,
.details-card,
.thank-you-card {
    padding: 1.6rem;
}

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

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-featured {
    background: linear-gradient(180deg, rgba(255, 246, 238, 0.98), rgba(255, 252, 246, 0.95));
    border-color: rgba(180, 91, 47, 0.28);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    background: rgba(180, 91, 47, 0.12);
    color: var(--orange-deep);
}

.pricing-tier {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pricing-price {
    margin-bottom: 0;
    font-size: 2.3rem;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--muted);
}

.details-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.35fr 0.85fr;
}

.details-columns {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-card {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(243, 236, 223, 0.92));
}

.cta-strip {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.6rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.1rem;
    border-radius: 5px;
    border: 0;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 20px rgba(22, 93, 85, 0.18);
}

.button-accent {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 10px 20px rgba(180, 91, 47, 0.18);
}

.button-secondary {
    background: transparent;
    border: 1px solid rgba(22, 93, 85, 0.2);
    color: var(--green-deep);
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(31, 36, 48, 0.08);
    background: rgba(255, 251, 244, 0.68);
}

.footer-title {
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.thank-you-wrap {
    min-height: calc(100vh - 160px);
    display: grid;
    align-items: center;
    padding: 2rem 0;
}

.registration-wrap,
.admin-main {
    padding: 2rem 0;
}

.thank-you-card {
    width: min(760px, 100%);
    margin: 0 auto;
}

.form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.75rem;
}

.form-card-narrow {
    width: min(680px, 100%);
    margin: 0 auto;
}

.info-panel,
.alert,
.metric-card,
.admin-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1.2rem 1.3rem;
}

.info-panel {
    margin-bottom: 1.25rem;
}

.alert {
    margin-bottom: 1rem;
}

.alert ul {
    margin-bottom: 0;
}

.alert-error {
    border-color: rgba(138, 69, 34, 0.28);
    background: rgba(255, 245, 240, 0.92);
}

.alert-success {
    border-color: rgba(22, 93, 85, 0.28);
    background: rgba(244, 252, 249, 0.94);
}

.alert-warning {
    border-color: rgba(180, 91, 47, 0.28);
    background: rgba(255, 248, 240, 0.94);
}

.license-form {
    margin-top: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid-single {
    grid-template-columns: 1fr;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field span {
    font-weight: 700;
    color: var(--green-deep);
    font-size: 0.95rem;
}

.field input,
.field select,
.field textarea,
.search-form input {
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(31, 36, 48, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font: inherit;
    box-shadow: inset 0 1px 2px rgba(31, 36, 48, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-form input:focus {
    outline: none;
    border-color: rgba(22, 93, 85, 0.55);
    box-shadow: 0 0 0 4px rgba(22, 93, 85, 0.12);
    background: #fff;
}

.field-wide {
    grid-column: 1 / -1;
}

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

.form-grid .field,
.form-grid-single .field {
    min-width: 0;
}

.admin-page-head {
    margin-bottom: 1.25rem;
}

.admin-subtitle {
    max-width: 52rem;
    color: var(--muted);
}

.metric-grid,
.admin-detail-grid {
    display: grid;
    gap: 1rem;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.metric-card h2 {
    margin-bottom: 0;
    font-size: 2.2rem;
}

.admin-detail-grid {
    grid-template-columns: 1.25fr 0.75fr;
}

.admin-section {
    margin-bottom: 1rem;
}

.admin-section-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-form input {
    min-width: 280px;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.85rem 0.7rem;
    border-top: 1px solid rgba(31, 36, 48, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 5px;
    background: rgba(31, 36, 48, 0.08);
    font-size: 0.9rem;
    font-weight: 700;
}

.status-active {
    background: rgba(22, 93, 85, 0.12);
    color: var(--green-deep);
}

.status-expired,
.status-revoked,
.status-disabled {
    background: rgba(180, 91, 47, 0.12);
    color: var(--orange-deep);
}

.detail-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-list dd {
    margin: 0.25rem 0 0;
    font-weight: 700;
}

.event-log {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.thank-you-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
    border-radius: 14px;
}

.thank-you-notes {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .hero-grid,
    .details-grid,
    .feature-grid,
    .pricing-grid,
    .details-columns,
    .metric-grid,
    .admin-detail-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cta-strip,
    .site-header-row,
    .site-footer-row,
    .admin-section-top,
    .admin-section-actions,
    .search-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .top-nav {
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-copy,
    .hero-card,
    .feature-card,
    .pricing-card,
    .details-card,
    .cta-strip,
    .thank-you-card,
    .form-card,
    .info-panel,
    .alert,
    .metric-card,
    .admin-section {
        padding: 1.25rem;
    }

    .search-form input {
        min-width: 0;
    }

}
