@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
    --bg: #f7f5ef;
    --card: #ffffff;
    --text: #171717;
    --muted: #6b7280;
    --soft: #ece7dc;
    --line: #d6cfc0;
    --green: #798d4e;
    --green-dark: #526236;
    --green-soft: rgba(121, 141, 78, 0.14);
    --shadow: 0 24px 80px rgba(31, 31, 39, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    min-height: 100vh;
    padding-bottom: 132px;
    background:
        radial-gradient(circle at top left, rgba(121, 141, 78, 0.2), transparent 36%),
        radial-gradient(circle at bottom right, rgba(82, 98, 54, 0.16), transparent 34%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.result-open {
    overflow: hidden;
}

body.result-open::after {
    content: "";
    position: fixed;
    z-index: 50;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(2px);
    animation: fadeInOverlay 0.25s ease both;
}

body.result-open .floating-store-bar {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.platform-android .ios-store {
    display: none;
}

.platform-ios .android-store {
    display: none;
}

.platform-other .android-store,
.platform-other .ios-store {
    display: inline-flex;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    z-index: 20;
    top: 18px;
    left: 50%;
    width: min(1120px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(31, 31, 39, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(31, 31, 39, 0.12);
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
    color: rgba(23, 23, 23, 0.68);
    font-size: 13px;
    font-weight: 800;
}

.header-nav a {
    white-space: nowrap;
    transition: color 0.2s ease;
}

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

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-cta:hover {
    transform: translateY(-1px);
    opacity: 0.86;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 128px 20px 56px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(121, 141, 78, 0.13);
}

h1 {
    max-width: 720px;
    font-size: clamp(42px, 6.4vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 850;
}

.hero-description {
    max-width: 560px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.72;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0;
    border-radius: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-link:hover {
    transform: translateY(-2px);
    opacity: 0.88;
}

.store-link img {
    height: 54px;
    width: auto;
}

.store-link.small,
.store-link.small img {
    height: 46px;
}

.store-link.floating,
.store-link.floating img {
    height: 46px;
}

.scanner-card {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
    padding: 18px;
    backdrop-filter: blur(20px);
}

.scanner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.scanner-label {
    margin-bottom: 4px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.scanner-header h2 {
    font-size: 24px;
    line-height: 1.16;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.scanner-status {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
}

.upload-box {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(121, 141, 78, 0.08), transparent),
        rgba(255, 255, 255, 0.68);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-box:hover,
.upload-box.drag-over {
    border-color: var(--green);
    background:
        linear-gradient(135deg, rgba(121, 141, 78, 0.16), rgba(121, 141, 78, 0.04)),
        rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.upload-box input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    max-width: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
}

.upload-icon {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 22px;
    background: var(--green-soft);
    color: var(--green);
}

.upload-icon svg {
    width: 34px;
    height: 34px;
}

.upload-title {
    font-size: 23px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.018em;
}

.upload-subtitle {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.upload-format {
    margin-top: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: #8a8f98;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.preview-image {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-box.has-image .preview-image {
    display: block;
}

.upload-box.has-image .upload-placeholder {
    display: none;
}

.scan-overlay {
    position: absolute;
    inset: 0;
    display: none;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.16);
}

.upload-box.scanning .scan-overlay {
    display: block;
}

.scan-line {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #ffffff, var(--green), #ffffff, transparent);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.86);
    animation: scanLine 1.25s ease-in-out infinite;
}

.scan-corners span {
    position: absolute;
    width: 48px;
    height: 48px;
    border-color: rgba(255, 255, 255, 0.95);
    border-style: solid;
}

.scan-corners span:nth-child(1) {
    top: 18px;
    left: 18px;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 16px;
}

.scan-corners span:nth-child(2) {
    top: 18px;
    right: 18px;
    border-width: 3px 3px 0 0;
    border-top-right-radius: 16px;
}

.scan-corners span:nth-child(3) {
    bottom: 18px;
    left: 18px;
    border-width: 0 0 3px 3px;
    border-bottom-left-radius: 16px;
}

.scan-corners span:nth-child(4) {
    right: 18px;
    bottom: 18px;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 16px;
}

@keyframes scanLine {
    0% {
        top: 5%;
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    100% {
        top: 95%;
        opacity: 0;
    }
}

.steps {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(31, 31, 39, 0.04);
    color: #868b94;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.step-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #d0d4da;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.step.active {
    background: var(--green-soft);
    color: var(--green-dark);
}

.step.active .step-dot {
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(121, 141, 78, 0.12);
}

.step.done {
    color: var(--text);
}

.step.done .step-dot {
    background: var(--green);
}

.floating-store-bar {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(31, 31, 39, 0.08);
    box-shadow: 0 -14px 50px rgba(31, 31, 39, 0.13);
    backdrop-filter: blur(18px);
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition:
        transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1),
        opacity 0.2s ease;
}

.floating-store-inner {
    width: min(760px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.floating-store-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.floating-store-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-panel {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    max-height: 80vh;
    overflow-y: auto;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: var(--text);
    color: #fff;
    text-align: center;
    box-shadow: 0 -18px 70px rgba(0, 0, 0, 0.28);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.38s cubic-bezier(0.2, 0.9, 0.25, 1),
        opacity 0.25s ease;
}

.result-panel.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.result-panel::before {
    content: "";
    display: block;
    width: 46px;
    height: 5px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
}

.result-panel .result-icon,
.result-panel h3,
.result-panel p,
.result-panel .result-buttons,
.result-panel .reset-button {
    width: min(520px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.result-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--green);
    font-size: 24px;
    font-weight: 900;
}

.result-panel h3 {
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.result-panel p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.62;
}

.result-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.reset-button {
    margin-top: 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.reset-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.hero-bg {
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.7;
}

.hero-bg-one {
    top: 130px;
    right: -90px;
    width: 280px;
    height: 280px;
    background: rgba(121, 141, 78, 0.22);
}

.hero-bg-two {
    bottom: 70px;
    left: -80px;
    width: 240px;
    height: 240px;
    background: rgba(82, 98, 54, 0.14);
}

.features {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 12px 34px rgba(31, 31, 39, 0.07);
}

.feature span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.feature h3 {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.018em;
    font-weight: 800;
}

.feature p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.55;
}

.legal-page-body {
    padding-bottom: 0;
}

.legal-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 128px 0 40px;
}

.legal-section {
    width: 100%;
    margin: 0 auto 28px;
}

.legal-card {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 60px rgba(31, 31, 39, 0.08);
    backdrop-filter: blur(18px);
}

.legal-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-title {
    max-width: none;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.legal-card h2 {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(31, 31, 39, 0.08);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.legal-card h3 {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.35;
}

.legal-card p,
.legal-card li {
    color: rgba(23, 23, 23, 0.72);
    font-size: 15px;
    line-height: 1.78;
}

.legal-card p {
    margin-top: 14px;
}

.legal-card ul,
.legal-card ol {
    margin-top: 12px;
    padding-left: 22px;
}

.legal-card a {
    color: var(--green-dark);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

.site-footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(31, 31, 39, 0.08);
    color: var(--muted);
}

.site-footer strong {
    color: var(--text);
}

.site-footer p {
    margin-top: 4px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 700;
}

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

@media (min-width: 721px) {
    body {
        padding-bottom: 0;
    }

    .floating-store-bar {
        display: none;
    }
}

@media (max-width: 980px) {
    .header-nav {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-copy {
        max-width: none;
        text-align: center;
    }

    .eyebrow,
    .store-buttons {
        justify-content: center;
    }

    .scanner-card {
        width: min(520px, calc(100vw - 40px));
        max-width: none;
        margin: 0 auto;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: 150px;
    }

    .store-buttons {
        display: none;
    }

    .floating-store-inner {
        flex-direction: column;
        gap: 9px;
    }

    .floating-store-title {
        font-size: 13px;
    }

    .floating-store-buttons {
        width: 100%;
    }

    .platform-android .floating-store-buttons,
    .platform-ios .floating-store-buttons {
        justify-content: center;
    }

    .store-link.floating,
    .store-link.floating img {
        height: 45px;
    }
}

@media (max-width: 620px) {
    .site-header {
        top: 12px;
        width: calc(100% - 24px);
    }

    .brand-name {
        font-size: 15px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .header-cta {
        min-height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }

    .hero {
        padding: 104px 14px 42px;
    }

    h1 {
        font-size: 42px;
        line-height: 1.06;
    }

    .hero-description {
        font-size: 16px;
    }

    .scanner-card {
        width: calc(100vw - 40px);
        padding: 14px;
        border-radius: 24px;
    }

    .scanner-header {
        flex-direction: column;
    }

    .upload-title {
        font-size: 21px;
    }

    .result-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-link.small,
    .store-link.small img {
        height: 48px;
    }

    .legal-page {
        width: calc(100% - 40px);
        padding-top: 104px;
    }

    .legal-card {
        border-radius: 24px;
    }

    .legal-title {
        font-size: 36px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .floating-store-buttons {
        gap: 8px;
    }

    .store-link.floating,
    .store-link.floating img {
        height: 40px;
    }
}