/* ==========================================================================
   Tendly auth pages — compiled utility subset (replaces the Tailwind Play CDN)
   ========================================================================== */

/* --- Preflight (the parts these pages rely on) --------------------------- */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
}
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}
body {
    margin: 0;
    line-height: inherit;
}
hr { height: 0; color: inherit; border-top-width: 1px; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}
button, select { text-transform: none; }
button,
[type='button'],
[type='reset'],
[type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}
:-moz-focusring { outline: auto; }
::-moz-placeholder { opacity: 1; color: #9ca3af; }
::placeholder { opacity: 1; color: #9ca3af; }
button, [role='button'] { cursor: pointer; }
:disabled { cursor: default; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden] { display: none; }

/* --- Layout -------------------------------------------------------------- */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.overflow-y-auto { overflow-y: auto; }

/* --- Sizing -------------------------------------------------------------- */
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.min-h-screen { min-height: 100vh; }

/* --- Flexbox ------------------------------------------------------------- */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }

/* --- Spacing ------------------------------------------------------------- */
.m-3 { margin: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-20 { margin-top: 5rem; }
.p-1 { padding: 0.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

/* --- Borders ------------------------------------------------------------- */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-200 { border-color: #fecaca; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* --- Backgrounds --------------------------------------------------------- */
.bg-white { background-color: #fff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-900\/40 { background-color: rgb(17 24 39 / 0.4); }
.bg-blue-600 { background-color: #2563eb; }
.bg-red-50 { background-color: #fef2f2; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-amber-50 { background-color: #fffbeb; }

/* --- Typography ---------------------------------------------------------- */
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-red-500 { color: #ef4444; }
.text-red-700 { color: #b91c1c; }
.text-green-600 { color: #16a34a; }
.text-amber-600 { color: #d97706; }

/* --- Effects ------------------------------------------------------------- */
.shadow-2xl {
    --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
                var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* --- Hover states -------------------------------------------------------- */
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-gray-600:hover { color: #4b5563; }
.hover\:text-gray-700:hover { color: #374151; }

/* --- Focus states (incl. Tailwind's ring machinery) ---------------------- */
.focus\:border-blue-500:focus { border-color: #3b82f6; }
.focus\:ring-1:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
                var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }

/* ==========================================================================
   Auth-specific components (not Tailwind utilities)
   ========================================================================== */

/* iOS Safari zooms the whole page when a focused field's font-size is below
   16px — the auth inputs were 14px (.text-sm), so tapping "Business email" on
   an iPhone jumped the layout and the user had to pinch back out (#1557).
   Declared AFTER .text-sm so it wins at equal specificity. */
.auth-input {
    font-size: 16px;
    line-height: 1.5;
}

/* Modal close button: was a ~19x32px icon-only <button> with no accessible
   name — below the 44x44 minimum tap target and invisible to screen readers.
   Negative margins keep the glyph exactly where it used to sit inside the
   card's padding while the hit area grows around it. */
.auth-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    margin: -11px -11px 0 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}
.auth-close-btn:hover { background-color: #f3f4f6; color: #4b5563; }
.auth-close-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ==========================================================================
   /signup wizard — compiled utility subset (steps 1-4)
   ========================================================================== */

/* --- Preflight the wizard needs on top of the auth pages' slice ---------- */
*,
::before,
::after {
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
}
/* Plan-card feature lists are plain <ul>/<li> — without this they render with
   browser bullets and a 40px indent. */
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
textarea { resize: vertical; }

/* --- Layout -------------------------------------------------------------- */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.top-0 { top: 0px; }
.right-0 { right: 0px; }
.bottom-0 { bottom: 0px; }
.left-0 { left: 0px; }
.left-1\/2 { left: 50%; }
.-top-2\.5 { top: -0.625rem; }
.z-30 { z-index: 30; }

/* --- Sizing -------------------------------------------------------------- */
.h-0\.5 { height: 0.125rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-14 { height: 3.5rem; }
.h-full { height: 100%; }
.w-0 { width: 0px; }
.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-14 { width: 3.5rem; }
.min-w-\[120px\] { min-width: 120px; }
.max-h-48 { max-height: 12rem; }
.max-h-56 { max-height: 14rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }

/* --- Flexbox ------------------------------------------------------------- */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-0 { gap: 0px; }
.gap-1 { gap: 0.25rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* --- Spacing ------------------------------------------------------------- */
.p-5 { padding: 1.25rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-3 { padding-top: 0.75rem; }
/* AFTER .px-3 (auth slice) so the password field keeps room for the eye. */
.pr-10 { padding-right: 2.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-0\.5 { margin-left: 0.125rem; }
.ml-1 { margin-left: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }

/* --- Borders ------------------------------------------------------------- */
.border-0 { border-width: 0px; }
.border-2 { border-width: 2px; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-600 { border-color: #2563eb; }
.border-green-200 { border-color: #bbf7d0; }
.border-amber-200 { border-color: #fde68a; }

/* --- Backgrounds --------------------------------------------------------- */
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-green-100 { background-color: #dcfce7; }

/* --- Typography ---------------------------------------------------------- */
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-blue-700 { color: #1d4ed8; }
.text-green-500 { color: #22c55e; }
.text-green-700 { color: #15803d; }
.text-amber-500 { color: #f59e0b; }
.text-amber-700 { color: #b45309; }
.text-red-600 { color: #dc2626; }
.whitespace-nowrap { white-space: nowrap; }

/* --- Interactivity ------------------------------------------------------- */
.cursor-pointer { cursor: pointer; }
.cursor-text { cursor: text; }
.select-none { -webkit-user-select: none; user-select: none; }
.resize-y { resize: vertical; }

/* --- Effects ------------------------------------------------------------- */
.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }
.shadow {
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
                var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
                var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
                var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.ring-2 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
                var(--tw-shadow, 0 0 #0000);
}
.ring-blue-500 { --tw-ring-color: #3b82f6; }
.ring-offset-2 { --tw-ring-offset-width: 2px; }

/* --- Transforms ---------------------------------------------------------- */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
               rotate(var(--tw-rotate)) skewX(var(--tw-skew-x))
               skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x))
               scaleY(var(--tw-scale-y));
}
.translate-x-1 {
    --tw-translate-x: 0.25rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
               rotate(var(--tw-rotate)) skewX(var(--tw-skew-x))
               skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x))
               scaleY(var(--tw-scale-y));
}
.translate-x-6 {
    --tw-translate-x: 1.5rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
               rotate(var(--tw-rotate)) skewX(var(--tw-skew-x))
               skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x))
               scaleY(var(--tw-scale-y));
}
.-translate-x-1\/2 {
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
               rotate(var(--tw-rotate)) skewX(var(--tw-skew-x))
               skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x))
               scaleY(var(--tw-scale-y));
}

/* --- Transitions & animation --------------------------------------------- */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
/* AFTER .transition-* — those declare the 150ms default this overrides. */
.duration-200 { transition-duration: 200ms; }
.duration-500 { transition-duration: 500ms; }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* --- Hover / focus / focus-within ---------------------------------------- */
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:text-blue-600:hover { color: #2563eb; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus-within\:border-blue-500:focus-within { border-color: #3b82f6; }
.focus-within\:ring-1:focus-within {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
                var(--tw-shadow, 0 0 #0000);
}
.focus-within\:ring-blue-500:focus-within { --tw-ring-color: #3b82f6; }

/* --- Responsive (the plan grid is the only breakpoint user) --------------- */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Re-declared LAST: every wizard step, badge and dropdown ships as
   `class="hidden flex …"` / `"hidden absolute …"` and must stay hidden until
   the script removes the class. Tailwind emits .hidden after every other
   display utility for exactly this reason. */
.hidden { display: none; }
