        :root {
            --highlight: #fff4d2;
        }

		a:link
		{
			text-decoration: none;
		}

		a:link,a:visited {
		    color: var(--orange);
		}

		a:hover {
		    color: var(--hover-highlight);
		    text-decoration: underline;
		}

		a:active {
		    color: var(--orange);
		}

        .navbar-brand a {
            color: var(--dark-blue);
            text-decoration: none;
        }

        .navbar-brand a:hover {
            color: var(--hover-highlight);
        }

        .form-check-input {
            accent-color: var(--orange);
        }

        .form-check-input:checked {
            background-color: var(--orange);
            border-color: var(--orange);
        }

        .form-check-input:focus {
            box-shadow: none;
            outline: none;
        }

        .max-length-range {
            width: 100%;
            max-width: 300px;
            appearance: none;
            height: 6px;
            background: var(--beige);
            border: 1px solid var(--beige);
            border-radius: 3px;
        }

        .max-length-range::-webkit-slider-thumb:focus, .max-length-range::-moz-range-thumb:focus
        {
        	box-shadow: none;
        	outline: none;
        }

        .max-length-range::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--orange);
            cursor: pointer;
        }

        .max-length-range::-moz-range-thumb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--orange);
            cursor: pointer;
            border: none;
        }

        .max-length-range::-webkit-slider-runnable-track {
            background: var(--beige);
            height: 6px;
            border-radius: 3px;
        }

        .max-length-range::-moz-range-track {
            background: var(--beige);
            height: 6px;
            border-radius: 3px;
        }

        .search-input {
            resize: none;
            overflow-y: auto;
            overflow-x: hidden;
            line-height: 1.4;
            height: auto;
            min-height: 3em;
            max-height: calc(1.4em * 5);
            scrollbar-width: none;
        }

        .search-input::-webkit-scrollbar {
            display: none;
        }

        .toggle-advanced-link {
            color: var(--orange);
        }

        .toggle-advanced-link:hover {
            color: var(--hover-highlight);
        }

        .result-drawer {
            position: fixed;
            bottom: -100%;
            left: 0;
            right: 0;
            background: var(--beige);
            border-top: 3px solid var(--dark-blue);
            box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
            transition: bottom 0.5s ease;
            padding: 20px;
            z-index: 1000;
        }

        .result-drawer.active {
            bottom: 0;
        }

        .result-drawer h4 {
            color: var(--dark-blue);
            margin-bottom: 15px;
        }

        .result-drawer ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .result-drawer ul li {
            padding: 6px 0;
            font-size: 1.1rem;
            border-bottom: 1px dashed var(--dark-blue);
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s;
            z-index: 2000;
        }

        .loading-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
        }

        .spinner-sentence {
            color: white;
            margin-top: 15px;
            font-size: 1.2rem;
            text-align: center;
            opacity: 0;
            transition: opacity 0.5s;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--dark-blue);
            margin: 0;
            padding: 0;
        }

        .navbar {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .nav-link.active {
            color: var(--orange) !important;
            pointer-events: none;
            cursor: default;
            text-decoration: underline;
        }

        header {
            background-color: var(--beige);
            padding: 1.5rem 2rem;
            text-align: center;
        }

        header h1 {
            margin: 0;
            font-size: 2rem;
            color: var(--orange);
        }






        .features {
            max-width: 960px;
            margin: auto;
            padding: 3rem 1rem;
        }

        .feature {
            background: white;
            border: 1px solid #eee;
            border-left: 5px solid var(--orange);
            padding: 2rem;
            border-radius: 16px;
            margin-bottom: 2rem;
            box-shadow: 0 6px 18px rgba(3, 61, 86, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .feature:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 24px rgba(3, 61, 86, 0.15);
        }

        .feature h3 {
            margin-top: 0;
            font-size: 1.4rem;
            color: var(--dark-blue);
        }

        .feature p {
            font-size: 1rem;
            color: #333;
            margin-bottom: 0;
        }

        footer {
            padding: 1rem;
        }
        :root {
            --beige: #fdeebd;
            --dark-blue: #033d56;
            --orange: #edbc45;
            --hover-highlight: #3c6478;
        }
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--dark-blue);
        }
        body {
            display: flex;
            flex-direction: column;
            background-color: white;
            background-repeat: repeat;
        }
        .navbar {
            background-color: var(--beige);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .navbar-brand {
        }
        .navbar-brand img {
            height: 40px;
            margin-right: 10px;
            cursor: pointer;
        }
        .nav-link {
            color: var(--dark-blue) !important;
            font-weight: 500;
            margin-left: 20px;
            transition: color 0.3s, transform 0.3s;
            text-align: right;
            cursor: pointer;
        }
        .nav-link:hover {
            color: var(--hover-highlight) !important;
            transform: translateY(-2px);
        }
        .navbar-toggler:focus {
            box-shadow: none !important;
            outline: none !important;
        }
        .speech-cloud {
            position: absolute;
            top: 60px;
            left: 20px;
            background-color: white;
            color: var(--dark-blue);
            border: 2px solid var(--dark-blue);
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 1rem;
            max-width: 250px;
            opacity: 0;
            transition: opacity 1s ease-in;
            display: none;
        }
        .speech-cloud::after {
            content: "";
            position: absolute;
            top: -10px;
            left: 30px;
            border-width: 0 10px 10px 10px;
            border-style: solid;
            border-color: transparent transparent white transparent;
            filter: drop-shadow(0px -2px 0 var(--dark-blue));
        }
        .search-section {
            flex:1;
            display:flex;
            flex-direction:column;
            justify-content:center;
            align-items:center;
            text-align:center;
            padding:2rem;
            position:relative;
        }
        .search-input {
            width:100%;
            max-width:600px;
            padding:15px 25px;
            border:2px solid var(--orange);
            border-radius:25px;
            font-size:1.2rem;
            transition:all 0.3s ease;
            animation:cursorGlow 1.5s infinite;
        }
        @keyframes cursorGlow {
            0%{box-shadow:0 0 0px var(--orange);}
            50%{box-shadow:0 0 10px var(--orange);}
            100%{box-shadow:0 0 0px var(--orange);}
        }
        .search-input:focus{outline:none;border-color:var(--dark-blue);}
        .generate-button{
            margin-top:20px;
            padding:10px 25px;
            font-size:1.2rem;
            border:none;
            border-radius:50px;
            background-color:var(--orange);
            color:white;
            font-weight:bold;
            cursor:pointer;
            transition:background-color 0.3s;
        }
        .generate-button:hover{background-color:var(--hover-highlight);}
        footer {
            background-color: var(--beige);
            padding: 20px;
            font-size: 0.9rem;
            text-align: center;
        }

        footer a {
            color: var(--dark-blue);
            text-decoration: none;
            margin: 0 10px;
        }

        footer a:hover {
            text-decoration: underline;
        }
        #modalMessage.success {
            color: var(--dark-blue);
            font-weight: 600;
        }

        #modalMessage.error {
            color: red;
            font-weight: 600;
        }

        #modalMessage .plain {
            font-size: 0.9em;
            font-weight: 400;
        }
        .modal-overlay{
            position:fixed;
            top:0;left:0;right:0;bottom:0;
            display:none;
            justify-content:center;
            align-items:center;
            background:rgba(0,0,0,0.5);
            z-index:3000;
        }
        .modal-content{
            background:var(--beige);
            border-radius:15px;
            padding:20px;
            max-width:400px;
            width:90%;
            position:relative;
            box-shadow:0 2px 10px rgba(0,0,0,0.2);
        }
        #commentModal{
            align-items:flex-start;
            background:white;
        }
        #commentModal .modal-content{
            width:100%;
            height:100%;
            max-width:none;
            max-height:none;
            border-radius:0;
            background:transparent;
            overflow-y:auto;
            padding:60px 20px 20px 20px;
        }
        #commentModal .comment-close{
            position:absolute;
            top:10px;
            left:10px;
            font-size:2rem;
            color:gray;
            background:none;
            border:none;
        }
        #commentList .comment-item{
            border-top:1px solid #ccc;
            padding:10px 0;
        }
        #commentList .reaction-btn{
            border:none !important;
            opacity:0.5;
        }
        #commentForm{
            position:sticky;
            top:0;
            background:white;
        }
        #commentInput{
            resize:none;
            overflow-y:auto;
        }
        .modal-close{
            position:absolute;
            top:10px;
            right:15px;
            font-weight:bold;
            cursor:pointer;
        }
        #emailHint {
            display: block;
            margin-top: 5px;
            font-size: 0.9rem;
        }
        #emailHint.valid {
            color: var(--dark-blue);
        }
        #emailHint.invalid {
            color: red;
        }



        .plans {
            max-width: 960px;
            margin: auto;
            padding: 3rem 1rem;
            flex-direction: row;
            gap: 2rem;
        }

        .plans,.plan {
            display: flex;
        }

        .plan {
            background: white;
            border: 2px solid var(--orange);
            border-radius: 16px;
            padding: 2rem;
            flex: 1;
            box-shadow: 0 6px 18px rgba(3, 61, 86, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            flex-direction: column;
        }

        .plan:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 24px rgba(3, 61, 86, 0.15);
        }

        .plan h2 {
            color: var(--dark-blue);
            margin-bottom: 0.5rem;
        }

        .plan .price {
            font-size: 1.5rem;
            color: var(--orange);
            font-weight: bold;
        }

        .plan ul {
            padding-left: 1.25rem;
            list-style-type: disc;
        }

        .plan li {
            margin-bottom: 0.5rem;
        }

        .plan > div:first-of-type {
            flex-grow: 1;
        }

        .plan button {
            margin-top: 1rem;
            margin-bottom: 1rem;
            background-color: var(--orange);
            border: none;
            color: white;
            font-weight: bold;
            padding: 10px 25px;
            border-radius: 50px;
        }

        .plan button.subscribed {
            background-color: #ccc;
            cursor: not-allowed;
        }

        .plans-header {
            background-color: var(--beige);
            padding: 2rem;
            text-align: center;
        }

        .plans-header h1 {
            margin: 0;
            font-size: 2rem;
            color: var(--dark-blue);
        }

        @media (max-width: 768px) {
            .plans {
                flex-direction: column;
            }

            .plan {
                margin-bottom: 2rem;
            }
        }



.plans-row
{
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.plan
{
    flex: 1 1 300px;       /* grow, shrink, base width */
    max-width: 360px;      /* prevents over-stretching on wide screens */
}

@media (min-width: 992px)
{
    .plans-row
    {
        flex-wrap: nowrap;
    }

    .plan
    {
        flex: 0 1 calc(33.333% - 1.333rem);  /* three equal columns accounting for gap */
        max-width: none;
    }
}

/* Contact form */
#contactForm {
    width: 100%;
}

@media (min-width: 992px) {
    #contactForm {
        max-width: 50vw;
    }
}

.send-message-btn {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
}

.send-message-btn:hover {
    background-color: var(--hover-highlight);
    border-color: var(--hover-highlight);
}

.footer-tagline {
    color: var(--hover-highlight);
}

.cookie-policy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--beige);
    color: var(--dark-blue);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 2000;
}

.domain-link {
    color: var(--orange);
    text-decoration: none;
}

.domain-link:hover {
    text-decoration: underline;
}

/* smaller + wrapping placeholder */
.search-input::placeholder
{
    font-size: 0.95rem;
    opacity: 0.7;
    white-space: normal;
}

/* allow advanced options to wrap */
#advancedOptions .d-flex
{
    flex-wrap: wrap;
}

/* make text inputs flexible */
#advancedOptions input.form-control
{
    flex: 1 1 200px;
    min-width: 0;
    max-width: 100%;
}

/* spacing when radios wrap */
#advancedOptions .form-check-inline
{
    margin-bottom: 0.5rem;
}

/* responsive tweak for very small screens */
@media (max-width: 576px)
{
    .search-input
    {
        font-size: 1rem;
        padding: 12px 18px;
    }

    #advancedOptions input.form-control
    {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
